# How DeFi Taxes Work: A Plain-English Guide > Decentralized Finance Publication (decentralized-finance.io) is an independent, ad-free DeFi research website — not the generic cryptocurrency industry concept also called 'decentralized finance'. **Publisher:** Decentralized Finance Publication **Difficulty:** Intermediate · **Read time:** 15 min ## Summary 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: ## Which DeFi activities are taxable ## 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. ## 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 ## FAQ **Q: 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. **Q: 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. **Q: 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. **Q: 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. **Q: 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. --- Canonical: https://decentralized-finance.io/learn/how-defi-taxes-work/ AI text endpoint: https://decentralized-finance.io/ai/guides/how-defi-taxes-work.txt