Cost basis
Cost basis is the amount assigned to an asset for calculating gain or loss for tax purposes, reflecting applicable acquisition costs and later adjustments.
Also called: Tax basis
by Lee Schmidt
Published November 13, 2026
A cash dividend reinvestment buys more shares, each with its own purchase basis. Your cost basis is not the investment's current market value. If you sell shares for $6,000 with a combined basis of $5,200 and pay $20 to sell, the realized gain is $780, not the $6,000 sale price.
In a sentence
- "My cost basis is $5,200 after I reinvest the $200 dividend."
- "The fund's market value changes every day, but my cost basis does not move just because its share price changes."
- "I check the cost basis of the shares I'm selling, not the basis of the whole account."
How it's calculated
For purchased investments in a US taxable account, you build the basis from acquisition records and update it for applicable adjustments.
- Start with the purchase price. Include acquisition costs that qualify for basis treatment, such as a commission paid to buy shares; do not assume every account fee qualifies.
- Record later additions and reductions. Reinvesting a cash dividend creates basis in the new shares. A return-of-capital distribution can reduce the basis of shares you already own.
- Identify what you sell. Each batch of shares bought at one time is a purchase lot. If you sell only part of a holding, use the basis assigned to those shares under the applicable basis method, not the basis of the whole holding.
- Compare net sale proceeds with adjusted basis. For a straightforward sale of purchased shares, a positive difference is a realized gain, and a negative difference is a loss.
Realized gain or loss = sale proceeds after selling costs − adjusted basis of shares sold
The result is not your tax bill; separate tax rules determine how the gain or loss is treated.
An example
You buy shares for $4,950 and pay a $50 purchase commission in a US taxable brokerage account. You later reinvest a taxable $200 cash dividend with no purchase fee, then sell all the shares for $6,000 with a $20 selling commission. Assume no other basis adjustments.
Reinvesting does not remove the tax treatment of the taxable dividend, but the $200 used to buy additional shares becomes their basis. Including that basis keeps the same $200 from being counted again as gain on the sale.
Why it matters
Cost basis changes the gain you calculate, even when the sale price is unchanged. In the example, omitting the reinvestment produces an incorrect gain of $980 instead of $780. The missing record overstates the gain by $200 because it treats the additional shares as though they cost nothing.
Basis also helps you distinguish an unrealized gain from the total value you own. Before the example's sale, the shares have an unrealized gain of $800, calculated as $6,000 minus $5,200; the $20 selling commission reduces the realized gain to $780.
Cost basis versus fair market value
Cost basis measures an asset for tax calculations, while fair market value estimates what the asset would sell for on a particular date. A market price increase changes value without, by itself, changing basis.
If your net worth record already values the example's shares at $6,000 immediately before the sale, replacing them with $5,980 cash reduces tracked net worth by $20 before taxes. The $780 tax gain compares proceeds with basis, not with the value already included in your net worth. Selling does not create that $780 of wealth at the moment of sale.
Common questions
Is cost basis always what I paid? No. Qualifying purchase costs and later adjustments can change it, and assets received as gifts or inheritances can have basis determined under special rules rather than your own purchase price.
Are reinvested dividends taxed twice? Not merely because they are reinvested. A taxable cash dividend retains its tax treatment, but the amount used to purchase new shares becomes their basis and is subtracted when calculating a later sale's gain.
What if I sell only some of my shares? Use the basis assigned to the shares actually sold. Different purchase lots can have different basis amounts, so selling part of a holding does not necessarily mean using the same proportion of the holding's total basis.
Where do I find my cost basis? Start with purchase confirmations, reinvestment records, and your brokerage's basis records. Reconcile later adjustments and keep earlier records when moving investments between institutions; current market value is not a substitute for missing basis.
Go deeper
- Why didn't my net worth go up when I received a dividend? separates a distribution from changes in the combined value of investments and cash.
- Does selling my stuff increase my net worth? compares net sale proceeds with an item's previously tracked value rather than its tax basis.
- The Compound interest calculator shows how a starting balance and monthly contributions grow at an assumed return, separating contributions from growth.