Buy $LEVER
Leverra Docs
Analytics

Calculators

Position size, liquidation, PnL and funding cost.

Tools → Calculators. Pick a market and the price fields prefill from Hyperliquid's live mark (stop 2% below, exit 2% above) and the funding field from its live hourly rate. Every field stays editable. The examples below use round illustrative inputs, not live data.

Position size

Sizes a trade so that hitting your stop loses exactly your chosen risk. risk = account × risk% ; size = risk ÷ |entry − stop| ; notional = size × entry ; leverage = notional ÷ account. A stop below entry means long.

Example: account $10,000, risk 1%, entry 100, stop 95 → risk $100, size 20, notional $2,000, leverage 0.2×.

Liquidation price (isolated)

Hyperliquid's formula, where maintenance margin is half the initial margin at the market's max leverage: l = 1 ÷ (2 × max leverage) ; available = margin − size × entry × l ; liquidation = entry − side × available ÷ size ÷ (1 − l × side), with side = 1 for long and −1 for short.

Example: long, entry 100, notional $1,000 (size 10), 10× (margin $100), market max 40× → l = 0.0125, available = 87.5, liquidation ≈ 91.14 (8.86% below entry).

PnL and ROE

PnL = side × (exit − entry) × size ; margin = entry × size ÷ leverage ; ROE = PnL ÷ margin. Fees and funding are not included.

Example: long, entry 100, exit 102, notional $1,000, 5× → move +2%, margin $200, PnL $20, ROE +10%.

Funding cost

cost = side × notional × hourly rate × hours. Positive means you pay. Also shows the per-day amount and the annualised rate (hourly × 24 × 365).

Example: long $10,000 at +0.00125% per hour for 24 hours → you pay $3.00.