Compute the right position size for a Hyperliquid perp trade given your account, risk tolerance, entry, and stop loss. Risk is constant; position size flexes with stop distance — and the result shows the leverage it implies against the asset's Hyperliquid cap and the liquidation price next to your stop.
Sets the leverage cap: 40x for BTC on Hyperliquid.
Common: 0.5–2%. Higher = larger positions, faster account decay on losing streaks.
Must be below entry for a long.
Position ÷ account. Hyperliquid allows up to 40x on BTC.
At 1x the mark price alone cannot liquidate a long.
Standard risk-based sizing math:
stop_distance = |entry − stop_loss|
position_usd = account × (risk_pct / 100) × (entry / stop_distance)
implied_leverage = position_usd / accountReading the formula: to lose exactly risk_pct of the account when the stop hits, hold a position scaled by the inverse of stop-distance-as-a-fraction-of-entry. Tight stop → big position; wide stop → small position. Risk in dollars stays fixed.
The formula has no ceiling, so the calculator adds Hyperliquid’s. Position ÷ account is the leverage the account would run at; each asset has a max (40x BTC, 25x ETH, 20x SOL and XRP, 10x most others — the first margin tier from HL’s meta), and a size above it is flagged as unopenable with the largest size the cap allows. The result also shows the isolated liquidation price at that leverage, from the same formula as the liquidation calculator, beside your stop: if the stop sits beyond it, the exchange closes the position first and the stop never fires.
This is equivalent to the "R-multiple" framework — a trade is risking 1R (your fixed risk budget); profit targets are expressed in multiples of R. Pros: portfolio risk stays bounded regardless of which trade you take. Cons: requires honoring the stop — a position is only as good as the discipline behind it.
Keel is a Strategy OS for AI-assisted systematic trading on Hyperliquid. Build, backtest, and run live strategies with realistic fees, slippage, and funding modeled. Free to start — connect a Hyperliquid wallet when you’re ready to go live.
You pick a maximum acceptable loss per trade as a % of account (typical: 0.5–2%). The calculator works backward from that: if your stop is 5% away from entry, a 1%-risk position is 1% / 5% = 20% of account notional. Wider stops force smaller positions; tighter stops allow larger ones. Risk is constant; position size flexes with the stop distance.
Even a 60% win-rate strategy can blow up an account if any single losing trade is too big. Position sizing relative to a fixed risk budget is the single biggest determinant of survival — much more than win rate or edge per trade. Most professional traders cap risk at 0.5–1% per position.
The calculator takes your stop as an input — it doesn't prescribe one. Set it based on volatility (e.g. 1.5–2x ATR), structural support/resistance, or strategy backtest. Tighter stops mean larger positions but more frequent stop-outs; wider stops mean smaller positions with more breathing room. A stop so tight that the position exceeds the asset's leverage cap, or so wide that it sits beyond the liquidation price, is flagged in the result.
The position size returned is USD notional, and position ÷ account is the leverage your whole account would run at. Hyperliquid caps that per asset — 40x on BTC, 25x on ETH, 20x on SOL, 10x on most others — so a stop 0.002% away at 1% risk (500x) is not a position you can open. The risk math is otherwise independent of leverage: if your stop hits, you lose the chosen risk amount. Leverage sets margin usage and the liquidation distance; the calculator shows the isolated liquidation price at the implied leverage next to your stop so you can see which one is hit first.
Yes. Build a strategy in Keel with explicit risk-per-trade configuration; the execution engine sizes every fill against that risk budget and places stop-loss orders automatically. The same math, run for you on every signal.
Compute the liquidation price for any HL perp position. Pair with stop-loss sizing.
Optimal bet sizing given win rate and win/loss ratio — complementary to risk-based sizing.
How much your strategy could lose peak-to-trough — sets the floor for risk-per-trade.