Cost basis is simply what you paid for an investment — and it is the number that decides how much tax you owe when you sell. Get it right and you pay tax only on your real gain. Get it wrong, or fail to track it, and you can easily overpay by reporting a bigger profit than you actually made. For anyone who invests outside a retirement account, cost basis is quietly one of the most valuable things to understand. This is general information, not tax advice.
What changed in 2026
- Broker reporting is mature. Brokerages are required to report basis for "covered" securities to the IRS, so most modern purchases are tracked for you — but older holdings and transfers may not be.
- Transfers still break the chain. Move shares between brokers and basis information can arrive incomplete or late, so keep your own records rather than trusting it to survive the move.
- Automated tax tools improved. Software increasingly picks tax lots for you, but the defaults are not always optimal, so it is worth understanding what they are choosing.
Why cost basis matters
When you sell, your capital gain is the sale price minus your cost basis. Tax is owed on the gain, not the full proceeds. So a higher, accurate basis means a smaller taxable gain. If you forget that you reinvested dividends over the years, for example, you understate your basis and overpay — reinvested dividends were already taxed, and they raise your basis.
What goes into basis
Basis is more than the purchase price. It includes commissions and certain fees, and it gets adjusted over time by events like reinvested dividends, stock splits, and return-of-capital distributions. Inherited and gifted assets follow special rules — inherited assets often get a "step-up" to market value at death, which can erase decades of gains.
| Method |
How it picks shares |
Effect |
| FIFO |
Oldest shares sold first |
Often larger taxable gain in a rising market |
| Specific ID |
You choose which lots |
Most control over the tax result |
| Average cost |
Blends all lots (funds) |
Simple, less flexible |
Choosing a method to save tax
The default at most brokers is FIFO, which in a long-rising market sells your lowest-basis (most-taxed) shares first. Specific identification lets you instead sell high-basis lots to shrink the gain, or intentionally realize losses. This is where basis tracking connects to the wash sale rule: if you sell at a loss to harvest it, buying back too soon disallows the loss and rolls it into the basis of the new shares. You have to elect specific-ID at or before the sale, not after, so it pays to decide in advance.
Common mistakes
The most expensive error is ignoring reinvested dividends and understating basis. The second is losing records after a broker transfer. The third is assuming the broker default lot selection is optimal — it frequently is not. Keeping a simple spreadsheet of purchases, reinvestments, and splits protects you even when a brokerage data is incomplete.
FAQ
What if I do not know my cost basis?
Reconstruct it from old statements, confirmations, or the broker records. If you truly cannot, the IRS may treat the basis as zero, meaning you are taxed on the entire proceeds — which is why records matter.
Do reinvested dividends change my basis?
Yes. Each reinvestment buys new shares at a new price and adds to your total basis. Forgetting this is a classic way to overpay tax.
Which method should I use?
Specific identification gives the most control, letting you manage gains and losses deliberately. Average cost is simpler for mutual funds. FIFO is the common default but not always the cheapest.
Does cost basis matter in a retirement account?
Generally no. Traditional and Roth accounts are not taxed on individual sales, so basis tracking chiefly matters in taxable brokerage accounts.
Where to go next
Keep sharpening your taxable-account tax skills: learn the wash sale rule, understand qualified versus ordinary dividends, and keep your portfolio on track with portfolio rebalancing.