Free calculator · No signup · Method shown

Average price calculator

Enter each purchase of a stock or fund to see your average cost per share, your total shares and your total spent.

Example 100 at $50 and 100 at $40 $45.00

StockEducation Editorial Team · Tool reviewed by Associate Professor Charles Lo, CPA, PhD on · Updated · 14 min read · How we check our tools

The calculator

Calculate your average price per share

Output Calculated from your inputs

Try an example
↓ 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 to use it (three steps)

Enter the shares and price for each purchase. Use Add Another Purchase for more rows, then press Calculate Average Price. Not sure what to try? Load an example.

  1. 1Enter the shares and price for each purchase
  2. 2Press Calculate Average Price and read your break even price
  3. 3Add one more imaginary purchase and see how the average moves

Your result in words

Weighted average

Enter one or more valid purchases, or load an example, to see your average price in words.

    Compare two plans

    Keep or share this result

    Saved numbers and images stay on this device. A copied link holds only the tool inputs, nothing else.

    Quick 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.

    100 at $50 and 100 at $40$45.00
    Total cost$9,000
    20 at $50 and 30 at $40$44.00
    Total shares50

    Checked against IRS · Investor.gov · FINRA · see sources

    Key takeaways
    • 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.

    The formulaAveraging downCost basis and taxTest yourself

    Part 1 of 3 · How it works

    What is average price per share?

    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.

    1

    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.

    2

    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.

    3

    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.

    4

    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 purchases 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 purchases pull the average toward their price.

    Marks Part 1 done

    Part 2 of 3 · Averaging down

    How much does buying more lower my average?

    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.

    5

    What happens when I average down?

    Average price after buying more at $50, from 100 shares bought at $100

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

    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.

    7

    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.

    8

    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 done

    Part 3 of 3 · Cost basis and tax

    What does the average price calculator leave out?

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

    9

    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. Check your broker’s cost basis records against your own purchase and adjustment records.

    10

    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 purchases.
    • 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 Free, no signup.
    11

    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 substantially identical securities 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 done

    Mistakes to avoid

    Three mistakes to avoid, and what to do instead

    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.

    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.

    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.

    Quick check

    Three quick questions and one why

    0 of 3 answered

    1. You buy 50 shares at $20 and 50 shares at $30. What is your average price?

    Answer: B, $25.$1,000 + $1,500 = $2,500 for 100 shares, so $25. With equal share counts, the weighted average equals the simple average.

    2. You buy 30 shares at $10 and 10 shares at $20. What is your average price?

    Answer: A, $12.50.$300 + $200 = $500 for 40 shares. The bigger purchase at $10 pulls the average down.

    3. You own 100 shares bought at $100, then buy 100 more at $50. From $50, how much must the price rise for you to break even?

    Answer: B, 50%.Your average is $75. From $50 to $75 is a 50% rise.
    Why: why does averaging down not reduce risk?

    It lowers the price you need to break even, but it increases how much money you have in that one investment. If the price keeps falling, a bigger position means a bigger loss.

    Common questions

    Average Price Calculator FAQ

    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 purchases 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 purchases 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.

    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 purchases 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. With Preferences consent, Save my numbers stores every purchase row in this browser. On a later visit in the same browser, use Restore saved numbers to bring them back. 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 purchases. It does not track sales, fees you leave out or corporate actions, so update the rows when your holdings change.

    Next steps

    You know what your shares cost. Now learn how to judge what they are worth.

    A free account saves your course progress and opens the $1,000,000 practice simulator, where you can watch real U.S. stocks rise and fall with virtual money before any of your own is at stake.

    Free, no card. Lessons and tools stay free to use without an account.

    Average price on one card, and where to go next
    1. Step 1 · DoneHow average price works
      See it on one card
      1. The formula. Total paid ÷ total shares.
      2. Weighted. Bigger buys pull the average toward their price.
      3. Averaging down. 100 at $100 plus 100 at $50 averages $75.
      4. Break even. From $50, the price needs a 50% rise to reach $75.
      5. Not safer. A lower average means more money in the same investment.
      6. Cost basis. Fees, splits and reinvested dividends adjust it.
    2. 2
      Step 2 · NowCheck the tax

      Estimate the tax and take home profit on a sale.

      Open the after tax calculator Free, no signup.
    3. 3
      Step 3Follow the learning path
      The learning pathFree

      Learn the rest in the right order

      Lessons, videos, tools and quizzes, ordered so each step builds on the last, from market basics to building a portfolio.

      Start the learning path

    Want the full sequence? See the course outline →

    Sources and assumptions

    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. Worked examples use illustrative purchase inputs, not market quotes. Their arithmetic is checked against the calculator when this page is updated. All amounts are in U.S. dollars.

    Page history. October 23, 2026: V11 design and expanded guide applied, retaining the working calculator and save, restore, comparison and export fixes. The confirmed tool review by Associate Professor Charles Lo, CPA, PhD is dated 5 October 2026.

    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.

    Up nextPart 1
    Next ↓