Hyperliquid liquidation tax treatment
Getting liquidated feels like a loss of money — and for tax purposes it usually is
one, but only if it survives into your records. On Hyperliquid a liquidation is just a
forced close: the exchange computes the outcome and reports it in closedPnl
on that fill, same as any other close. The problem isn't the tax concept — it's that the
data frequently never reaches your tax file.
- A liquidation is a forced close: realized loss or gain lands in
closedPnlon that fill, same mechanics as a voluntary close. - Liquidated fills carry a liquidation flag in the API — importers that skip or mishandle flagged rows silently drop the loss.
- A dropped liquidation is a realized loss you never claim — the report looks "clean" while being wrong in your favor’s opposite direction.
- Open-position unrealized moves are not taxable events; the tax moment is the close — voluntary or forced.
- Funding paid up to the liquidation is a separate stream (userFunding) — it belongs in the file independently of the close.
Why liquidations go missing in imports
Three separate drop points, all observed in practice:
- The flag itself. Liquidation fills are marked in the API payload. Importers that validate rows strictly sometimes reject or skip flagged fills — especially liquidation-engine interactions they don't recognize.
- The size of the loss. A liquidation can produce an outsized negative
closedPnlthat trips sanity checks in tools expecting smaller numbers. - Re-derivation. Tools that rebuild PnL from prices can't reproduce a forced close correctly — the fill price and insurance-fund mechanics aren't reconstructible from OHLC data. Only exchange-reported
closedPnlcarries the true outcome.
What your records need to prove
- The liquidation fill itself:
coin,time,dir,px,closedPnl,fee, and the liquidation flag. - The funding paid on the position up to the close (separate endpoint — never in fills).
- The margin that was consumed — ledger movements around the event help document basis-at-risk.
If the numbers are material, verify the import: compare your software's totals against exchange-reported per-year figures before filing (the cross-check workflow).
Honesty notes
- Whether a perp liquidation loss is deductible, and against which income, depends on classification (capital vs. Section 1256 vs. business treatment) — unsettled in places; see the 8949 guide.
- This page is about preserving the data, not deciding the treatment — that's your tax professional's call.
See if your liquidations made it into your file
The scanner counts liquidation-flagged fills separately per year and totals their PnL — free, read-only.
Scan my wallet