LaoLong

Risk management

Leverage, liquidation and position sizing in crypto, with worked examples

How leverage works, how liquidation price is calculated on Hyperliquid, and how to size positions so one bad trade can't wipe out your account.

Leverage lets you control a position larger than your deposit. Liquidation is the forced close that happens when losses eat through your margin. Position sizing is what keeps you safe: decide how much you're willing to lose on a trade first, then size the position so a stop-loss caps the loss there. On Hyperliquid, a 10x isolated BTC long is liquidated after a drop of about 8.9%. Below are the exact formulas, worked examples and a sizing method.

The short version

  • Leverage = position size ÷ your margin. 10x means $100 of margin controls $1,000 of BTC.
  • Liquidation distance ≈ 1 ÷ leverage − maintenance margin. The higher the leverage, the less room for error.
  • Risk is set by size and stop distance, not by leverage. Risk per trade = position size × distance to stop.
  • The 1–2% rule: risk a small, fixed share of the account per trade, so a losing streak is survivable.
  • Leverage hurts most when everyone uses it. On 10–11 October 2025, about $19 billion of positions were liquidated across crypto, the largest event on record (Datawallet, Coinglass data).

How leverage works

When you open a leveraged position, the exchange locks a slice of your money as initial margin:

initial margin = position size × price ÷ leverage

That is Hyperliquid's own formula (docs: margining). Profit and loss are calculated on the full position. So on a 10x position a 1% price move is a 10% change in your margin, in either direction.

Regulators have seen what this does to retail traders. When the EU's securities regulator ESMA restricted contracts for difference in 2018, it cited national studies showing that 74–89% of retail accounts lose money on such leveraged products, and it capped retail leverage at between 30:1 and 2:1 depending on the asset (ESMA, 27 March 2018).

How liquidation works on Hyperliquid

You are liquidated when your equity falls below the maintenance margin. On Hyperliquid, "the maintenance margin is half of the initial margin at max leverage, which varies from 3-40x", or 1.25% to 16.7% of position value (docs: liquidations).

The docs give the liquidation price as:

liq_price = price − side × margin_available ÷ position_size ÷ (1 − l × side)

where side is 1 for a long and −1 for a short, l is 1 ÷ maintenance leverage, and margin_available is your margin minus the maintenance requirement.

Two details matter:

  • Cross margin: your whole cross account backs the position. The liquidation price doesn't depend on the leverage you set, but a liquidation can take the entire cross balance.
  • Isolated margin: only the margin assigned to that position is at stake, and the liquidation price depends directly on your leverage.

Worked example: BTC long, isolated margin

Assume BTC at $100,000, a $1,000 position (0.01 BTC), and a 40x maximum leverage for BTC, so maintenance margin is 1.25% ($12.50 at entry).

Your leverage Margin posted Liquidation price Price drop to liquidation
2x $500 ≈ $50,633 ≈ 49.4%
3x $333 ≈ $67,511 ≈ 32.5%
5x $200 ≈ $81,013 ≈ 19.0%
10x $100 ≈ $91,139 ≈ 8.9%
20x $50 ≈ $96,203 ≈ 3.8%
40x $25 ≈ $98,734 ≈ 1.3%

Calculated with the formula above. Real numbers also depend on fees, funding and the asset's margin tier. For a short, the same distances apply upward.

Check the 10x row: at $91,139 the loss is 0.01 × $8,861 = $88.61, leaving $11.39 of equity, which equals the maintenance margin at that price (1.25% × $911.39).

A 4% intraday swing is ordinary in crypto, even for BTC. At 20x or 40x, that kind of normal noise is enough to close you out.

Position sizing: start from the loss, not the leverage

The professional order of operations:

  1. Choose your risk per trade as a percentage of the account, for example 1%.
  2. Find the stop: the price where your trade idea is wrong, based on the chart and not on how much you want to make.
  3. Compute the size:

position size = (account × risk %) ÷ distance to stop %

  1. Then pick leverage only to make sure the margin fits and the liquidation price sits well beyond the stop.

Worked example

Account $500, risk 1% = $5. You buy ETH with a stop 4% below entry.

  • Position size = $5 ÷ 4% = $125.
  • At 2x leverage, that ties up $62.50 of margin. Liquidation is about 49% away, far beyond the 4% stop.
  • If the stop is hit, you lose $5 (plus fees), 1% of the account.

Compare a trader who puts the whole $500 in at 10x ($5,000 position) with the same 4% stop: the loss is $200, or 40% of the account, on one trade. Same coin, same stop, 40 times the risk.

Why 1–2% per trade

Risk per trade Account after 10 straight losses
1% 90.4% left
2% 81.7% left
5% 59.9% left
10% 34.9% left

Losing streaks happen to every strategy. Small fixed risk keeps you in the game long enough for an edge to show up. And the deeper the hole, the harder the climb: a 50% loss needs a 100% gain to recover.

The hidden cost: funding on leveraged positions

Perpetual futures charge or pay funding on the full position size. On Hyperliquid funding is paid hourly and includes a fixed interest component of 0.01% per 8 hours (docs: funding). Funding of 10% a year on the position is 50% a year on your margin at 5x. Long holds at high leverage bleed even when the price goes nowhere.

Five rules that prevent most blow-ups

  1. Every position has a stop that rests on the exchange, not just in your head or your bot's memory.
  2. Use isolated margin for single trades, so one position can't drain the account.
  3. Cap total exposure. Five altcoin longs are often one trade, because altcoins tend to fall together.
  4. Keep liquidation far beyond the stop. If the liquidation price is closer than your stop, the position is too large.
  5. Reduce size after drawdowns instead of increasing it to win the loss back.

How LaoLong AI Trading Bot handles risk

LaoLong AI Trading Bot trades crypto perpetual futures on Hyperliquid for you and builds these rules into the system rather than leaving them to willpower:

  • Trades on the AI's calls use isolated margin with a stop order resting on Hyperliquid itself, so a single trade's loss is capped at the exchange level.
  • The trend book has an emergency stop checked every minute.
  • An AI risk officer reads the market and the news around the clock and switches the account between Normal, Caution and Defense. It can filter new entries, hedge the account with BTC, and close a trade that became dangerous before its stop. It lowers risk; it does not prevent every loss.
  • The trading key cannot withdraw funds, and withdrawals go only to allow-listed destinations under an hourly cap.

We publish our record the same way we'd want any system judged: 214 of our AI's trade calls closed in profit, with a win rate of 78.1% for the public calls as of 17 Nov 2026, 15:34 UTC, and every losing call listed too. These are price moves without leverage. As this guide shows, the size of the losses matters as much as the count of the wins. The methodology page explains how each figure is counted.

Bottom line

Leverage decides how close liquidation is. Position size and stop distance decide how much you lose. Set the loss first, size the trade to it, and keep liquidation far away. That order is what keeps a trading account alive.

Questions and answers

What is a liquidation in crypto trading?

A forced close of a leveraged position when your margin falls below the maintenance requirement. On Hyperliquid maintenance margin is half the initial margin at the asset's maximum leverage.

How far can the price move before I am liquidated?

Roughly 1 divided by your leverage, minus the maintenance margin. For an isolated BTC long on Hyperliquid at 10x, about 8.9%; at 20x, about 3.8%; at 40x, about 1.3%.

How much should I risk per trade?

A common rule is 1–2% of the account per trade, meaning the loss if the stop is hit. Position size then equals the amount at risk divided by the distance to the stop.

Does higher leverage mean higher risk?

Leverage sets how much margin a position ties up and how close liquidation is. The actual risk is position size times the distance to your stop. High leverage with a small position can be less risky than low leverage with a huge one, but high leverage leaves almost no room for error.