Skip to content

Cost Basis

Cost basis is what you are treated as having paid for an asset, and it is the figure subtracted from a sale price to produce a taxable gain or loss. The number that actually does that job is the adjusted basis, because basis changes over time.

Last reviewed by Steven Fox, CFP®, EA on

Quick Summary

  • IRS Publication 551 sets out the structure in three parts. Cost basis, adjusted basis, and basis other than cost.
  • For stocks and bonds the cost is the purchase price plus the costs of purchase, such as commissions and transfer fees.
  • Gain is measured against the adjusted basis, not the original cost, and reinvested dividends are the adjustment that most often gets missed.
  • Brokers report basis to you and to the IRS only for covered securities, which are defined by when the security was acquired.
  • The choice of which shares you are selling has to be made at the time of the sale. Say nothing and the default is the earliest lot you bought.

Definition

Cost basis is the amount you are treated as having invested in an asset for tax purposes. IRS Publication 551, titled Basis of Assets, states the general rule plainly: the basis of property you buy is usually its cost, and the cost is the amount you pay in cash, debt obligations, other property or services. For stocks and bonds, the publication adds that basis is generally the purchase price plus any costs of purchase, such as commissions and recording or transfer fees.

The umbrella term is basis, and cost is only one route to it. Publication 551 is organised into three chapters, and the structure is the clearest map of the subject available: Cost Basis, then Adjusted Basis, then Basis Other Than Cost. Property acquired by gift, by inheritance, in an exchange or as compensation gets its basis some other way, which is what the third chapter covers. And every route ends up passing through the second one.

Basis is the denominator of every gain calculation, and getting it wrong is expensive in a specific direction. A basis stated too low produces a gain stated too high, and tax paid on money that was never income.

Advanced Explanation

The number that measures your gain is the adjusted basis, not the cost, and Publication 551 says so structurally. It states that before figuring gain or loss on a sale, exchange or other disposition of property, or figuring allowable depreciation, depletion or amortization, you must usually make certain adjustments to the basis of the property, and that the result of those adjustments is the adjusted basis. There is no separate page on this site for adjusted basis, so the essentials belong here.

Basis goes up for items properly added to a capital account. Publication 551 gives capital improvements with a useful life of more than a year, such as an addition, a replaced roof or a paved driveway; assessments for local improvements such as water connections, sidewalks and roads; certain legal fees; and costs of restoring property after a casualty. For securities, the everyday additions are purchase commissions and, above all, reinvested distributions.

Basis goes down for things you have already received the benefit of. Publication 551 lists depreciation, section 179 deductions, casualty and theft loss deductions and insurance reimbursements, certain vehicle credits, exclusions from income for energy-conservation subsidies, and nontaxable corporate distributions. That last one is the return of capital that arrives as a nondividend distribution: it is not taxed when received precisely because it reduces basis instead, and the tax shows up as a larger gain later.

Reinvested dividends are the adjustment that costs real money, and they are missed constantly. If a fund distribution is reinvested, the distribution was taxable in the year it was paid and the shares it bought have their own basis equal to what was paid for them. Forgetting to add those amounts means paying tax twice on the same dollars, once as income when they were distributed and again as capital gain when the shares are sold. Publication 550 makes the underlying point about dividend reinvestment plans directly: where dividends are used to buy more stock at fair market value, the dividends are still reported as income.

Broker reporting has a hard line through it, and the line is not what folk wisdom says. IRC 6045(g) requires brokers to report adjusted basis on a sale only for a covered security, defined as a specified security acquired on or after an applicable date. Those dates are set by 6045(g)(3)(C): 1 January 2011 for stock in a corporation generally, 1 January 2012 for stock for which an average basis method is permissible, which is how mutual fund shares are reached, 1 January 2013 or a later date the Secretary determines for other specified securities such as debt instruments and options, and 1 January 2023 for digital assets, whose reporting has been phased in by regulation with gross proceeds first and basis following. Dividend reinvestment plan stock acquired before 2012 is pulled into the mutual fund date by 6045(g)(6).

What that means in practice is that basis for anything acquired before the relevant date is noncovered, and it is the taxpayer's responsibility to establish, whether or not the broker has it. So the folk claim that brokers lose your basis when you move accounts misdirects. IRC 6045A requires a transfer statement carrying basis information to follow covered securities from one broker to the next, so a transfer does not sever the record for anything covered. The real gap is age, not movement, and it is a reason to keep your own records of long-held positions independently of any statement.

The lot identification election is made at or before the sale, not at filing time. Where shares of the same stock were bought on different dates or at different prices, Treasury Regulation 1.1012-1(c)(1)(i) provides that if the taxpayer does not adequately identify the lot being sold, the sale is charged against the earliest lot acquired, which is the first-in, first-out default. For shares held with a broker, 1.1012-1(c)(3) makes an adequate identification one where, at the time of the sale or transfer, the taxpayer specifies to the broker which particular shares are to be sold, with a written confirmation following. IRC 6045(g)(2)(B)(i) mirrors this on the reporting side, applying first-in, first-out unless the customer notifies the broker by making an adequate identification, and applying the broker's default method for average-basis-eligible stock unless the customer elects another. Naming the available methods without the timing tells a reader they have a choice they have in fact already lost, because the moment to exercise it was before the sale settled.

Basis other than cost covers the routes where nothing was paid. Inherited property is generally reset to its fair market value at the date of death under IRC 1014, which is the step-up in basis and a large planning consideration in its own right. Property received as a gift generally carries the donor's basis across to the recipient, with special rules where the property's value has fallen below that basis. Shares acquired through employer compensation plans have their own basis rules, and the double-counting risk there is covered on the pages for those plans.

How to Remember

Basis is what the IRS treats you as having already paid tax on. Anything you put in raises it, anything you have already had the benefit of lowers it, and the gain is measured against the number after all of that.

Used in a Sentence

“Before selling, Grace pulled fifteen years of statements to work out her cost basis, because the reinvested distributions had never appeared on her broker's summary for the older shares.”

How It Works

You establish basis when you acquire the asset, adjust it while you hold it, and subtract the adjusted basis from the amount realised on the sale to get gain or loss. Your broker reports proceeds on Form 1099-B and reports basis too for covered securities. For noncovered securities the form leaves the basis blank or marks it as not reported, and the figure on the return is yours to support.

A hypothetical example of the reinvested-distribution trap. Ana invests $10,000 in a fund in a taxable account and pays no commission. Over the next eight years the fund distributes $2,400, all of it automatically reinvested in additional shares, and she reports and pays tax on those distributions each year as they arrive. She then sells the whole position for $18,000.

Her original cost basis was $10,000. Her adjusted basis is $12,400 ($10,000 + $2,400), because every reinvested distribution bought shares she paid for with money already taxed. Her taxable gain is $5,600 ($18,000 − $12,400).

Had she reported the gain against her original $10,000, she would have declared $8,000 ($18,000 − $10,000) and paid tax on an extra $2,400 ($8,000 − $5,600) that had already been taxed once as distribution income. That is the double taxation, and it is entirely avoidable by keeping the annual statements. It also shows why the covered and noncovered line matters: for shares bought within the reporting era, the broker has already made this adjustment; for older shares, nobody has.

Pros and Cons

Pros

  • Basis is the mechanism that ensures only the actual profit is taxed rather than the whole sale price.
  • Since 2011 brokers have reported basis for covered securities directly to the IRS and to the taxpayer, which removed a large source of error for anything bought since.
  • Identifying specific lots at the time of sale gives real control over the size and character of the gain, which is what makes tax-loss harvesting and careful gain realisation possible.
  • Basis follows covered securities between brokers under IRC 6045A, so changing firms does not destroy the record.

Cons

  • For anything acquired before the relevant covered-security date, the record is the taxpayer's problem and the documents are frequently long gone.
  • The lot identification has to be made at or before the sale, so the choice is easy to lose by simply not making it.
  • Adjustments accumulate quietly over decades, and reinvested distributions in particular are missed often enough to be a standard audit-and-refund story.
  • Inherited and gifted property follow different rules from purchased property, so an heir applying purchase logic can get the number badly wrong in either direction.

People Also Asked

Answers to the most frequently asked questions.

What is the difference between cost basis and adjusted basis?
Cost basis is what you paid at acquisition, including the costs of buying. Adjusted basis is that figure after the additions and reductions that accumulate while you own the asset, and it is the number used to compute gain or loss. Publication 551 is explicit that before figuring gain on a disposition you must usually make adjustments, and that the result is the adjusted basis. Improvements and reinvested distributions raise it; depreciation and returns of capital lower it.
Do reinvested dividends increase my cost basis?
Yes, and forgetting them is the most common and most expensive basis error. A reinvested distribution was taxable in the year it was paid, and the shares it purchased have basis equal to the amount paid for them, so the total basis in the position grows every time a distribution is reinvested. Leaving them out overstates the gain and means paying tax twice on the same money, once as income and again as capital gain.
What does it mean that a security is covered or noncovered?
A covered security is one your broker must report basis on. IRC 6045(g)(3)(C) fixes the dates: stock acquired on or after 1 January 2011, mutual fund and dividend reinvestment plan shares on or after 1 January 2012, other specified securities such as debt and options from 1 January 2013 or a later date set by regulation, and digital assets from 1 January 2023 with reporting phased in. Anything acquired earlier is noncovered, the Form 1099-B will not carry its basis, and establishing the figure is your responsibility.
Do I lose my cost basis if I transfer my account to another broker?
No. IRC 6045A requires a transfer statement carrying basis information to accompany covered securities moving from one broker to another, so the record follows the position. The genuine problem is age rather than movement. Securities acquired before the covered-security dates were never subject to broker basis reporting in the first place, so their basis is the taxpayer's to document however many times the account has or has not moved.
Can I choose which shares I am selling?
Yes, but you have to say so at the time. Treasury Regulation 1.1012-1(c)(3) treats an identification as adequate where, at the time of the sale or transfer, you specify to the broker holding the shares which particular shares are to be sold, with written confirmation following. If you say nothing, 1.1012-1(c)(1)(i) charges the sale against the earliest lot you acquired, which is the first-in, first-out default and is often the lot with the lowest basis and the largest gain. Making the election after the trade has settled is too late.

Have a question a definition can't answer?

Advice-only advisors answer questions like this for a transparent flat fee — no products, no commissions, no asset management.

Find an Advisor