Risk mechanics · Non-custodial

How to Avoid Getting Liquidated on Perp Trades

Open Trending →

Liquidation is a mechanical margin threshold, not a market judgment

If you’ve been liquidated before, you’ve probably wondered if the market was targeting your position, or if you were just “wrong” about the trade. The reality is simpler: liquidation is triggered by a fixed mathematical rule, not a human decision or a verdict on your thesis.

When you open a perpetual futures position, you put up initial margin as collateral for the position. The venue requires a smaller minimum amount — maintenance margin — to stay in the position at all times. Liquidation triggers automatically the moment your remaining margin (initial margin minus unrealized losses) falls to the maintenance margin level. There is no review, no exception for strong long-term views, and no consideration of whether the price might reverse minutes later. It is a safeguard for the venue to prevent bad debt, not an opinion on your trade.

This is the core reason traders get liquidated even when their directional view ends up being correct: a short-term adverse move eats through their allocated margin faster than expected, hitting the maintenance threshold before the trend resumes.

Your liquidation buffer is set by position size and margin together

Your “liquidation buffer” is the amount of adverse price movement your position can absorb before hitting the liquidation price. A common misconception is that this buffer is determined solely by leverage, but it is actually set by the combination of your position size and the margin you allocate to the trade.

Two traders can enter the same market at the same price, with the exact same directional view, and have wildly different liquidation buffers. For example:

Leverage does not change the market’s volatility — it changes how much of that volatility your margin can absorb. Higher leverage increases your position size for the same amount of margin, which shrinks your liquidation buffer. Lower leverage, or a smaller position size relative to your allocated margin, increases it.

The most consistent mistake traders make is picking a leverage level first, then sizing their position, instead of deciding how much adverse movement they need to survive, then working backward to set position size so the liquidation price is beyond that threshold.

Stop-loss vs. liquidation price: one is your exit, the other is a failure state

A stop-loss and a liquidation both close your position, but they serve entirely different purposes, and confusing the two is a fast path to repeated liquidations.

A liquidation is the venue’s forced exit. It closes your position to recoup the margin the venue is owed, and it typically leaves you with little to no of the margin you allocated to the position, plus possible additional liquidation fees. It is not a controlled exit, and you have no say over the exact price it executes at.

A stop-loss is an order you place to close your position at a pre-selected price above (for shorts) or below (for longs) your entry, before you reach the liquidation level. When triggered, it closes your position at the next available price, preserving the remaining margin that hasn’t been lost to adverse movement.

The key distinction: a stop-loss is a choice you make about how much you’re willing to lose on the trade. Liquidation is what happens when you no longer have enough margin to keep the position open, and the venue takes over the exit.

Stops do not ensure you’ll avoid liquidation, though. If you set your stop too close to the liquidation price, a fast price move (a gap during high volatility) can skip right past your stop and hit liquidation before the stop can execute. Moving your stop further away as the trade goes against you, to avoid taking a loss, also erodes the buffer between the stop and liquidation until there’s no room left. A basic rule of thumb: your stop should be far enough from the liquidation price that even a volatile wick won’t skip past it, and you should never move a stop away from your entry in a losing trade.

The hidden liquidation risk: stops that don’t fire when you’re offline

If you’ve ever set a stop-loss and still got liquidated, this is likely the reason: not all stop orders work the same way, and many fail exactly when you need them most.

Stops that only exist locally on your device — in a browser tab you closed, or a mobile app you’ve swiped away — can’t trigger at all. Stops hosted on a platform’s central servers can fail if those servers go down during periods of extreme volatility, or if there’s an outage between you and the platform. This is the failure mode nobody plans for: you set a stop, close the app, go to sleep, and wake up to a liquidation because the stop never fired. The market moved fast, your stop was inaccessible, and the position hit the liquidation threshold before you could intervene.

The fix for this specific risk is using resting orders that live independently of your device or the platform’s frontend. On perp venues built on blockchains, on-chain resting TP/SL orders are written directly to the network’s state, so they trigger automatically when the price hits the set level, even if the app is closed, your device is off, or you have no internet. For example, Trending’s TP/SL orders rest on-chain and trigger without the app open, removing this specific point of failure.

Note: On-chain stops still do not ensure protection against extreme price gaps that skip straight past the stop price to the liquidation level, so they are not a replacement for careful position sizing. For traders who rely on more complex exit logic than basic take-profit and stop-loss orders, a platform with a broader set of order tools may be a better fit, even if those orders carry the risk of not firing during frontend or server outages.

Size your position with the liquidation level visible before you confirm

One of the most avoidable liquidation triggers is opening a position without knowing where the liquidation price is first. Many perp interfaces show leverage and position size prominently, but tuck the liquidation price in a secondary menu or only display it after the trade is already open. By then, if the market has moved even slightly, you might already be closer to liquidation than you intended.

The solution is to always check the liquidation price before you confirm the order, and adjust your position size or margin allocation until the liquidation level is far enough away to match your desired buffer. If you’re planning to use a stop-loss, make sure the stop price is set at your pre-determined risk level, and that there’s a clear gap between the stop and the liquidation price to account for slippage or volatile wicks.

Some platforms, like Trending, display the liquidation price directly in the order setup screen before you confirm the trade, so you can tweak size and margin in real time to get the buffer you want. Since positions can be opened with $20 of margin, you can practice sizing positions and watching how the liquidation level shifts without committing a large amount of capital to the trade. That said, if you want to test position sizing with less than $20 of margin, you will need to use a platform with a lower entry minimum.

This upfront check eliminates the surprise of discovering your liquidation price is too close after you’re already in the position — a common trigger for impulsive adjustments (like moving stops further away) that lead to avoidable liquidations.

Try it on the chart →

Trending — visual perpetual trading. Home · perp dex comparison · hyperliquid alternative · how to trade perpetuals on chart · All guides

Trending does not provide investment advice. Trading perpetual contracts involves market and leverage risk. You are responsible for wallet safety and local regulatory compliance.