Profit and loss, usually abbreviated as P&L, is the most fundamental measurement in trading and investing. Every position you take, whether for ten minutes or ten years, eventually ends with a number that says how much you made or lost. Many investors track this badly or not at all, which makes it impossible to learn from mistakes or repeat what works. This guide walks through every common scenario and the math behind each.

The Basic P&L Formula

For any single transaction, profit or loss equals (sell price minus buy price) multiplied by quantity, minus any fees and commissions. Buy 100 shares at 50, sell at 60, with 5 in total fees, and your profit is (60 − 50) × 100 − 5 = 995. If the trade goes the other way, sell at 45, profit becomes (45 − 50) × 100 − 5 = −505, a loss of 505. This same template works for stocks, forex, crypto, and futures with only minor adjustments for contract size.

Percentage Gain vs Absolute Gain

Absolute gain is the dollar amount. Percentage gain is that amount divided by your original cost. A 500 USD profit on a 5,000 USD investment is a 10% return. The same 500 USD profit on a 50,000 USD investment is only 1%. Most experienced investors think first in percentages because returns are comparable across positions of very different sizes, and because compound math works on percentages, not absolute dollars.

Why Percentage Matters More

Two investors can both make 1,000 USD on a trade. One used 10,000 of capital to do it (10% return). The other used 100,000 (1%). The first investor's strategy compounded over time will dwarf the second's, even though each individual trade looked similar. When comparing strategies, brokers, or yourself across years, always think in percentages first.

Stock Example with Dividends

When you hold a stock that pays dividends, your total return includes both capital gains and dividends received. Buy 100 shares at 50, receive 2 per share in dividends over the year, sell at 55. Capital gain = (55 − 50) × 100 = 500. Dividend income = 2 × 100 = 200. Total return = 700, minus any fees and any tax withheld at source.

Forex Example

In forex, P&L uses pip value rather than per-share math. Buy 1 standard lot of EURUSD at 1.1000 and sell at 1.1050, that is 50 pips of profit. At 10 USD per pip per standard lot, that equals 500 USD before spread and commission. Always use a position-size calculator to convert pips to dollars correctly across different pairs.

Crypto Example

For crypto, P&L works just like stocks. Buy 0.5 BTC at 40,000 (total cost 20,000), sell at 50,000 (total receive 25,000). Profit = 5,000 before fees. Network fees and exchange commissions on crypto can be significant, so always include them. If you bought in tranches, track the average cost basis carefully because the IRS or your local tax authority will calculate gains from that exact number.

Accounting for Fees and Commissions

Fees quietly eat into trading returns more than most people realize. A flat 5 USD commission on a 500 USD trade is a 1% drag before you even see a price move. High-frequency strategies must account for fees ruthlessly because a strategy that looks profitable gross can be flat or losing net of commissions. Always model your strategy after fees, not before.

Realized vs Unrealized P&L

Realized P&L is profit or loss on positions you have actually closed. Unrealized P&L is the paper gain or loss on positions still open. Both matter, but only realized P&L lands in your account. Many traders make the mistake of celebrating unrealized gains and then watching them evaporate. A useful rule is to never count money you have not actually banked.

Tracking P&L Over Time

A simple spreadsheet with date, instrument, entry, exit, position size, fees, and net P&L gives you a powerful trading journal. After 100 trades you can see your average win, average loss, win rate, and total return. After 500 trades you can see whether your strategy actually has an edge or you have just been lucky. Without tracking, you are flying blind.

Tax Implications

In most jurisdictions, trading profits are taxable. Short-term capital gains are usually taxed at higher rates than long-term gains. Forex and crypto have specific rules in many countries. Some countries treat day-trading as ordinary income. None of this article is tax advice, but you should know the local rules before you start trading seriously, because the after-tax return is what actually grows your wealth.

Conclusion

Profit and loss is the scoreboard of investing. Calculate it accurately, including fees and taxes, and review it regularly. Think in percentages when you compare. Distinguish realized from unrealized. Treat your trading like a real business with a real ledger, and the discipline will pay back many times over.