Stock Calculator

Worked Examples

Real market episodes and textbook cases, each ready to open in the calculator, with sources wherever a filing exists.

4:37 Watch the tutorial How to read your trades, step by step

Simulated scenarios use illustrative prices anchored to the events they describe; they are not quotes. Nothing here is a recommendation or a prediction.

Trading ledgers

  • 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

    Trades: 8 Open position (shares): 140

    Open in calculator
  • Simulated CAMPAIGN

    A 36-trade equity campaign

    One position rebuilt and trimmed over 36 trades: +$122,699.91 realized, one losing sell, and the last 100 shares under water.

    Realized P/L
    +$122,699.91
    Unrealized P/L
    -$1,149.91
    Total P/L
    +$121,550.00

    Trades: 36 Open position (shares): 100

    Open in calculator
  • Simulated CAMPAIGN

    Closing the 36-trade position

    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.

    Realized P/L
    +$139,300.00
    Total P/L
    +$139,300.00

    Trades: 36 Position closed

    Open in calculator

Semiconductors & AI

  • Simulated 2026 MU

    Micron and the HBM4 ramp, 2026

    Simulated trades in Micron around two 2026 milestones: two profitable trims, one lot sold at a loss, and 40 shares kept.

    Realized P/L
    +$4,722.28
    Unrealized P/L
    +$4,161.47
    Total P/L
    +$8,883.75

    Trades: 7 Open position (shares): 40

    Open in calculator
  • Simulated 2016–2026 NVDA

    NVIDIA from gaming to AI infrastructure, 2016–2026

    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.

    Realized P/L
    +$99,331.00
    Unrealized P/L
    +$530,964.00
    Total P/L
    +$630,295.00

    Trades: 12 Open position (shares): 3,500

    Open in calculator
  • Simulated 2022 MU

    Averaging down through the 2022 memory downturn

    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.

    Realized P/L
    -$9,505.00
    Total P/L
    -$9,505.00

    Trades: 4 Position closed

    Open in calculator
  • Simulated 2024 NVDA

    Restating an NVIDIA ledger for a stock split

    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.

    Realized P/L
    +$1,897.00
    Unrealized P/L
    +$2,166.00
    Total P/L
    +$4,063.00

    Trades: 3 Open position (shares): 90

    Open in calculator
  • Simulated CHIPX

    A small win, then a bigger losing re-entry

    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.

    Realized P/L
    -$8,670.00
    Total P/L
    -$8,670.00

    Trades: 5 Position closed

    Open in calculator

Crypto cycles

  • Simulated 2011–2013 BTC-USD

    Bitcoin, the early exit, 2011–2013

    Simulated BTC/USD buys across 2011 and 2012, sold in four tranches during the spring 2013 rally: +$14,903.60 on $641.31 invested.

    Realized P/L
    +$14,903.60
    Total P/L
    +$14,903.60

    Trades: 9 Position closed

    Open in calculator
  • Simulated 2014–2017 BTC-USD

    Bitcoin, back in after the 2013 boom, 2014–2017

    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.

    Realized P/L
    +$1,403.14
    Unrealized P/L
    +$28,863.11
    Total P/L
    +$30,266.25

    Trades: 6 Open position (shares): 7.5

    Open in calculator
  • Simulated 2017–2022 BTC-USD

    Bitcoin, from early wins to the 2022 drawdown

    Two profitable early sells, a much larger re-entry in 2021, and an exit into the 2022 drawdown: −$37,602.00 overall.

    Realized P/L
    -$37,602.00
    Total P/L
    -$37,602.00

    Trades: 8 Position closed

    Open in calculator
  • Simulated 2020–2024 BTC-USD

    Bitcoin, from 2020 to the 2024 spot ETP approval

    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.

    Realized P/L
    +$584.08
    Unrealized P/L
    +$3,044.92
    Total P/L
    +$3,629.00

    Trades: 10 Open position (shares): 0.23

    Open in calculator
  • Simulated 2022 ETH-USD

    Ether around the Merge, 2022

    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.

    Realized P/L
    -$384.20
    Total P/L
    -$384.20

    Trades: 6 Position closed

    Open in calculator
  • Simulated 2022 UST-USD

    A stablecoin loses its peg, 2022

    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.

    Realized P/L
    -$5,275.72
    Total P/L
    -$5,275.72

    Trades: 4 Position closed

    Open in calculator
  • Historical 2017–2021 BTC

    10 BTC bought in 2017, sold near the 2021 top

    A fully closed position: buy 10 at $999, sell 10 at $64,440 — the whole result is realized P/L.

    Realized P/L
    +$634,410.00
    Total P/L
    +$634,410.00

    Trades: 2 Position closed

    Open in calculator

Equity & macro

  • Simulated 2021 GME

    GameStop in stages, January 2021

    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.

    Realized P/L
    -$1,562.50
    Total P/L
    -$1,562.50

    Trades: 5 Position closed

    Open in calculator
  • Simulated 2023 BANKX

    A regional bank position, 2023

    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.

    Realized P/L
    -$18,800.00
    Total P/L
    -$18,800.00

    Trades: 5 Position closed

    Open in calculator
  • Simulated 2020–2022 ENERGYX

    An energy stock through the 2020 oil shock

    A fictional energy producer: bought before the 2020 crash, added near the low, partly sold at a loss, and held into the recovery.

    Realized P/L
    -$522.00
    Unrealized P/L
    +$13,311.00
    Total P/L
    +$12,789.00

    Trades: 4 Open position (shares): 270

    Open in calculator
  • Simulated 2022 LONGBOND

    A long-duration bond ETF in the 2022 rate cycle

    Regular adds into a falling fund, one partial sale at a loss, and 170 shares kept: −$4,594.00 in total.

    Realized P/L
    -$2,112.00
    Unrealized P/L
    -$2,482.00
    Total P/L
    -$4,594.00

    Trades: 6 Open position (shares): 170

    Open in calculator
  • Simulated 2020–2021 MARKETX

    A broad-market investor in March 2020

    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.

    Realized P/L
    -$101.67
    Unrealized P/L
    +$5,967.67
    Total P/L
    +$5,866.00

    Trades: 7 Open position (shares): 75

    Open in calculator

Calculation mechanics

  • Worked example LOTS

    Four cost-basis methods, one total

    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.

    Realized P/L
    +$2,250.00
    Unrealized P/L
    +$350.00
    Total P/L
    +$2,600.00

    Trades: 4 Open position (shares): 150

    Open in calculator
  • Worked example FEES

    A small gain erased by 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.

    Realized P/L
    -$0.85
    Total P/L
    -$0.85

    Trades: 3 Position closed

    Open in calculator
  • Worked example MIXED

    Realized gains, a larger open loss

    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.

    Realized P/L
    +$1,410.00
    Unrealized P/L
    -$2,850.00
    Total P/L
    -$1,440.00

    Trades: 4 Open position (shares): 350

    Open in calculator
  • Worked example AVGDOWN

    Averaging down while exposure grows

    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.

    Realized P/L
    -$242.86
    Unrealized P/L
    -$4,157.14
    Total P/L
    -$4,400.00

    Trades: 4 Open position (shares): 300

    Open in calculator
  • Worked example TWICE

    A full exit, then a new position

    Two rounds in the same stock: the first closes at +$750.00, and the second starts again from a fresh average cost.

    Realized P/L
    +$950.00
    Unrealized P/L
    +$140.00
    Total P/L
    +$1,090.00

    Trades: 6 Open position (shares): 70

    Open in calculator

From the record books

every entry opens live in the calculator
  • Historical 2016–2020 AAPL

    Berkshire buys Apple, 2016–2020

    Four buy lots, two partial sells, $0.16 commissions and a 12% illustrative tax — at a mid-2021 price.

    Realized P/L
    +$7,405,161,156.86
    Unrealized P/L
    +$74,432,864,255.10
    Total P/L
    +$81,838,025,411.96

    Trades: 6 Open position (shares): 784,930,310

    Open in calculator
  • Historical 2021 GME

    GameStop, January 2021

    From a $17.25 close to $347.51 in 23 days — the squeeze the SEC wrote a report about.

    Realized P/L
    +$33,026.00
    Total P/L
    +$33,026.00

    Trades: 2 Position closed

    Open in calculator
  • Historical 2000–2001 ENRON

    Enron, 2000–2001

    From a $90.75 peak to 61 cents — the far end of the loss-recovery curve.

    Realized P/L
    $0.00
    Unrealized P/L
    -$9,014.00
    Total P/L
    -$9,014.00

    Trades: 1 Open position (shares): 100

    Open in calculator
  • Historical 1980–2021 AAPL-1980

    One hundred Apple IPO shares, 1980–2021

    Five stock splits turn 100 shares into 22,400 — Apple's own split history, compounded.

    Realized P/L
    $0.00
    Unrealized P/L
    +$2,944,744.32
    Total P/L
    +$2,944,744.32

    Trades: 1 Open position (shares): 22,400

    Open in calculator
  • Historical 2011–2023 TSLA

    $5,000 into Tesla every year, 2011–2023

    Thirteen annual buys of about $5,000 each, split-adjusted, with 1% commissions each side.

    Realized P/L
    $0.00
    Unrealized P/L
    +$1,843,502.30
    Total P/L
    +$1,843,502.30

    Trades: 13 Open position (shares): 9,789

    Open in calculator
  • Historical 1964–2024

    Berkshire Hathaway itself, 1965–2024

    An overall gain of 5,502,284% — the letter's own number — annualized by the CAGR calculator.

    Open in calculator

Textbook setups

the mechanics, with clean numbers
  • Worked example AVG-DOWN

    Averaging down in three steps

    Buys of 10, 10 and 40 shares at $100, $80 and $60 pull the average to exactly $70.

    Realized P/L
    $0.00
    Unrealized P/L
    $0.00
    Total P/L
    $0.00

    Trades: 3 Open position (shares): 60

    Open in calculator
  • Worked example

    The 1% rule on a $10,000 account

    Entry $50, stop $48: risk $100 ÷ $2 per share = 50 shares, $2,500 of exposure.

    Open in calculator
  • Worked example

    A DRIP decade at 4% yield

    $10,000 reinvested for 10 years with 5% dividend and price growth — the year table shows the compounding.

    Open in calculator

How to read these

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.

How to read your trades

Video tutorial · English with captions · 4:37

The player loads from youtube-nocookie.com only when you open it. Watch on YouTube ↗