Guide · Portfolio and net worth

What is cost basis? Average cost and tax lots explained

Updated

Cost basis is the original value of an investment for tax purposes — usually what you paid — adjusted for stock splits, reinvested dividends and return-of-capital distributions. When you sell, your gain or loss is the sale proceeds minus the cost basis of the shares sold. With several purchases, the method that picks which shares were sold changes the answer.

Key takeaways

  • Gain or loss = sale proceeds − cost basis of the shares sold.
  • Reinvested dividends are purchases too: each adds to the cost basis.
  • With several purchases at different prices, average cost and specific-lot methods give different gains.
  • If you cannot identify which shares you sold, the IRS treats them as the ones bought first; average cost is allowed for mutual fund shares.
  • Fund shares bought on or after January 1, 2012 are 'covered': their cost basis is reported to you and the IRS on Form 1099-B.
On this page

The definition

Cost basis is the starting value of an investment for tax purposes. The IRS calls basis "the amount of your investment in property for tax purposes", and for property you buy it is usually the cost. A fund disclosure filed with the SEC defines cost basis as "the original value of an asset for tax purposes (usually the gross purchase price), adjusted for stock splits, reinvested dividends, and return of capital distributions."

It matters at one moment: when you sell. The capital gain or loss is the difference between what the sale brings in and the cost basis of what was sold:

Gain or loss = sale proceeds − cost basis of the shares sold

Buy 100 shares for $5,000 in total and sell them for $6,500, and the gain is $1,500. Get the cost basis wrong and the gain is wrong by the same amount.

What goes into it

The purchase price. For a single purchase, the basis starts as the total paid for the shares. IRS Publication 550 adds the costs of buying them, such as commissions and recording or transfer fees.

Reinvested dividends. When a dividend is reinvested, it buys new shares at that day's price. Those shares have a cost of their own, equal to the dividend that bought them, and they add to the basis: the IRS puts the original basis of fund shares bought by reinvesting distributions at the amount of the distributions used to buy them. One prospectus notes that distributions are taxable when paid whether they are reinvested or taken in cash; leaving reinvested ones out of the basis would count the same money a second time, as gain, when the shares are sold.

Stock splits. A split changes the number of shares, not the total cost; the IRS has the old basis divided across the old and new shares. If 10 shares cost $1,000 and the stock splits 2-for-1, you hold 20 shares with a total basis still of $1,000 — $50 a share instead of $100.

Return of capital. A nondividend distribution, or return of capital, reduces the basis and is not taxed until the basis is fully recovered; once the basis reaches zero, further such distributions are reported as capital gains.

Several purchases: which shares did you sell?

Most investors buy the same security more than once, at different prices. Each purchase — including each reinvested dividend — is a separate tax lot. When only part of a position is sold, a method is needed to decide which lots were sold. A fund's prospectus describes this as its "tax lot identification method": the way it determines which specific shares are deemed sold when there are multiple purchases on different dates at different prices and the whole position is not sold at once.

Take three purchases of the same fund:

Purchase Shares Price Cost
January 100 $20 $2,000
June 100 $30 $3,000
November 100 $40 $4,000
Total 300 $9,000

Now sell 100 shares at $35, for $3,500. The gain depends on the method:

Method Basis of the 100 shares sold Gain
Average cost ($9,000 ÷ 300 = $30) $3,000 $500
The January lot $2,000 $1,500
The November lot $4,000 −$500 (a loss)

Same sale, same proceeds, three different answers. Selling the January lot is what first in, first out gives; naming the November lot is specific identification. Under IRS rules, if you can adequately identify the shares sold, for example by naming them to your broker at the sale and getting written confirmation, their basis is that of those particular shares. If you cannot, the shares sold are taken to be those you acquired first. Average cost is allowed only for mutual fund shares and certain dividend-reinvestment-plan shares, not for ordinary stock.

Average cost

Average cost treats every share as having cost the same: the total cost basis of all the shares in the account divided by the number of shares. In the example that is $30 a share.

The three fund disclosures cited here each name average cost as the fund's default method, and say that a shareholder may choose a different one. One explains that if you change the method before your first sale it applies to all shares in the account, while a change made after a sale applies to shares acquired from then on. The choice is therefore worth making before the first sale, not after. For covered shares, the IRS requires the average-basis election to be made by written notice to the custodian or agent, and it can generally be revoked only until the earlier of one year after the election or the first sale.

For the holding period, the IRS treats shares sold under average cost as those acquired first.

The average cost calculator works out the average across several buys.

Covered shares and Form 1099-B

For mutual fund shares, the disclosures describe a dividing line on January 1, 2012:

  • Shares acquired on or after that date are covered. When you sell them, the fund reports their cost basis — along with the gross proceeds — to you and the IRS on Form 1099-B, and says whether the gain or loss is short-term (shares held one year or less) or long-term (held more than one year).
  • Shares acquired before that date are noncovered. The fund is not required to report their basis, though some provide it as a service, separately identified and not sent to the IRS.
  • The disclosures note that retirement accounts and money market funds are not affected by these reporting rules.

Short-term and long-term follow the IRS rule: a gain or loss on property held more than one year is long-term, and one year or less is short-term, counting from the day after the purchase.

A reported figure is a starting point, not a guarantee. One prospectus tells shareholders to review the cost basis information provided and make any further basis, holding-period or other adjustments their tax returns require.

Wash sales change the basis

A loss is not deductible if, within 30 days before or after the sale, you buy substantially identical stock or securities (or acquire them in certain other ways). The disallowed loss is added to the basis of the new shares, which postpones it rather than erasing it. The IRS example: 100 shares bought for $1,000 are sold for $750, and 100 more are bought within 30 days for $800; the $250 loss is disallowed and the new shares' basis is $1,050.

Keeping a record yourself

A record that stays accurate has, for every lot: the date, the number of shares, the price, and the total cost, with reinvested dividends entered as purchases and splits applied to the share count. With that, any method's figure can be recomputed.

In the net-worth tracker, each position has a buy price per unit, and profit since purchase is shown against it. When positions are imported from a spreadsheet, a "Cost Basis" or "Total Cost" column is divided by the quantity to give that price. What a position would be worth had it been bought at a past date can be checked with the stock return calculator.

Cost basis tells you the gain on what you sold. For what you still own, the related measures are the value of each holding and its share of the whole — the subjects of the guides to net worth and asset allocation.

Questions and answers

What is cost basis in simple terms?

It is what an investment cost you, as the tax rules count it: usually the purchase price, adjusted for stock splits, reinvested dividends and return-of-capital distributions. It is subtracted from the sale proceeds to find the gain or loss.

How is average cost basis calculated?

Add up the total cost of all the shares in the account, including reinvested dividends, and divide by the total number of shares. Every share sold is then treated as having that average cost.

Do reinvested dividends change my cost basis?

Yes. A reinvested dividend buys new shares at that day's price, and the fund disclosures cited here list reinvested dividends among the adjustments to cost basis. Leaving them out understates the basis and overstates the gain.

What are covered and noncovered shares?

For mutual fund shares, those acquired on or after January 1, 2012 are covered: the fund reports their cost basis to you and the IRS when you sell. Shares acquired earlier are noncovered, and the fund is not required to report their basis.

Sources

  1. Publication 550 (2025), Investment Income and Expenses — Internal Revenue Service. Accessed .
  2. Publication 551 (12/2025), Basis of Assets — Internal Revenue Service. Accessed .
  3. Prudential funds: prospectus supplement on cost basis reporting (Form 497, December 7, 2011) — U.S. Securities and Exchange Commission (EDGAR). Accessed .
  4. Bruce Fund, Inc.: prospectus (Form 485BPOS, 2013), Cost Basis Reporting — U.S. Securities and Exchange Commission (EDGAR). Accessed .
  5. Jacob Funds Inc.: prospectus (Form 497, 2019), Tax Consequences — U.S. Securities and Exchange Commission (EDGAR). Accessed .

Cite this page

Funkfolio, “What is cost basis? Average cost and tax lots explained”, data as of 12 November 2026. https://funkfolio.com/learn/portfolio/cost-basis

General information, not investment advice.