Hyperliquid Liquidation Taxes: How a Liquidated Perp Position Is Reported
Get my Hyperliquid statement →
Getting liquidated on Hyperliquid feels like the money simply disappeared. For tax purposes it didn't. A liquidation closes your position at a price, and that close has a gain or loss like any other. This guide explains what happens to your position, how liquidations show up in your Hyperliquid fill history, how they are usually reported in the US, and how to get the numbers for your address.
Not tax advice. Perpetual futures on a crypto exchange are treated differently from country to country, and the US rules for them aren't settled. Use these records with a tax professional.
What a liquidation does to your position
Hyperliquid's documentation describes two ways a position is liquidated:
- Market liquidation (most common). When your account equity falls below the maintenance margin, the exchange sends market orders for your position to the order book. For positions above 100k USDC, only 20% is sent to the book at first. If the position closes and the margin requirement is met again, any remaining collateral stays with you.
- Backstop liquidation. If equity falls below 2/3 of the maintenance margin and the book hasn't closed the position, the liquidator vault (part of HLP) takes it over. For a cross position, all cross positions and cross margin go to the liquidator. For an isolated position, only that position and its margin do. The maintenance margin is not returned to you.
- No clearance fee. The docs state: "Unlike CEXs there is no clearance fee on liquidations." Market liquidations pay the normal taker trading fee on the fill. Backstop liquidation fills we checked show a fee of 0. The cost of a backstop shows up in the fill price instead (see the example below).
Liquidations are triggered by the mark price, which mixes outside exchange prices with Hyperliquid's book. Your fill price can differ from the mark price.
How liquidations appear in your fill history
Every liquidation is a normal fill in your history, with closed P&L and a fee like any other close. The API adds a liquidation object to the fill with three fields: liquidatedUser, markPx and method ("market" or "backstop"). What the dir column shows depends on the method:
- Market liquidation:
diris a plain "Close Long" or "Close Short". In a CSV export you can't tell it apart from a normal close unless you keep theliquidationfield. - Backstop liquidation:
diris "Liquidated Cross Long", "Liquidated Isolated Long" (or Short). Hyperliquid also writes a ledger entry of typeliquidationwith the liquidated notional, account value and leverage type. - The other side has the same tag. Fills of traders who bought a liquidated position carry the same
liquidationobject, often withdir"Open Long" or "Open Short". The field alone doesn't mean you were liquidated. Check thatliquidatedUseris your own address.
A real example
One address we checked was liquidated on an ETH long in November 2026. Its fill history has 43 liquidation fills:
- 42 market liquidation fills, all labelled "Close Long": closed P&L -$42,033.68, taker fees $316.08.
- 1 backstop fill, "Liquidated Isolated Long", 161.9134 ETH at $2,018.73 while the mark price was $2,038.40: closed P&L -$63,112.22, fee $0.
The backstop fill price was $19.67 below mark, which on 161.9134 ETH is about $3,185. That is close to the $3,183.83 account value in the matching liquidation ledger entry. In other words, the margin that was "not returned" is already inside the closed P&L of that fill, so there is no separate line to add.
Our statement for that address and 2026 shows closed P&L, fees and funding that reconcile to Hyperliquid's own P&L for the year within 0.01%.
How liquidations are usually taxed in the US
The IRS treats virtual currency as property (Notice 2014-21). There is no IRS guidance specific to perpetual futures, so practitioners usually apply general rules. The common reading is:
- A liquidation is a disposal. The position is closed at the liquidation fill price. Your gain or loss is the difference between what you opened at and what it closed at, the same as a close you clicked yourself. In practice that's almost always a loss.
- Fees count. Trading fees on the liquidation fills reduce the result, like fees on any other close.
- Holding period. Gains and losses on assets held one year or less are short-term (IRS Topic 409). Most liquidated perp positions are short-term.
- Capital loss limit. If your capital losses exceed your gains for the year, you can deduct up to $3,000 ($1,500 married filing separately) against other income and carry the rest forward (IRS Topic 409).
- Section 1256 probably doesn't apply. The 60/40 treatment in IRC section 1256 is for regulated futures contracts traded on or subject to the rules of a "qualified board or exchange". Hyperliquid is a decentralized exchange, so most practitioners don't treat its perps as section 1256 contracts. Confirm this with your tax professional.
- Lost margin isn't a separate deduction. The margin you lose in a liquidation is the loss on the position. Count it once, through the closed P&L of the liquidation fills, not again as a separate write-off.
Funding paid while the position was open is a separate line item. See our Hyperliquid funding taxes guide.
Outside the US, the same idea usually holds: a liquidation closes the position, and the result is a gain or loss on that position. How perp gains and losses are classified (capital, income, or a special derivatives category with its own loss rules) depends on the country. Ask a local adviser.
Getting your liquidation numbers
To do it yourself, page through the userFillsByTime API with aggregateByTime: false. Keep every fill whose liquidation.liquidatedUser is your address, and add up closedPnl and fee by year. Fetch userNonFundingLedgerUpdates too for the backstop liquidation entries. Remember that the API only serves your most recent 10,000 fills (see how to export your full Hyperliquid trade history).
The faster way is our Telegram bot. You don't connect a wallet and you don't need an API key, just the public 0x address:
- Send
/hl 0xYOURADDRESS 2026to the bot, or use the form on the Hyperliquid statement page. - Liquidations are included automatically. Every liquidation fill's closed P&L and fee is in the year's closed P&L and fees, next to your other trades, so the net result includes the liquidation loss.
- The free preview shows net result, closed P&L, fees, funding and how much of the year Hyperliquid can still supply. It reconciles to Hyperliquid's own P&L curve.
- The full statement (750 Telegram Stars, about $10) adds a PDF with month, market and venue breakdowns, plus a fills CSV with every fill: time, market, direction, size, price, notional, closed P&L, fee and transaction hash. Backstop liquidations show as "Liquidated …" in the direction column. Market liquidations show as "Close …", the same label the API uses.
FAQ
Is a Hyperliquid liquidation a taxable event?
In the US, it is generally treated as a disposal: the position is closed and you realize a gain or loss. Usually that's a loss, which can offset gains.
Does Hyperliquid charge a liquidation fee?
The docs say there is no clearance fee on liquidations. Market liquidation fills pay the normal taker fee. In a backstop liquidation you lose the maintenance margin, and that loss is already in the fill's closed P&L.
Why don't I see "Liquidation" in my CSV?
Market liquidations are labelled "Close Long" or "Close Short" in the dir field. Only backstop liquidations show "Liquidated …". The API's liquidation field is what marks a market liquidation.
Can I deduct the whole margin I deposited?
Not as a separate item. Your loss is the closed P&L of the liquidated position plus fees (and funding, reported separately). Margin you hadn't lost stays in your account and isn't a loss.
Sources
- Hyperliquid Docs: Liquidations
- Hyperliquid Docs: Info endpoint (user fills)
- Hyperliquid Docs: WebSocket subscriptions (FillLiquidation fields)
- Hyperliquid Docs: Fees
- IRS: Frequently asked questions on virtual currency transactions (Notice 2014-21)
- IRS Topic no. 409, Capital gains and losses
- 26 U.S. Code § 1256 (Cornell LII)
Polymarket Data