Reviewed by Sang Lee | Published by AssetCalculus
Average cost basis is the average price you paid per share when you bought the same stock or ETF at different times and different prices. Instead of tracking each purchase separately, you combine them into one number: the total amount you spent divided by the total number of shares you own. It’s the figure most investors use to work out gain or loss, and it’s often what shows up on tax forms when you sell.
Here’s a simple example: you buy 10 shares at $40 and later another 10 shares at $60. You’ve spent $1,000 for 20 shares, so your average cost basis is $50 per share, even though you never actually paid exactly $50 for any single share.
If the stock is trading at $70 when you sell, your gain is calculated against that $50 average, not against either of the original purchase prices.
One thing worth knowing: average cost basis is a simplification. If you sell only part of a position, some brokers let you choose a different accounting method, like FIFO (first in, first out) or specific-lot identification, which can change your taxable gain. Always check your brokerage statement for the method actually used before relying on it at tax time.
Want to work out your own average cost basis? Try our Average Cost Basis Calculator to see the number instantly.
Official Tax Guidance
The IRS notes that average basis may be available only in certain circumstances and that identification rules can affect the basis of shares sold. See the IRS FAQ on stocks and average basis. This article explains the arithmetic concept and is not individualized tax advice.
Average Cost Basis Formula
The simplified formula is total amount invested ÷ total shares owned. Because each purchase may contain a different number of shares, use a weighted average rather than averaging the quoted purchase prices.
Simple Example
If you buy 10 shares at $20 and 20 shares at $25, your total cost is $200 + $500 = $700. You own 30 shares, so the average cost is $700 ÷ 30 = $23.33 per share. A market price above $23.33 suggests an unrealized gain before selling costs and taxes; a lower price suggests an unrealized loss.
Why Cost Basis Matters
- It helps measure unrealized and realized gains or losses.
- It is used when reporting taxable sales.
- Reinvested dividends, return of capital, stock splits, and certain fees can change the basis.
- The basis shown by a broker may depend on the tax-lot method selected.
Average Cost Is Not Always the Tax Method
Specific identification and first-in, first-out are common alternatives. Average-basis rules are often associated with mutual funds and certain regulated investment company shares, but they do not automatically apply to every security. Keep trade confirmations and review the cost-basis information reported by your broker.
For a detailed multi-purchase calculation, see How to Calculate Average Cost Basis After Buying at Different Prices. To include trading fees in a selling-price decision, use Stock Break-Even Price After Fees.
Official Resource
See IRS Publication 550 for federal information on investment income, sales, and basis. This article is educational and is not tax advice.
Frequently Asked Questions
Does a stock split change total basis?
A split generally changes the number of shares and the per-share basis while leaving the total basis unchanged, subject to the specific transaction.
Why might transferred shares show missing basis?
Older records or incomplete transfers can leave basis unavailable. Retain confirmations and contact the sending and receiving brokers if data is missing.