Leverage and liquidation calculator

Leverage sets how big your position is for the margin you put up, and how close the liquidation price sits. Enter both and see where an isolated position would be liquidated.

The collateral on this position (isolated margin), in your account currency.

On Hyperliquid it is half the margin needed at the coin's maximum leverage, 1.25% for BTC. Binance and Bybit set it per coin and position size, and the contract's margin tier table shows it.

Long

Liquidated near 81,012.66

Price move to liquidation
18.99%
Position value
5,000.00
Size (coins)
0.05
A 1% price move
50.00, 5% of your margin

An estimate for isolated margin, before fees and funding, which both move the price closer. In cross margin the rest of your balance backs the position and moves the price further away.

To see how your leveraged trades turned out after fees and funding, start a free journal.

How it works

The formula

Your position value is the margin times the leverage. Leverage does not change what a 1% move is worth per coin. It changes how many coins the same margin holds, so each 1% move in the price is worth as many percent of your margin as your leverage.

The exchange liquidates the position when its margin plus the unrealised profit or loss falls to the maintenance margin, a small percent of the position value. Solving that for the price gives the formulas below. Without a maintenance margin, a 5x long would last until a 20% drop. The maintenance margin brings that point a little closer.

position value = margin × leverage
long liquidation = entry × (1 - 1/leverage) / (1 - maintenance)
short liquidation = entry × (1 + 1/leverage) / (1 + maintenance)

Worked example

A 5x BTC long

You put 1,000 of margin on a BTC long at 100,000 with 5x leverage. The position value is 5,000.00, which is 0.05 BTC. Each 1% move in the price is 50.00, or 5% of your margin.

With a maintenance margin of 1.25%, as on Hyperliquid for BTC, the position is liquidated near 81,012.66, after a drop of 18.99%.

At 20x the same margin holds a position worth 20,000.00, and liquidation moves up to near 96,202.53, a drop of only 3.80%. A 5x short at the same entry would be liquidated near 118,518.52.

FAQ

Questions

How is leverage calculated?

Leverage is the position value divided by the margin behind it. 1,000 of margin holding a 5,000 position is 5x. The exchange lets you choose it, up to a limit for each coin, and the position size follows from it: margin times leverage.

What is effective leverage?

Effective leverage is your total position value divided by your whole account balance, not by the margin on one position. In cross margin it is the number that matters: in an account holding 5,000, a 10x position on 1,000 of margin is worth 10,000, which is 2x effective leverage. In isolated margin, the leverage you set is the effective leverage of that position.

Why is my exchange's liquidation price different?

Fees and funding come out of the margin and move the price closer. Binance and Bybit also use a maintenance rate that rises with the position size, with a fixed deduction, so their figure differs a little on large positions. In cross margin your free balance stands behind the position and moves the price further away.

Does higher leverage cost more?

Fees and funding are a percent of the position value, so the same margin at higher leverage pays more of both. The rates do not change, but each payment is a bigger share of your margin.

Also try: Position size calculator

That was one trade. See what leverage did on all of them.

Viktury imports your trades with fees and funding, so you can see which leverage paid off.

Start free →

No card · 14 days of Edge from first trades