Staking and lending: when there is yield and when there is not
In DeFi almost everything looks like a movement, but not everything is income. Locking or lending tokens is not taxed; collecting what they earn is. The line is drawn at the moment you receive the reward.
Depositing and withdrawing is not taxed
Putting tokens into staking or a lending protocol, and taking them out later, is not a disposal: the asset is still yours. There is no gain or loss and the lot keeps its original cost. Only what those tokens earn is taxed.
Rewards are investment income
Staking rewards, lending interest and liquidity pool rewards are investment income from lending your own capital to third parties, in the savings base (art. 25.2 of the Income Tax Act). The DGT set this out in rulings V1766-22 and V0648-24, and V0612-26, from March 2026, extends it to native, delegated and exchange-based staking and rules out treating it as a business activity.
Full value on the day received
A reward is taxed at its full market value in euros on the day you receive it. That value is also its acquisition cost: without recording it that way, selling those tokens later would report the whole income again.
Borrowing
Taking out a loan and repaying it is not taxed: what comes in is debt, not income. If the locked collateral earns yield, that yield is investment income even though you are the borrower. And borrowing fees are not deductible, according to ruling V0648-24.
Providing liquidity to a pool: no official ruling
V0648-24 classed pool earnings as investment income, but said nothing on whether exchanging your tokens for an LP token is a swap. No DGT ruling classes it that way. The most common position treats the LP token as a receipt for a position that is still yours, with no gain on deposit; the alternative is to compute a swap on each side. Your advisor decides which to apply.
Liquid staking and accrued rewards
This is not settled either. Receiving a liquid token in exchange for the one deposited raises the same question as the LP token. If the reward is paid out in units, it is income when received. If it accrues in the token’s value with no payout, V0612-26 suggests it is not attributed while you cannot actually dispose of it, and would be taxed on redemption.
What PortCodex does with this
PortCodex treats staking and lending deposits and withdrawals as movements with no tax effect, and each claimed staking, lending or pool reward as savings-base investment income at its full euro value, creating a lot with that cost. It detects on its own the rewards from Lido staking (each daily stETH rebase on Ethereum; wstETH does not rebase and is taxed when swapped) and native Solana staking (each epoch), as well as V3 pool fees and Aave v3 interest; other rewards are recorded from Portfolio. The stETH rebase is treated as income on the day it is credited, because those units are already yours and you can transfer them: this is a provisional view until the DGT clarifies liquid staking. Liquidity pool deposits are not computed as swaps: the cost carries over without being duplicated, and the report says so, so your advisor can calculate it separately under a different view. It does not replace a tax advisor.
Private beta
Your staking rewards, already booked
PortCodex is in private beta. Leave your email and, when there is room, every staking reward (Lido stETH and native Solana staking ones are detected on their own; the rest are recorded from Portfolio) will be booked at its euro value, with its lot at that cost.
Sources: arts. 25.2 and 43.1 of Law 35/2006 on Personal Income Tax; DGT binding rulings V1766-22, V0648-24 and V0612-26.
Informational guide, written from the criteria published by the DGT. It is not tax advice: for your specific case, talk to an advisor.