Stock Calculator

Changelog

One entry per release, newest first. Feed at rss.xml.

2.9.1 — Enlarge the trade chart, save it as an image and share it

  • The trade chart has an Enlarge button in its bottom-right corner. It opens the chart large, above the page, and you can still point at or tap any trade to read it.
  • In the enlarged chart, “Download image” saves the chart as a picture with its results, made in your browser. “Copy link” and the share buttons pass on a link that opens the same trades with the chart shown. On Worked Examples, the link opens that example with its chart.
  • The share buttons now end with “More sharing options”: your device’s share sheet, a QR code and more apps.

2.9.0 — Start empty, or try an example in one click

  • The calculator now opens empty, ready for your own trades. Two examples sit next to the tutorial at the top of the page: pick one and it loads straight into the calculator, marked as an example and not saved, so your own trades stay as they were. “Open my main calculator” brings them back, and “Save as a copy” keeps the example.
  • Reset is now Clear. It removes your trades and the share price and keeps your fees, tax rate, currency and decimal places; Undo puts everything back.

2.8.0 — The trade chart on request, and a gallery of worked examples

  • The trade chart is now drawn when you ask for it. Press “Show trade chart” under your trades; typing and pasting no longer redraw it. If you change a trade, a fee or the share price afterwards, the chart dims and an “Update chart” button redraws it. Switching the cost basis method, the currency or the decimal places redraws it straight away.
  • Tap, drag or point at the chart, or use the arrow keys, to read any trade: its price, the gain or loss it realized, your average cost and the shares you held after it. The chart sweeps in from left to right when it opens, unless your device is set to reduce motion.
  • Long trade lists calculate correctly again. A list with many sells, such as 36 trades, could stop updating in Firefox and Safari. The calculator now handles up to 50 trades and keeps the results exact.
  • Worked Examples is now a gallery of 34 scenarios in seven categories, from a first look at trading profit and loss to semiconductor and crypto cycles and the cost-basis methods side by side. Each card shows its result; open it for the story, every trade and the chart, or load it into the calculator. Simulated scenarios are labelled: their prices are illustrative, not quotes.
  • The calculator opens with a new example: eight trades with a losing sale, two profitable ones, an average cost that moves and shares still held.
  • The TradingView chart is now a market price reference at the end of the calculator, kept apart from the chart of your own trades.
  • A 4-minute video tutorial walks through your results, the trade chart and Worked Examples. Press “Tutorial” at the top of any page to watch it above the page; nothing loads from YouTube until you do.

2.7.0 — A trade chart that shows where the profit comes from

  • The trade chart is redrawn to show profit directly. Each sell carries the gain or loss it locked in, a shaded band shows the unrealized gain or loss on the shares you still hold, and your average cost is a stepped line that moves only when a trade moves it. The bars underneath show how many shares you hold after each trade.
  • The chart now has a legend, and a “How to read this chart” note under it explains each part.
  • A share price far above or below your trades no longer flattens the chart. It is marked at the edge with its exact value, and your trades keep their scale.
  • The chart is drawn at the width of your screen, so its labels stay readable on a phone, and its amounts follow the decimal places chosen in Settings.
  • The live price chart is now offered only for US-listed stocks picked from the stock list. It did not load for most other exchanges.
  • The market list, the stock field and the Settings button are now the same height.
  • The cost basis calculator’s description of LIFO is corrected: LIFO uses your newest shares, whatever they cost.

2.6.0 — Cost basis calculator: FIFO, LIFO, HIFO and average cost

  • New cost basis calculator. Enter your buys and sells once and switch between FIFO, LIFO, HIFO and average cost to see the gain on every sale, the lots you still hold, and the cost basis and average cost of what is left. Total profit is the same under every method; the calculator shows how each one splits it between realized and unrealized.
  • Each sale lists the lots it used, with net proceeds and cost basis side by side, so the figures can be checked against a broker statement.
  • Share links from the new calculator remember the chosen method.
  • The calculator takes no trade dates, so it does not work out holding periods, wash sales or the United Kingdom’s same-day and 30-day matching rules. The page explains which method the United States, the United Kingdom and Canada apply.

2.5.1 — Page-view analytics

  • The site now uses Google Analytics to count page views and see which features get used. It never receives the trades, amounts, tickers or names you type, and it does not load on shared-calculation links or calculator copies. The privacy policy describes what is collected, the cookies involved and how to opt out.

2.5.0 — Stock search and calculator copies

  • Find a stock by ticker or company name among 24,270 listings in the United States, Hong Kong, Japan, South Korea, China A-shares, Singapore, Canada and Australia. Each result shows its exchange, market and trading currency, with the company’s native name beside the name in your language.
  • Duplicate a calculation into a copy with its own address, such as /fork/1/ or /fork/apple-option-strategy/, then switch between, rename or delete copies. The main calculator and its copies are saved in your browser only; use Copy link to send a calculation to someone.
  • Four more display currencies: ₩, S$, CA$ and A$. As before, the currency setting only formats amounts and never converts them.

2.4.0 — Optional live price chart

  • Type a ticker under your trades and press Show live chart to see a TradingView price chart, then read the price off it and type it into Share price now. The chart loads only when you open it; until then the site still makes no third-party requests.

2.3.0 — Share buttons, undo, and precision for every number

  • Share to anywhere. A new Share button opens a row of share targets — X, WhatsApp, Telegram, email, your device’s own share sheet where available, and copy-link — powered by our ShareKit component. It loads only when you click, so pages stay as fast as ever.
  • Undo. Removing a trade or resetting a calculator now offers a one-click Undo in the confirmation bubble.
  • Feedback where you’re looking. The “Copied…” bubble now appears next to the number you clicked instead of at the bottom of the screen.
  • Decimal places for every kind of number. Settings now has three independent controls: percentages, money amounts, and share counts, each 0–8 places or auto (auto keeps each category’s natural convention — cents for dollars, no decimals for yen, exact-or-4 for shares). The Settings chip shows any override.
  • Fixed: the Settings button now shows a pointer cursor on hover.
  • For translators: docs/translation-prompt.md is a complete brief for producing a new language pack.

2.2.0 — Clean share links, the classic icon, and a worked-examples library

  • Share links look like links now. Copy link produces a compact address like /s/MC4uLi42NS5-MTAwQDUwfjEwMEA2MA instead of a query string full of dots and tildes — one token, on the page that owns the calculation. Every older link format (including the original site’s ?data= URLs) keeps working and quietly upgrades itself to the new form on open.
  • Worked examples got its own page — famous market episodes loaded into the calculator with primary sources linked: Berkshire’s Apple stake (SEC 13F filings), the January 2021 GameStop squeeze (the SEC’s own staff report), Enron’s collapse, a 41-year Apple IPO hold, Berkshire’s 60-year compounding record (from the 2024 shareholder letter), and more. Historical scenarios, never recommendations.
  • The classic candlestick icon is back. The original site’s icon and social-preview art now serve as the favicon, app icons, and default share image.
  • Layout: text now uses the full content width (no more empty right margins), and the simple-tool results panels gained proper breathing room.

2.1.0 — Bulk editing, the trade chart, and a tidier calculator

  • The trade chart is back. Below the trade list: each trade’s price as dots, the running average cost as a line, and share size as buy/sell columns — hover any point for the exact numbers. Drawn natively, no external libraries, so pages stay instant.
  • Bulk edit returns. Paste or type a whole trade list, one per line — 100@50, a leading minus for sells (-40@65) — and the rows, results, and chart follow live. It’s the same format share links use, so lists round-trip cleanly.
  • A calmer first screen. Fees, tax rate, currency, ticker label, and decimal places now live in a Settings panel; its button shows a summary chip whenever something non-default is active, so applied fees are never invisible. Share price now moved next to the results it unlocks.
  • The homepage news column now combines blog posts and releases, and the header is tighter.

2.0.0 — Complete rebuild

  • Rebuilt the entire site as prerendered static HTML — no rendering shell, instant first paint, full content visible to every crawler. (The previous vendor-built site is the implicit 1.x.)
  • New exact-decimal engines: money and share math computed as exact ratios, rounded once at display — no floating-point artifacts, ever. One documented exception (CAGR’s nth root); method on the about page.
  • The flagship position calculator, rebuilt: trade rows with clone/remove and the classic b/s direction keys, per-side commissions in $ or %, seven display currencies, an optional illustrative tax field, break-even, and realized/unrealized P/L.
  • Six new intent tools: stock profit, stock average + target-average solver, position size, risk/reward, dividend/DRIP with a year table, CAGR, and break-even & loss recovery.
  • Legacy ?data= share links decode on arrival and rewrite to the new ?s= format; unparseable links open a clean default calculator.
  • “Cool trade ideas” renamed Worked examples, re-encoded to new-format links, and labeled as historical scenarios, not recommendations.
  • Spreadsheet-style precision (.0← / .00→, 0–8 places) for percent and ratio outputs; currency amounts follow each currency’s own convention.
  • New FAQ (15 questions), research-cited articles with DOIs verified in CI, this changelog, and a blog.
  • Locale pages consolidated to the English site with single-hop 301s (every inherited URL redirects; the translated legacy content is archived for a future reviewed reintroduction).
  • Educational-not-advice posture made explicit sitewide: footer disclaimer, illustrative tax field, no live market data, no recommendations.

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 ↗