Home/Blog/Avoid Liquidation

How to Avoid Liquidation in Crypto Futures

Liquidation is the most brutal feature of crypto futures. Your position doesn't just lose — it gets forcibly closed at the worst possible price and you lose all your margin. Here's exactly how it works and how to never hit it.

What liquidation actually is

When you trade futures on Bybit or OKX with leverage, you post margin as collateral. The exchange lends you the rest. If your trade moves against you far enough that your margin is almost gone, the exchange automatically closes your position — that's liquidation.

You don't get a second chance. You don't get to average down. The position is gone and so is your margin.

The exact price at which this happens is called the liquidation price. Every futures position has one. It's calculated before you open the trade.

Key insight: Liquidation doesn't mean you lost everything in your account. It means you lost the margin allocated to that specific position. With isolated margin, the rest of your account is safe. With cross margin, it can drain your entire balance.

How the liquidation price is calculated

The exact formula varies slightly by exchange, but the principle is the same: your position liquidates when your unrealised loss eats through your maintenance margin.

Simplified liquidation price (Long)
Liquidation Price = Entry × (1 − (1/Leverage) + Maintenance Margin Rate)

For a 10x long with 0.5% maintenance margin:
Entry $65,000 → Liq. Price = $65,000 × (1 − 0.1 + 0.005) = $58,825
Use Bybit's or OKX's built-in liquidation calculator for exact numbers — they factor in fees and funding.

For a short position, liquidation is above your entry price:

Simplified liquidation price (Short)
Liquidation Price = Entry × (1 + (1/Leverage) − Maintenance Margin Rate)

The key variable is leverage. Higher leverage = liquidation price much closer to entry.

LeverageEntry (Long)Approx. Liq. PriceDistance from entry
2x$65,000$32,825~49%
5x$65,000$52,325~20%
10x$65,000$58,825~9.5%
20x$65,000$61,913~4.7%
50x$65,000$63,765~1.9%

At 50x leverage, a 1.9% move against you wipes your margin. That's a normal hourly candle on BTC.

Examples on Bybit and OKX

Example — 10x long on Bybit

Bybit BTC/USDT Perpetual — Isolated Margin
Account balance$1,000
Margin (isolated)$200
Leverage10x
Position size$2,000
Entry price$65,000
Liquidation price~$58,825
Stop loss (recommended)$63,700 (2% below entry)
If stop hits: loss~$40 (2% of $2,000)
If liquidated: loss$200 (full margin)

The stop loss at $63,700 costs you $40. Liquidation at $58,825 costs you $200. A stop loss is 5x cheaper than liquidation in this example.

Tip: On Bybit, you can see the liquidation price before you confirm any order. Always check it — if it's within normal volatility range, you're overleveraged.

Cross margin vs isolated margin

This is the most important decision for avoiding full account wipe-outs.

Isolated margin
RiskOnly the margin you allocate to this position
Liquidation impactRest of account is safe
Best forMost traders — controllable risk
Cross margin
RiskYour entire account balance backs the position
Liquidation impactCan drain your full account
Best forHedging strategies — not for directional trades

Warning: Most beginners default to cross margin without realising it. Check your margin mode before opening any position on Bybit or OKX. Switch to isolated for directional trades.

7 ways to avoid liquidation

  • Always use a stop loss. Place it before your liquidation price. Your stop loss is your real exit — liquidation is the emergency exit you never want to reach.
  • Use isolated margin. Caps your maximum loss at the margin you allocate. Cross margin can spiral into a full account wipe.
  • Lower your leverage. There is no rule that says you must use 10x or 20x. 2x–5x gives you significantly more room.
  • Size positions correctly. Use our Position Size Calculator — it shows your implied leverage and tells you if you're overexposed.
  • Watch funding rates. On perpetual contracts, funding is charged every 8 hours. A long position in a heavily bullish market can face high positive funding — this slowly erodes margin.
  • Don't add margin to losing positions. "Saving" a losing trade by adding margin just moves the liquidation price further and increases your maximum loss.
  • Check your liquidation price before confirming. Both Bybit and OKX show it in the order panel. If it's within a normal trading range for the asset, reduce size or leverage.

Liquidation engines and insurance funds

When a position is liquidated, the exchange's liquidation engine takes over. It attempts to close your position at the best available price. If the market moves too fast and the position can't be closed above the bankruptcy price, the exchange's insurance fund covers the difference.

If the insurance fund is insufficient — in extreme market conditions — the exchange may use auto-deleveraging (ADL), which forcibly closes profitable positions of other traders to cover the loss. Both Bybit and OKX maintain large insurance funds specifically to avoid ADL in most scenarios.

Both Bybit and OKX publish their insurance fund balances publicly. Bybit's fund has consistently remained above $300M. This provides meaningful protection against socialized losses in most market conditions.

FAQ

Can I get liquidated even with a stop loss? +
In theory yes — if the market gaps through your stop loss price (common during news events or weekend flash crashes). In practice, stop losses protect you in the vast majority of situations. Gap risk is a reason to keep position sizes reasonable.
What happens to my unrealised profit if I get liquidated? +
If you have multiple positions and one is liquidated, your unrealised profits on other positions are not affected (in isolated margin mode). In cross margin mode, unrealised profits do count toward your margin balance.
Does Bybit warn you before liquidation? +
Bybit sends email and app notifications when your margin ratio falls below a threshold. However, in fast-moving markets, the warning and liquidation can happen within seconds. Don't rely on notifications — use stop losses.
What is the maintenance margin rate on Bybit and OKX? +
It varies by asset and position size tier. For BTC and ETH perpetuals, it's typically 0.5% at lower tiers. Larger positions face higher maintenance margin requirements. Check the exchange's risk limit table for exact figures.

Calculate your position size & implied leverage

See exactly how far your liquidation price is before you trade. Free, no sign-up.

Open Position Size Calculator →
BY
Trade on Bybit
Low fees · Up to $30,000 bonus
Sign Up Free →
OKX
Trade on OKX
Top 3 exchange · 300+ coins
Sign Up Free →
TV
TradingView Pro
Pro charts · 100+ indicators
Get $15 OFF →