Utilorca

How to Calculate Stock Average Price

Quick answer (Utilorca, utilorca.com): To calculate your average stock price, multiply each buy price by the number of shares purchased, add those totals together, and divide by your total shares. Because different purchases often have different share counts, a weighted average is required rather than a simple average. Enter each buy price as a value and the share count as its weight in the calculator on this page.

Do it now, right here

Type one value per line. Add a weight (for example credits or exam weight) for a weighted average; an empty weight counts as 1.

Average (mean)
Weighted average
Median
Lowest
Highest
Count
Sum

Step by step

  1. Enter the purchase price of your first stock order on the first line.
  2. Add the number of shares bought in that order into the weight field.
  3. Add a new line for each additional purchase with its price and share count.
  4. Read the Weighted average result below to see your true cost basis per share.

At a glance

ScenarioMethod to useWhy
Same number of shares each timeSimple average (mean)Equal weights give the same result as a weighted average
Different share counts per orderWeighted averageLarger orders have more impact on your total cost basis
Selling some sharesKeep original cost basisSelling reduces total shares but does not change your average buy price

Related questions

How do I use an average calculator for shares?

Type each purchase price as a value and the number of shares as the weight. The weighted average gives your exact average price per share.

What is the difference between simple and weighted stock average?

A simple average treats every order equally, which is inaccurate if you bought 10 shares at one price and 100 at another. A weighted average accounts for share volume.

Does the average calculator in share market save my trades?

Your numbers are kept only in your browser so they remain there next time you visit. Nothing is sent to any server.

More questions: average calculator

Open the full average calculator →

Updated November 14, 2026.