HomeLearn
News & Articles
Market
My Account
Tools
AboutNewsletter☕ Buy me a coffee
LearnPaper Trading Lab › Module 4

Module 4 · Reading Your Account: Cost Basis & P&L Core

A brokerage statement is a handful of numbers that most people half-understand. Misreading them leads to real mistakes — selling winners to “lock in” a figure that was never the one that mattered, or believing a position is profitable when the account is not. This module works through each number with arithmetic you can check by hand.

~12 min read · Not started

By the end of this module you'll be able to

  • Reconcile account value, cash and the market value of your positions.
  • Calculate average cost after several purchases, and explain why partial sales do not change it.
  • Calculate unrealized and realized profit and loss, and a position’s contribution to total return.
  • Read an equity curve and measure a drawdown from its peak.

The four headline numbers

The top of the Paper Trading page shows four figures. They fit together exactly:

Account value = cash + market value of all positions
Market value of a position = shares × last price
Total return ($) = account value − starting cash ($100,000)

Cash / buying power is what you can spend right now. Because the simulator has no borrowing, you can never spend more than this. Open positions counts how many different holdings you have, and shows how many dollars are invested. Total return is the only figure that answers “am I ahead?” — it includes everything, realized and unrealized, and it is measured against the $100,000 you started with.

Average cost

Buy the same stock more than once and you pay different prices. The account tracks one blended number: the average cost per share.

Average cost = total dollars paid for the shares you hold ÷ shares you hold
Worked exampleYou buy 10 shares at $100, then 10 more at $120. You paid $1,000 + $1,200 = $2,200 for 20 shares. Average cost = $2,200 ÷ 20 = $110. Buying more at a higher price raised your average; buying more after a fall would have lowered it.

The simulator uses average cost, which happens to match how Canada taxes shares: the Canada Revenue Agency requires you to pool identical shares into one adjusted cost base. In the United States, brokers track each purchase as a separate tax lot and usually default to selling the oldest first (“first in, first out”) unless you choose otherwise — so the same trades can report a different realized gain there.

Unrealized and realized P&L

While you hold a position, its gain or loss is unrealized — it exists on paper and changes with every price tick. When you sell, the gain or loss on the shares sold becomes realized and is fixed forever.

Unrealized P&L = shares held × (last price − average cost)
Realized P&L = shares sold × (sale price − average cost)
Worked exampleYou hold 20 shares at an average cost of $110, and the price is now $130. Unrealized P&L = 20 × $20 = +$400. You sell 5 shares at $130. Realized P&L = 5 × $20 = +$100. You still hold 15 shares, still at an average cost of $110 — selling does not change the average cost of what is left — with unrealized P&L of 15 × $20 = +$300. Nothing about your wealth changed when you sold: $400 of gain became $100 realized plus $300 unrealized.

The “locking in” trap

That last sentence is worth reading twice. Selling converts a gain from one column to another; it does not create it. Yet realized gains feel more real, and realized losses feel like admitting a mistake. The result is a well-documented habit researchers call the disposition effect: investors sell winners too early and hold losers too long. Terrance Odean’s 1998 study of 10,000 US discount-brokerage accounts found exactly that — and that the winners people sold went on, over the following year, to outperform the losers they kept.

The question to ask of any position is never “is it up or down from what I paid?” — the market does not know what you paid. It is “knowing what I know today, would I buy this, at this price, in this size?”

Contribution: what a position did for the portfolio

A stock that doubled sounds like a triumph. Whether it mattered depends on how much of the portfolio it was.

Contribution to portfolio return ≈ position weight × position return

A 4% position that gains 50% adds about 4% × 50% = 2 percentage points to the portfolio. A 40% index-fund core that gains just 10% adds 40% × 10% = 4 points — twice as much. This is why a portfolio full of exciting winners can still trail a plain index fund: the winners were small, and the core was where the money was.

Reading the equity curve

The chart under the headline numbers plots your account value over time, with 1-day, 1-week, 1-month and all-time views. It starts the moment you first use the account and builds as you trade and as prices move.

The most useful thing to read from it is the drawdown: how far the account is below its highest point so far.

Drawdown = (current value − peak value) ÷ peak value

If the account peaked at $112,000 and is now $95,200, the drawdown is ($95,200 − $112,000) ÷ $112,000 = −15% — even though total return is still −4.8% and a casual glance at “only down a few percent” would miss it. Module 6 is about what to do when that number grows.

Practice in Paper Trading

Your mission
  1. Open Paper Trading and add up Cash plus the Market value column of your positions. It should equal Account Value.
  2. Pick one position. Using its Shares, Avg cost and Last price, calculate the unrealized P&L by hand and compare it with the table.
  3. For your largest and smallest positions, calculate weight (market value ÷ account value) and contribution (weight × return).
  4. Switch the equity chart between 1W, 1M and All, and write down the account’s peak value and current drawdown.

Open Paper Trading →

💡 Once you invest for real, the Portfolio Tracker shows the same weights and gains for an actual portfolio imported from a CSV.

Educational purposes only; not financial advice. Paper trading is a simulation: no real money or securities are involved, and simulated results do not reflect the spreads, fees, currency conversion, taxes or emotions of real investing. Historical figures are illustrative and are not a forecast. Always do your own research and consult a licensed advisor.