Skip to content
← Learn

Leverage, Margin, and Liquidation

The same position can gain or lose very different percentages of your capital. Margin explains why.

A receding sequence of upright and falling geometric slabs.

In the first lesson, a $2,000 long position gained $100 when its contract price rose 5%. Now suppose you used $400 of your own capital to support that position. The same $100 gain is 25% of your capital. The position has amplified the effect of the price move on your account.

That relationship is leverage. It works in both directions: a 5% decline produces a $100 loss, using up a quarter of the same $400. The market has moved by 5%; the larger exposure relative to your capital explains the larger percentage change in your money.

Margin is the capital supporting the promise

A derivative creates obligations between traders. If one side earns a price profit, the other side owes a corresponding price loss before costs. The venue needs confidence that losing accounts can pay. It therefore requires collateral, called margin, while the position is open.

Margin is not a purchase price or a fee that disappears when you enter. It supports the position and absorbs losses. Equity is the collateral balance plus the current profit or loss, after applicable charges. Whatever equity remains after the position is closed and obligations are settled belongs to the account, subject to withdrawal rules. CME calls this a performance bond; crypto perp venues apply their own collateral and risk rules.

Leverage = position exposure / supporting equity.

At entry, $2,000 / $400 = 5×. If you support the same position with $1,000, it starts at 2×. Both positions still gain or lose $20 for each $1 price move because both hold 20 units. Adding capital changes the buffer, while changing quantity changes the dollar exposure.

You can also hold capital constant and increase the position. With $400, moving from $800 to $2,000 of exposure raises initial leverage from 2× to 5×. A 5% price move then changes the gross result from $40 to $100. This is the sense in which leverage lets existing capital support more trading exposure.

Leverage changes after entry

Keep the 20-unit long entered at $100, with $400 of collateral. Ignore costs for now. If the price falls to $96, the position loses $80. Supporting equity falls to $320, while current notional becomes $1,920.

MeasureAt $100At $96
Notional$2,000$1,920
Equity$400$320
Effective leverage5×6×

The account became more leveraged without another order. Its equity fell faster than its exposure. Reading the original leverage setting alone misses that change.

Why liquidation happens before the money is gone

Initial margin is required to open the position. Maintenance margin is the minimum equity required to keep it open. If equity becomes insufficient, the venue can reduce or close the position through liquidation.

The purpose is to close the exposure while enough collateral remains to pay losses and execute the exit. Waiting until equity reaches zero would leave no room for the price to move while the order is being filled. Unpaid losses could then reach the venue's backstop resources or other market participants.

Consider a hypothetical maintenance requirement of 5% of current notional. At a price of $84, our long has lost 20 × $16 = $320, leaving $80 of equity. Its current notional is $1,680, requiring $84 of maintenance margin. The account has breached the requirement even though it still has a positive balance. Actual venues use their own schedules; this is a teaching example.

Hyperliquid's liquidation process first attempts to close exposure through its order book and can use a backstop when that is insufficient. Risk checks use a mark price, a calculated price for valuing the position, which can differ from the last trade. Liquidation is a safeguard against unpaid obligations; it cannot guarantee solvency under every possible market move.

Isolated and shared collateral

With isolated margin, collateral is assigned to a particular position. With cross margin, eligible positions share a collateral pool. If one of two trades sharing $1,000 loses $300, the pool has $700 left before other changes. The second trade can therefore have less financial support even if its own price has not moved.

The scope of a pool depends on the account mode and venue. Hyperliquid's margin rules explain those boundaries. Find the balance actually supporting your position, rather than assuming every asset displayed in an app is available as collateral.

Reducing quantity lowers the dollars gained or lost on each price move; adding eligible collateral increases the buffer without changing that exposure. An exit based on your own loss tolerance usually needs to come before the venue's liquidation threshold. The venue's priority is settling obligations, while your trading plan should reflect why you wanted the position in the first place.

Try the calculation: The 20-unit long falls from $100 to $95. Starting collateral was $400. What are the remaining equity and effective leverage?

Show the calculation

The loss is 20 × $5 = $100. Equity is $300 and notional is $1,900. Effective leverage is $1,900 / $300, or about 6.33×, before costs.

Funding and Trading Costs ↗Why funding connects the perp to its reference, and how fees and the spread change the result.