Stock Average Calculator
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free stock average calculator. Add each buy to get your average price per share, profit or loss now, and how many shares to buy to reach a target average.
- Total shares
- 0
- Total cost
- 0
- Value now
- 0
- Profit or loss
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the stock average calculator
- Enter each buy: the number of shares and the price per share. There's room for five buys; leave unused rows blank.
- Add total fees if you want them included in your cost (brokerage, stamp duty, commissions).
- Optionally, enter the price now to see your profit or loss.
- Optionally, enter a target average and the next buy price to see how many more shares you'd need to buy to bring your average to that target.
The stock average calculator shows your average price per share, total shares, total cost, value now and profit or loss, in amount and percentage.
The average cost formula
Your average price isn't the average of the prices you paid. It's weighted by how many shares you bought each time:
Average price = total amount paid ÷ total shares
If you bought 10 shares at 150, 15 at 120 and 20 at 95:
- Cost: 1,500 + 1,800 + 1,900 = 5,200
- Shares: 10 + 15 + 20 = 45
- Average: 5,200 ÷ 45 = 115.56
The simple average of the three prices would be 121.67, which is wrong because you bought more shares at the lower prices. This is the same idea as the weighted average calculator, applied to shares.
Profit or loss
With a current price of 110, your 45 shares are worth 4,950. Against a cost of 5,200, that's a loss of 250, or −4.81%.
Profit = (current price − average price) × shares
Or as a percentage: (current price ÷ average price − 1) × 100.
Averaging down: how many shares to reach a target
When a share falls, some investors buy more to bring their average price down, so it doesn't need to recover as far before they break even. The stock average calculator works out how many shares that takes:
Shares needed = current shares × (current average − target average) ÷ (target average − new buy price)
With an average of 115.56 on 45 shares, to bring the average down to 105 by buying at 90:
45 × (115.56 − 105) ÷ (105 − 90) = 31.67 shares, costing about 2,850.
The target must lie between your current average and the new price. If you're buying at 90, you can never get your average below 90, however much you buy. If the target is impossible, the calculator tells you why.
Should you average down?
Averaging down can make sense when:
- You still believe in the company and the fall looks temporary or market-wide.
- The share is a small part of your portfolio, so buying more doesn't create too much risk in one place.
- You're investing regularly anyway.
It's risky when:
- The share is falling because something has gone wrong with the business. Buying more of a failing company is "catching a falling knife".
- It's becoming too large a share of your money.
- You're doing it only to "get back to even", rather than because it's a good investment at today's price.
A useful question: if you didn't own this share at all, would you buy it at today's price? If not, averaging down is probably a mistake.
Averaging up
The same maths works when a share rises: buying more at a higher price raises your average. That's fine if you're adding to a winner deliberately, but it does reduce your percentage gain.
Dollar-cost averaging
Investing a fixed amount at regular intervals, whatever the price, is called dollar-cost or pound-cost averaging. Because a fixed amount buys more shares when the price is low and fewer when it's high, your average cost ends up lower than the average of the prices over the period. It also removes the stress of trying to time the market. The stock average calculator is a handy way to track your average as you go.
Fees and taxes
Fees raise your true cost per share, so include them for an accurate break-even price. For tax purposes, many countries use the average cost (pooling) method for shares of the same company, but the rules vary, including how sales and same-day or 30-day purchases are matched. Check your local rules before relying on these figures for a tax return.
Splits and dividends
- Stock splits: after a 2-for-1 split, you have twice as many shares at half the average price. Adjust your old buys (double the shares, halve the prices) before entering them.
- Reinvested dividends: each reinvestment is a buy. Add it as a row.
For income from your holding, the dividend yield calculator shows your yield and yield on cost.
Tips
- Use the exact numbers from your broker's contract notes.
- Fractional shares are fine: enter decimals.
- Keep a record of each buy; your broker's average may differ slightly if it includes fees differently.
- Compare returns over time with the ROI calculator or the CAGR calculator.
Privacy and accuracy
Your holdings stay in your browser. Nothing is uploaded, saved or shared. The stock average calculator uses exact weighted-average arithmetic with no AI involved, so the same buys always give the same average. Investors and traders use it free on any device. It's a calculator, not investment advice.
Average price and break-even
Your average price, including fees, is your break-even price: the share price at which you'd sell without a gain or loss (before any selling fees and taxes). If your average is 115.56 and the share trades at 110, it needs to rise about 5.1% for you to break even. After a fall, that's a useful way to see how far you are from getting back to even.
Partial sales
When you sell some of your shares, the average cost of the remaining shares usually stays the same under the average cost method. If you hold 45 shares at an average of 115.56 and sell 15, the remaining 30 still have an average of 115.56; your realised profit or loss on the 15 sold is (sale price − 115.56) × 15. Some tax systems and brokers use other methods, such as first in, first out (FIFO), which can give a different figure.
Tracking several holdings
Use the stock average calculator for one company at a time. For a whole portfolio, record each holding's average price, shares and current price, then compare the total cost with the total value. The percentage calculator gives the overall gain or loss as a percentage.
Quick reference
- Average cost: total paid ÷ total shares.
- Break-even price: the average cost including fees.
- Averaging down / up: buying more at a lower or higher price.
- Unrealised gain or loss: on shares you still hold.
- Realised gain or loss: on shares you've sold.
The stock average calculator shows your average cost and unrealised profit or loss; realised figures come from your broker's statements.
Keeping good records
Save your broker's contract notes or trade confirmations for every purchase and sale, including fees. They're needed for tax returns, and they make it easy to rebuild your average cost in the stock average calculator if you change brokers.
A worked example
Rahul bought shares in a retailer three times: 10 at 150, 15 at 120 and 20 at 95. The share is now at 110. He enters the three buys and the current price into the stock average calculator.
His average price is 115.56, across 45 shares costing 5,200 in total. They're worth 4,950 now, a loss of 250 (−4.81%).
He's thinking about buying more at 90 if the price drops there, and wants to know what it would take to bring his average down to 105. The calculator shows he'd need about 31.67 shares, roughly 2,850. That would make the retailer much too big a share of his savings, so he decides to buy a smaller amount and accept a higher average.
Treat ad spend like any other investment
A Google Ads budget should be judged the way you judge any investment: by what it returns, in dollars. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.
Frequently asked questions
How do I calculate my average share price?
Add up what you paid for all the shares and divide by the total number of shares. The stock average calculator does it for up to five buys.
Why isn't it the average of my buy prices?
Because you bought different numbers of shares each time. Buys with more shares count more.
How many shares do I need to buy to lower my average?
Enter a target average and the price you'd buy at. The stock average calculator shows the number of shares and the cost.
Should I include brokerage fees?
Yes, for an accurate break-even price. Enter them in the fees box.
What happens after a stock split?
Adjust your earlier buys for the split before entering them, so the shares and prices match today's.
Is the stock average calculator free?
Yes, completely free with no sign-up.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.