Realized profit and loss (realized P&L) is the gain or loss on a trade that has been completed, meaning a position was opened and then closed by an offsetting sale or purchase. It is fixed at the moment of closing and includes all commissions and fees on both legs. For a long position it equals : buying 200 shares at 25.00, selling them at 27.50 and paying $10 in total commissions gives a realized profit of dollars.
It differs from unrealized profit and loss, the paper result on positions still open, which changes with every price move. Brokers report both, and the sum appears in daily profit and loss statements. When only part of a holding is sold, the gain depends on which lots are treated as sold, under methods such as first in, first out. Realized gains and losses usually determine capital gains tax.