Hyperliquid Calculator

Hyperliquid Position Size Calculator

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 — the foundation of survivable trading.

By Keel Research Team · Updated May 12, 2026
Inputs

Common: 0.5–2%. Higher = larger positions, faster account decay on losing streaks.

Must be below entry for a long.

Result
Position size (USD)
$2,500
Units of underlying
0.05
Risk if stop hits
$100
Stop distance
4.00%
How it works

Methodology

Standard risk-based sizing math:

stop_distance = |entry − stop_loss|
position_usd = account × (risk_pct / 100) × (entry / stop_distance)

Reading 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.

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.

Automate it

Run this strategy on Keel

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.

What you can do
  • Backtest any strategy with realistic fees, slippage, and funding modeled.
  • Optimize across parameter grids — Sharpe, drawdown, hit rate.
  • Deploy live to Hyperliquid with stop-loss + position limits.
  • Iterate with AI — describe a thesis, get a tradeable pipeline.
FAQ

Calculator questions

How does risk-based position sizing work?

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.

Why is risk per trade more important than win rate?

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.

What stop loss should I use?

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.

How does this work with HL leverage?

The position size returned is USD notional. On Hyperliquid, you can size a $20k notional position with as little as $1k margin at 20x leverage. The risk math is the same — if your stop hits, you lose the chosen risk amount regardless of leverage. Leverage affects margin usage and liquidation distance, not the trade risk if the stop is honored.

Can Keel auto-size positions for me?

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.