Free calculator, no signup

Average Price Calculator

Find your average cost per share after several buys.

  • No signup
  • Built for beginners
  • Education, not advice
  • Review of this update in progress

Reviewer: Associate Professor Charles Lo, CPA, PhD. Editor: Felix La Spina. Updated . Review of this update in progress. Education, not advice. How we check

Example, not your result
100 at $50 and 100 at $40$45.00
Total cost$9,000
20 at $50 and 30 at $40$44.00
Total shares50
Fixed figures. They do not change when you change the inputs.

Use the calculator

Free. No signup. Nothing to install.
↓ 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 —

Method: sum of shares × purchase price, divided by total shares. Uses your purchase rows only; excludes fees, sales, tax, currency conversion and corporate actions. A lower average cost does not reduce investment risk. Full method and assumptions.

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.

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.

How it works

  1. You enterEnter each purchase’s shares and price.
  2. You getAverage cost, total shares and total spent.
  3. ThenSee profit after tax.

Keep in mind. Fees are included only if you add them.

Where to go next

Next useful step: see profit after tax.

Stock Calculator →
The short answer

How do I calculate my average price per share?

Add up what you paid for every purchase, then divide by the total number of shares. Buy 100 shares at $50 and 100 at $40 and you paid $9,000 for 200 shares, an average of $45.00. When the amounts differ, the bigger purchase pulls the average toward its price: 20 shares at $50 and 30 at $40 average $44.00, not $45. This is a weighted average, and it is the usual starting point for your cost basis.

Key points

  • The formula. Total paid ÷ total shares.
  • Weighted. Bigger buys pull the average toward their price.
  • Averaging down. 100 at $100 plus 100 at $50 averages $75.
  • Break even. From $50, the price needs a 50% rise to reach $75.
  • Not safer. A lower average means more money in the same investment.
  • Cost basis. Fees, splits and reinvested dividends adjust it.
2 minute lesson, optionalBought at different prices? Find your averageGuess first, see the answer, then try it yourself. Five quick steps. You can skip it any time. Play the lessonClose the lessonOpen
Average price00 XP

Your path

Do today’s challenge, then tap Up next.

Daily goal: 30 XP
All tools

    Average stock price calculator

    Step 1 of 5

    You buy 10 shares at $100, then 20 more at $70.

    What is your average price per share?

    Tap a guess. Wrong guesses cost nothing.

    Free · No signup · 2 minutes · Revision review pending · Updated

    Step 2 of 5

    Next: try it yourself.

    Step 3 of 5

    Your turn

    Drag a slider or tap an option. Watch the number change.

    Type exact numbers

    Quick version for learning. The full average price calculator below has every option.

    Step 4 of 5

    What if you changed one thing?

    Tap a change to see what it does to .

    Step 5 of 5

    Tap an answer. You see why either way.

    Lesson complete

    0XP
    0Streak
    0/2Correct
    Your number
    More

    The guide

    Learn it in 4 short parts

    Each part answers one question. Open any part. Tap Got it when you are done.

    How it works

    What is average price per share?

    Total paid ÷ total shares. Bigger buys pull the average toward their price.

    If you buy the same stock or fund more than once, at different prices, your average price tells you what one share cost you overall.

    What is the formula?

    Average price = total amount paid ÷ total shares. For each purchase, multiply shares by price, add those together, then divide by all the shares.

    A worked example

    10 shares at $150 cost $1,500. 5 more at $120 cost $600. Together: 15 shares for $2,100, so the average is $140.00. It sits closer to $150 because you bought twice as many shares at that price.

    Why not just average the prices?

    A simple average of $150 and $120 is $135, but that pretends you bought the same number of shares each time. The weighted average counts every share, so it matches what you really paid.

    Does it work for fractional shares and funds?

    Yes. Many brokers sell fractional shares. 2.5 shares at $400 and 1.5 at $440 cost $1,660 for 4 shares, an average of $415.00. The same math works for ETFs and mutual funds.

    How do fees change my average price?

    Fees are part of what you paid, so they belong in the cost. Say you buy 10 shares at $50 with a $5 commission. The purchase cost you $505, not $500, so your price per share is $50.50. A second buy of 10 shares at $40, also with a $5 fee, costs $405.

    Without fees, those two buys are 20 shares for $900, an average of $45.00. With fees they are 20 shares for $910, an average of $45.50. Fifty cents a share looks small. On a stock you hold for years, it is the difference between the gain you think you made and the one you report.

    The IRS generally counts purchase costs such as commissions in your cost basis.2 Many brokers now charge $0 per trade, but if you paid a fee, add it to that row’s price per share before you enter it. Divide the fee by the shares in that purchase: $5 on 10 shares adds $0.50.

    The rule

    Total paid ÷ total shares. Bigger buys pull the average toward their price.

    Marks part 1 of 4 done and opens the next one.

    Averaging down

    How much does buying more lower my average?

    A lower average is not a reason to buy. The investment has to be worth owning at today’s price.

    Buying more after a price drop lowers your average cost. It also puts more money into the same investment, so it needs a reason beyond the lower average.

    What happens when I average down?

    Average price after buying more at $50, from 100 shares bought at $100
    100 shares at $100 only$100.00 average
    Plus 100 at $50$75.00 average
    Plus 300 at $50$62.50 average

    From $50, the price must rise 50% to reach a $75 average and 25% to reach $62.50 before you break even.

    Is averaging down a good idea?

    Only if the reason you bought still holds. A lower average does not make the investment any safer; it just means you own more of it. If the price fell for a good reason, buying more can deepen the loss. Ask whether you would buy at today’s price if you owned none.

    What about regular investing?

    Investing a fixed dollar amount on a schedule, called dollar cost averaging, buys more shares when prices are low and fewer when they are high.1 It does not guarantee a profit or protect against losses, but it takes timing decisions out of your hands.

    Why does averaging down raise the stakes as well as lower the average?

    Buying more at a lower price cuts the gain you need to break even. Own 100 shares bought at $100 and the price falls to $50, and you need a 100% rise to get back to even. Buy 100 more at $50 and your average drops to $75. Now a 50% rise, from $50 to $75, gets you back to even.

    The cost is that you have more money riding on the same company. You started with $10,000 in it. After the second purchase you have $15,000 in it. If the price falls another 20%, to $40, your 200 shares are worth $8,000, a loss of $7,000. Had you not bought more, your 100 shares would be worth $4,000, a loss of $6,000.

    So averaging down helps only if the price recovers. A lower average is a result of the purchase, not a reason for it. The question that matters is whether the business is worth more than $50 a share, which this calculator cannot tell you.

    The rule

    A lower average is not a reason to buy. The investment has to be worth owning at today’s price.

    Marks part 2 of 4 done and opens the next one.

    Cost basis and tax

    What does the average price calculator leave out?

    Use the average to understand your position. Use your broker’s cost basis for tax.

    The calculator uses only the shares and prices you enter. Your broker’s records and the tax rules can differ.

    Is average price my cost basis?

    Often it is close, but not always. Your cost basis usually includes fees and can be adjusted by events like stock splits and reinvested dividends.2 For stocks, the IRS also lets you choose which shares you sell, which changes the gain you report. Your broker’s cost basis records are the ones that count.

    What else is not included?

    • Fees. Add commissions to the price if you want them in the average.
    • Sales. Selling shares changes what you own; the calculator only adds buys.
    • Splits and other corporate actions. A 2 for 1 split doubles your shares and halves your average.
    Your turn

    See the profit after tax. The stock profit after tax calculator takes your cost and a sale price and estimates the federal and state tax on the gain.

    Open the after tax calculator

    Which shares count as sold when I sell only some of them?

    It depends on the method used, and the choice changes your taxable gain. Suppose you bought 10 shares at $150 and later 5 at $120, an average of $140, then sell 5 shares at $160.

    • Earliest shares first: if you do not identify the shares, the IRS treats the earliest ones as sold.4 Five of the $150 shares give a $50 gain.
    • Specific shares: if you can identify the $120 shares, the gain is $200.
    • Average basis: allowed for mutual fund shares bought at different prices. At $140, the gain is $100.

    Your broker sets a default method, and you can usually change it before you sell. One more trap: if you sell at a loss and buy the same security within 30 days before or after, the wash sale rule can disallow that loss.6 Averaging down right around a loss sale can trigger it.

    The rule

    Use the average to understand your position. Use your broker’s cost basis for tax.

    Marks part 3 of 4 done and opens the next one.

    Watch out

    Three mistakes to avoid, and what to do instead

    Common slips and what to do instead.
    1. Averaging down to feel better Buying more of a falling stock lowers your average price, not your loss. Ask whether you would buy it today at this price if you owned none.
    2. Forgetting commissions and fees Fees raise your true cost per share. Include them if your broker charges any, or your break even will be too low.
    3. Mixing up average cost and tax lots Your broker may report each purchase as its own lot for tax. The average helps you think; the lots decide the tax bill.

    Marks part 4 of 4 done.

    Quick questions

    Average Price Calculator FAQ

    Tap a question to open the answer.

    What does the average price calculator do, and is it free?

    Find your average cost per share after several buys. You enter each purchase’s shares and price. You get average cost, total shares and total spent. It is free to use with no signup. Keep in mind: fees are included only if you add them.

    How do I calculate my average cost per share?

    Add up what you paid for every purchase, then divide by the total number of shares you own. If you bought 100 shares at $50 and 100 at $40, you paid $9,000 for 200 shares, so your average is $45.00. Multiply shares by price for each purchase first, because buys of different sizes count differently. Twenty shares at $50 and 30 at $40 cost $2,200 for 50 shares, an average of $44.00. This calculator does that math for as many buys as you enter.

    What is weighted average cost?

    Weighted average cost is the average price where each purchase counts in proportion to the number of shares it bought. It is what this calculator shows. A simple average of $150 and $120 is $135, but if you bought 10 shares at $150 and 5 at $120, you spent $2,100 on 15 shares, so your true average is $140.00. The bigger purchase pulls the average toward its price. The weighted figure matches what you actually paid, which is why it is the starting point for cost basis.

    Is average cost the same as cost basis?

    Often they are close, but not always. Cost basis is the figure the IRS uses to work out your gain, and it usually includes purchase fees and can be adjusted by events such as stock splits and reinvested dividends. When you sell only some shares, the basis of those shares depends on which ones count as sold: the earliest ones by default, specific shares you identify, or an average for mutual fund shares. Your broker’s cost basis records are the ones reported to the IRS.

    Should I include fees in my average price?

    Yes, if you want your true cost per share. Fees are part of what you paid, and the IRS generally counts purchase costs such as commissions in your cost basis. The easiest way is to add each purchase’s fee to its price per share before entering it. A $5 commission on 10 shares adds $0.50 a share. Ten shares at $50 plus that fee becomes a price of $50.50. Many brokers now charge $0 for stock and ETF trades, in which case there is nothing to add.

    Show 4 more questionsShow fewer questions
    Does averaging down lower my risk?

    No. This is one of the most common misconceptions about averaging down. Buying more at a lower price lowers your average cost, but it also puts more money into the same investment. If you own 100 shares bought at $100 and buy 100 more at $50, your average falls to $75, yet you now have $15,000 at stake instead of $10,000. If the price keeps falling, your loss grows faster. Averaging down only makes sense if your reason for owning the investment still holds.

    How do stock splits affect my average price?

    A split changes the number of shares you own but not what you paid in total. In a two for one split, 100 shares at a $100 average become 200 shares at a $50 average, and your total cost stays $10,000. A reverse split works the other way: a one for ten reverse split turns 1,000 shares at $2 into 100 shares at $20. The calculator does not apply splits on its own, so enter buys using the share counts and prices adjusted for the split.

    Does the calculator work for fractional shares and ETFs?

    Yes. You can enter fractional share amounts, and the same weighted math works for stocks, ETFs and mutual funds. Buying 2.5 shares at $400 and 1.5 at $440 costs $1,660 for 4 shares, an average of $415.00. One practical point: FINRA notes that fractional shares often cannot be transferred to another broker, so moving accounts may mean selling them first, which can create a taxable gain. Keep your purchase records so you can check the cost basis either way.

    Can I save or share my numbers?

    Yes. Save my numbers keeps every purchase row on this device, so the calculator reopens with them next time you visit in the same browser. Copy link to these numbers creates a link that reopens the calculator with all of your rows and nothing else, which is handy for checking your math with someone or keeping a record. The calculator only adds buys. It does not track sales, fees you leave out or corporate actions, so update the rows when your holdings change.

    Keep going

    What should I do next?

    Pick the step that fits what you just did.

    Trust

    Who checks this page, and the sources

    Real people check the numbers and the wording. Every source is listed.

    • Updated
    • Sources listed below
    • Education, not advice
    • Review of this update in progress
    Was this page helpful?Spotted an error? Tell us
    Sources and methodEvery source used on this page, how the tool works and the page history.
    1. Investor.gov (U.S. Securities and Exchange Commission): Dollar cost averaging. Explains investing a fixed amount on a schedule and its limits.
    2. IRS Topic No. 703, Basis of assets. How cost basis is set and adjusted.
    3. Investor.gov (U.S. Securities and Exchange Commission): Stock split. How a two for one split doubles your shares and halves the price per share.
    4. IRS Publication 551, Basis of Assets. Identifying the shares you sell, the earliest shares rule and average basis for mutual fund shares.
    5. FINRA: Investing in Fractional Shares. How fractional shares work and why they may not transfer between brokers.
    6. Investor.gov (U.S. Securities and Exchange Commission): Wash sales. The 30 day rule that can disallow a loss when you buy the same security again.

    Method: average price = the sum of shares × purchase price for each row, divided by total shares. Only the purchase rows you enter are used; fees, sales, taxes, currency conversion and corporate actions are excluded. Every figure on this page came from this calculator on October 15, 2026. All amounts are in U.S. dollars.

    Page history. November 27, 2026: page simplified into numbered sections, missing tables restored and the questions reordered. The tool itself has not changed. October 21, 2026: content expanded, sources added and the page reviewed by Associate Professor Charles Lo, CPA, PhD. The tool itself has not changed.

    StockEducation provides general education, not personal financial, tax or legal advice. Results are illustrations based on the assumptions you enter, not forecasts or promises of any return. Investing involves risk, including the loss of money you invest.

    Sources and reference material

    Primary sources and original reference material for the concepts discussed on this page.

    References added 14 October 2026.

    Free beginner guide

    New to Investing? Start With Our Free Guide

    20 pages on the basics, 6 safe ways to use AI, and a 10 question quiz. Free in your inbox.

    Free PDF in your inbox. No spam. Unsubscribe any time.

    Learning Path IncludedEvery lesson in the right order, freeGet the Free Guide

    Optional email copy

    Save your number

    Email yourself a copy of this result and receive occasional updates about the StockEducation $1M simulator challenge. Your result stays visible either way.

    Saved. Check your inbox for the result.
    View the $1M challenge
    AI Robot

    Ask the
    Stock AI 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.

    Beginner Investing Guide 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