GUIDE

Hyperliquid Liquidation Taxes: How a Liquidated Perp Position Is Reported

Hyperliquid P&L statement, free preview. Closed P&L, fees, funding and HIP-3 venues for any address and year. Full PDF + CSVs ≈ $10.
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:

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:

A real example

One address we checked was liquidated on an ETH long in November 2026. Its fill history has 43 liquidation fills:

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:

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:

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

Get your free Hyperliquid P&L preview

Your Polymarket taxes, done in Telegram. Free P&L preview and P&L overview for any wallet, then a full tax report (PDF, every-trade CSV, Form 8949, TurboTax and Koinly CSV) for any tax year.
Open @PolymarketTaxBotResearch channel