guides/spain

Hyperliquid taxes in Spain

updated november 2026 · ~5 min · basisproof research · not tax advice

The Spanish frame

Spain taxes crypto gains in the savings base (base del ahorro) of the IRPF — the same bucket as stocks and funds. The 2025 scale: 19% up to €6,000, 21% to €50,000, 23% to €200,000, 27% to €300,000 and 30% above. The tax year is the calendar year and the Renta (modelo 100) window runs April to 30 June — a different clock from the UK's April 5 or the US April 15.

Every figure needs a euro value at transaction time. On a perp venue that means thousands of fills, each with its own acquisition and transfer value in EUR — not a year-end balance estimate.

Every trade is a permuta

Spain's framing is stricter than most: exchanging one asset for another is a 'permuta' — a taxable disposal in its own right — and the transfer value is the higher of what you gave and what you received. Crypto-to-crypto swaps count. A leveraged or perpetual position close lands in the same savings base: each realized gain or loss is a ganancia or pérdida patrimonial.

Fees fold into the arithmetic cleanly: acquisition fees raise the acquisition value, disposal fees reduce the transfer value. On Hyperliquid, where fills carry signed fees including rebates, the sign matters — a rebate is negative cost, which the Spanish rule handles naturally.

FIFO is mandatory — and undocumented basis can be set to zero

For fungible assets Spain requires FIFO (art. 37.2 LIRPF): the units acquired first are the ones deemed sold first. There's no pooling choice like the UK's s.104 and no specific-lot election like the US. For a perp book that's actually a simplification — no same-day or 30-day matching rules — but it makes the complete acquisition history the entire game.

The sharper edge: if you can't document when and at what price the units you disposed of were acquired, the acquisition value risks being set to zero — the entire proceeds become gain. A venue API that serves a rolling recent window is not a record. The fills have to be reconstructed all the way back, which is exactly what public-ledger data makes possible.

Modelo 721 — the March declaration people miss

Separate from the Renta, Spain requires an informative declaration — modelo 721 — for virtual currencies held abroad when the combined value on 31 December exceeds €50,000. It covers holdings with a third-party custodian that is neither resident in Spain nor a permanent establishment — foreign exchanges in practice. Filing window: 1 January to 31 March. After the first filing you only re-file if the balance rises more than €20,000 over the last declared figure, or you cease to hold.

The post-2022 penalty regime is proportionate — the ECJ struck down the old modelo 720's punitive fines; the current regime runs €20 per omitted data item (min €300, max €20,000). Proportionate, but a €300 minimum per omission is still a penalty for a form many traders don't know exists.

Where does a non-custodial venue sit? Self-custody is outside modelo 721 — the rule targets third parties safeguarding your keys. Whether a smart-contract custody arrangement counts is the unsettled edge: Hyperliquid's bridge holds USDC in a contract, not a custodian. This is a genuine grey area — the conservative read with your adviser beats a silent assumption either way.

Income items and wealth tax

Not everything is a disposal. Staking and lending-type returns are generally savings-base capital income; airdrops have been treated by the DGT as income-like gains in the general base — the classification calls are fact-dependent and yours. What isn't optional is having claim dates, amounts and EUR values on file.

Holdings on 31 December also feed the wealth tax (Impuesto sobre el Patrimonio): crypto counts at year-end value once you clear the threshold — €700,000 nationally plus a €300,000 primary-residence allowance, but the autonomous communities differ sharply (Madrid rebates 100%, others don't). A trader's December balance is not just a tax-year boundary — it's a second declaration's measuring date.

The record you actually need

A Spanish-ready record is per-fill: timestamp, market, size, price, EUR value, fee sign, and which earlier acquisition each disposal consumed under FIFO — across every venue and wallet you touched, because FIFO is per asset per person, not per account. Losses offset same-year gains, then up to 25% of positive capital income, with a four-year carryforward — which is only worth what your documentation is.

On Hyperliquid the complete fill history is reconstructable from the public ledger — venue API window or not. The reconstruction is what makes a zero-basis argument impossible to make.

Common questions

?What are Spain's crypto tax rates?

Gains go in the IRPF savings base: 19% to €6k, 21% to €50k, 23% to €200k, 27% to €300k, 30% above. Income-type items can land in the general base, which tops out much higher depending on your autonomous community.

?Is a crypto-to-crypto trade taxable in Spain?

Yes — it's a permuta, a disposal at the higher of the two market values. Perp position closes produce gains/losses in the savings base the same way.

?Do I have to file Modelo 721 for Hyperliquid?

Modelo 721 targets third-party custodians abroad with holdings over €50k on 31 December. Hyperliquid's non-custodial design is a genuine grey area — there's no custodian in the literal sense. Take the question to a Spanish adviser rather than assuming either way.

?Can I use a different cost method than FIFO?

No — FIFO is mandatory for fungible assets in Spain. And if you can't document the acquisition of the units you sold, the basis risks being set to zero. Complete history isn't optional.

Sources & method

Verify your own record first — free

Paste your address and the check recomputes every fill, sums funding and signed fees, and closes the account-value identity — with a PDF you can hand to whoever files for you.

Run the free check