A stock average calculator finds the average price you paid for a stock bought in several lots, which is also your break-even price. Enter each purchase, and optionally your fees and the current price, and it gives the average cost, the break-even and the gain or loss. A second mode shows dollar-cost averaging.
How to use the stock average calculator
- Choose what you want.
- List your purchases, or the amount and the prices.
- Add fees and the current price if you wish.
- Press Calculate.
The weighted average
Under the average basis method, the aggregate basis of all shares in the account is divided by the aggregate number of shares [1]. For stock, it is the total money spent divided by the total shares owned. If you buy 10 shares at 50 and 5 shares at 40, the total cost is 700 for 15 shares, so the average is 46.67. Writing it as Σ(shares × price) ÷ Σ shares is our own working. The calculator handles any number of lots.
Break-even
The break-even price is the price at which selling the whole holding gives back what you paid. Without fees, it equals the average cost. With fees, it is the total cost plus the fees, divided by the shares, so 10 of fees on the example raises it from 46.67 to 47.33. This is our own working, since the sources do not define it. If the current price is below it, you have a loss, and above it a gain.
Cost basis
For tax, the basis of property that you buy is usually its cost [3]. The basis rises with improvements and falls with depreciation [3]. Under the average basis method, which the IRS describes for mutual fund shares, the basis per share is the total basis divided by the total shares [1]. The calculator gives the average cost that you would use if your rules allow this method, and some do not, so check with your tax authority.
Dollar-cost averaging
Dollar-cost averaging means investing the same amount of money in the same investment at regular intervals, regardless of market conditions [2]. The strategy was described by Benjamin Graham in 1949 [4]. Because the same amount buys more shares when the price is low and fewer when it is high [2], the average price you pay is lower than the simple average of the prices. The second mode of the calculator shows this.
The harmonic mean
The effect is this: with equal-dollar purchases, the average price is the harmonic mean of the purchase prices, and the harmonic mean is lower than the arithmetic mean [4]. The return can be written as the final price divided by the harmonic mean of the purchase prices, minus one [4]. Our example buys 300 of stock at 30, 25 and 20. That is 10, 12 and 15 shares, 37 in all for 900, an average of 24.32, against an ordinary average price of 25.
A worked example of gain
With the dollar-cost example, suppose the price then rises to 30. The 37 shares are worth 1,110, a gain of 210, which is 23.3 percent on the average cost of 24.32. Had you bought the same number of shares each time instead, the average cost would equal the ordinary average of 25. These calculations are our own, using the formulas above.
Averaging down
Buying more shares when the price falls lowers your average cost, which is sometimes called averaging down. It lowers the price that the stock needs to reach for you to break even, but it also increases the money at risk. The calculator shows the new average after each purchase, so you can see how far a new purchase moves it. Decide with your goals and your risk in mind.
Using the results
Enter all of your lots and your fees. Compare the break-even with the current price. Keep your records of the purchases, since you will need them for tax. If your broker reports an average cost, compare it with the calculator's to check for errors. The tool treats every lot as bought, so enter sales by reducing the lots or running the tool for what remains.
Entering your purchases
Type each purchase on its own line as the number of shares and the price per share, separated by a space. Fractional shares are fine, so 2.5 shares at 40 is written as 2.5 40. If you reinvested dividends, enter each reinvestment as a purchase. For a series of equal investments, use the dollar-cost mode, and list the prices in the order that you bought.
Reading the result
The average cost is not the same as the price at which you would sell with no profit, if you paid fees, so look at the break-even line. The gain or loss line uses the current price that you enter, and takes off the fees you list. Update the current price to see how your holding stands.
Common mistakes
- Averaging the prices. Weight them by the number of shares.
- Leaving out fees. They raise the break-even.
- Assuming one tax method. Rules for cost basis vary.
- Treating averaging down as risk-free. It adds to the money at risk.
What next
Use this often? Add Stock Averag to your Home screen.
Frequently asked questions
What is a stock average calculator?
A tool that finds the average price paid for shares bought in several lots.
How do I calculate the average cost of shares?
Divide the total money spent by the total number of shares.
What is dollar-cost averaging?
Investing the same amount at regular intervals, so that more shares are bought when the price is low.
Why is the average price lower with dollar-cost averaging?
The average is the harmonic mean of the prices, which is lower than the ordinary average.
Does the calculator include fees?
Yes. Enter the total fees to see the break-even price.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.