Free Calculator Updated May 2026 Educational Only

Average Price Calculator

Enter each share purchase to instantly see your weighted average cost per share, total units held, and total amount invested across all buys. Free, no signup.

Quick Answer

How do I work out my average cost per share?

Average cost per share is the total amount invested divided by the total shares owned. This gives more weight to the larger purchases. Buying 100 shares at $50 and 300 shares at $30 costs $14,000 for 400 shares, so the average is $35. Simply averaging the two prices would incorrectly give $40. The free StockEducation Average Price Calculator totals the shares, money invested and average cost as each purchase is added. Include brokerage, currency changes and relevant tax adjustments separately when working out the official cost basis.

Reviewed by Charles Lo — Academic Reviewer Last reviewed
🔢Weighted Average 📊Multi Purchase Support 💰Total Cost Basis Instant Result
Dr. Charles Lo
Dr. Charles Lo, CPA, PhD Part-Time Educator at the University of Sydney · Formerly at Charles Sturt University · Now at Wentworth Institute 🔗 LinkedIn
Last reviewed 19 May 2026 Reviewed annually
Formula shown Total Cost / Total Shares
Free, educational Not financial advice
↓ AVERAGE PRICE CALCULATOR ↓
↓ Average Price Calculator ↓
Average Price Calculator
FREE · NO SIGN-UP

Average Price Calculator

Enter each purchase below to calculate your average price per share across all buys.


Average Price
Total Shares
Total Cost

Important calculator disclosure

General education only — check the assumptions before using the result.

Purpose: This calculator is a general educational tool that performs a numerical calculation from the values you enter. It does not recommend, advertise or promote a specific financial product.

Assumptions: The calculation uses the input values and assumptions displayed in the calculator. Default values are illustrative starting points, not forecasts. Change each non-statutory assumption so it matches the scenario you want to test.

Limitations: Actual market returns, prices, dividends, interest rates, fees, tax, inflation and timing may differ from the assumptions. The calculator may omit factors relevant to you. Small input changes can materially change the result, so the output is an illustration rather than a prediction.

This financial calculator is not intended to be relied on for the purposes of making a decision in relation to a financial product. You should consider obtaining advice from a financial services licensee before making any financial decisions.

You can print this page or save it electronically using your browser controls. See ASIC Instrument 2026/41 for the conditions applying to generic financial calculators.

Educational content only. This calculator uses the weighted average cost method. Results are for informational purposes only and do not constitute investment or tax advice. Always verify your cost basis with your broker before making any financial or tax-related decision.

100 shares bought at $10 and 100 shares bought at $20 give a weighted average price of $15 per share. The average price calculator multiplies each purchase by its share count, sums the totals, then divides by total shares held. It is the standard way to track cost basis when you buy a stock across multiple dates.

📐 Learn the math See the formula and assumptions 📊 See worked examples Verified scenarios with real numbers 💵 Stock Profit After Tax See what you keep after CGT

How to use the average price calculator

Weighted average cost across multiple buys in three steps.

1

Add each purchase row

Enter the number of shares and the price you paid per share for each separate buy. Add as many rows as you have purchases.

2

Get the weighted average

The calculator multiplies each row, sums total cost and total shares, and divides to give your true cost basis per share.

3

Read the average price, total shares and total cost

The result panel shows three values: Average Price (your true cost basis per share), Total Shares (your full position size), and Total Cost (total invested). The Average Price is what matters for capital gains tax, position sizing, and judging unrealised gain or loss against the current market price.

Walkthrough chapters

A four-stage written walkthrough — the chapters a video would cover, available now in text.

How to use the Average Price Calculator

Four chapters covering inputs, outputs and the common mistakes to avoid.

0:00 Adding purchase rows 1:00 Reading the weighted average 2:00 Why weighted differs from simple average 2:30 Using the result for tax

3 min watch. Auto captions available. Walkthrough chapters listed above.

Why use this average price calculator

Specific outcomes, not generic claims.

🎯

Know your true cost basis

Simple averaging across prices ignores how many shares you bought at each. Weighted average gives the cost number that actually drives your tax and profit calculations.

📉

Plan your next entry

Knowing your weighted average tells you how much a new buy at today’s price will move your cost basis up or down. Useful for dollar cost averaging decisions.

🧾

Tax ready records

When you eventually sell, the weighted average is the standard cost basis method recognised in most jurisdictions for capital gains reporting.

The math behind the projection

Most calculators hide the formula. We show it because understanding the math is the point.

📐 Formula

The weighted average price formula. Each purchase contributes in proportion to the number of shares bought.

Average Price = (Sum of [Shares × Price]) / Total Shares
Shares number of shares in each purchase · Price price per share paid in that purchase · Sum add up the share times price product across all purchases · Total Shares sum of all shares bought across all purchases
Weighted average differs from a simple average of prices because a 1,000 share buy counts ten times more than a 100 share buy. This is why two investors who bought at the same prices but in different quantities can have very different cost bases.

What this calculator assumes vs reality

The projection is a mathematical model, not a forecast. Six assumptions baked into the math, plus what real outcomes look like.

⚠️ Six assumptions to know about

Each card pairs an assumption the calculator makes with what real world investing actually looks like.

Buys only

Reality: The calculator handles purchases. For partial sells, your remaining cost basis depends on whether you use FIFO, LIFO or average method.

No fees included

Reality: Brokerage fees and stamp duty add to cost basis. Add them in or treat the input price as already including fees.

Single currency

Reality: Multi currency purchases need conversion to one currency at the transaction date rate before averaging.

No corporate actions

Reality: Splits, consolidations and reinvested dividends change effective share counts and cost basis. Adjust manually.

Same security only

Reality: Each calculation is one ticker. Run separately for each holding.

Recent prices unaffected

Reality: Average price does not reflect current market value. Multiply by today’s price for current portfolio value.

Net effect on long run outcomes: Weighted average is the accounting standard for cost basis. Your real after tax outcome on sale depends on which lots are deemed sold (FIFO vs LIFO vs average), which jurisdictions handle differently. Confirm with your broker statement or accountant before reporting.

How small input changes shift the result

Same base scenario, one variable changed at a time. The projection is highly sensitive to small changes.

Scenario Shares Price Final value vs base
Single buy100$25.50$25.50Single
Two equal buys (different prices)100 + 100$10 + $20$15.00Midpoint
Big early buy, small later add1000 + 100$20 + $30$20.91+4.6% from low
Small early buy, big later add100 + 1000$20 + $30$29.09-3.0% from high
Four buy averaging plan100 / 150 / 200 / 50$25.50 / $28 / $22.75 / $35$26.10Spread
Dollar cost averaging fixed amount100 / 110 / 91$10 / $9 / $11$9.93DCA effect
The pattern: Weighted average is dominated by the largest share purchase, not the highest or lowest price. Dollar cost averaging a fixed dollar amount each period naturally lowers your average price during dips because the fixed dollar buys more shares.

Average price vs other cost basis methods

The calculator assumes a smooth return every year. Here is how that compares to verified historical data.

Source Average annual return Outcome
Weighted average (this calculator)Sum all costs / sum all sharesStandard for managed funds and many brokers
FIFO (first in, first out)Earliest shares sold firstDefault in US for individual stocks unless specified
LIFO (last in, first out)Most recent shares sold firstLess common, can defer gains in rising markets
Specific identificationChoose which lots to sellMost tax efficient but requires lot level tracking
The key insight: The method you can use depends on your jurisdiction and your broker’s record keeping. In Australia, average cost is common for managed funds but specific identification (parcel method) is standard for individual shares. In the US, FIFO is the default unless you instruct your broker otherwise. Always check what method your tax statement uses before reporting.

Average price, everything you need to know

Written by Dr. Charles Lo, Associate Professor, CPA. Reviewed annually.

Weighted average price is your true cost basis when you have bought the same stock multiple times at different prices. It is calculated by multiplying each purchase by its share count, summing the totals, and dividing by total shares held.

A common mistake is averaging the prices directly. If you bought 1,000 shares at $20 and 100 shares at $30, the simple average of $25 is wrong. The weighted average is $20.91 because most of your shares were bought at the lower price.

Weighted average matters most when you sell. It determines your capital gain or loss and therefore the tax you owe. It also tells you how much of a margin of safety you have against the current price before a paper loss becomes real.

📖 Key terms in this guide

Cost basis
What you paid for a share, used to calculate capital gain or loss when you sell. Includes brokerage fees and stamp duty.
Weighted average
Cost basis method that averages all your purchases proportional to share count. The standard method for managed funds and most brokers.
FIFO
First In First Out. The earliest shares you bought are deemed sold first. Default method in the US for individual stocks.
LIFO
Last In First Out. The most recent shares bought are deemed sold first. Less common but can defer gains in rising markets.
Specific identification
You nominate which specific lot to sell. Most tax efficient but requires the broker to track each lot separately.

How to set your assumed return rate

Always include brokerage fees and any stamp duty in your effective price per share. A $10 stock with a $5 brokerage fee on 100 shares has an effective per share cost of $10.05.

When using dollar cost averaging, your weighted average will land between the highest and lowest prices you paid, weighted toward periods when shares were cheaper (because the fixed dollar bought more).

Common mistakes

How to interpret your result

Compare your average price to the current market price. If current is higher, you have an unrealised gain. If lower, an unrealised paper loss. Neither becomes real until you sell.

Compare your average to recent purchase prices. If your average is much lower than today’s price, you have a sizeable cushion. If your average is close to or above today’s price, a small further drop will put you in loss territory.

Worked examples

Real numbers calculated from the same formula as the live tool. Every figure below is verified, not approximated.

Two buy DCA into a dip

100 shares at $20, then 100 shares at $10

An investor bought half their position before a market drop, then added the other half at the lower price.

Result: Weighted average $15.00 per share, total 200 shares, total cost $3,000. The dip cut average cost by 25% from the initial buy price.

Big early position, small later top up

1,000 shares at $20, then 100 shares at $30

An investor built a meaningful position early, then added a small amount later at a higher price after good news.

Result: Weighted average $20.91 per share. The smaller top up moves the average only 91 cents because the early buy dominates.

Four buy spread plan

100 at $25.50, 150 at $28, 200 at $22.75, 50 at $35

A planner spreads buys across a year to smooth out volatility. Different share counts at each price reflect changing conviction.

Result: Weighted average $26.10 per share across 500 shares, total cost $13,050. The large $22.75 buy pulls the average down despite the $35 top up.

Dollar cost averaging $1,000 monthly

$1,000 monthly for 3 months, prices $10, $9, $11

An investor commits a fixed dollar amount each month regardless of price. The fixed dollar buys more shares when price is low.

Result: 100 + 111 + 91 = 302 shares for $3,000. Weighted average $9.93 per share, lower than the simple average of $10 because more shares were bought at the lower prices.

Adding fees correctly

100 shares at $50 plus $9.95 brokerage

A single buy of $5,000 attracts a flat brokerage fee. The fee adds to cost basis.

Result: Effective cost per share = ($5,000 + $9.95) / 100 = $50.0995. Use this number, not $50, for accurate gain or loss reporting.

Frequently asked questions

The questions users most often ask about calculator output.

Is the Average Price Calculator free?

Yes. The calculator is free to use, no signup or account required. It runs in your browser. Your inputs are not stored or shared.

What is the difference between weighted average and simple average?

Simple average adds prices and divides by count. Weighted average multiplies each price by share count first. Weighted average is correct for cost basis because it reflects how many shares you actually bought at each price.

Should I include brokerage fees?

Yes. Brokerage fees and stamp duty add to cost basis. Either include them in the price per share you enter, or compute the effective price per share separately and use that figure.

Does this work for partial sells?

The calculator only handles buys. After a sell, your remaining cost basis depends on whether you use FIFO, LIFO, average method or specific identification. Check with your broker which method applies.

How do I handle a stock split?

After a 2 for 1 split, double your share count and halve your average price. The total cost basis is unchanged. Reverse the adjustment for reverse splits or consolidations.

Does this account for reinvested dividends?

Not automatically. DRIP shares are additional buys at the reinvestment date price. Add each DRIP as a new purchase row to keep your average correct.

Can I use this for ETFs and mutual funds?

Yes. The math is identical for any pooled investment unit. Use the units bought and the price per unit you paid.

Is this the same as cost basis?

Weighted average price per share is one cost basis method. The other common methods are FIFO, LIFO, and specific identification. Your tax outcome can differ based on which method is allowed and which you elect.

Related calculators

Other tools for different parts of your financial picture.

Footnotes

  1. Cost basis methods including weighted average, FIFO and specific identification are described in IRS Publication 550 (US) and ATO guidance on the cost base of a CGT asset (Australia). The standard accepted by both authorities is that brokerage and incidental costs of acquisition are included in cost basis. ato.gov.au · irs.gov
  2. The weighted vs simple average distinction is foundational in finance and statistics. See CFA Institute curriculum materials on portfolio performance measurement for the formal treatment.
  3. Dollar cost averaging tends to produce a weighted average price below the simple average of period end prices in volatile markets, because fixed dollar amounts buy more shares when prices are lower. This is a mathematical property, not a market timing claim.

Sources and methodology

The calculator uses the weighted average cost basis formula, which is the standard cost basis method recognised by major tax authorities including the ATO and the IRS.

Educational use only

This calculator is provided for general educational purposes only. It does not constitute financial or tax advice and does not take into account your personal objectives, financial situation or needs. Cost basis methods vary by jurisdiction and account type. Consult a registered tax agent or accountant for your specific reporting obligations.

What this calculator does not do

Know the math. Use it with confidence.

This calculator gives you the number. Our free courses teach you the why behind the math, the assumptions to question, and how to apply it to your own portfolio.

  • Plain English explanations from a CPA and university lecturer
  • Worked case studies using real index data
  • Quizzes and downloadable worksheets
Start the free course
Free signup. No credit card required.

Calculate your weighted average price

Add each purchase row to see your weighted average cost per share, total units held, and total amount invested across all buys.

Use the average price calculator
AI Robot

Ask Our AI Stock
Learning Assistant

Get instant educational answers about
stocks, investing, and StockEducation.com.

Instant Answers Built With Learners

Educational support only. Not personal financial advice. AI responses may contain errors.

Powered by AI ●

The Ultimate Investing Starter Guide

Free Stock Market
Investing Guide

A beginner friendly guide that covers the essential lessons and concepts every new investor should understand.

Subscription Form

Inside You'll Learn

Stocks & How They Work
Valuation Basics
Compound Interest
Index Funds & Diversification
Warren Buffett Principles
AI Stock Research & More
20+ Pages
of Value
Instant
Download
100% Free
No Strings