Kointax.ioKointax.io

Yield aggregators (Yearn, Beefy) in Spain: tax treatment of auto-compounded yields

Yield aggregators auto-compound yields. When does the taxable event occur in Spain?

Equipo kointax·January 23, 2026·4 min read

Yield aggregators in Spain: tax treatment

How they work: Deposit USDC → receive yUSDC → yields auto-compound → withdraw more USDC than deposited.

Conservative position: Each auto-compound = taxable capital income event

Majority position (widely adopted — used by kointax): Taxable event = withdrawal. Gain = (amount withdrawn - amount deposited). Auto-compounding is internal to protocol.

If you sell yTokens on a DEX: That sale is a taxable event at the moment of sale.

👉 Manage your yield aggregators with kointax

Ready to calculate your crypto taxes?

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

Start free — no card needed