Why did I get liquidated before my stop loss hit?

Because your stop-loss and liquidation are two separate mechanisms. OKX's help center puts it plainly: if your maintenance margin ratio falls to the liquidation level before price reaches your stop trigger, the system liquidates without waiting for the stop. That happens when the stop sits too close to (or beyond) the liquidation price, when margin is removed after the stop is set, or when the stop doesn't trigger or fill in a fast move. Leveraged futures carry a high risk of loss.

Is a stop-loss meaningless if liquidation happens first?

No. The stop works when it sits well before liquidation and then triggers and fills.

OKX's liquidation FAQ asks why a position was forcibly liquidated even though a stop was set, and answers that the two prices are not the same thing. A stop is a conditional order. Liquidation is the exchange closing the position when the maintenance margin ratio hits its line. If the stop is the closer of the two, and it fills, you exit on the stop. If liquidation is closer, the stop never gets its turn. The stop is not useless. It is useless only for the part of the path that liquidation reaches first.

Why can liquidation come before my stop?

OKX lists the cases, and Bybit adds one more for isolated funding.

  • The stop is set too close to liquidation in a volatile market, so the maintenance margin ratio hits the line first. OKX names this case.
  • Margin is withdrawn after the stop is set, and the ratio falls through the threshold early. OKX names this case too.
  • Liquidation on OKX is based on the mark price. The same page says a TP/SL closes with a market or limit order when the market or mark price reaches the trigger. It does not, in that passage, say the stop uses the last traded price. See mark price vs last price for the difference on other venues.
  • A triggered stop-limit may not fill. OKX's TP/SL page says a TP/SL order can fail to trigger, and a triggered limit order may not fill. See stop-market vs stop-limit.
  • In isolated mode, Bybit says that if the available balance is too small to pay funding, the fee is taken from the position's initial margin and the liquidation price moves closer to the mark price.

Does liquidation cost more than my stop would have?

OKX says the entire margin portion for that position is lost, not only the loss a manual close would have taken, and it lists a forced liquidation fee plus any unsettled funding that had built up.

A stop that fills at the trigger loses the planned distance, before fees and slippage. Liquidation, on OKX's description, takes the margin that was backing the position and then adds those extra charges. That is why a liquidation can be a larger hit than the stop you thought you had. The page also says OKX does not run a loss-sharing mechanism that socializes that hit across other traders. Read the current article before you rely on an older description of insurance.

How do I keep my stop ahead of liquidation?

Size from the stop, then choose leverage so liquidation sits well beyond the stop.

Illustration only; numbers are placeholders, not a track record.

Long at 60,000, stop at 59,400, which is 1% away. At 50x, initial margin is 2% of position value, so liquidation sits less than 2% from entry, and maintenance margin pulls it closer still. The stop at 1% can be on the wrong side of that liquidation price. At 10x the initial margin is 10% of position value, which leaves more room past a 1% stop, before maintenance margin is applied. These percents are initial margin only. They are not an exchange's liquidation formula.

Check the exact price with the liquidation price calculator. Size the order with the crypto position size calculator with leverage.

What should I check after a liquidation?

Check the stop's trigger type, the margin mode, any margin you removed, and the funding records.

A stop-limit that triggered and did not fill is a different event from a stop that was never reached. A margin withdrawal after the stop was set is a different event from a stop that was placed inside the liquidation price on purpose. Write down which one it was before you change leverage. Related: how liquidation price is calculated, adding margin to avoid liquidation, and isolated vs cross margin.

What are the short answers?

Why did I get liquidated before my stop loss hit?

Because the stop and liquidation are separate. OKX says if the maintenance margin ratio reaches the liquidation line before the market price reaches the stop trigger, the system liquidates without waiting for the stop.

Is the liquidation price the same as a stop loss?

No. OKX says they are independent. A stop is an order you set. The liquidation price is calculated from margin, size and the maintenance margin ratio, whether or not a stop exists.

Does a stop-loss prevent liquidation?

Only if it triggers and fills before the liquidation level is reached. OKX says a stop does not, by itself, stop a forced liquidation that comes first, and a triggered limit order may not fill.

How far should my stop be from the liquidation price?

Well before it. The gap depends on leverage, margin mode and maintenance margin, so check the exact price with a liquidation calculator instead of using a fixed distance.

Leveraged futures carry a high risk of loss.

Sources

Read November 19, 2026.

  • OKX, "How does liquidation work in futures trading?", updated Aug 5, 2026: OKX liquidation FAQ
  • OKX, TP/SL in futures, updated Aug 26, 2026: OKX TP/SL
  • Bybit, "Funding Fee Calculation", last updated 2026-05-12: Bybit funding

Last reviewed by Ric Mescallado