Skip to tool
ZirkoMirkoTools

Stock Average Calculator

Calculate your weighted share price. Your purchase details stay on your device.

Enter the quantity and price of each buy to see your average.

Example · Two share purchases

Purchase 1
Purchase 2
Average price per share
$90.00
Total quantity
30
Total cost
$2,700.00

30 shares cost $2,700.00, an average of $90.00 a share.

Estimate only. Uses the purchase prices you enter and excludes fees and taxes.

The link includes your inputs.

Next tool · Work out my yearly return

Reach a target average
Choose a target above the market price and below your current average.

Enter a market price and a lower target average.

More options

Processed on this device — nothing is uploaded

What you can do here

  • Weighted average across stock purchases
  • Add or remove individual purchases
  • Fractional quantities for existing purchases
  • Whole-share target calculation

How do I calculate my average stock purchase price?

The Stock Average Calculator combines purchases of the same stock into one weighted average price. Buying 10 shares at $100 and 20 at $85 gives 30 shares at an average of $90.00. Add your purchase quantities and prices to see the total cost, or calculate how many shares would reach a lower target. Calculations run locally.

The target must be below your current weighted average and above the price of the additional purchase. The tool rounds the additional purchase quantity up to a whole share.

Key facts

Price
Free
Sign-up
None
Upload
None — runs on your device
Limits
Up to 50 purchase rows · Quantities and prices accept up to eight decimal places
Works with
Shares and price per purchase · Optional market price and target average
Output
Total shares, total cost and average price · Whole shares needed to reach a lower target
Updated

How to average stock purchases

  1. Enter your purchases

    Enter the number of shares and the price per share for each purchase in the same currency.

  2. Check your holding

    Read the total shares, total cost and weighted average price. Add a row with Enter in the last price field.

  3. Try a target average

    Enter the price at which you would buy more shares and a target below your current average.

How the weighted price and target shares are calculated

Multiply each purchase price by its quantity and add the results for the total cost. Divide by the total number of shares. For the two default purchases, (10 × $100 + 20 × $85) ÷ 30 gives $90.00 per share on a total cost of $2,700. The average is rounded to four decimal places, then shown to two.

For a lower target, divide Q × (A − T) by (T − M), where Q is your current quantity, A is the unrounded average, T is the target and M is the price of the additional purchase. Round up to a whole share so the new average reaches the target or falls below it. The target must lie between the new purchase price and the current average.

This estimate uses the prices you enter. It excludes fees and taxes, and the currency option changes display without converting your prices.

Frequently asked questions

How do I calculate a weighted average share price?

Multiply each purchase’s quantity by its price per share, add the resulting costs, then divide by the total quantity. Larger purchases carry more weight than smaller purchases.

Can I average down to the current market price?

With an existing holding above that price, buying more shares at the market price moves your average toward it. You need a target above the purchase price to reach it with a finite number of shares.

What if the target equals or exceeds my current average?

Your average is already at or below that target. To calculate an additional purchase for averaging down, set a new target below your current weighted average.

Does the stock average include trading fees or taxes?

The calculator uses the exact quantity and entered price for each purchase. It adds no fees or taxes and performs no exchange-rate conversion. Use one currency and one stock for all rows.

Are my stock purchase prices stored or sent?

Your browser calculates the weighted average and saves your currency preference. Usage events contain no quantities or prices. A copied link includes your active purchase rows and the target inputs you entered.

Related tools

About this tool

Made by ZirkoMirko. Last updated .

Check it yourself in your browser’s Network panel while using the tool. How we handle your data.

Sources