How do you calculate the average price of a stock?
Multiply the shares in each buy by the price you paid, add those amounts up, and divide by the total number of shares. 100 shares at $50 ($5,000) plus 50 shares at $40 ($2,000) is $7,000 for 150 shares, so the average is $46.67. A simple average of the two prices, $45, would be wrong because the buys were different sizes.
How many shares do I need to buy to average down?
Shares to buy = shares you hold × (current average − target average) ÷ (target average − buy price). Holding 100 shares at a $50 average and buying at $40, reaching a $45 average takes 100 × 5 ÷ 5 = 100 shares. The target has to sit between the buy price and your current average: you can never average below the price you are buying at.
Should I include commissions in my average cost?
For your break-even, yes. The calculator shows the average price per share before fees and a separate break-even that adds commissions, which is the price you need to sell at to come out even. Brokers usually include buy commissions in the cost basis they report for tax.
Is averaging down a good idea?
It lowers your break-even, but it also makes the position bigger at the moment the trade is going against you. In the example above the buy takes the money in the stock from $5,000 to $9,000, so a further 10% drop costs $1,800 instead of $1,400. It works when it is part of a plan made before the first buy, with a total position size and a stop that still fit your risk limits. It hurts when it is a way to avoid taking a loss.
Does it work for averaging up and for crypto?
Yes. Buying above your average raises it, and the target mode handles that too. Shares can be fractional, so it works for crypto and fractional shares: 0.5 BTC at $60,000 plus 0.25 BTC at $48,000 averages $56,000.