Stock P&L Calculator
$
$
Net P&L
$0
Return %
0%
Annualised Return
0%
Total Commission
$0
Trade Summary
Total buy cost$0
Total sell proceeds$0
Break-even sell price$0
๐Ÿ“– Stock P&L โ€” Understanding Your Trade Returns
Calculating whether a stock trade actually made you money sounds simple โ€” sell price minus buy price โ€” but brokerage fees, position sizing, and the asymmetric mathematics of losses versus gains all complicate the picture in ways that matter for real trading decisions.
The Full P&L Formula
P&L = (Selling Price โˆ’ Buying Price) ร— Quantity โˆ’ Total Brokerage Fees
Many new traders forget to subtract brokerage fees from both the buy and sell sides, overstating their actual profit. A trade that looks like a $200 gain on paper might only be a $160 gain after accounting for round-trip commission costs, especially on smaller position sizes where fixed-fee brokerages disproportionately eat into returns.
Worked Example: Brokerage Drag on Small Trades
Buying 50 shares at $40 ($2,000 total) and selling at $44 ($2,200 total) produces a gross profit of $200 โ€” a 10% gain. If your brokerage charges a flat $15 commission per trade (buy and sell), that's $30 in total fees, reducing your net profit to $170, or an effective 8.5% return rather than the headline 10%. On a $200,000 position with the same percentage move, that same $30 in fixed fees becomes utterly negligible โ€” illustrating why brokerage drag disproportionately punishes smaller, more frequent trades.
The Asymmetry of Losses: Why a 50% Loss Needs a 100% Gain
Return Needed to Break Even = Loss% / (1 โˆ’ Loss%)
Loss SufferedGain Needed to Recover
10%11.1%
25%33.3%
50%100%
75%300%
90%900%
This asymmetry is one of the most important โ€” and most frequently ignored โ€” concepts in trading. A position that drops 50% requires a full 100% gain just to return to your original investment value, because the recovery gain is calculated on a smaller remaining base. This mathematical reality is precisely why professional traders prioritize avoiding large losses over chasing large gains: protecting capital from severe drawdowns matters more to long-term compounding than any single winning trade.
Stop Losses: Removing Emotion From the Equation
A stop loss is a pre-set order to automatically sell if a position falls to a specified price, capping your maximum possible loss on that trade before emotion (hope, denial, "it'll bounce back") can interfere with the decision. Buying at $100 with a stop loss set at $90 mathematically caps your loss at 10%, regardless of how far the stock might fall afterward if you hadn't set that order.
Realized vs Unrealized P&L
TypeDefinitionTax Implication
UnrealizedPaper gain/loss on a position you still holdNot taxed until the position is actually sold
RealizedActual gain/loss locked in after sellingTaxable in the year the sale occurs
A position showing a large unrealized gain can vanish entirely (or turn into a loss) before you sell โ€” which is why portfolio "value" displayed in your brokerage app is always somewhat theoretical until you actually close the position.
Short-Term vs Long-Term Capital Gains Tax
In the US, positions held for less than one year are taxed as short-term capital gains at your ordinary income tax rate (up to 37% for high earners). Positions held longer than one year qualify for long-term capital gains rates โ€” 0%, 15%, or 20% depending on income โ€” a substantial difference that makes holding period a real factor in after-tax trading strategy, not just a technicality.
โš  Be aware of "wash sale" rules โ€” selling a security at a loss and then repurchasing a substantially identical security within 30 days disallows the tax loss deduction for that period, a rule many active traders inadvertently trigger without realizing it.
โ“ Frequently Asked Questions
What is P&L in stock trading? +
P&L = (Selling Price โˆ’ Buying Price) ร— Quantity โˆ’ Brokerage FeesP&L shows how much you made or lost on a trade. Realized P&L is from closed positions. Unrealized P&L is from positions you still hold.
What is brokerage and how does it affect returns? +
Brokerage is the commission paid per trade. On small investments, brokerage can significantly eat into returns. A 2% round-trip brokerage means the stock needs to gain at least 4% just to break even on that trade.
What is the difference between short-term and long-term capital gains? +
In the US, stocks held less than 1 year are taxed as ordinary income (up to 37%). Stocks held more than 1 year are taxed at long-term capital gains rates (0%, 15%, or 20%). Holding longer is almost always more tax-efficient.
What is a stop loss? +
A stop loss is an order to automatically sell a stock if it falls to a certain price, limiting your maximum loss. Buying at $100 with a stop loss at $90 caps your loss at 10%. It removes emotion from loss-cutting decisions.
What is the break-even price after a loss? +
Break-even Return Needed = Loss% / (1 โˆ’ Loss%)If a stock drops 50%, you need a 100% gain just to get back to even. A 20% loss needs a 25% gain. This asymmetry is why limiting losses is more important than chasing gains.