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
Your path
Do today’s challenge, then tap Up next.
Average stock price calculator
Step 1 of 5
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
More
Learn it in 4 short parts
Each part answers one question. Open any part. Tap Got it when you are done.
How it worksWhat 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.
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.
Total paid ÷ total shares. Bigger buys pull the average toward their price.
Marks part 1 of 4 done and opens the next one.
Averaging downHow 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?
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.
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 taxWhat 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.
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 calculatorWhich 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.
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 outThree mistakes to avoid, and what to do instead
Common slips 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.
Marks part 4 of 4 done.
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.
What should I do next?
Pick the step that fits what you just did.
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
Sources and methodEvery source used on this page, how the tool works and the page history.
- Investor.gov (U.S. Securities and Exchange Commission): Dollar cost averaging. Explains investing a fixed amount on a schedule and its limits.
- IRS Topic No. 703, Basis of assets. How cost basis is set and adjusted.
- 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.
- IRS Publication 551, Basis of Assets. Identifying the shares you sell, the earliest shares rule and average basis for mutual fund shares.
- FINRA: Investing in Fractional Shares. How fractional shares work and why they may not transfer between brokers.
- 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.
