If you don't understand how Hyperliquid calculates account value and unrealized PnL, you'll get liquidated. Whether you are trading crypto perps, stock perps, or exploring the S&P 500 perpetual, the math under the hood is the same.
This guide breaks down exactly how Hyperliquid calculates your account value, how unrealized PnL is derived, and how funding rates silently eat into your balance.
About this guide: I'm Lawrence, the writer behind supa.is. Between February and May 2026 I've published 150+ articles on supa.is across crypto and brokerage tooling โ including 40+ Hyperliquid-specific guides (recent examples: Hyperliquid 4% Fee Discount, Hyperliquid Liquidation Price, Hyperliquid Cross Margin vs Isolated Margin). The most-repeated reader question across that Hyperliquid archive is exactly how account value and unrealized PnL are calculated, so I'm writing this guide to stop answering the same question over and over.
What Is Account Value on Hyperliquid?
On Hyperliquid, Account Value is not just your deposited USDC. It is the sum of your USDC balance plus or minus the unrealized profit or loss of all your open positions.
Think of it as your total net worth on the platform at any given second. If you deposit 1,000 USDC and open a long position on BTC-PERP that gains 100 USDC in unrealized PnL, your Account Value becomes 1,100 USDC. If that position drops 200 USDC, your Account Value drops to 800 USDC.
Account Value is the primary metric Hyperliquid uses to determine:
- Liquidation Price: When your Account Value falls below the maintenance margin required to keep your positions open, you get liquidated.
- Margin Available: How much extra leverage you can take on without adding more collateral.
- Withdrawal Limits: You can only withdraw USDC if your Account Value exceeds the margin required for your open positions.
The Formula: How Unrealized PnL Is Calculated
Unrealized PnL is the profit or loss of a position that has not yet been closed. On Hyperliquid, the calculation is straightforward but relies on the current market price.
The basic formula for Unrealized PnL is:
Unrealized PnL = (Current Price - Entry Price) ร Position SizeFor a Long position:
* If the Current Price is higher than your Entry Price, you have a positive PnL. * If the Current Price is lower, you have a negative PnL.For a Short position, the formula is inverted:
Unrealized PnL = (Entry Price - Current Price) ร Position SizeLet's look at a concrete example. You open a long position on ETH-PERP:
* Entry Price: $3,000 * Position Size: 10 ETH * Current Price: $3,100Your Unrealized PnL is: ($3,100 - $3,000) 10 = $1,000.
If the price drops to $2,900, your Unrealized PnL becomes: ($2,900 - $3,000) 10 = -$1,000.
The Role of Leverage in PnL Calculation
A common misconception is that leverage changes your PnL. It does not. Whether you open the 10 ETH position with 1x leverage (requiring $30,000 collateral) or 10x leverage (requiring $3,000 collateral), the Unrealized PnL at $3,100 is still $1,000.
Leverage only changes how much of your Account Value is *locked* as margin. High leverage means a smaller price movement is required to wipe out your Account Value, leading to liquidation. For more on how leverage impacts your risk, check out our guide on Hyperliquid Cross Margin vs Isolated Margin.
How Account Value Is Calculated
Your Account Value is the sum of your actual USDC balance and the Unrealized PnL of all open positions.
Account Value = USDC Balance + Sum of All Unrealized PnLBut there's a silent killer: Funding Rates.
Like what you're reading? Try it yourself โ this link supports ChartedTrader at no cost to you.
Sign up on Hyperliquid โHyperliquid uses a funding rate mechanism to keep the perpetual contract price anchored to the spot price. If you are holding a position, you either pay or receive funding every 8 hours. This funding is deducted from or added to your USDC balance in real-time, which directly impacts your Account Value.
Let's say you have 1,000 USDC in your account and a long BTC position with an Unrealized PnL of $500. Your Account Value is 1,500 USDC. If the funding rate is positive (meaning longs pay shorts), you will be charged a fee. If the fee is $10, your USDC balance drops to 990, and your Account Value drops to 1,490.
Account Value vs. Available Margin
Your Account Value tells you your total net worth on Hyperliquid. Available Margin tells you how much buying power you have left.
Available Margin is calculated by subtracting the margin locked by your open positions from your Account Value.
Available Margin = Account Value - Margin LockedIf your Account Value is 1,500 USDC, and your open positions require 500 USDC of margin to stay open, your Available Margin is 1,000 USDC. You can use that 1,000 USDC to open new positions or withdraw it to your wallet.
If your Unrealized PnL turns negative by $600, your Account Value drops to 900 USDC. Your Available Margin now drops to 400 USDC. If it drops to zero, you cannot open any new positions, and you are dangerously close to liquidation.
Why Does My Account Value Fluctuate When I'm Not Trading?
If you have ever left Hyperliquid open overnight and noticed your Account Value changed without you placing a trade, it's due to two factors:
- Price Movement: The market price of the asset you are holding has moved, changing your Unrealized PnL.
- Funding Rate Payments: As mentioned above, funding payments are settled every 8 hours. If you are on the wrong side of the funding rate, your USDC balance will be debited, lowering your Account Value.
How to Calculate Your Liquidation Price
Liquidation occurs when your Account Value falls below the maintenance margin required for your positions. Hyperliquid's liquidation engine is highly efficient and operates on-chain, meaning there is no slippage or exchange failure risk.
The liquidation price is the price at which your Account Value equals the maintenance margin of your positions.
For a long position, the liquidation price is below your entry price. For a short position, it is above your entry price.
You can calculate your liquidation price using the following formula:
Liquidation Price = Entry Price - (Account Value / Position Size) ร Leverage FactorHowever, calculating this manually is complex because of cross-margin interactions and funding rates. It is much safer to rely on Hyperliquid's built-in liquidation price indicator, which is displayed on your position card.
To learn more about how Hyperliquid determines maintenance margin and liquidation thresholds, check out our Hyperliquid Liquidation Price & Maintenance Margin guide.
Cross-Margin vs. Isolated Margin Impact on Account Value
Hyperliquid offers two margin modes: Cross-Margin and Isolated Margin. This choice drastically changes how your Account Value is utilized.
* Cross-Margin: Your entire Account Value acts as collateral for all your positions. If one position goes against you, the losses are absorbed by your total Account Value. This prevents early liquidations but means a single bad trade can wipe out your entire account.
* Isolated Margin: You allocate a specific amount of USDC to a single position. Your losses are limited to that allocated amount. Your other USDC balance and other positions are safe.If you are unsure which mode to use, our Hyperliquid Cross Margin vs Isolated Margin guide breaks down the exact use cases for each.
How to Read the Hyperliquid Dashboard
When you log into Hyperliquid, your dashboard displays several key metrics related to your account value:
- Account Value: Your total net worth on the platform (USDC + Unrealized PnL).
- Available Margin: The USDC you can use to open new positions or withdraw.
- Unrealized PnL: The current profit or loss of your open positions, displayed as a percentage and a USDC amount.
- Margin Locked: The amount of your Account Value currently allocated to keeping your positions open.
Common Mistakes Traders Make with Account Value
- Ignoring Funding Rates: Many traders forget that holding a position costs money if the funding rate is against them. Over a week, this can significantly erode your Account Value.
- Overleveraging in Cross-Margin: Using 100x leverage on a cross-margin position means a 1% move against you wipes out your entire Account Value.
- Not Understanding Slippage: When you close a position, the PnL you see on the dashboard is an estimate. The actual realized PnL may differ slightly due to market slippage, especially during high volatility.
FAQ
How often is Unrealized PnL updated?
Unrealized PnL is updated in real-time as the market price changes. Hyperliquid's on-chain engine processes trades continuously, so your dashboard reflects the most current price.Can I withdraw USDC if my Unrealized PnL is negative?
Yes, as long as your Account Value is greater than the margin required to keep your open positions alive. You cannot withdraw your entire balance if it would cause your Account Value to fall below the maintenance margin threshold.Does Hyperliquid charge a fee on Unrealized PnL?
No, Hyperliquid does not charge a fee on unrealized PnL. However, you will pay trading fees when you open and close positions, and funding rate fees if you hold a position over the 8-hour settlement window.How do I calculate my realized PnL?
Realized PnL is the profit or loss you lock in when you close a position. You can view your realized PnL by going to the "Activity" tab on Hyperliquid and looking at your closed positions.What happens if my Account Value hits zero?
If your Account Value falls below the maintenance margin required for your positions, Hyperliquid's liquidation engine will automatically close your positions to prevent your Account Value from going negative. You may also incur a liquidation penalty.Risk Warning
Risk Warning: Crypto trading involves substantial risk of loss. Never invest more than you can afford to lose. This is not financial advice.