Cross margin vs isolated margin on Hyperliquid: one shared margin pool feeding many positions versus separate sealed capsules each holding its own margin

How to switch to isolated margin on Hyperliquid

  1. Open the coin with no position in it. On app.hyperliquid.xyz/trade pick the market, for example BTC-USDC. The mode is set per coin and the exchange rejects a change while that coin has an open position ("Cannot switch leverage type with open position."), so close the position first if you hold one.
  2. Click the Cross button above the order form, choose Isolated, press Confirm. The window is titled "BTC Margin Mode" and shows the app's own description of each mode; the app then confirms "Using isolated margin mode". Back to cross works the same way.
  3. Set leverage, then read the two numbers under the form. The button next to it (for example "20x") opens Adjust Leverage. On isolated, leverage decides how much margin is locked, so check Liquidation Price and Margin Required before you place the order. Once the position is open, Adjust Margin adds or removes margin to move the liquidation price.

These steps need a funded Hyperliquid account. If you do not have one yet, join with code HOLYGRAIL first: 4% off trading fees on your first $25M of volume. The code has to be on the account before it passes $10,000 of volume, and joining through the link sets it for you.

Open Hyperliquid with HOLYGRAIL →

We earn a commission when you sign up through our links; it never raises your fees.

Key takeaways

  • Cross margin: one shared pool. More room before liquidation and PnL offsets between positions, but a liquidation can take every cross position and the whole cross balance.
  • Isolated margin: one position, one budget. The loss is capped at the margin you assign and other positions cannot move its liquidation price, but it is liquidated after a smaller move.
  • Which to use: isolated for beginners, high leverage, new tokens and anything you won't watch; cross for hedges, basis trades and low-leverage books you manage. You can use both in one account.
  • On Hyperliquid cross is the default. Maintenance margin is half the initial margin at max leverage (BTC 1.25%). A 40x isolated BTC long is liquidated about −1.27% from entry, a 10x one about −8.86%. You cannot switch the mode of an open position (steps above).

First, the two words both modes rely on. Margin is the collateral you post to open a leveraged position. The initial margin is what it takes to open (position value ÷ leverage). The maintenance margin is the smaller amount the position must keep; fall below it and the exchange liquidates. The margin mode answers one question: which of your money counts toward that maintenance margin?

1. What is cross margin?

With cross margin, every position in cross mode draws on one shared pool: your available balance. The exchange compares your total account value, including unrealized profit and loss on all cross positions, with the total maintenance margin of those positions. Liquidation starts only when the whole account can no longer cover it.

Advantages

  • More room before liquidation. Idle balance stands behind every position, so a trade survives a bigger move.
  • PnL offsets. A winning leg supports a losing one, which is what hedges and pair trades need.
  • Capital efficiency. You don't park a separate buffer in each trade; unrealized profit can margin new positions.
  • Less babysitting per position. No need to top up individual trades.

Risks

  • The whole balance is at stake. A liquidation can take all cross positions and all cross margin.
  • Cascading liquidations. One loser pulls every other cross position's liquidation price closer, and correlated positions fall together.
  • Hidden leverage drift. As losses shrink equity, effective leverage rises without you clicking anything. The leverage calculator shows your effective account leverage and the cross liquidation move for your equity.
  • Harder to read. The liquidation price of a position keeps moving with the rest of the account.

2. What is isolated margin?

With isolated margin, you give one position its own budget. Only that margin, plus the position's own PnL, backs the trade. If the price reaches the liquidation level, the exchange closes that position and at most the isolated margin is lost. The rest of your balance and your other positions are untouched.

Advantages

  • Capped loss. The worst case is the margin you assigned.
  • A fixed liquidation price. Other positions cannot move it, so you can plan a stop inside it.
  • Clean experiments. A new token or a high-leverage idea cannot blow up the rest of the account.
  • Adjustable. You can add margin to push the liquidation price away, or remove excess.

Risks

  • Liquidated sooner. At the same leverage, less collateral stands behind the trade.
  • No help from winners. Profit elsewhere in the account does not protect it.
  • More management. Each position needs its own margin decision.
  • The top-up trap. Adding margin again and again to a loser turns it into cross margin with extra steps.

3. Isolated vs cross margin: side-by-side

Cross marginIsolated margin
Collateral scopeYour whole available balance, shared by all cross positionsOnly the margin assigned to that position
Liquidation triggerTotal account value falls below the total maintenance margin of all cross positionsThe position's own margin (plus its PnL) falls below its maintenance margin
Most you can loseThe whole cross balance and every other cross positionThe isolated margin you assigned
PnL offsettingYes, winners support losersNo, each position stands alone
Room before liquidation (same leverage)More: idle balance countsLess: only the assigned margin counts
Capital efficiencyHighLower (each trade holds its own buffer)
Management effortWatch one account numberManage margin per position
Cascading-liquidation riskHigh: one loser can take down the restContained to the position
Adding / removing marginDeposit to add; locked initial margin cannot be withdrawnAdd or remove per position (within limits)
Best forHedges, basis trades, low-leverage books you watchBeginners, high leverage, new tokens, unattended trades

None of this is specific to Hyperliquid. Binance, Bybit, Bitget and most perp DEXs offer the same Cross / Isolated switch, and the trade-off in this table applies on all of them. What differs by venue is the maintenance rate and the liquidation procedure, so take those numbers from each exchange's own documentation.

4. Same trade, two modes: a dollar example

Take one account with $2,000 and one trade: a long of 0.1 BTC at $84,000 ($8,400 position) at 10x leverage. The numbers use Hyperliquid's published liquidation formula and its BTC maintenance margin of 1.25%, so they are what the exchange would do.

Isolated (10x)Cross
Margin backing the trade$840 assignedThe full $2,000
Liquidation price≈ $76,557 (−8.86%)≈ $64,810 (−22.8%)
BTC falls 10%Liquidated on the way down; loss about $744, at most $840Still open, $840 unrealized loss, $1,160 left
Loss if liquidatedAbout $744; the other $1,160 is untouchedAbout $1,919, and up to the whole $2,000 in a backstop liquidation

That is the trade-off in one table: isolated is liquidated earlier but loses less; cross survives more but can lose everything. The leverage number alone doesn't tell you how far the price can move. The table below shows how quickly the margin runs out as leverage rises, and where Hyperliquid actually liquidates an isolated BTC long once the maintenance margin is included:

LeveragePrice move that erases the initial marginHyperliquid BTC isolated long is liquidated at
2x50%−49.4%
3x33.3%−32.5%
5x20%−19.0%
10x10%−8.86%
20x5%−3.80%
25x4%−2.78%
40x2.5%−1.27%

Middle column: 100 ÷ leverage, before fees and funding. Right column: 0.1 BTC at $84,000, isolated, maintenance 1.25%; liquidation comes a little before the margin is gone because the maintenance margin must stay in the position. BTC's maximum on Hyperliquid is 40x.

5. Isolated or cross margin: which is better? A decision matrix

SituationUseWhy
Your first leveraged tradesIsolatedThe loss per trade is capped and the liquidation price is fixed, so mistakes stay small.
One directional idea above about 5xIsolatedAt high leverage the liquidation distance is a few percent (section 4); cap what it can cost.
High-leverage scalpIsolatedA wick should cost the trade's margin, not the account.
Testing a new or volatile tokenIsolatedListing-day swings and thin books cannot reach the rest of the account.
Several positions that move together (e.g. BTC, ETH and SOL longs)Isolated, or cross at a much smaller total sizeOn cross, correlated losers pull each other's liquidation prices closer (Example B).
Hedge: long one asset, short a correlated oneCrossThe winning leg funds the losing leg, so neither is liquidated on a move that leaves the pair flat.
Basis or carry trade: spot long, perp shortCross (portfolio margin on Hyperliquid)Spot and perp PnL offset only when they share margin.
Low-leverage core position you check dailyCrossThe whole balance acts as a buffer, as long as nothing risky shares the account.
Position you won't watch for hoursIsolated + stop lossPlace the stop inside the liquidation distance.
Bot or new strategyIsolated or a separate sub-accountA runaway strategy cannot reach the main book.
A single position, low leverage, nothing else openEitherThe difference is only how much of the balance you are willing to put behind it.

Using both together is normal. Modes are set per asset, so an isolated 10x altcoin trade can sit next to a cross-margined BTC/ETH hedge. Decide before entering how much you would ever add to an isolated loser; topping it up without a limit defeats the point of isolating it. Position size matters more than the mode: see position sizing and how to avoid a liquidation cascade.

6. Cross and isolated margin on Hyperliquid

You choose the margin mode per asset, before opening, with the Cross button at the top of the order form (the three steps above). The two buttons next to it show your leverage (for example "20x") and your account mode ("Unified"). The app describes the two main modes this way: cross means "All cross positions share the same cross margin as collateral. In the event of liquidation, your cross margin balance and any remaining open positions under assets in this mode may be forfeited." Isolated lets you "manage your risk on individual positions by restricting the amount of margin allocated to each."

Switching modes: the docs say "when opening a position, a margin mode is selected", and the exchange rejects a switch while that asset has an open position. To move a trade from cross to isolated (or back), close it, change the setting for that asset and reopen.

Hyperliquid BTC-USDC order form with Cross, 20x and Unified buttons, liquidation price and margin required
The Hyperliquid BTC-USDC trade page, captured September 19, 2026. The Cross / 20x / Unified buttons sit above the order form; Liquidation Price and Margin Required appear under it.
On HyperliquidCross margin (default)Isolated margin
CollateralShared by all cross positions (in Unified mode: your whole USDC balance, spot included)A fixed amount allocated to that one position
Unrealized PnLAutomatically usable as initial margin for new positionsAdded to that position's margin only
Add / remove marginDeposit or transfer in USDC; initial margin cannot be withdrawn while openAdd or remove after opening (Adjust Margin)
Does your leverage setting move the liquidation price?No. Lower leverage only reserves more collateralYes. Leverage decides how much margin is allocated
Backstop liquidation takesAll cross positions and all cross marginOnly that position and its margin

Strict isolated works like isolated, except that margin cannot be removed; it is released proportionally as you close. In the live API on October 21, 2026, no live validator-operated perp used it: the flag sat only on 8 delisted legacy markets, and all 178 live validator-operated perps accept both cross and isolated. Some HIP-3 markets still use strict isolated (2 of the 5 live markets on the mkts dex that day), so check the order form before assuming you can take margin back out. HIP-3 markets (builder-deployed perps such as the trade.xyz stock and commodity markets) can also be set to "no cross": isolated only, but margin can be removed. That is now the usual setting: 94 of the 115 live trade.xyz markets were no-cross on October 21, 2026, including HOOD, COIN, PLTR and ORCL, and so were all 11 live markets on the io dex. Large ones such as XYZ100, SP500, NVDA, TSLA, AAPL, META and GOLD allow cross (trade.xyz guide).

Two margining rules from the docs trip people up. First, leverage is an integer from 1 to the asset's max and is only checked when you open. You can raise leverage on an open position without closing it, and after that "the user is responsible for monitoring the leverage usage to avoid liquidation." Second, any transfer that removes margin must leave at least the larger of the initial margin and 10% of total open notional. That covers a withdrawal, a transfer to spot or a sub-account, or taking margin off an isolated position. With $30,000 of open positions you cannot take the account below $3,000.

7. Initial and maintenance margin, with the tier table

The initial margin to open is size × mark price ÷ leverage. The maintenance margin, the level where liquidation starts, is half the initial margin at the asset's maximum leverage. That puts it between 1.25% on the one 40x asset (BTC) and 16.7% on 3x assets. Most of the list is low-leverage: of the 178 live perps on October 21, 2026, 1 allows 40x (BTC), 1 allows 25x (ETH), 2 allow 20x (SOL, XRP), 30 allow 10x, 56 allow 5x and 88 allow only 3x. Large positions move into a second tier with lower max leverage and a higher maintenance rate. A "maintenance deduction" keeps the total requirement continuous across the boundary, so only the notional above the boundary pays the higher rate.

AssetNotional (USDC) → max leverageMaintenance margin rate
BTC$0–$150M: 40x · above: 20x1.25% → 2.5%
ETH$0–$100M: 25x · above: 15x2% → 3.33%
SOL$0–$70M: 20x · above: 10x2.5% → 5%
XRP$0–$40M: 20x · above: 10x2.5% → 5%
HYPE, DOGE, AVAX, LINK, SUI, ZEC, ENA, kPEPE and others (21 markets)$0–$20M: 10x · above: 5x5% → 10%
ARB, BNB, DOT, JUP, ONDO, PAXG, TRX, XPL and others (9 markets)$0–$3M: 10x · above: 5x5% → 10%
Everything else (single tier)5x or 3x10% or 16.7%

Source: Hyperliquid docs "Margin tiers" and the live meta margin tables, checked October 21, 2026. Per-asset caps: leverage limits by asset.

8. The liquidation price formula

Hyperliquid publishes the exact formula, and it is the same for both modes. Only margin_available changes:

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

  • side = 1 for a long, −1 for a short. l = 1 ÷ maintenance leverage, which equals the maintenance rate: 1.25% for BTC, 2% for ETH, 2.5% for SOL, 5% for 10x assets. For tiered assets, use the tier that applies at the liquidation price.
  • Cross: margin_available = account_value − maintenance_margin_required. Account value includes unrealized PnL on every cross position.
  • Isolated: margin_available = isolated_margin − maintenance_margin_required.

Liquidation triggers on the mark price, which blends external CEX prices with Hyperliquid's own book. In a fast move it can sit some distance from the last trade. The number in the order form before you trade is an estimate, and the app notes it "assumes all other prices stay constant". Once you are in, the displayed liquidation price is based on your real entry. It still drifts with funding payments and, on cross, with every other position's PnL. When risk is very low the Positions table may show no liquidation price at all ("Position risk is low, so there is no liquidation price for the time being"). A step-by-step calculator for other venues: how to calculate liquidation price.

9. Worked examples: BTC and ETH, cross and isolated

Example A: isolated BTC, 0.1 BTC at $84,000

Notional is $8,400 and maintenance is 1.25% × $8,400 = $105 at every leverage. Only the isolated margin changes, and with it the liquidation distance:

LeverageIsolated marginMaintenanceLong liquidationMoveShort liquidation
40x (max)$210$105≈ $82,937−1.27%≈ $85,037 (+1.23%)
20x$420$105≈ $80,810−3.80%≈ $87,111 (+3.70%)
10x$840$105≈ $76,557−8.86%≈ $91,259 (+8.64%)
5x$1,680$105≈ $68,051−19.0%≈ $99,556 (+18.5%)
3x$2,800$105≈ $56,709−32.5%≈ $110,617 (+31.7%)

Check the 40x long: margin available = $210 − $105 = $105; $105 ÷ 0.1 = $1,050; ÷ (1 − 1/80) = $1,063; liquidation at $84,000 − $1,063 = $82,937. At that price the remaining margin equals 1.25% of the new, smaller notional, so the two lines meet. A short liquidates slightly closer (+1.23%) because the denominator becomes 1 + l. Rule of thumb: at max leverage the liquidation distance is roughly the maintenance rate, and BTC's normal hourly range can exceed it.

Hyperliquid Calculator — Your own numbers instead of ours: margin required, liquidation price and PnL after fees and funding for one position on any Hyperliquid perp, cross or isolated. — Open the calculator →

Example B: the same 0.1 BTC long on cross, $5,000 account

Now margin_available is the whole account minus total maintenance, and the leverage setting stops mattering. Add a second cross position, 3 ETH long at $2,700 (notional $8,100, maintenance 2% = $162). Then watch the BTC liquidation price move as the ETH leg's PnL changes (BTC held constant):

ScenarioAccount valueTotal maintenanceBTC liquidation priceMove from $84,000
0.1 BTC long only$5,000$105≈ $34,430−59.0%
+ 3 ETH long at $2,700 (flat)$5,000$267≈ $36,071−57.1%
ETH leg down $2,000$3,000$227≈ $55,919−33.4%
ETH leg up $2,000$7,000$307≈ $16,223−80.7%

That table is the whole cross-vs-isolated argument. Cross gives the BTC trade huge staying power, but a $2,000 loss on ETH pulls the BTC liquidation price up by about $20,000. In a real sell-off both legs fall together. If BTC and ETH drop by the same percentage, this $5,000 account with $16,500 of longs is liquidated after a fall of about 29%, not 59%. The liquidation price rises just as the market heads toward it. The isolated 10x version liquidates at $76,557 whatever ETH does.

Example C: ETH isolated

3 ETH long at $2,700; maintenance 2% × $8,100 = $162. At 25x (max) the isolated margin is $324 and liquidation lands near $2,645 (−2.04%). At 10x the margin is $810 and liquidation is near $2,480 (−8.16%).

10. Margin ratio and account health: what the app shows, and how to watch it

"Margin ratio" is the single number that tells you how close the account is to liquidation. Hyperliquid defines it as maintenance margin divided by what backs it, so it rises as you get closer to liquidation. Which ratio you see depends on the account mode (section 11):

Label in the appWhere it appliesDefinitionDanger line
Cross Margin RatioStandard (manual) accountMaintenance Margin ÷ Portfolio ValueCross positions liquidated at 100%
Unified Account RatioUnified Account (app default)Cross maintenance margin ÷ (collateral balance − isolated margin), per collateral token; the highest counts“When the value is greater than 95%, your portfolio may be liquidated”
Portfolio Margin RatioPortfolio marginPortfolio maintenance requirement ÷ portfolio liquidation value (includes borrows and LTV-weighted collateral)Liquidatable above 95%
Isolated position margin ratioAny mode, per isolated positionPosition maintenance margin ÷ isolated margin (incl. its PnL)“If the margin ratio of an isolated position reaches 100%, the position will be liquidated”
Health FactorBorrowing (manual borrows / PM)LTV-weighted account value ÷ borrowed amountBelow 100% blocks new borrows; not itself a liquidation trigger

Wording and formulas from the app's English UI strings and the docs pages "Account abstraction modes" and "Portfolio margin", re-read October 21, 2026.

Many CEXs and Japanese brokers show the inverse, account equity ÷ required margin, which falls toward danger. To convert, divide 1 by Hyperliquid's ratio: a Cross Margin Ratio of 25% means equity is four times the maintenance requirement, 50% twice, 100% none left.

Worked example (standard account). In Example B with the ETH leg flat, maintenance is $267 against a portfolio value of $5,000: a Cross Margin Ratio of 5.3%. If BTC and ETH both fall 10%, it is $3,350 against $240, 7.2%; at a 20% fall $1,700 against $214, 12.6%; at about 29% it reaches 100%. The ratio accelerates as equity shrinks, so treat a ratio that has doubled since entry as the warning, not the 95% line. Account leverage drifts the same way: Cross Account Leverage (total cross positions value ÷ cross account value) starts at 3.3x in Example B and is 4.8x after the ETH leg loses $2,000, without a click. That drift is why the docs leave monitoring "to the user".

Checking it in the app

  • Account summary on the Trade page shows your mode's ratio, Portfolio Value, Unrealized PNL, Perps Maintenance Margin and account leverage. Pick a yellow line where you stop adding risk (for example 30%) and a red line where you cut (for example 50%), both well below the 95%/100% lines, because the ratio accelerates as equity shrinks.
  • Positions tab: compare Mark Price with Liq. Price in percent, not the PnL; a green PnL can sit on a thin cushion. The Funding column shows net funding since the position opened; on a multi-day hold it slowly eats margin (Hyperliquid funding rate).
  • Before you click: the order form's Liquidation Price is an estimate that "assumes all other prices stay constant" and "does not account for hedged positions between spot and perps". Recheck the ratio after every fill that changes size, and use Reduce Only on exits.
  • On cross, closing a winner does not free all its margin if other positions are underwater; the support FAQ says the freed amount "goes toward these existing positions". If you plan to add to a loser, check the new liquidation price first with the average down calculator.

Monitoring via the API and setting alerts

The app does not document margin-ratio push alerts, so build them from the public API; reading an address needs no key. POST https://api.hyperliquid.xyz/info with type "clearinghouseState" (weight 2 of the 1,200-per-minute IP budget): marginSummary.accountValue, crossMaintenanceMarginUsed, withdrawable and, per position, liquidationPx, marginUsed, leverage.type and cumFunding. crossMaintenanceMarginUsed ÷ accountValue is the cross margin ratio. Unified and portfolio-margin accounts read balances from spotClearinghouseState instead ("individual perp dex user states are not meaningful"). The docs define the Unified Account Ratio as cross maintenance margin across all perp DEXs ÷ (the collateral token's balance − isolated margin), taking the maximum over tokens, and userAbstraction tells you which mode an address uses. For streaming, subscribe to clearinghouseState (or allDexsClearinghouseState for HIP-3) plus userEvents, which pushes fills, funding and liquidation events; one IP can hold 10 WebSocket connections and 1,000 subscriptions, but user-specific subscriptions for at most 10 unique addresses. A master plus 10 sub-accounts is 11 addresses, so poll the rest (10 addresses every 5 seconds costs 240 weight a minute, well inside the budget). A minimal loop notifies at your yellow line, sends reduce-only orders at your red line and blocks new entries in between. Setup: Hyperliquid API guide.

11. PnL and ROE on Hyperliquid: unrealized, closed, fees and funding

Margin mode decides how much collateral backs a position; PnL is what the position earns on it. Hyperliquid perps are linear, USDC-settled contracts, and the official “Entry price and pnl”, margining and funding pages give the formulas:

NumberFormula
Unrealized PnLside × (mark price − entry price) × position size (side = 1 long, −1 short)
Closed PnL of a fillfee + side × (fill price − entry price) × closed size; an opening fill books only its fee (a maker rebate is a positive fee)
Entry priceOpening trades move it to the size-weighted average; closing trades leave it unchanged
ROEunrealized PnL ÷ initial margin (size × mark ÷ leverage) = price change % × leverage
Funding paymentsize × oracle price × hourly rate; longs pay shorts when the rate is positive
Net PnL of a tradeΣ Closed PnL of its fills − funding paid + funding received

Leverage changes ROE, not dollar PnL. For the same quantity, the price PnL, the fees and the funding are identical at 2x and at 40x; leverage only decides how much margin backs the position, so the same dollar result is a larger percentage of a smaller margin. Fees are charged on notional, not margin: a $10,000 taker round trip costs $9.00 at the base 0.045% rate whatever the leverage. The mark price drives unrealized PnL, margin, liquidations and TP/SL triggers; funding uses the oracle price, so a payment can differ slightly from a figure computed on your entry.

The app shows PnL in several places that measure different things:

WhereWhat it isWhat is in it
PNL (ROE %), Positions tabUnrealized PnL of an open position and its return on the margin behind itside × (mark − entry) × size on the mark price; excludes fees and funding
Funding, Positions tabNet funding since the position was openedSettled hourly into your balance; not part of either PnL figure
Closed PNL, Trade HistoryRealized result of each fillIncludes fees and rebates; an opening fill shows only its fee
Payment, Funding HistoryEach hourly funding transferNegative when you paid, positive when you received
PNL, Portfolio pageChange in account value over 24h / 7d / 30d / all-timeSampled about every 15 minutes; a chart, not accounting

Column names and tooltips checked in the app on September 25, 2026: “Mark price is used to estimate unrealized PNL. Only trade prices are used for realized PNL.” and “Closed PNL includes fees and rebates.”

  • Unrealized profit is already working. In cross it counts as initial margin for new positions and as account value for liquidation; in isolated it is added to that position’s margin. You can even withdraw it, as long as the margin left is at least max(initial margin, 10% × total open notional), but withdrawing is not closing: the position stays open and its cross liquidation price moves closer.
  • Adding re-averages the entry; a partial close does not. Long 0.1 BTC at $84,573, buy 0.05 more at $82,000: the entry becomes about $83,715. Sell 0.05 at $86,000 and that fill’s Closed PNL is measured from $83,715, while the rest stays unrealized from the same entry. That is why Trade History can show a realized profit while the position still shows a loss.
  • Common mistakes: multiplying dollar PnL by leverage; reading ROE as account return (ROE is on the position’s margin); subtracting the Fee column again although Closed PNL already contains it; forgetting funding, which is in neither PnL figure (sum Funding History separately); trusting the Portfolio chart for accounting; letting the API’s 10,000-fill limit drop your oldest fills instead of exporting regularly (how to export the CSVs).

A simple sheet reproduces the app: net trading PnL = SUM(Closed PNL) from the trade export; net funding = SUM(Payment) from the funding export; net PnL = the two added. To estimate a trade before you place it, with both fees, hourly funding, the break-even exit and a target ROE, use the crypto futures calculator or the Hyperliquid calculator.

12. Unified Account, portfolio margin and standard mode

Your account abstraction mode decides what collateral backs cross margin. The app's mode button sits at the top right of the order form and shows the current mode.

ModeWhat backs cross positionsHealth numberBest for
Unified Account (default, recommended)One balance per collateral asset. USDC backs validator perps, USDC-collateral HIP-3 perps (e.g. trade.xyz) and spot; USDT backs USDT-collateral perps such as the CASH dex. "All USDC collateral will be used as cross margin once Unified Account is enabled."Unified Account Ratio (danger above 95%)Most traders
Portfolio marginAll cross perps plus spot HYPE, BTC, USDC and USDT, with automatic borrowing (LTV: HYPE 65%, BTC 50%)Portfolio Margin Ratio (liquidatable above 95%)Spot-plus-perp hedges, carry trades
Standard / manualSeparate perp and spot balances; cross margin only within each DEXCross Margin Ratio (liquidation at 100%)Market makers, bots, builder-code addresses (required)

What changes in practice:

  • Unified means your spot USDC is at risk. In standard mode, USDC in the spot wallet is outside the perp account. In Unified mode the same USDC protects cross positions, so a cross liquidation can consume it. If you want a cash buffer that liquidation cannot touch, use isolated positions or a separate sub-account. Opt out with the Unified button at the top right of the order form.
  • Action limit. Unified and portfolio-margin accounts are limited to 50,000 user actions per day; standard mode has no such cap. High-frequency bots belong in standard mode.
  • Portfolio margin is "a generalization of cross margin": spot BTC or HYPE can collateralize perp positions, and missing USDC is borrowed against them automatically. Only a qualifying master account can switch it on, with no open positions or orders, and it liquidates through the backstop liquidator with no order-book phase. Requirements, borrowing, caps and liquidation thresholds: Hyperliquid portfolio margin.

More on the spot side of this: Hyperliquid spot trading guide and perps vs spot margin. Cross vs isolated decides which positions share margin, not which asset the margin is held in (outside portfolio margin, a stablecoin such as USDC). On centralized exchanges that asset is set by the contract type; see coin-margined vs USDT-margined.

13. One-way positions: Hyperliquid has no hedge mode

Hyperliquid keeps one net position per market per account (one-way mode); there is no hedge mode. Selling while long reduces the long, and selling more than you hold flips you short in the same order. We checked four places on September 25, 2026 and re-checked the app and API on October 21, 2026: the API's clearinghouseState returns every position as "type": "oneWay" with a signed size (szi, negative = short); the API docs say the isBuy flag on isolated-margin updates "won't have any effect until hedge mode is introduced"; the order form has margin mode, leverage and account mode buttons but no position-mode switch (the only "Position Mode" window in the app, shown to vault accounts, just explains One-Way); and CCXT closed a request for setPositionMode on Hyperliquid as not supported. The app's explorer code can already display a "One way" / "Hedge" position-type change, so the groundwork may exist, but there is no user switch and no announced date.

  • Margin mode is per asset, not per side: BTC is either cross or isolated in that account.
  • Resting orders on both sides are fine. They are orders, not positions; whichever fills moves the single net position.
  • Use Reduce Only on every exit, so a stale stop or take-profit can never open a position in the other direction.
  • Where hedge mode exists: Aster's order-book perps (Settings → Position Mode, only with no open positions or orders), Binance (dualSidePosition, for every symbol at once) and Bybit (per symbol). Lighter is one-way too and uses sub-accounts.

Five ways to hedge without hedge mode

MethodNeedsCost and fundingMain risk
Reduce or close the positionAny accountOne taker fee on the part you closeYou lose the original entry; re-entry costs fees and spread
Opposite leg in a sub-account$100,000 of volume on the masterFees on both legs (no referral discount on the sub-account); same-market funding nets to about zeroEach leg can be liquidated on its own; margin is not shared
Spot long + perp shortA spot market for the asset (HYPE, UBTC)Spot 0.07% + perp 0.045% taker; the short receives positive fundingIn Unified mode spot does not margin the short; portfolio margin does
Correlated perp, same cross accountNoneOne extra position; different funding on each legBasis risk: the two assets do not move one-for-one
Opposite leg on another venueAn account thereFees on both venues; two funding schedulesTwo margin accounts, transfer delays, venue risk

Reducing is usually the right hedge. A 0.1 BTC long plus a 0.1 BTC short is economically flat, with two sets of fees and two liquidation prices. An opposite leg only makes sense when the original position must stay open: a bot manages it, you want to keep its entry, or you are hedging a short, defined window such as a data release.

Sub-account hedge, worked example (sub-accounts unlock after $100,000 of volume on the master; how to create one). The master holds 0.1 BTC long at $84,000 ($8,400 notional). Before an event you open 0.1 BTC short in a sub-account, isolated at 10x ($840 margin). Net exposure and same-market funding net to about zero. Fees to open and close both legs at taker: $7.26 on the master (with the 4% referral discount) plus $7.56 on the sub-account, which gets no discount, against $3.63 to simply close the long once. The trap is liquidation: by the formula in section 8 the short is liquidated near $91,259 (+8.64%). At that price the master shows +$726, but that profit sits in another account and does nothing for the short. Fund the hedge at 3x instead and its liquidation moves to about $110,617 (+31.7%); set alerts on both accounts, move profit across (internal transfers are instant and free) and close both legs together.

Spot long, perp short: safe only under portfolio margin, where spot HYPE or BTC counts as collateral and spot and perp PnL offset each other. In the default Unified Account "Perps can only use the settlement asset as collateral", so a rally can liquidate the short while the spot gain does not count. When funding is positive the short also collects it (funding rate arbitrage). Bots: there is no position-side parameter; send buy or sell with reduce-only, reconcile against the signed szi, and give each strategy its own sub-account so two bots do not fight over one net position. Broader hedging strategies: how to hedge crypto with perpetuals.

14. What actually happens at liquidation

  1. Market liquidation on the book. When cross account value, or an isolated position's margin, drops below maintenance, the clearinghouse sends market orders for the full size. Positions above 100,000 USDC are sent 20% at a time. After any partial liquidation there is a 30-second cooldown, during which further market liquidation orders are for the whole position. If enough closes to meet maintenance, the remaining collateral stays with you. There is no clearance fee; the fill pays a normal taker fee. The fill shows as "Market Liquidation" in your Trade History.
  2. Backstop liquidation. If equity falls below two-thirds of maintenance before the book absorbs the position, the liquidator vault (a strategy inside HLP) takes it over. On cross it takes all cross positions and cross margin, leaving zero equity if you hold nothing isolated. On isolated it takes only that position. The maintenance margin is not returned. This is why the docs recommend stop losses: exiting before the mark hits your liquidation price keeps that margin (stop loss guide).
  3. Auto-deleveraging is the last resort if the backstop cannot absorb a position. Profitable opposite-side positions are then closed at the previous mark price.

Liquidation PnL flows to HLP depositors, not to an operator (HLP and vaults). A visual of where other traders' liquidations cluster: Hyperliquid liquidation map.

Set it up properly from the first trade

Open Hyperliquid with HOLYGRAIL: 4% off taker and maker fees on your first $25M. On a $10,000 BTC position opened and closed as taker, that saves $0.36 per round trip at the base tier ($9.00 → $8.64).

Open Hyperliquid with HOLYGRAIL →

15. Comparison: Lighter's three-threshold model

Lighter also offers cross and isolated margin, but its risk engine works with three margin fractions per market. For BTC and ETH (50x max) the API shows initial 2%, maintenance 1.2% and close-out 0.8%. Between initial and maintenance, the account is in pre-liquidation and can only reduce risk. Below maintenance, the engine cancels open orders and sends IoC orders at a "zero price" that cannot worsen account health. Fills better than that price pay up to a 1% fee to LLP, the insurance pool. Below close-out, LLP takes the positions over.

HyperliquidLighter
BTC max leverage40x (to $150M notional)50x
BTC maintenance margin1.25%1.2% (close-out 0.8%)
First liquidation stepMarket orders to the book; 20% slices above 100,000 USDCOrders cancelled, then IoC orders at the zero price
Liquidation feeNone (maintenance margin lost only in a backstop)Up to 1% to LLP on fills better than the zero price
BackstopLiquidator vault (HLP) below two-thirds of maintenanceLLP takeover below close-out, then ADL
Base trading fees0.045% taker / 0.015% maker0% / 0% on Standard accounts

Lighter's free Standard tier makes an isolated-plus-stop routine cheap to run. Sign up with Lighter code 718610TD (referee benefit: 10% of your trading fees rebated every Monday, once you opt into Premium). Full comparison: Hyperliquid vs Lighter.

16. FAQ

How is ROE calculated on Hyperliquid?

ROE = unrealized PnL ÷ the initial margin behind the position (position value ÷ leverage), which works out to the price change % × leverage. The PNL (ROE %) column is price-only, on the mark price: trading fees appear in Closed PNL when you trade, and funding is paid hourly into your balance and listed in Funding History.

Does higher leverage increase profit on Hyperliquid?

Not for the same position size. The dollar PnL, the fees and the funding of a given size are the same at 2x and at the maximum; leverage only lowers the margin you post, which raises ROE (and the % loss on that margin) and, for isolated positions, moves the liquidation price closer.

What is the difference between realized and unrealized PnL on Hyperliquid?

Unrealized PnL is the mark-to-market result of an open position, side × (mark − entry) × size. Realized PnL is booked: the Closed PNL of each fill (price PnL on the closed size plus the fee, or just the fee on an opening fill) plus the hourly funding already settled to your balance. A partial close realizes only the closed slice; the rest stays unrealized from the same entry price.

What is cross margin?

Cross margin is a margin mode in which every cross position shares one pool of collateral: your whole available balance. Profits on one position support the others and a position can ride out a bigger move, but one losing trade can drain the whole account, and a liquidation can take every cross position at once. It is the default mode on Hyperliquid.

What is isolated margin?

Isolated margin assigns a fixed amount of collateral to one position. Only that amount (plus the position's own PnL) backs the trade, so a liquidation takes that margin and nothing else. The price has less room to move before liquidation, but the rest of your balance and your other positions are untouched.

Is it better to use cross or isolated margin?

Neither is better in general. Isolated is better for a single directional trade, high leverage, a new or volatile token and anything you will not watch, because the loss is capped at the margin you assign. Cross is better for hedged or offsetting positions (long one asset, short a correlated one; perp short against spot) and for low-leverage positions you manage actively, because gains on one leg support the other. A sensible default is isolated, with cross chosen on purpose.

Is cross margin riskier than isolated margin?

Per account, yes: cross puts your whole available balance behind every cross position, so a single bad trade or several correlated losers can wipe the account. Per trade, cross is actually less likely to be liquidated, because more collateral stands behind it. In our $2,000 example a 10x BTC long is liquidated after a −8.86% move on isolated but survives until −22.8% on cross; on cross, though, the loss can reach the whole account.

Can I lose my entire account with cross margin?

Yes. If cross positions are liquidated, the cross balance behind them can be lost. On Hyperliquid, if equity falls below two-thirds of the maintenance margin before the order book absorbs the position, the liquidator vault takes over all cross positions and all cross margin, and with no isolated positions the docs say you end up with zero account equity. In the default Unified Account your spot USDC also counts as cross collateral. Money in isolated positions or a separate sub-account is not touched.

Does isolated margin prevent liquidation?

No. It limits what a liquidation can take, not whether it happens. An isolated position has only its own margin behind it, so at the same leverage it is liquidated sooner than a cross position in a larger account. On Hyperliquid an isolated position is liquidated when its margin ratio reaches 100%; you can delay that by adding margin, reducing size or using a stop loss.

How do I switch to isolated margin on Hyperliquid?

With no open position in that coin, click the Cross button above the order form, choose Isolated in the margin-mode window (titled "BTC Margin Mode" on BTC) and press Confirm; the app replies "Using isolated margin mode". Then set leverage with the button next to it and check Liquidation Price and Margin Required under the form before you trade. The setting is per coin, so every other market keeps its own mode.

Can I switch from cross margin to isolated margin on an open position?

Not on Hyperliquid. The docs say the margin mode is selected when a position is opened, and the exchange rejects a switch while that asset has an open position ("Cannot switch leverage type with open position."). Close the position, flip the Cross/Isolated setting for that asset in the order form, then reopen. What you can change on an open position: raise the leverage and, on isolated, add or remove margin with Adjust Margin.

Can you use both isolated margin and cross margin at the same time?

Yes. The mode is set per asset, so one account can hold an isolated 10x altcoin trade next to a cross-margined BTC/ETH pair. The isolated position does not use the cross balance, and a cross liquidation does not touch it. The reverse also holds: an isolated liquidation leaves the cross positions alone.

Is isolated margin better for beginners?

Usually, yes. It caps the loss on each trade at the margin you allocate, gives a liquidation price that other positions cannot move, and makes it obvious where to put the stop loss. Start with isolated at low leverage (2x–3x), and use cross only when you deliberately hold offsetting positions.

Is margin mode the same as leverage?

No. Leverage decides how much initial margin a position locks (notional ÷ leverage). The margin mode decides which collateral can be lost if it goes wrong. On Hyperliquid you set both per asset, in the two buttons above the order form. For isolated positions the leverage also sets the liquidation price; for cross positions the docs state the liquidation price is independent of the leverage setting.

What is the default margin mode on Hyperliquid?

Cross margin is the default. Isolated margin is available on every live validator-operated perp (all 178 on October 21, 2026). Many builder-deployed HIP-3 markets are isolated only: 94 of the 115 live trade.xyz markets were "no cross" that day.

What is the maintenance margin on Hyperliquid?

Half of the initial margin at the asset's maximum leverage: BTC (40x max) 1.25%, ETH (25x) 2%, SOL and XRP (20x) 2.5%, 10x assets 5%, 5x assets 10% and 3x assets 16.7%. Positions above a tier boundary (for example BTC above $150M notional) use the next tier's higher rate. The leverage you choose does not change the maintenance rate.

What is the margin ratio on Hyperliquid and when am I liquidated?

In a standard account the app shows the Cross Margin Ratio, defined as Maintenance Margin ÷ Portfolio Value; cross positions are liquidated when it reaches 100%. In the default Unified Account the app shows the Unified Account Ratio and warns that above 95% the portfolio may be liquidated; portfolio-margin accounts use the Portfolio Margin Ratio with the same 95% line. An isolated position is liquidated when its own margin ratio reaches 100%.

How do I monitor my Hyperliquid account health with the API?

Call the info endpoint with type "clearinghouseState" (weight 2) or subscribe to the WebSocket channel of the same name. It returns marginSummary.accountValue, crossMaintenanceMarginUsed, withdrawable and, per position, liquidationPx, marginUsed and the leverage type. crossMaintenanceMarginUsed ÷ accountValue is the cross margin ratio. Unified and portfolio-margin accounts should read balances from spotClearinghouseState.

Does Hyperliquid have hedge mode?

No, as of October 21, 2026. Hyperliquid keeps one net position per market per account (one-way): the API returns every position with "type": "oneWay", the order form has no position-mode setting, and the API docs say a hedge-related flag "won't have any effect until hedge mode is introduced". To hold a long and a short on the same coin, put the second leg in a sub-account (after $100,000 of volume) or on another venue; each leg then has its own margin and liquidation price.

Can I be long and short the same coin on Hyperliquid at the same time?

Not in one account. A sell while you are long reduces the long, and a larger sell flips you short. The second leg has to live in a sub-account or on another exchange, and because margin is not shared, the winning leg does not protect the losing one until you move funds across.

Set your margin mode on your first trade

Your first isolated trade needs a Hyperliquid account. Open it with code HOLYGRAIL: 4% off taker and maker fees on your first $25M of volume, applied automatically when you join through the link.

Open Hyperliquid with HOLYGRAIL →

Disclosure: HOLYGRAIL and 718610TD are our referral codes; we earn a share of referred accounts' fees at no cost to you. Margin rules, formulas and UI labels are quoted from the Hyperliquid and Lighter documentation, public APIs and app, re-checked on October 21, 2026. Prices in the examples are round illustrative numbers near late-September 2026 marks. Not investment advice.