Stock & Crypto Average Price Calculator
Work out the average price of a position bought (or sold short) in several parts, what it is worth at today's price, and how much more you would need to buy to bring the average down to a target.
Optional, for unrealised profit or loss.
Optional. Charged on each buy and on the exit.
Average price
40.00
400 over 3 entries
Total quantity
400
Total cost
16,000.00
Unrealised P&L
−800.00
at 38.00
Return on cost
−5.00%
Value 15,200.00
Break-even price
40.00
Equal to the average without fees
| # | Price | Quantity | Average |
|---|---|---|---|
| 1 | 50.00 | 100 | 50.00 |
| 2 | 40.00 | 100 | 45.00 |
| 3 | 35.00 | 200 | 40.00 |
Show the math
- Total cost = Σ(price × quantity)
50.00 × 100 + 40.00 × 100 + 35.00 × 200 = 16,000.00 - Average price = total cost ÷ total quantity
16,000.00 ÷ 400 = 40.00 - Unrealised P&L = (current − average) × quantity
(38.00 − 40.00) × 400 = −800.00 - Return on cost = P&L ÷ total cost
−800.00 ÷ 16,000.00 = -5%
Amounts are in the currency the prices are quoted in. Spreads, swaps and dividends are not included.
Quick answer
Average price = Σ(price × quantity) ÷ total quantity. Buying 100 shares at 50, 100 at 40 and 200 at 35 costs 16,000 for 400 shares, an average of 40.00; to bring it to 35 by buying at 30 you would need 400 more shares.
What is the Stock & Crypto Average Price Calculator?
When you build a position in several buys, your average price is what each share, coin or lot cost you overall. It is a weighted average: a buy of 200 shares counts twice as much as a buy of 100. Profit and loss on the whole position are measured from this number, so it is the price to compare with the market and the starting point for a stop or a target.
Average price = Σ(price × quantity) ÷ Σ quantity
Unrealised P&L = (current price − average) × total quantity (long)
Quantity to reach a target = held × (average − target) ÷ (target − new price)
Buy 100 shares at 50, 100 at 40 and 200 at 35. The total cost is 5,000 + 4,000 + 7,000 = 16,000 for 400 shares, so the average is 40.00, not the 41.67 you get by averaging the three prices. At 38 the position is down (38 − 40) × 400 = −800, or −5% of the cost.
Crypto buyers often invest a fixed amount each time rather than a fixed quantity (dollar-cost averaging). Spending $500 at 60,000 and $500 at 50,000 buys 0.008333 and 0.01 BTC, an average of 54,545.45. Equal amounts always average below the simple mean of the prices, because the same money buys more when the price is low. Switch Enter size as to Amount spent for this.
Fees move the real break-even above the average for a long. With a fee of f per trade on the entries and again on the exit, break-even = average × (1 + f) ÷ (1 − f). At 0.1% per trade, an average of 40.00 needs 40.0801 to come out flat.
How to use this calculator
- Average price mode: choose long for buys or short for short sales, then enter the price and quantity of each entry. Use Add an entry for up to ten.
- If you invest a set sum each time, switch Enter size as to Amount spent and enter the money instead of the quantity.
- Optionally enter the current price to see the unrealised profit or loss, and a fee per trade in % to see the break-even after fees.
- Target average mode: enter the average and quantity you hold, the price you can add at, and the average you want. The result is the quantity to add and what it costs; the table shows the new average for adding a quarter, half, one, two or three times your current holding.
Quantities can be shares, coins, lots or contracts, and money is in whatever currency the prices are quoted in. Show the math lists each step with your numbers.
Worked example
Stock bought three times. 100 shares at 50, 100 at 40, 200 at 35.
(50 × 100 + 40 × 100 + 35 × 200) ÷ 400 = 16,000 ÷ 400 = 40.00
The running average goes 50.00, 45.00, 40.00. At a price of 38 the position is down 800 (−5%).
Averaging down to a target. You hold 400 shares at 40 and can buy at 30. To bring the average to 35 you need 400 × (40 − 35) ÷ (35 − 30) = 400 more shares, costing 12,000. Doubling the position only moved the average halfway to the new price. A target of 30 or lower is impossible at that price: the average gets closer to 30 with every share but never reaches it.
Short position. Short 2 ETH at 3,000 and the price rises to 3,300. Selling 2 × (3,000 − 3,100) ÷ (3,100 − 3,300) = 1 ETH more there lifts the short average to 3,100.
When to use it
- After scaling into a trade — to know the real entry before you set a stop or a target.
- Before averaging down — to see how many more shares or coins it takes to move the average, and what that costs.
- For a DCA plan — to track the average cost of regular crypto or ETF purchases.
- To check a broker's figure — platforms show an average entry; this shows how it was reached.
Common mistakes
- Averaging the prices instead of weighting them. 50, 40 and 35 average 41.67, but the position above cost 40.00 per share.
- Treating a lower average as a lower risk. Averaging down makes the position larger. If the price keeps falling, every point now costs more.
- Setting a target past the new buy price. Buying at 30 can bring the average close to 30 but not to it or below.
- Forgetting fees. On frequent small crypto buys, fees on each entry and on the exit lift the break-even above the average.
- Mixing long and short entries. A sale against a long position closes part of it; it does not average in. Enter only trades in the same direction.
Frequently asked questions
How do I calculate my average stock price?
Multiply each purchase price by the number of shares bought at that price, add the results, and divide by the total number of shares. 100 shares at 50, 100 at 40 and 200 at 35 cost 16,000 for 400 shares, an average of 40.00.
How many shares do I need to buy to average down?
Shares to buy = shares held × (current average − target average) ÷ (target average − buy price). Holding 400 shares at 40, buying at 30 to reach an average of 35 takes 400 × 5 ÷ 5 = 400 shares. The target must lie between your current average and the buy price.
How do I calculate my average crypto price?
The same way as for shares: total spent divided by total coins. If you bought with fixed amounts, work out the coins from each buy first (amount ÷ price). $500 at 60,000 and $500 at 50,000 buys 0.018333 BTC for $1,000, an average of 54,545.45.
Does averaging down lower my risk?
No. It lowers the break-even price, but it increases the position, so a further fall costs more than it would have before. Decide in advance how much you are willing to add and where the trade is wrong.
What is the break-even price after fees?
With a fee of f per trade, paid on the entries and on the exit, break-even = average × (1 + f) ÷ (1 − f) for a long and average × (1 − f) ÷ (1 + f) for a short. At 0.1% per trade an average of 40.00 breaks even at 40.0801.
Can I use this for forex lots?
Yes. Enter the lot size as the quantity and the price of each fill. For break-even including spread, commission and swap in pips, use the break-even calculator, which averages several positions the same way.
Related calculators
- Break-Even Price Calculator
Find the price a trade has to reach to cover its spread and commission.
- Forex Profit Calculator
Calculate the profit or loss of a trade in pips and in your account currency, from entry, exit and position size.
- Crypto Futures & Liquidation Price Calculator
Profit and ROI, the price that hits a target return, and the estimated liquidation price for a USDT-margined perpetual such as BTCUSDT, at any leverage, for isolated or cross margin.
- Lot Size & Position Size Calculator
Find the lot size that risks exactly the amount you choose, from your balance, risk per trade and stop-loss distance.
- Risk-Reward Ratio Calculator
Get the risk-reward ratio of a trade and the win rate you need to break even at that ratio.
- Forex Commission Calculator
Work out what broker commission costs per trade, per month and in pips, whether it is quoted per lot, per million notional (cTrader) or as a percentage of the position value.
Brokers we partner with
Affiliate links. calc.forex is free and funded by affiliate commissions: if you open an account through a broker link on this site, we may be paid by the broker at no extra cost to you. This never changes the numbers our calculators produce.
| Broker | Rating | Regulators | Min deposit | EUR/USD spread | Features | Open account |
|---|---|---|---|---|---|---|
AvaTrade Most Trusted | 4.6/5 | ASIC, CBI, FSCA, FSA, ADGM | $100 | from 0.9 pips | MT4, MT5 | Open account |
eToro Best for Beginners | 4.5/5 | FCA, CySEC, ASIC | $50 | from 1.0 pips | Social Trading, Copy Trading | Open account |
PrimeXBT Lowest Spreads | 4.7/5 | St. Vincent and Grenadines | $10 | from 0.1 pips | Crypto Trading, Low Spreads | Open account |
Skilling Best Execution | 4.8/5 | CySEC, FSA | $100 | from 0.0 pips | 0.0 Spreads, Fast Execution | Open account |
- Regulators
- ASIC, CBI, FSCA, FSA, ADGM
- Min deposit
- $100
- EUR/USD
- from 0.9 pips
- Regulators
- FCA, CySEC, ASIC
- Min deposit
- $50
- EUR/USD
- from 1.0 pips
- Regulators
- St. Vincent and Grenadines
- Min deposit
- $10
- EUR/USD
- from 0.1 pips
- Regulators
- CySEC, FSA
- Min deposit
- $100
- EUR/USD
- from 0.0 pips
Risk warning: CFDs and leveraged forex are complex instruments and come with a high risk of losing money rapidly due to leverage. 74–89% of retail investor accounts lose money when trading CFDs with the brokers listed here. Consider whether you understand how CFDs work and whether you can afford to take the high risk of losing your money.