GlossaryGlossary

What Is the Average Cost Method? Definition and Example

The average cost method values every share you own at the same blended price. Here is how it works, how it compares with FIFO, and when the IRS allows it.

Published Updated 2 min readHow we research

Key takeaways

  • The average cost method sets the cost of each share at the total amount paid divided by the total shares held, so every share carries the same blended cost.
  • For US taxes, IRS Publication 550 allows average basis for mutual fund shares and certain dividend reinvestment plan shares; ordinary stocks usually use FIFO or specific identification.
  • Illustrative: buy 10 shares at $100 and 10 at $150, and the average cost is $125 a share.

What is your own portfolio exposed to? Check it with Exent →

What is the average cost method?

It is a way to work out cost basis when you bought the same holding at different prices. Instead of tracking each lot, you pool them. The formula:

Average cost per share = total amount paid ÷ total shares owned

Selling shares does not change the average cost of the shares that remain. Buying more does.

See how this applies to your own holdings with an Exent portfolio check.

Worked example: average cost vs FIFO

Illustrative: you buy 10 shares at $100 and later 10 at $150. Then you sell 5 at $160.

MethodCost of the 5 shares soldGain on the sale
Average cost ($125 a share)$625$175
FIFO (oldest shares first, $100)$500$300

In a rising market, FIFO sells the cheapest shares first and shows a bigger gain now. Average cost spreads it out.

When can you use it for taxes?

Under IRS Publication 550, average basis is available for identical shares held with a custodian that are mutual fund shares or shares held in a dividend reinvestment plan (DRIP), within the rules described there. If you cannot identify which shares you sold and average basis does not apply, the default is FIFO. Check with your broker or a tax professional for your own situation.

Why it matters for a self‑directed investor

For tracking performance, average cost is simple and stable: one number per holding tells you whether a position is up or down. Splits still need handling; see stock splits and cost basis.

Common mistakes

  • Assuming the tax return uses the same method as a tracking app.
  • Forgetting reinvested dividends, which add shares and change the average.
  • Mixing up realized and unrealized gains.

See your cost basis and P&L with Exent

  1. Upload a screenshot of your holdings, or a CSV, Excel, PDF or Google Sheet; no brokerage login.
  2. Exent tracks cost basis and P&L with the average cost method and adjusts for stock splits.

Exent is our product. Educational content, not investment advice.

Frequently asked questions

Neither is better in general. FIFO often shows larger gains when prices have risen; average cost smooths them. For taxes, the method must follow IRS rules and your broker’s elections.

For US taxes, generally only for shares in a dividend reinvestment plan under IRS rules. Mutual fund shares also qualify. Ordinary stock lots usually use FIFO or specific identification.

No. Selling reduces the number of shares but leaves the average cost of the remaining shares unchanged.

See what your portfolio is really made of.

Upload a screenshot of your holdings and get concentration, overlap, crash exposure and a risk-matched benchmark in about a minute.

Check my portfolioLimited offer$1.95 for unlimited checks· unlimited checks

Educational content, not investment advice. Examples are illustrative; past performance does not guarantee future results.

DISCLAIMER: Exent AI is an informational research platform and does not provide investment advice, financial advice, or act as an investment adviser, broker-dealer, or fiduciary. All content, analytics, and model outputs are provided for educational and informational purposes only and should not be relied upon as a recommendation to buy, sell, or hold any financial instrument. Investing involves risk, including the possible loss of principal. Exent AI does not execute trades, hold customer funds, or provide brokerage services. Past performance and hypothetical results are not indicative of future results. Third-party data and AI-generated outputs may be incomplete or inaccurate.