Average Cost Basis
Calculator
Results
- Average cost per share
- $45.00
- Total shares
- 150
- Total cost basis
- $6,750.00
Results
| Average cost per share | 45 |
| Total shares | 150 |
| Total cost basis | 6,750 |
formula-map diagram
- Average cost per share
- $45.00
- Total shares
- 150
- Total cost basis
- $6,750.00
Formula breakdown
Formula
Average cost = Total cost of all lots ÷ Total shares= 45
Note
This is a simplified financial model for educational purposes and does not constitute financial advice.
More in Financial
See all →Frequently asked questions
How is average cost basis calculated?+
It adds up the total amount paid across all purchases of a security, including reinvested dividends if applicable, and divides that by the total number of shares acquired, giving a single blended cost per share.
Why does average cost basis matter when I sell shares?+
It determines your taxable capital gain or loss, since gain or loss is calculated as the sale price minus your cost basis — using an inaccurate basis can lead to overpaying or underpaying capital gains tax.
How does buying shares at different prices over time affect the average?+
Each purchase blends into the running average weighted by the number of shares bought at that price, so a large purchase at a very different price will shift the average basis more than a small one.
Is average cost basis the same method every brokerage uses?+
No, some brokerages default to first-in-first-out or allow specific share identification instead of average cost, and the method used, particularly for mutual funds versus individual stocks, can significantly change your reported gain or loss.
What happens to average cost basis when dividends are reinvested?+
Each reinvested dividend counts as a new purchase at that day's share price, adding both to the total shares owned and the total amount invested, which continually recalculates the blended average cost basis going forward.