Stock Cost Basis Calculator
Investing & MarketsCalculate the average cost basis per share from total shares purchased and total cost.
Cost Basis per Share
Your average cost basis per share, used to calculate capital gains when you sell.
Found this calculator useful?
From Scratch To $10K/Month In 60 Days
This is a proven money making system that takes students by the hand to make at least $10,000 per month, every month. Students get 12 weeks of guided coaching in addition to the "MPS Super Funnel" and tools.
We value your privacy and promise not to sell or misuse your information. Here's our privacy policy.
Calculator Stats
Creators
Odeh Ahwal0people find this calculator helpful
Views
Helpful
Saved
Embeds
Calculator Stats
Creators
Odeh Ahwal0people find this calculator helpful
Views
Helpful
Saved
Embeds
Investing & Markets calculators
Frequently Asked Questions
What is cost basis used for?
Cost basis is the original value of an investment for tax purposes, used to calculate capital gains or losses when the investment is sold — accurate cost basis tracking is essential for correct tax reporting.
How is average cost basis calculated for multiple purchases?
Average cost basis sums the total amount invested across all purchases, including any reinvested dividends, and divides by the total number of shares owned, smoothing out the impact of buying at different price points over time.
Does this account for dividend reinvestment purchases?
Yes, as long as you include the dollars used for any dividend reinvestment purchases in your total cost figure and the resulting shares in your total shares figure, this calculation will accurately reflect your blended cost basis.
Spot a mistake? Tell us what's wrong.
Request a calculator. The most-requested ones get built first in our monthly batch.
Request a calculatorWant this calculator on your website?
Embed the Stock Cost Basis Calculator on any site — no code needed. Customize colors, remove branding, and track usage.
