What Is Cost Basis? The Number That Decides What You Actually Owe
I explained capital gains tax â the tax on selling for more than you paid â without ever naming the number that actually defines âmore than you paid.â That number is cost basis, and getting it wrong is one of the few mistakes in investing that can genuinely cost you money on Aprilâs tax bill, not just in theory.
The one-sentence version
Cost basis is what you actually paid for an investment (including reinvested dividends added over time), and itâs the number subtracted from your sale price to determine your taxable gain or loss â get the basis wrong, and you get the tax wrong.
The simple case, where basis is obvious
Buy 10 shares of a stock at $50 each: your cost basis is $500. Sell those same 10 shares later for $600: your gain is $100 ($600 â $500), and thatâs the number capital gains tax actually applies to. Nothing complicated here â basis is just what you paid, full stop.
Where it actually gets confusing: reinvested dividends
This is the single most common cost-basis mistake, and it can mean paying tax twice on the same money if you get it wrong. Say you buy 10 shares at $50 (a $500 basis), and the stock pays a $20 dividend that automatically reinvests, buying 0.4 more shares at $50. Your basis isnât still $500 â itâs now $520, because that $20 dividend was money you already received and already paid income tax on in the year it was paid, then used to buy more shares.
Sell everything later at $55/share (10.4 shares, $572 total):
| Â | If basis is correctly updated to $520 | If basis is wrongly left at $500 |
|---|---|---|
| Gain | $52 | $72 |
That $20 difference is exactly the dividend â if you forget to add reinvested dividends to your basis, you pay capital gains tax on that $20 a second time, on top of the income tax you already paid on it the year it was received. Most brokerages track this automatically now and report an adjusted basis on your tax forms, but itâs worth understanding why the number moves, especially if youâre reconciling records from an older account or one that didnât track it for you.
Buying the same stock at different times
If you bought shares of the same stock in multiple purchases at different prices, each batch has its own basis, and selling only part of your position means choosing which shares youâre actually selling:
- Specific identification: you choose exactly which shares (by purchase date/price) to sell â useful for deliberately selling the higher-basis (lower-gain) shares first to minimize tax, or the longer-held shares to get long-term treatment.
- FIFO (first-in, first-out): the default at most brokerages if you donât specify â the oldest shares are treated as sold first.
- Average cost: common for mutual funds specifically â all your purchases get averaged into a single basis per share, rather than tracked individually.
The method matters because it changes your reported gain on a partial sale â selling the same number of shares can produce a meaningfully different tax bill depending on which specific shares (by original purchase price) the sale is treated as coming from.
Inherited and gifted stock: basis works differently
Two situations worth knowing exist outside the normal âwhat you paidâ rule:
Inherited stock generally gets a âstepped-upâ basis â the basis resets to the stockâs value on the date of the original ownerâs death, not what they originally paid. This can eliminate decades of unrealized gain from ever being taxed, which is a significant and commonly underused fact in estate and inheritance situations.
Gifted stock generally keeps the giverâs original basis (with some added complexity if the stock had lost value) â the recipient doesnât get a fresh basis, they inherit the giverâs cost and holding period, which matters if they sell soon after receiving it.
Why this is mostly invisible until you need it
Modern brokerages report cost basis automatically on the tax forms they issue (1099-B), including basis adjustments for reinvested dividends, for most investments bought through them â which is exactly why this rarely requires manual tracking today. It becomes relevant when: records transferred from an older account or a different brokerage are incomplete, youâre dealing with inherited or gifted shares, or youâre deliberately choosing which specific shares to sell for tax reasons. In all of those cases, understanding what basis actually is â not just trusting a number on a form â is the difference between catching an error and not knowing one exists.
The takeaway
Cost basis isnât just âwhat you paidâ in the simple sense â itâs what you paid, adjusted for reinvested dividends and other additions, and itâs the one number standing between your sale price and your actual taxable gain. The mechanism rarely needs your attention directly, but the one case worth remembering is the dividend trap: money already taxed as income that quietly becomes part of your basis, and taxed again if you â or an incomplete record â forget itâs there.
Discussion