# Canonical: https://www.uddalak.xyz/hyperliquid-academy/article/10-leverage-margin-long-short
# Author: Uddalak Das
# Last source: https://www.uddalak.xyz/hyperliquid-academy/article/10-leverage-margin-long-short

---
title: "Long, Short, Leverage, and Margin"
description: "The four concepts that determine how a leveraged trading position behaves."
track: "Foundations"
level: "Beginner"
primary_icp: ["trader", "crypto-curious professional"]
secondary_icp: ["student"]
reading_time: "5 min"
last_reviewed: "2026-09-07"
---

# Long, Short, Leverage, and Margin

Leveraged trading becomes easier to reason about when direction, position size, collateral, and liquidation rules are kept separate.

A long or short tells you which direction earns money. Position size tells you how much market exposure you control. Margin is the collateral supporting that exposure. Leverage is the relationship between position size and collateral.

```mermaid
flowchart LR
    A[Collateral] --> B[Position size]
    B --> C[Leverage]
    C --> D[Market move]
    D --> E[Profit or loss]
    E --> F[Account equity changes]
    F --> G{Maintenance margin satisfied}
```

## Long and short define direction

A long gains when the market rises relative to the entry price. A short gains when the market falls.

If a trader holds a $5,000 long and the market rises 2%, the position gains about $100 before fees and funding. A $5,000 short loses about $100 from the same move.

The directional PnL comes from the position notional. Leverage changes how large that PnL is relative to the collateral supporting it.

## Leverage is a ratio

If $1,000 of collateral supports a $5,000 position, the position is using about 5x leverage.

The market still only moved 2% in the earlier example, but a $100 PnL change is now 10% of the $1,000 collateral. This is why leverage increases both capital efficiency and sensitivity to adverse moves.

It does not multiply the underlying market move. It makes the same notional movement larger relative to your equity.

## Initial margin lets you establish exposure

Initial margin is the amount of collateral required to open or maintain a chosen position size under the market's leverage rules.

The maximum leverage shown for a market is not always available for every position size. [Margin tiers](/hyperliquid-academy/article/61-hyperliquid-margin-tiers) can require larger positions to hold more collateral.

For automated systems, this means order sizing should use the post trade position and applicable tier rather than assuming the small position leverage limit applies indefinitely.

## Maintenance margin determines the liquidation boundary

Maintenance margin is the lower requirement that an open account or position must continue to satisfy. If equity falls below that threshold, liquidation can begin.

The exact calculation depends on position mode, account mode, size tiers, current mark price, and other open risk. A displayed liquidation price is therefore an estimate based on current state rather than a permanent property of the trade.

[How Liquidations Work on Hyperliquid](/hyperliquid-academy/article/13-liquidations) explains the process after the maintenance boundary is crossed.

## Cross and isolated margin decide what collateral is shared

Cross margin lets positions within the relevant margin scope share account equity. A profitable position can help support another losing position, but a large loss can also consume collateral that was supporting the rest of the account.

Isolated margin assigns collateral to one position, creating a clearer loss boundary around that trade.

This is separate from [Standard, Unified, and Portfolio Margin account modes](/hyperliquid-academy/article/11-account-modes), which define the wider balance architecture of the account.

## Leverage should be treated as risk speed

A practical mental model is to think of leverage as the speed at which market movement, funding, fees, and slippage consume the account's buffer.

A position with ample collateral has more room to survive volatility. A highly leveraged position can be directionally correct over the longer horizon and still be liquidated by a short adverse move before that thesis plays out.

## Continue reading

Read [Cross Margin vs Isolated Margin](/hyperliquid-academy/article/12-cross-vs-isolated-margin) for collateral boundaries and [Initial Margin vs Maintenance Margin](/hyperliquid-academy/article/62-initial-margin-vs-maintenance-margin) for a deeper treatment of the two margin thresholds.

## Sources

- https://hyperliquid.gitbook.io/hyperliquid-docs/trading/margining
- https://hyperliquid.gitbook.io/hyperliquid-docs/trading/liquidations
- https://hyperliquid.gitbook.io/hyperliquid-docs/trading/account-abstraction-modes
