All guides
IntermediateGetting Started
15 min
Updated May 2026

How DeFi Taxes Work: A Plain-English Guide

DeFi creates tax events that most people miss. This guide explains which DeFi activities are taxable, how cost basis works, and how to keep records that will satisfy a tax authority.

Educational content only — not financial advice. Cryptocurrency involves significant risk including total loss of funds. Consult a qualified financial adviser before investing.

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

ActivityTax treatment (typical)Notes
Token swap (ETH → USDC)Disposal + possible gain/lossTreated as selling ETH at current price
Buying ETH with fiatNot taxableEstablishes your cost basis
Staking rewards receivedIncome at market value when receivedAlso creates new cost basis for the tokens
Liquidity provision (adding to pool)Possible disposalJurisdiction-dependent; often treated as disposal of LP tokens
LP fees earnedIncome when receivedTrack carefully — often complex
Airdrop receivedIncome in most jurisdictionsUS: taxable as income; UK: may be income or CGT
Lending/borrowing (collateral)Not taxable (just locking collateral)But receiving interest tokens may be income
LiquidationDisposal eventLiquidation of collateral is treated as a sale
NFT purchase with ETHDisposal of ETHETH is 'sold' at the NFT price
Gas fees paidAdd to cost basis or deduct as expenseKeep 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.

SoftwareDeFi SupportChainsPricing
KoinlyExcellent — auto-detects most DeFi350+ chainsFrom $49/year
CoinTrackerGood — major protocolsEthereum + major chainsFrom $59/year
ZenLedgerGood — US-focusedEthereum + major chainsFrom $49/year
TaxBitGood — enterprise focusMajor chainsFrom $50/year
CoinpandaGood — Europe-friendly350+ chainsFrom $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.

More guides