Worked example
A first look at trading P/L
Eight trades in one stock: a sell at a loss, two profitable exits, an average cost that moves with every buy, and 140 shares still held.
- Realized P/L
- +$1,552.22
- Unrealized P/L
- +$577.78
- Total P/L
- +$2,130.00
Real market episodes and textbook cases, each ready to open in the calculator, with sources wherever a filing exists.
4:37
Watch the tutorial
Simulated scenarios use illustrative prices anchored to the events they describe; they are not quotes. Nothing here is a recommendation or a prediction.
Worked example
Eight trades in one stock: a sell at a loss, two profitable exits, an average cost that moves with every buy, and 140 shares still held.
Simulated
CAMPAIGN
One position rebuilt and trimmed over 36 trades: +$122,699.91 realized, one losing sell, and the last 100 shares under water.
Simulated
CAMPAIGN
The same campaign with two different trades: sale 14 at $256.40 and a final sale of all 400 remaining shares, for +$139,300.00, all of it realized.
Simulated
2026
MU
Simulated trades in Micron around two 2026 milestones: two profitable trims, one lot sold at a loss, and 40 shares kept.
Simulated
2016–2026
NVDA
A simulated ten-year ledger in NVIDIA on today’s split-adjusted basis: adds and trims, a losing sale in 2022, and 3,500 shares held at the end.
Simulated
2022
MU
Two buys at falling prices cut the average cost of a memory-chip position from $84.30 to $65.04, and selling all 600 shares at $49.20 loses −$9,505.00.
Simulated
2024
NVDA
A hypothetical 10 shares bought at $1,000 are entered as 100 shares at $100 after the 10-for-1 split of 2024, followed by two post-split trades.
Simulated
CHIPX
A fictional chipmaker: a +$550.00 gain on 100 shares, a re-entry with 800 shares, and an exit after an earnings gap that realizes −$9,220.00.
Simulated
2011–2013
BTC-USD
Simulated BTC/USD buys across 2011 and 2012, sold in four tranches during the spring 2013 rally: +$14,903.60 on $641.31 invested.
Simulated
2014–2017
BTC-USD
A simulated early seller re-enters BTC/USD in small batches, trims once, and holds 7.5 BTC into the next cycle: realized and unrealized side by side.
Simulated
2017–2022
BTC-USD
Two profitable early sells, a much larger re-entry in 2021, and an exit into the 2022 drawdown: −$37,602.00 overall.
Simulated
2020–2024
BTC-USD
Periodic small BTC/USD buys, a losing sale in 2022, and a partial trim in January 2024: +$584.08 realized and 0.23 BTC still held.
Simulated
2022
ETH-USD
A fractional ETH/USD position built before the September 2022 Merge and closed in three sells after it, with 0.5% fees: −$384.20 net.
Simulated
2022
UST-USD
Simulated UST/USD buys near $1.00, a partial sale during the May 2022 break and a final exit at $0.087: −$5,275.72 on $7,500.99.
Historical
2017–2021
BTC
A fully closed position: buy 10 at $999, sell 10 at $64,440 — the whole result is realized P/L.
Simulated
2021
GME
A simulated companion to the two-trade GameStop record: small buys, a profitable sale in the rally, a buy near the peak, and a losing exit.
Simulated
2023
BANKX
A fictional regional bank: two buys, a small gain, an add after the first bank failures, and a sale at $12.60 that realizes −$19,164.29.
Simulated
2020–2022
ENERGYX
A fictional energy producer: bought before the 2020 crash, added near the low, partly sold at a loss, and held into the recovery.
Simulated
2022
LONGBOND
Regular adds into a falling fund, one partial sale at a loss, and 170 shares kept: −$4,594.00 in total.
Simulated
2020–2021
MARKETX
A fictional index fund: buys before the selloff, one sale at the low, a staged rebuild and a later partial exit. The two sales nearly cancel.
Worked example
LOTS
Three lots at $40, $55 and $47, then a sale of 150 at $60: FIFO, LIFO, HIFO and average cost realize four different amounts and the same +$2,600.00 total.
Worked example
FEES
Two small buys and one sale at a price above the average cost: a gross gain of $20.00 becomes −$0.85 after three $6.95 commissions.
Worked example
MIXED
Two profitable sales lock in +$1,410.00, a later buy lifts the average cost to $55.14, and at $47 the open shares lose −$2,850.00.
Worked example
AVGDOWN
Buys at $80, $68 and $55 bring the average cost to $65.86 and the money committed to $23,050.00; a small sale at $61 still loses.
Worked example
TWICE
Two rounds in the same stock: the first closes at +$750.00, and the second starts again from a fresh average cost.
Historical
2016–2020
AAPL
Four buy lots, two partial sells, $0.16 commissions and a 12% illustrative tax — at a mid-2021 price.
Historical
2021
GME
From a $17.25 close to $347.51 in 23 days — the squeeze the SEC wrote a report about.
Historical
2000–2001
ENRON
From a $90.75 peak to 61 cents — the far end of the loss-recovery curve.
Historical
1980–2021
AAPL-1980
Five stock splits turn 100 shares into 22,400 — Apple's own split history, compounded.
Historical
2011–2023
TSLA
Thirteen annual buys of about $5,000 each, split-adjusted, with 1% commissions each side.
Historical 1964–2024
An overall gain of 5,502,284% — the letter's own number — annualized by the CAGR calculator.
Worked example
AVG-DOWN
Buys of 10, 10 and 40 shares at $100, $80 and $60 pull the average to exactly $70.
Worked example
Entry $50, stop $48: risk $100 ÷ $2 per share = 50 shares, $2,500 of exposure.
Worked example
$10,000 reinvested for 10 years with 5% dividend and price growth — the year table shows the compounding.
Each link opens the relevant calculator with the scenario already loaded — trades, fees, and prices — so the results panel, the chart, and the break-even figure are all live and editable. Change anything and the arithmetic follows. The historical prices are closing or filing-derived figures from the linked sources; lot lists for the fund positions are split-adjusted reconstructions from quarterly holdings reports, which is why share counts look unusual. Where a scenario involves a loss, the loss-recovery table shows what a comeback would have required — often the most instructive number in the story.