All termsInvestments & Portfolio

Cost Basis

What you paid for a holding, and the figure a taxable gain is measured against.

Cost basis is the purchase price plus commissions, adjusted over time for events like splits, return of capital and reinvested dividends. Gain on sale is the sale price minus that figure, which is why basis is the number that determines the tax rather than the price you remember paying.

Shares bought at different prices form separate tax lots. Selling without specifying a lot defaults to first in, first out, which sells the oldest and typically lowest-basis shares. Specific identification lets the lot be named at the time of sale instead, and brokers must record the choice when the trade is placed rather than afterward.

The consequence is that an identical sale can produce very different taxable gains. Reinvested dividends are the common trap here: each reinvestment creates its own lot with its own basis, and forgetting them means paying tax twice on the same money.

Worked through

Three lots, one sale

The same holding accumulated at three prices over two years, then sold in part at $200.

Lot 1 basis
$120
Lot 2 basis
$150
Lot 3 basis
$175
Sale price
$200

Lot 3 realizes a $25 gain, lot 1 realizes $80. Identical sale price, and the taxable amount differs by more than three times.

See your own cost basis

Promi computes this from your linked accounts, with the definition one click from the number.

Try the demo