On This Page
- What is cost basis?
- How to calculate cost basis for each lot
- Worked example
- Cost basis of inherited and gifted stock
- Cost basis adjustments: splits, return of capital and wash sales
- FIFO, specific identification and average cost basis
- Cost basis reporting on Form 1099-B and Form 8949
- Limitations of cost basis
- Bottom line
- FAQ
Key Takeaways
- Cost basis is the amount of your investment in property for tax purposes, and it usually starts with what you paid plus purchase costs such as commissions and transfer fees.
- Track basis adjustments for the asset and transaction. A taxable replacement lot receives an applicable deferred wash-sale loss; an IRA replacement follows different treatment.
- Inherited property generally takes a basis equal to fair market value at the date of death, while gifted property generally carries over the donor adjusted basis with a separate rule for losses.
- When you sell part of a position, the shares are treated as sold first in, first out unless you specifically identify shares or elect average basis for eligible fund shares.
- Brokers report proceeds and, for covered securities, basis on Form 1099-B, and taxpayers reconcile those figures on Form 8949 and Schedule D.
What is cost basis?
Cost basis is the amount of your investment in an asset for tax purposes. A purchased security starts with the purchase price plus capitalized acquisition costs, such as commissions. The adjusted basis is the amount used when calculating gain or loss on disposition: net proceeds minus adjusted basis gives the realized result.
How to calculate cost basis for each lot
The example’s original purchase is one hundred shares at $10 plus a $5 commission, establishing $1,005 basis. Reinvesting a $60 dividend at $12 buys five more shares with $60 basis. Together, the lots have $1,065 basis.
Selling all 105 shares at $15 produces $1,575 gross proceeds. Subtract the $5 sale commission to get $1,570 net proceeds. The gain is $505.
Each lot retains its acquisition date. The total gain can be split between short-term and long-term categories when the lots have different holding periods.
Formula
Realized gain or loss = net proceeds − adjusted basis; Adjusted basis = acquisition basis + basis increases − basis reductions- A purchase starts with price plus capitalized acquisition costs. Gifts and inheritances use their respective acquisition-basis rules.
- Net proceeds reflect selling costs counted once.
- Apply the adjustments relevant to the asset, including taxable wash-sale basis increases, depreciation and return of capital.
Worked Example
An investor buys 100 shares of XYZ at $10.00 with a $5 commission, later reinvests a dividend into 5 more shares at $12.00, and then sells all 105 shares at $15.00 with a $5 commission.
- Initial basis: 100 × $10.00 + $5 = $1,005
- Reinvested dividend basis: 5 × $12.00 = $60
- Total adjusted basis: $1,005 + $60 = $1,065
- Net proceeds: 105 × $15.00 − $5 = $1,570
- Taxable gain: $1,570 − $1,065 = $505
The two lots have $1,065 combined basis. Selling 105 shares produces $1,570 after the sale commission, leaving a $505 gain. Omitting both commissions and the reinvested purchase would overstate that gain by $70.
Cost basis of inherited and gifted stock
Other acquisition methods have their own rules. Inherited stock generally takes the value applicable to the estate’s date-of-death or elected alternate valuation. A gift generally carries the donor’s basis for gain, with the lower gift-date value used for loss when the dual-basis rule applies. Applicable gift-tax and other adjustments become part of the calculation.
Cost basis adjustments: splits, return of capital and wash sales
A stock split reallocates existing basis across the resulting shares. A dividend reinvestment creates another purchase lot. A return-of-capital distribution reduces basis to zero, after which the applicable excess is recognized as gain.
For a taxable wash-sale replacement, the matched disallowed loss increases replacement basis. A replacement acquired in the taxpayer’s IRA or Roth IRA disallows the loss without an IRA basis increase. Review purchases across the relevant accounts when applying the wash-sale rules.
Business and real property use their own basis adjustments, including capitalized improvements and depreciation. Identify the asset and adjustment before applying the general formula.
FIFO, specific identification and average cost basis
Specific identification assigns a sale to selected lots using an adequate instruction and broker confirmation. Without adequate identification or an applicable elected method, FIFO generally treats the earliest acquired shares as sold first.
Eligible mutual fund and dividend-reinvestment arrangements support average basis under their rules. A displayed average purchase price is a useful position measure; the basis method and lots actually used govern the tax result.
Cost basis reporting on Form 1099-B and Form 8949
Keep trade confirmations, reinvestment records, transfers and corporate-action notices with the lot history. Brokers report basis for covered securities on Form 1099-B. Noncovered positions require the owner’s basis records.
Reconcile proceeds, adjusted basis, holding periods and applicable adjustments before completing the relevant Form 8949 and Schedule D reporting. The example’s records produce the $505 gain directly, with both purchase lots and both commissions counted once.
Limitations of cost basis
- Calculate the tax from the lots actually sold. Basis measures your tax investment, not the position’s current value or economic return, and a broker’s displayed average price can differ from the basis method and lots that govern the tax result.
- Apply the right acquisition rule first. Inherited, gifted, business and real property each follow their own basis rules and adjustments.
- Reconcile the broker’s basis report against your own records. Brokers report basis only for covered securities, and that figure can still miss adjustments the broker cannot see, such as a wash sale triggered by a purchase in another account or an IRA. For noncovered positions, the owner’s own records supply the basis.
- Check each lot’s holding period too. Basis alone does not set the tax treatment: each lot’s holding period decides whether its gain is short-term or long-term, and a wash-sale replacement in an IRA disallows the loss without adding it to basis.
Bottom line
Cost basis is the starting point of every capital gain or loss: net proceeds minus adjusted basis. Record each lot with its date, price and costs, apply the adjustments for splits, reinvestments, return of capital and wash sales, and reconcile Form 1099-B against your own records before filing.
Clear answers
Frequently Asked Questions
Sources and Further Reading
- IRS Revenue Ruling 2008-5: IRA replacement
- IRS Topic No. 703: Basis of Assets
- IRS Publication 551: Basis of Assets
- IRS Publication 550: Investment Income and Expenses
- IRS: About Form 8949, Sales and Other Dispositions of Capital Assets
How entries are sourced, calculated and updated: editorial methodology.