Hyperliquid charges a percentage of the notional of each fill. The calculator works it out like this:
tier_rate = maker or taker rate for your 14-day volume tier
venue_rate = tier_rate × (1 − staking_discount) × (1 − referral_discount)
fee_per_fill = size × (venue_rate + builder_fee_bps) / 10,000
round_trip = 2 × fee_per_fill · monthly = trades_per_month × fee
The tier rates are the perps table at the top of this page. Your tier is set by rolling 14-day volume, re-assessed at the end of each UTC day, so a busy two weeks lowers your rate for the days that follow and a quiet two weeks raises it again.
Two discounts apply to the venue fee. Staking HYPE takes 5% to 40% off, and a referred account gets 4% off its first $25M of volume. Hyperliquid’s docs state each discount alone. Their Diamond column is the base rate times 0.6, so staking scales the rate; the calculator also applies the referral discount as a multiplier (Gold plus referral is 23.2% off, not 24%). Check it against your own fills if the last cent matters.
The builder fee is added after the discounts. When you trade through a front-end or bot that uses a builder code, it charges its fee on each fill on top of the venue fee, up to the maximum you approved, and Hyperliquid caps it at 0.1% (10 bps) on perps. Leave it at 0 for orders placed on the Hyperliquid app itself. Approvals, caps and what Keel charges: how builder codes work.
Not modelled: maker rebates, which depend on your share of all maker volume rather than on a trade size, and HIP-3 deployer fee shares, which differ by market. Funding is a separate cost of holding a position; the funding calculator covers it.