Hyperliquid Calculator

Hyperliquid PnL Calculator

Compute the realized PnL of a Hyperliquid perp trade with funding cost included. Enter entry, exit, position size, hold duration, and funding rate — the calculator returns gross PnL, funding paid or received, and net PnL.

With funding-cost breakdown
By Keel Research Team · Updated May 12, 2026
Inputs
Side

HL convention: positive = longs pay shorts.

Result
Net PnL
$476.00
4.76% return on position notional
Breakdown
Gross PnL
$500.00
Funding paid
−$24.00

Long pays positive funding; receives negative funding.

Net PnL
$476.00
How it works

Methodology

The gross PnL of a Hyperliquid perpetual trade is the price return times notional, signed by side: gross = side × size × (exit/entry − 1). For a long, exit above entry is profit; for a short, exit below entry is profit. Standard.

The piece this calculator surfaces that most others skip is the funding cost layer. Hyperliquid settles funding hourly. On a multi-hour hold the accumulated funding can easily exceed gross price PnL on low-volatility trades. Funding is computed as funding = side × size × rate_per_hour × hours. By HL convention, positive funding means longs pay shorts — so a long in a positive-funding regime shows the funding line as a cost; a short shows it as income.

Net PnL is gross PnL minus funding cost (where cost is positive if the trader paid, negative if they received). The calculator also shows net PnL as a percentage of position notional — the right denominator for comparing strategies across asset sizes.

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 this calculator handle funding cost?

Funding is computed as size × funding_rate_per_hour × hold_hours. By Hyperliquid's convention a positive funding rate means longs pay shorts. So a long position with positive funding shows the funding line as a cost (positive number reduces net PnL); a short with positive funding shows the funding line as income (negative cost, increases net PnL). For overnight or multi-day holds, funding routinely dominates gross price PnL on low-volatility moves.

Why is funding cost the missing layer in most PnL calculators?

Most calculators model PnL as just (exit − entry) × size, which is correct on minute-scale trades but wildly wrong on multi-hour holds in a funded perpetual. The actual realized PnL of a perp trade is gross price PnL minus funding paid (or plus funding received). Skipping the funding layer is the single most common reason real net PnL diverges from a back-of-envelope number.

What's a typical Hyperliquid funding rate?

HL funding settles hourly and the rate floats based on the gap between perp and oracle price. Typical 1-hour funding ranges from ±0.001% to ±0.05% in normal regimes, with extreme readings (above ±0.1%/hr) during crowded directional positioning. Annualized those translate to roughly ±10% to ±100%+ APR — meaningful for any multi-day hold.

Why USD notional and not contracts?

Notional in USD is the cleanest input for cross-asset comparison and matches how Hyperliquid sizes margin (USD-denominated). It also makes funding cost trivially scalable: at $10k notional, 0.01%/hr funding × 24 hours = $2.40/day. Use contracts/units in your order-entry UI; use notional in the calculator.

How can I model PnL across thousands of historical trades at once?

Open the Lab, build a screen, and click 'Backtest in Keel.' The Keel backtest engine simulates entry, exit, fees, slippage, and funding for every signal-generated trade across your chosen universe and time range — same math as this calculator, run at scale. From there you can optimize parameters and deploy live.