Stock average calculator
Average cost is what you paid for every purchase, including fees, divided by the total number of shares. Completely empty rows are ignored. Break-even sale price equals that average unless you enter a sale fee, which raises it. Dividends stay out.
Average cost = sum(quantity × price + purchase fees) ÷ sum(quantity).
Average cost
Enter quantity and price for at least one purchase. Empty rows are ignored.
Keep these numbers
Copy, CSV, and Save stay on this device. They are not a shareable link. MarketCapLens does not receive these figures, and they never go in the page URL.
How to calculate average stock cost
- Enter each purchase. Quantity, share price, and optional fee for every lot.
- Add another purchase. Use the button if you bought more than once. Completely empty rows are ignored.
- Read average cost. Total invested divided by total shares is the average. Optional sale fee raises break-even. Dividends stay out.
Frequently asked questions
- How do you calculate average stock cost?
- Add up what you paid for every lot, including fees, then divide by the total number of shares. Ten shares at $100 and ten at $120 with a $10 fee cost $2,210, so the average is $110.50 a share.
- Are trading fees included in average cost?
- Purchase fees sit in the average. An optional sale fee raises the break-even sale price. Ten shares at $100 and ten at $120 with a $10 purchase fee average $110.50. A $10 sale fee makes break-even $111. Dividends stay out.
- Is this investment advice?
- No. The calculator is for general informational and educational purposes only. It is not a recommendation to buy, sell, or hold any security.
Related tools
- Stock profit calculatorPut that average into a round-trip profit.
- Break-even calculatorAdd a sale fee on top of the purchase basis.
- DRIP calculatorSee how dividends change wealth after you already own the shares.
- Stock split calculatorRestate lots after a split before averaging.
- All toolsBrowse every calculator by category.