Kointax.ioKointax.io

CEX vs DEX: differences in tax treatment

Centralized vs decentralized exchanges: are there tax differences? Reporting to the AEAT, custody, and how it affects your tax return.

··5 min read
Revisado

Respuesta rápida

Centralized vs decentralized exchanges: are there tax differences? Reporting to the AEAT, custody, and how it affects your tax return.

CEX vs DEX: differences in tax treatment

Operations on centralized exchanges (Binance, Kraken…) and decentralized exchanges (Uniswap, 1inch…) have the same substantial tax treatment, but differ in important practical aspects.

Tax treatment: identical

In both CEX and DEX, a crypto sale is a capital transfer that generates a gain or loss. An ETH→USDC swap on Uniswap has exactly the same treatment as the same swap on Binance: a taxable event at the time of the exchange.

The technology executing the exchange (centralized order book vs smart contract) does not change the economic nature of the operation.

Relevant practical differences

Reporting to the AEAT (Forms 172/173)

  • CEX based in Spain (Bit2Me, 2gether…): required to report balances and operations to the AEAT.
  • Foreign CEXs (Binance, Kraken…): will report via DAC8 starting in 2026.
  • DEX (Uniswap, Curve…): do not report directly to the AEAT. The information is on the public blockchain, but there is no automatic reporting yet.

Custody

  • CEX: Assets are under the exchange's custody (risk of bankruptcy, hack…). You still report them.
  • DEX: You control your private keys. No one provides custody for you.

History extraction

  • CEX: You export a CSV with the entire history in a few clicks.
  • DEX: You need to use blockchain explorers (Etherscan, etc.) or wallet analysis tools (Debank, Zapper, Koinly, Rotki…) to reconstruct the history.

Fees

  • CEX: Trading fee charged by the exchange (included in the statement).
  • DEX: Network gas fees (Ethereum, etc.) plus protocol fee. Gas fees are part of the operation cost and affect the cost basis.

Gas fees and the cost basis

In DEX operations, gas fees paid in ETH are part of the transaction cost:

  • When buying: the gas paid is added to the acquisition cost of the purchased asset.
  • When selling/swapping: the gas paid reduces the net disposal value.

In CEXs, trading fees are already detailed in the CSV and are treated the same way.

DEX and privacy: do not be confused

Using a DEX does not make operations invisible to the tax authorities. The blockchain is public. If your wallet is associated with your identity (because you deposited from a verified CEX), the AEAT can trace the operations.

Conclusion

Fiscally, CEX and DEX are the same. The difference is practical: CEXs provide the history in CSV; DEXs require more manual work. For a correct tax return, the origin of the operations does not matter; what matters is that all of them are correctly recorded and calculated.

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