Calcupedia

Stock Cost Basis Calculator

Investing & Markets

Calculate the average cost basis per share from total shares purchased and total cost.

Ad · Billboard
0.00110,000,000
USD
$0.00$100,000,000.00

Cost Basis per Share

$50.00

Your average cost basis per share, used to calculate capital gains when you sell.

USD
Share result
Reload calculator
Clear inputs

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

Odeh Ahwal

Creators

Odeh Ahwal
Reviewed and verifiedThis calculator was reviewed and verified by the Calcupedia due diligence team.

0people find this calculator helpful

Views

Helpful

Saved

Embeds

Like
Share
Embed this calculator
Cite
Save
Ad · 300×250
Ad · 300×250

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.

Don't see what you need?

Request a calculator. The most-requested ones get built first in our monthly batch.

Request a calculator

Want this calculator on your website?

Embed the Stock Cost Basis Calculator on any site — no code needed. Customize colors, remove branding, and track usage.

Embed it free →
Embed on any platform — Next.js, React, Vue.js, PHP, Laravel, Shopify, Wix, Webflow, Squarespace, and more