Entryx Open the app

Entryx / Position size calculator / Hyperliquid

Hyperliquid position size calculator

Type the coin, your entry and your stop-loss. The calculator reads the coin's size decimals and maximum leverage from Hyperliquid, then gives the size in coins (rounded down so you never risk more than planned), the position value and margin in USDC, and take-profit levels.

Stop-loss below the entry is a long, above the entry is a short.

Size decimals: why Hyperliquid sizes look the way they do

Every perp on Hyperliquid has a size precision called szDecimals. It is the number of decimals an order size may carry: with 5 size decimals the smallest step is 0.00001 coins, with 2 it is 0.01, with 0 you trade whole coins. An order with more decimals than that is rejected, so a size worked out on paper always has to be cut to the coin's grid before it is sent.

This calculator cuts it down, never to the nearest step. Rounding up would make the position slightly larger than your risk allows; rounding down keeps the loss at the stop-loss at or below the amount you set. It uses the same rounding the Entryx app uses when it builds a Hyperliquid order.

risk (USDC) = capital × risk %
exact size = risk ÷ |entry − stop-loss|
size = exact size rounded down to szDecimals
position value = size × entry
margin = position value ÷ leverage
take-profit at nR = entry ± n × |entry − stop-loss|

Prices have a precision too

Hyperliquid prices may have at most 5 significant figures and at most 6 − szDecimals decimals. A coin with 2 size decimals therefore takes prices with up to 4 decimals (and 5 significant figures). When Entryx sends a plan to Hyperliquid it rounds every price to this rule first, so each price is in a format Hyperliquid accepts. On this page, type prices the way Hyperliquid shows them.

Leverage and the liquidation estimate

Leverage does not change the size: it only sets the margin Hyperliquid locks. It does move liquidation. For isolated margin the calculator estimates liquidation with a maintenance margin of half the initial margin at the coin's maximum leverage. If that estimate falls before your stop-loss, it warns you and shows the highest whole leverage that keeps liquidation beyond the stop. When the maximum leverage has not been loaded, it assumes 50x for the estimate; Hyperliquid's own figure is the one that counts.

Worked example: a SOL short

Capital 500 USDC, risk 1% per trade. You want to short SOL at 150 with the stop-loss at 154.5 (3% above the entry), using 10x isolated leverage. In this example SOL has 2 size decimals; the calculator loads the current value from Hyperliquid.

Risk: 500 × 1%5 USDC
Stop distance: 154.5 − 1504.5
Exact size: 5 ÷ 4.51.111111 SOL
Rounded down to 2 size decimals1.11 SOL
Position value: 1.11 × 150166.50 USDC
Margin at 10x16.65 USDC
Take-profit 1 at 1.5R: 150 − 1.5 × 4.5143.25
Take-profit 2 at 2.5R: 150 − 2.5 × 4.5138.75
Loss if the stop-loss is hit: 1.11 × 4.54.995 USDC

Rounding from 1.111111 to 1.11 trims a little off the risk (4.995 instead of 5 USDC). On a coin with 0 size decimals the cut can be much bigger, which is why the calculator always shows the exact size next to the rounded one.

From the plan to the order

In the Entryx app you pick a pair, tap Long or Short, and Entryx works out the entry, stop-loss and take-profit from the chart, then sizes the order on Hyperliquid's grid with this formula. You read the plan, change any number and confirm; the order, the stop-loss and the take-profit go to Hyperliquid from your own wallet. Your money stays on Hyperliquid: the agent key you approve can place and cancel orders but can never withdraw. Orders placed through Entryx carry a 0.05% builder fee on filled order value, approved once in your wallet; Hyperliquid's fees are separate. Trading on Binance Futures instead? Entryx rounds the plan to Binance's rules so you can copy it there; on any other exchange, copy the numbers to the exchange you use.

You can start with free analyses, no wallet needed, and eligible wallets get a 24-hour trial. After that, the Basic plan costs from about $1 a day on the monthly plan.

Questions

What are size decimals on Hyperliquid?

Each Hyperliquid perp has a number called szDecimals: how many decimals an order size may have. A coin with 2 size decimals accepts 1.11 but not 1.111. This calculator reads the value for the coin you type from Hyperliquid's public API and rounds your size down to it.

Why is everything in USDC?

Hyperliquid perps are margined and settled in USDC, so the position value, the margin and the loss or gain are all in USDC. If you think of your capital in USDT, the two are close but not identical.

How is the liquidation price estimated?

For isolated margin the calculator uses a maintenance margin of half the initial margin at the coin's maximum leverage, which is how Hyperliquid describes it. It is an estimate: funding and fees move the real liquidation price, and the number on Hyperliquid is the one that counts.

Can I place the order from this page?

No, this page only calculates. In the Entryx app you can place the order on Hyperliquid with your own wallet: you approve an agent key that can only place and cancel orders and can never withdraw. Orders placed through Entryx carry a 0.05% builder fee on filled order value, on top of Hyperliquid's own fees.

What if the size comes out as zero?

Your risk is too small for the coin's size step at that stop distance. Raise the risk a little, move the stop-loss closer if the chart allows it, or pick a coin with more size decimals. Hyperliquid also rejects orders below a minimum order value, so very small trades may not go through.

Other calculators