Quick answer
In most jurisdictions (US, UK, EU), every crypto-to-crypto swap is a taxable disposal event. You owe capital gains tax on the profit (sale price minus your original purchase price). Additionally, earning yield, staking rewards, and receiving airdrops are typically treated as income and taxed in the year received. DeFi creates many more taxable events than simply buying and selling on an exchange.
Why DeFi creates complex tax situations
When most people think about crypto taxes, they think about buying Bitcoin and selling it later for a profit. That part is relatively straightforward. DeFi is vastly more complex because almost every interaction creates a taxable event.
A single day of active DeFi use might involve: swapping ETH for USDC (disposal of ETH), depositing USDC into Aave (potentially a disposal), receiving aTokens (potentially income), earning accrued interest (income), withdrawing and swapping back (another disposal), and receiving governance token rewards (income). Each of these events needs to be recorded and potentially reported.
This guide covers UK and US tax treatment primarily, but the principles apply broadly. Always consult a qualified tax professional for your specific situation — this is educational information, not tax advice.
The core principle: disposals and income
Almost all crypto tax comes down to two categories:
- Disposal
- Any time you give up ownership of a crypto asset — selling it, swapping it for a different token, spending it, gifting it (in most jurisdictions), or using it to pay gas fees. A disposal creates a capital gain or loss: sale proceeds minus your original cost basis (what you paid for it).
- Income
- Receiving crypto as compensation for something — staking rewards, yield, liquidity mining rewards, referral bonuses, airdrops (in most jurisdictions), and interest. Income is taxed at your ordinary income rate in the year you receive it, valued at market price on the date received.
Which DeFi activities are taxable
| Activity | Tax treatment (typical) | Notes |
|---|---|---|
| Token swap (ETH → USDC) | Disposal + possible gain/loss | Treated as selling ETH at current price |
| Buying ETH with fiat | Not taxable | Establishes your cost basis |
| Staking rewards received | Income at market value when received | Also creates new cost basis for the tokens |
| Liquidity provision (adding to pool) | Possible disposal | Jurisdiction-dependent; often treated as disposal of LP tokens |
| LP fees earned | Income when received | Track carefully — often complex |
| Airdrop received | Income in most jurisdictions | US: taxable as income; UK: may be income or CGT |
| Lending/borrowing (collateral) | Not taxable (just locking collateral) | But receiving interest tokens may be income |
| Liquidation | Disposal event | Liquidation of collateral is treated as a sale |
| NFT purchase with ETH | Disposal of ETH | ETH is 'sold' at the NFT price |
| Gas fees paid | Add to cost basis or deduct as expense | Keep records — it adds up |
Cost basis: what you actually paid
Your cost basis is what you paid for an asset, including any fees. When you dispose of an asset, your gain is: proceeds minus cost basis. The hard part in DeFi is tracking cost basis across hundreds of transactions on multiple chains.
Different jurisdictions allow different cost basis methods. In the US, you can choose FIFO (first-in-first-out), HIFO (highest-in-first-out, minimises gains), or specific identification. In the UK, HMRC uses the 'Section 104 pool' method — all holdings of the same token are pooled, and you use the average cost across the pool.
The choice of cost basis method can make a significant difference to your tax bill. HIFO typically produces the lowest taxable gains because it matches disposals against your highest-cost purchases first.
- Record every transaction immediately — reconstructing a year of DeFi history retroactively is extremely painful
- Track gas fees — they can often be added to your cost basis or deducted as an expense
- Note the USD/GBP value of all tokens received at the time received, not later
- Be especially careful with DeFi tokens that rebase (like stETH) — the daily balance increases count as income
Crypto tax software that handles DeFi
No spreadsheet can realistically handle thousands of DeFi transactions across multiple chains. Crypto tax software that reads directly from blockchain explorers is essential for active DeFi users.
| Software | DeFi Support | Chains | Pricing |
|---|---|---|---|
| Koinly | Excellent — auto-detects most DeFi | 350+ chains | From $49/year |
| CoinTracker | Good — major protocols | Ethereum + major chains | From $59/year |
| ZenLedger | Good — US-focused | Ethereum + major chains | From $49/year |
| TaxBit | Good — enterprise focus | Major chains | From $50/year |
| Coinpanda | Good — Europe-friendly | 350+ chains | From $65/year |
Even the best crypto tax software makes errors on complex DeFi transactions (especially liquidity pools and yield tokens). Review the categorisation of every transaction — do not just export and file without checking.
Record-keeping: what to save
- Export transaction history from every wallet and exchange at year-end — blockchains are public but exchange records can be deleted
- Save screenshots or exports of any airdrop claims, showing the date and market price
- Keep records of all staking rewards received, with dates and values
- Note any tokens you received from liquidity pools — track when you entered, what you deposited, what you received on exit
- Keep records for at least 5 years (UK) or 7 years (US) after filing
Frequently asked questions
Do I have to pay tax if I just hold crypto and never sell?
Generally no — in most jurisdictions, simply holding crypto is not a taxable event. Tax is triggered when you dispose of it (sell, swap, spend) or earn it (staking, yield, airdrops). Unrealised gains are not taxed until realised in most countries.
Is swapping one crypto for another really a taxable event?
In the US and UK, yes. HMRC and the IRS both treat crypto-to-crypto swaps as two simultaneous events: a disposal of the first token (creating a capital gain/loss) and an acquisition of the second token (establishing a new cost basis). This catches many people by surprise — if you swapped ETH for stablecoins at the peak of 2021, you owe capital gains tax even if you later lost money on the stablecoin side.
What if I can't find my old transaction history?
Blockchain transactions are permanent and public — you can reconstruct your history from block explorers like Etherscan, Solscan, etc. using your wallet addresses. Crypto tax software can import directly from wallet addresses by reading the public blockchain. The hard part is valuing each transaction at its historical market price, which tax software also handles automatically.
Are there any legitimate ways to reduce my DeFi tax bill?
Yes, several legitimate strategies exist: tax-loss harvesting (selling assets at a loss to offset gains in the same tax year), choosing HIFO cost basis accounting (US), holding assets for more than one year to qualify for lower long-term capital gains rates (US: 0%/15%/20%), using a stocks and shares ISA for some crypto exposure if available (UK), and making pension contributions to reduce your adjusted gross income (US). None of these involve hiding income — they are all legal tax planning strategies.
What happens if I don't report crypto taxes?
Tax authorities in the US, UK, and EU have significantly increased crypto enforcement. The IRS now asks directly about crypto on Form 1040. HMRC has obtained customer data from major UK exchanges. Under-reporting crypto income or gains is tax evasion — penalties can include back-taxes plus interest, civil penalties (up to 75% of unpaid tax in the US), and in serious cases, criminal prosecution. Voluntary disclosure programmes typically result in much lower penalties than being caught.