Enter your account size, the share of it you will risk, your entry and your stop. The calculator returns the crypto position that loses exactly that amount if the stop is hit, the leverage it needs on a Hyperliquid perp, and the liquidation price next to your stop.
BTC $62,741 at 19:00 UTC · up to 40x · funding 0.00125%/h
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. Hyperliquid caps leverage per asset, and the calculator uses the cap Hyperliquid lists for the asset you pick. 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.
BTC traded at $62,741 at 19:00 UTC. With the calculator's defaults, a $10,000 account risking 1% and a stop 4% below, at $60,231:
A losing streak compounds. One hundred losing trades in a row at 1% risk each leave about 37% of the account, a drawdown of about 63%: bad, but recoverable. The same streak at 5% a trade leaves about 0.6%. A 50% drawdown needs a 100% gain to get back to even, and a 70% drawdown needs about 233%, so the risk per trade sets how bad a losing run can get long before the edge matters.
Each layer does a different job: the risk percent keeps any one trade survivable, the Kelly ceiling ties size to the edge, and the volatility target smooths the whole book.
Keel is a strategy builder for Hyperliquid. Describe an idea, backtest it with fees, slippage and funding, and run it live on Hyperliquid’s crypto perps. Start free, and connect a wallet when you’re ready to trade.
Position size = (account × risk %) ÷ stop distance %. With a $10,000 account, 1% risk, an entry of 100 and a stop at 96, you risk $100, the stop is 4% away, and the position is $100 ÷ 4% = $2,500, or 25 units.
The same way: decide how much of your account you will lose if the stop is hit, and divide that dollar amount by the stop's distance from entry. On a perp the result is the position's notional; divided by your account it is the leverage the trade needs, which has to stay under the market's cap. The BTC position size example on this page works it through at the current BTC price.
You pick the most you will lose on a trade as a share of your account, usually 0.5% to 2%. The calculator works back from your stop: a wider stop gives a smaller position and a tighter stop a larger one. The amount at risk stays the same; the position size changes with the stop distance.
Even a strategy that wins 60% of its trades can wipe out an account if one losing trade is too big. Keeping every loss to a fixed share of the account is what lets you survive a losing streak. Many professional traders cap risk at 0.5% to 1% per position.
The calculator takes your stop as an input and does not choose one. Traders set it from volatility (for example 1.5 to 2 times ATR), from support and resistance, or from what a backtest says works. If the stop is so tight that the position needs more leverage than the asset allows, or so wide that liquidation comes first, the result flags it.
The position size is the notional in USD, and position divided by account is the leverage your account would run at. Hyperliquid caps leverage per asset, and the calculator uses the cap Hyperliquid lists for the asset you pick. Leverage does not change how much you lose at the stop; it changes the margin you use and how far away liquidation is. The result shows the liquidation price next to your stop so you can see which comes first.
Sizing positions in inverse proportion to recent realized volatility: larger when an asset is quiet, smaller when it swings hard. It keeps the risk of the whole portfolio steadier from one market to the next. It usually lowers drawdowns, at the cost of trading smaller in a strong, volatile trend.
Partly. A Keel strategy can carry the same ideas as rules: a stop-loss block that closes a trade once it has lost a set percent, a leverage cap, and sizing blocks such as volatility targeting. You can backtest how each one changes the result. Stops are checked at each bar's close rather than placed on the exchange as stop orders, so a fill can land past the level.