$Finance calculator

Average Cost Basis Calculator

Average your purchase price across several buys and see profit or loss.

Enter purchase prices (comma separated), shares bought at each price (same order) and current price and get average cost per share and total shares instantly.

InPurchase prices (comma separated)InShares bought at each price (same order)InCurrent priceOutAverage cost per shareOutTotal sharesOutTotal invested
3 inputs6 resultsFree no signupPrivate in your browser

Average Cost Basis Calculator

Fill in the values and the answer updates as you type.

Live
1 Your numbers
$
2 Your result

How the Average Cost Basis Calculator works

Average cost = total money spent ÷ total shares owned. Enter the same number of prices and share counts, in matching order. Buying more when the price is low pulls the average down. Fees are not included. Example: with the default values, average cost per share comes to $9.71.

Inputs and results

The Average Cost Basis Calculator takes 3 inputs and gives 6 results.

What you enter

  • Purchase prices (comma separated) — starts at 10, 12, 9.
  • Shares bought at each price (same order) — starts at 100, 50, 200.
  • Current price ($) — starts at 11.

What you get

  • Average cost per share
  • Total shares
  • Total invested
  • Current value
  • Profit or loss
  • Return

Example: Average Cost Basis Calculator with the starting values

With purchase prices (comma separated) 10, 12, 9, shares bought at each price (same order) 100, 50, 200 and current price 11 $, the calculator returns:

Example results
Average cost per share$9.71
Total shares350
Total invested$3,400
Current value$3,850
Profit or loss$450
Return13.24%

Change any value above and the results update straight away.

Average Cost Basis Calculator FAQ

How do I use the Average Cost Basis Calculator?

Enter purchase prices (comma separated), shares bought at each price (same order) and current price in the fields, then read average cost per share, total shares, total invested and current value in the result panel. The answer updates as you type, and you can press Calculate or Enter to refresh it. Use “Copy link” to share your exact numbers with someone else.

What does the Average Cost Basis Calculator calculate?

Average your purchase price across several buys and see profit or loss. It returns average cost per share, total shares, total invested and current value from the 3 values you provide.

What values does the Average Cost Basis Calculator start with?

It opens with purchase prices (comma separated) 10, 12, 9, shares bought at each price (same order) 100, 50, 200 and current price 11 $ so you can see a working result straight away. Replace them with your own numbers, or press Reset to return to these starting values.

Is the Average Cost Basis Calculator free and private?

Yes. It is free, needs no account, and runs in your browser, so nothing you type is sent to or stored on our servers. See the Privacy Policy for details.

Can I rely on the Average Cost Basis Calculator for financial decisions?

Treat the result as a well-rounded estimate. Real situations often have details a general calculator cannot know, so confirm financial decisions with a qualified professional. See the Disclaimer for more.