# 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.

Source: https://www.exent.ai/learn/average-cost-method · Reviewed by David, Senior Analyst, Exent · Published Nov 15, 2026 · Updated Nov 15, 2026

## 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 the average cost method?

It is a way to work out [cost basis](https://www.exent.ai/learn/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.

## Worked example: average cost vs FIFO

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

| Method | Cost of the 5 shares sold | Gain 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](https://www.irs.gov/publications/p550), 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: [Exent portfolio check](https://www.exent.ai/portfolio)

## Frequently asked questions

### Is average cost better than FIFO?

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.

### Can I use average cost basis for individual stocks?

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.

### Does selling shares change my average cost?

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

---

Educational content, not investment advice. Past performance does not guarantee future results.
