Stock P&L Calculator
Calculate your real profit or loss on a trade
This stock P&L calculator computes your actual profit or loss on a trade after accounting for brokerage fees on both entry and exit, plus the exact break-even price you need to cover costs.
$
$
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
🔗 Related Calculators
📖 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 Suffered | Gain 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
| Type | Definition | Tax Implication |
|---|---|---|
| Unrealized | Paper gain/loss on a position you still hold | Not taxed until the position is actually sold |
| Realized | Actual gain/loss locked in after selling | Taxable 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.
How accurate are the results from this calculator?
This calculator gives you a mathematically precise estimate based on the numbers you enter. Real-world results can differ due to fees, rate changes, taxes, or other factors not captured in a simplified formula — treat the output as a planning estimate, not financial, tax, or legal advice.
Is this calculator free to use?
Yes. Every calculator on FinCalc is completely free, with no signup, subscription, or paywall required.
Does this calculator store or share my data?
No. All calculations run locally in your browser — nothing you type is sent to or stored on a server.