Leverage calculator
The highest leverage at which your stop is hit before liquidation, for a BTCUSDT perpetual on Bybit, isolated margin.
Stop: 5.00% from entry
Maximum leverage
18x
At 18x your stop at 64,600 is hit before the liquidation price of 64,446.6.
The limit is 1 ÷ (5.00% + 0.33%) = 18.76x. Leverage has to stay below it.
The live account link is a plain link to Bybit. We earn nothing from it today. Leveraged trading can lose your entire margin.
How it is calculated
On isolated margin, price can move against a position by 1 ÷ leverage minus the maintenance margin rate before the exchange closes it. The stop is reached first only while that distance is larger than the distance to the stop:
stop distance = |entry price − stop price| ÷ entry price maximum leverage < 1 ÷ (stop distance + maintenance margin rate)
- Entry price: The average price at which the position is opened.
- Stop price: The price at which your stop order closes the position. Below the entry for a long, above it for a short.
- Stop distance: How far the stop is from the entry, as a share of the entry price.
- Maintenance margin rate: The margin the exchange requires you to keep in the position, as a share of its value. For BTCUSDT on Bybit it is 0.33% in risk tier 1, which covers positions up to 300,000 USDT (Bybit public API, 2026-11-18).
Where it comes from: the distance to liquidation is 1 ÷ leverage − maintenance margin rate. Requiring it to be larger than the stop distance and solving for leverage gives the second line. The sign is “less than”, not “at most”: at exactly that leverage the liquidation price and the stop are the same price.
The big figure is the largest whole number below the limit, and never more than the 150x Bybit allows in risk tier 1.
What this leaves out: a stop is an order, not a guarantee. In a fast market it can fill beyond its price, and Bybit decides liquidation on the mark price while your stop triggers on the price you set it to watch. The simplified formula also leaves out the fee for closing and funding paid while the position is open. Leave a gap between the stop and the liquidation price, and check the figures your exchange shows before you trade.
Worked examples
Example 1: a long with a stop 5.00% below entry
Long, entry 68,000 USDT, stop 64,600 USDT, maintenance margin rate 0.33%.
stop distance = |68,000 − 64,600| ÷ 68,000 = 5.00% limit = 1 ÷ (5.00% + 0.33%) = 18.76 liquidation price at 18x = 64,446.6
Use at most 18x. At 18x the liquidation price is 64,446.6, below the stop at 64,600. At 19x it would be 64,645.5, above the stop, so the position would be liquidated first.
Example 2: a short with a stop 2.00% above entry
Short, entry 68,000 USDT, stop 69,360 USDT, maintenance margin rate 0.33%.
stop distance = |68,000 − 69,360| ÷ 68,000 = 2.00% limit = 1 ÷ (2.00% + 0.33%) = 42.92 liquidation price at 42x = 69,394.6
Use at most 42x. At 42x the liquidation price is 69,394.6, above the stop at 69,360. At 43x it would be 69,357.0, below the stop, so the position would be liquidated first.
Common mistakes
Choosing the leverage before the stop
The stop belongs where the trade idea is proven wrong. Place it first; the leverage that still fits follows from it, not the other way round.
Forgetting the maintenance margin
A stop 5.00% away does not allow 1 ÷ 5.00% = 20x. With the maintenance margin rate of 0.33% the limit is 18.76x.
Using the limit itself
At the limit the liquidation price and the stop are the same price. A small difference between the mark price and the last trade is then enough to be liquidated instead of stopped out.
Reading leverage as the risk
Leverage sets where the liquidation price sits and how much margin is locked. What you lose at the stop is set by the position size, not by the leverage.