Unrealized and realized PnL
PnL (profit and loss) comes in two kinds:- Unrealized PnL — the gain or loss on a position that’s still open. It moves with the price and isn’t locked in yet. You’ll see it under Your Position on a market’s page and on your Profile.
- Realized PnL — the gain or loss locked in when you close all or part of a position. It’s added to (or taken from) your balance, and listed in History and Profile › Closed.
ROI on a position
ROI (return on investment) is your PnL as a percentage of what you put in. For a perp, that’s the margin you opened the position with:ROI = PnL ÷ margin at entry Margin at entry = position size × entry price ÷ leverageExample: You open a $100 BTC long with $20 of margin at 5x. BTC rises 10% and you’re up $10. Your ROI is $10 ÷ $20 = +50%. Measuring against the position size instead would show +10% — a fifth of what your money actually earned. That’s why ROI on a leveraged trade can be much bigger, or much more negative, than the price move.
Why ROI and Margin (Used) don’t seem to match
Under Your Position, the Margin (Used) figure can look like it disagrees with ROI. It doesn’t — they measure different things:- ROI is always measured against your margin at entry.
- Margin (Used) is the margin in the position right now, as Hyperliquid reports it. For an isolated position, that includes your unrealized PnL — and any margin you’ve added or removed since.
Dividing $10 by $30 would give 33%, but that’s not your return — you only ever put in $20. If you
later add $10 with Adjust Margin, Margin (Used) grows to $40, while ROI is still measured
against the $20 you opened with.
ROI on closed trades
A closed perp trade’s ROI is its realized PnL ÷ the margin it was opened with, using the leverage Clue recorded when you placed the order. For a trade placed outside Clue (or before Clue kept records) there’s no recorded leverage, so no ROI is shown rather than a guess. On spot, ROI is the PnL ÷ what you paid for the tokens.ROI on Performance
A trader’s Performance page — yours or anyone’s — shows PnL and ROI over 7D, 30D or All-Time. This ROI works differently, because a whole account has deposits and withdrawals, not a single entry. Clue divides the PnL over the period by the account’s time-averaged value over that period. That means:- A deposit is never counted as a return. Adding $1,000 doesn’t make your ROI jump.
- The sign always matches the PnL. If you made money over the period, ROI is positive; if you lost, it’s negative.
Small numbers and zero
Clue never shows a figure that isn’t zero as if it were zero:Colors
By default gains are green and losses are red. In some places it’s the other way round, so you can switch: go to Settings › Theme and choose Green up · Red down or Red up · Green down.What PnL includes
Hyperliquid settles funding separately from your trading PnL, so neither unrealized nor realized PnL
includes it. For your full result on a trade, add funding and take off fees. Funding
· Fees.
Related
History
Every trade, with fees and funding.
Profiles and Performance
Account equity, ROI and risk figures.
Funding
The hourly payment between longs and shorts.
Leverage and isolated margin
Why leverage changes ROI.