Kointax.ioKointax.io

Decentralized Exchanges (DEX) vs. centralized (CEX): tax implications

Trading on DEX or CEX has different tax implications. DEXs do not report to the Treasury but your operations are still reportable. Discover the differences and how to keep track.

··8 min read

Respuesta rápida

Trading on DEX or CEX has different tax implications. DEXs do not report to the Treasury but your operations are still reportable. Discover the differences and how to keep track.

Decentralized exchanges (DEX) vs. centralized (CEX): tax implications

The choice between trading on a centralized (CEX) or decentralized exchange (DEX) has important tax implications. Both types generate the same tax obligation, but the risk of control and the ease of registration are very different.

CEX: centralized exchanges

Examples: Binance, Coinbase, Kraken, Bybit, OKX.

Tax characteristics:

  • They require KYC (identity verification) → the AEAT can obtain your data.
  • They report (or will report) through Forms 172/173 and DAC8.
  • They export CSV with complete transaction history.
  • Easier to audit by the Treasury.

Advantage for the taxpayer: The histories are easier to obtain and usually include prices in euros in each operation.

DEX: decentralized exchanges

Examples: Uniswap, Curve, SushiSwap, Jupiter (Solana), dYdX.

Tax characteristics:

  • They do not require KYC → there is no personal data on the platform.
  • They do not report directly to the Treasury (for now).
  • Transactions are public on the blockchain, but the AEAT needs to link them to an identity.

Does this mean that you do not have to declare on DEX? No. DEX operations also generate taxable events and are equally reportable. The obligation is on the taxpayer, regardless of whether the platform reports or not.

How does the AEAT find DEX operations?

  1. Linkage with CEX: If you move funds from a CEX (where your ID is) to a wallet and then operate on DEX, the AEAT can track it.
  2. Blockchain analysis: With analytics tools (Chainalysis, TRM Labs), wallets can be linked to identities through behavioral patterns.
  3. Bank income: If you withdraw the profits from your DEX to your Spanish bank account, the bank reports the income.
  4. Self-declaration: The taxpayer has the obligation to declare, whether or not there is a requirement.

Trade registration on DEX

Trading on DEX is more fiscally complex because:

  • There is no native CSV on the platform.
  • Operations are recorded in multiple smart contracts.
  • Historical prices should be consulted from external sources.

Solutions to export DEX history:

  • Etherscan: For any Ethereum wallet.
  • DeBank / Zapper: They add DeFi activity from multiple protocols.
  • The Graph: For advanced contract queries.
  • declaracrypto.es: Allows you to connect wallets and synchronize DEX operations automatically.

Tax comparison CEX vs. DEX

AppearanceCEXDEX
Mandatory KYCYesNo
Report to AEATYes (172/173/DAC8)Not direct
Exportable CSVYesManual/API
Obligation to declareYesYes
Risk if you don't declareHighCrescent
Operating commissionsMore declines in large CEXsGas fees + slippage

Recommended logging strategy

Regardless of where you operate:

  1. Always use the same wallets to facilitate tracking.
  2. Export blockchain history regularly (don't wait for the rental campaign).
  3. Combine CEX and DEX data into a single unified view.
  4. Apply FIFO on the total position in each cryptocurrency (CEX + DEX + own wallets = a single exchange).

Updated: April 2026 | Fiscal year: 2025

Sobre el autor

Verificado

Equipo editorial de Kointax

Equipo fiscal cripto · España

Detrás del contenido de Kointax hay un equipo de profesionales en fiscalidad española y desarrollo de software cripto. Revisamos cada guía contrastando con consultas vinculantes de la DGT, jurisprudencia de la Audiencia Nacional, normativa europea (MiCA, DAC8) y casos prácticos reales tratados en nuestra plataforma. El

Trabajo continuo con consultas vinculantes DGT actualizadas
Cobertura técnica directa de + 130 fuentes (exchanges + blockchains)

Especialidades: Fiscalidad cripto en España (IRPF, IVA, ISD) · Modelos 100, 172, 173, 720, 721 · Doctrina vinculante DGT cripto

Última revisión:

Preguntas y respuestas

Cargando preguntas…

Haznos tu pregunta

Las preguntas son moderadas antes de publicarse. No compartas información personal sensible.

Ready to calculate your crypto taxes?

Kointax — FIFO, LIFO, HIFO or WAC method. 80+ compatible exchanges. Excel + PDF report ready for your tax return.

Start free — no card needed