Trading Calculator

Crypto Average Price Calculator

Keel's free crypto average price calculator shows what adding to a perp position does to it. Enter your position now (entry, size and leverage) and up to three adds. You get the new average entry, the total size, the new liquidation price and how far it is from the price you are adding at. Prices start at the market's current price on Hyperliquid.

Inputs

BTC about $80,716 (price on Oct 15) · up to 40x · funding 0.00125%/h

Your position now

Isolated margin, 1x to 40x for BTC. Adds use the same leverage.

Add 1
Add 2 (optional)
Result
New average entry (long)
$83,820.33
0.023861 BTC, worth $2,000.00 at the average entry.
  • New liquidation$67,905.08
  • Liquidation before$70,621.16
  • Recent$80,716
  • Average entry$83,820.33
New liquidation price
$67,905.08

It was $70,621.16 before adding, down 3.85%.

Distance from your last fill
15.87%

From $80,716.00 to liquidation, down.

Distance from average entry
18.99%
Total size
0.023861 BTC

$2,000.00 at the average entry.

Margin at 5x
$400.00

The isolated margin the whole position uses after the adds.

By Keel Research Team · Updated October 15, 2026
How it works

Methodology

How the average entry is worked out

Your average entry is what the whole position cost divided by its size. Each fill counts in proportion to its amount, so a large add moves the average more than a small one. A size given in USD is turned into coins at that fill's own price first.

coins of a fill  = USD size / price   (or the coin size you enter)
average entry    = sum(coins × price) / sum(coins)

A long of $1,000 at 54,000 plus $1,000 at 50,000 holds 0.018519 plus 0.02 BTC, about 0.038519 BTC for $2,000, so the average entry is $51,923.08. With the same amount of coin at each price the average would be the midpoint, 52,000.

Where the new liquidation price sits

On isolated margin every fill posts its own margin, its value divided by the leverage, so the whole position carries margin equal to its value at the average entry divided by the leverage. Hyperliquid then liquidates it like a single position opened at the average entry: the same formula as the liquidation calculator, with the market's maintenance margin.

long   liq = average entry × (1 − 1/leverage) / (1 − maintenance rate)
short  liq = average entry × (1 + 1/leverage) / (1 + maintenance rate)

In the example above at 5x on BTC, whose maintenance rate is 1.25%, the liquidation price moves from $43,746.84 before the add to $42,064.26 after it. The entry fell by about 3.8% and the liquidation price by the same share, but measured from the $50,000 you added at, liquidation is now only about 15.9% away. That is the trade-off of averaging down: a nearer breakeven, a bigger position, and less room than the lower liquidation price suggests.

When an add can't happen

A long can only add above the liquidation price of the position as it stood, and a short only below it. If one of your adds is priced past that level, the position would be closed before the order filled. The calculator checks each add against the position before it and warns you when that happens.

What it leaves out

Fees and funding are not included: both are paid out of the margin while the position is open, which moves the real liquidation price slightly toward the current price. The PnL calculator covers them for a single trade. On cross margin the whole account backs the position, so liquidation depends on your account value and your other positions; use the liquidation calculator's Cross mode for one position. Very large positions move into Hyperliquid's higher margin tiers, where the maintenance rate is higher than the one used here.

A plan to add on the way down is a rule like any other, and a backtest shows how often it would have rescued a trade and how often it would have made a loss bigger. In Keel you can write the adds into a strategy and test them on Hyperliquid history with fees and funding.

Automate it

Trade systematically on Keel

Keel is a strategy builder for Hyperliquid. Describe an idea, backtest it with fees, slippage and funding, and run it live on Hyperliquid’s crypto perps. Start free, and connect a wallet when you’re ready to trade.

What you can do
  • Backtest any strategy with realistic fees, slippage, and funding modeled.
  • Change a parameter and run it again. Every backtest is kept.
  • Run it live on Hyperliquid with stop-losses and leverage caps.
  • Start from a sentence. Describe your idea and Keel builds a strategy you can test.
FAQ

Calculator questions

How do you calculate the average price of a crypto position?

Weight each buy by its size: add up what every fill cost (price times amount) and divide by the total amount. Buying 0.01 BTC at 54,000 and 0.01 BTC at 50,000 gives an average of 52,000. With equal dollar amounts the average sits closer to the lower price, because the same dollars buy more coin there: $1,000 at 54,000 and $1,000 at 50,000 average 51,923.08.

What does averaging down mean?

Adding to a position after the price has moved against you, so your average entry moves toward the current price. For a long it means buying more below your entry; for a short, selling more above it. A smaller move back then gets you to breakeven, but the position is bigger, so the same move against you now costs more.

Does averaging down change my liquidation price?

Yes. On isolated margin each add brings its own margin at your leverage, and the liquidation price follows the new average entry. For a long, averaging down lowers the liquidation price, but usually by less than it lowers the entry, so the distance from the current price can shrink. The calculator shows the liquidation price before and after, and the distance from the price you are adding at.

Is averaging down a good idea on a leveraged perp?

Only when it is the plan, not a reaction. Each add makes the position larger and keeps it open in a market that has already gone against you. Decide the most you will add and where the trade is wrong before you enter, and check that the last add still leaves room before liquidation. If an add would land past the liquidation price of the position before it, the calculator says so.

Can I average up, or add to a short?

Yes. Pick the side and enter any fills. Adding to a winning long above your entry raises the average, which is averaging up; for a short, adding below the entry lowers it. The same weighting applies, and the liquidation price moves with the average entry in both cases.

Should I enter sizes in USD or in coins?

Whichever matches your order ticket. A USD size is the value of the fill at its own price; a coin size is the amount. Switch between them at any time and the calculator converts each row at its own price, so the position stays the same.