Hyperliquid Docs
  • Hyperliquid Docs
  • Support
  • Read Me - Support Guide
  • FAQ
    • Connectivity issues
      • Connected via wallet
      • Connected via email
    • Deposit or transfer issues (Missing / Lost)
      • Deposited via Arbitrum network (USDC)
      • Deposited via Bitcoin network
      • Deposited via Ethereum network
      • Deposited via Solana network
      • Transfer or deposit to USDC (Perps) missing
    • Withdrawal issues
      • Withdrawal has not arrived in my wallet
      • My withdrawal keeps getting re-deposited
      • Withdrawing to Phantom Wallet
    • Trade outcome looks incorrect
      • Why was I liquidated?
      • How does margining work?
      • My TP/SL did not execute correctly
      • Leftover spot assets that I can’t sell
    • HyperEVM issues
      • Accidentally transferred to HyperEVM
      • Can’t see my HyperEVM assets in wallet extension
      • Gas problem on EVM
    • Unstaking & link staking issues
      • Unstaking transfer taking more than 7 days
      • Staking and trading account linking issues
    • Building on Hyperliquid
      • I have API related questions
      • I want to deploy a spot token or list a perp
    • I got scammed/hacked
  • Support Ticket
    • Open Discord Ticket
    • Open Email Ticket
Powered by GitBook
On this page
  1. FAQ
  2. Trade outcome looks incorrect

How does margining work?

Description: You have open cross margin positions and don’t understand how margin is attributed to positions

PreviousWhy was I liquidated?NextMy TP/SL did not execute correctly

Last updated 6 hours ago

Situation: Why didn’t my margin become available after I closed a Perps position? I closed a Perps position that showed 1,000 USDC in margin, but after closing, my Available Balance increased by <1,000 USDC. Where did the rest go?

Reasoning

  • This typically happens if you're using cross margin and have other open positions with negative unrealized pnl.

  • In cross margin mode, all your positions share a common pool of margin. When you close one position, the funds (~1,000 USDC in this example) are not released directly into your Available Balance if other open positions with negative unrealized pnl still require margin because they didn’t meet the initial margin requirements. New margin, be it through closing a position or depositing USDC, goes toward these existing positions.

  • So while the 1,000 USDC is still part of your Total Balance, only a portion becomes available to trade, depending on your overall margin requirements.

  • Please refer to the Docs to understand how Margining works:

https://hyperliquid.gitbook.io/hyperliquid-docs/trading/margining#unrealized-pnl-and-transfer-margin-requirements