On this page (10 sections)
- Who should skip this?
- Why DeFi creates complex tax situations
- The core principle: disposals and income
- Which DeFi activities are taxable
- Cost basis: what you actually paid
- Crypto tax software that handles DeFi
- Record-keeping: what to save
- UK readers: HMRC detail lives on Digital Assets UK
- Frequently asked questions
- Sources
Who should skip this?
Skip this page if you needed a filing for your jurisdiction, or you wanted a protocol tutorial. Tax treatment depends on where you live. This is a map of the questions, not a substitute for an accountant.
- You needed a completed tax return
- You wanted US-only or UK-only professional advice
- You have no on-chain activity to report
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 the UK, except gifts to a spouse, civil partner or charity; US rules differ), 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 of the tokens you deposit | You receive LP tokens; UK: a disposal if beneficial ownership of the deposited tokens passes (HMRC CRYPTO61620). UK 'no gain, no loss' rules for crypto loans and liquidity pools are due from 6 April 2027 |
| 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) | Possibly a disposal | UK: depositing collateral is a disposal if the platform can deal with the tokens as it wishes (HMRC CRYPTO61640); receiving interest tokens may also be taxable |
| Liquidation | Depends on how the deposit was treated | UK: no further gain if depositing the collateral was already a disposal; if it was not, the liquidation counts as your own disposal |
| 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, FIFO (first-in-first-out) is the default. You can use specific identification — which lets you pick your highest-cost units ('HIFO') — only if your records identify the exact units sold, and from 1 January 2025 basis is tracked wallet by wallet (account by account), not in one universal pool. In the UK, disposals are matched first with same-day acquisitions of the same token, then with acquisitions in the following 30 days, and only then with the 'Section 104 pool' — all remaining holdings of that token pooled at average cost.
The choice of cost basis method can make a significant difference to your tax bill. Where it is allowed, picking highest-cost units (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 |
| Coinpanda | Good — Europe-friendly | 350+ chains | From $79/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 as long as you hold the asset, then for at least the statutory period — in the UK, 22 months after the end of the tax year if you file on time (5 years after the filing deadline if you are self-employed); in the US, generally 3 to 7 years
UK readers: HMRC detail lives on Digital Assets UK
This page is a DeFi map, not a Self Assessment walkthrough. For Section 104 pooling, SA108 boxes, CARF, and worked CGT examples, use the sister publication Digital Assets UK: the UK crypto tax guide 2026/27, DeFi tax UK, crypto lending and borrowing tax, and the nine-way tax software compare. Primary law remains GOV.UK and a qualified adviser.
Sources
Primary documentation and data this guide relies on. Links checked .
- Check if you need to pay tax when you sell cryptoassets — HMRC. UK disposals (swaps, spending, gifts), Section 104 pooling, 30-day rule, transaction fees as allowable costs, record-keeping
- Decentralised Finance: Lending and staking: Chargeable Gains: Making a DeFi loan (CRYPTO61620) — HMRC. Depositing into DeFi lending/liquidity pools can be a disposal depending on beneficial ownership
- Cryptoassets for individuals: Income Tax: staking (CRYPTO21200) — HMRC. UK staking rewards taxed as income at sterling value when received; later disposal subject to CGT
- Capital Gains Tax rates and allowances — HMRC. UK capital gains tax owed on profit above annual exempt amount; current CGT rates
- Digital assets — US IRS. IRS digital-asset question on Form 1040; fees paid in crypto are transactions; Form 1099-DA broker reporting
- Revenue Ruling 2023-14 (staking rewards) — US IRS. US staking rewards are income at fair market value when received
- Frequently asked questions on virtual currency transactions — US IRS. US crypto-to-crypto swaps are taxable; FIFO default versus specific identification cost-basis methods
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 — but in the UK the 30-day 'bed and breakfasting' rule means buying the same token back within 30 days largely cancels the loss, while US wash-sale rules do not currently apply to crypto, though legislation to change that has been proposed), choosing highest-cost units via specific identification (US, with adequate records), holding assets for more than one year to qualify for lower long-term capital gains rates (US: 0%/15%/20%), holding crypto exchange-traded notes (cETNs) in an Innovative Finance ISA where your provider allows it (UK — since 6 April 2026, new cETN purchases are not allowed in a stocks and shares ISA, and no ISA can hold tokens directly), 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. Under the UK's Cryptoasset Reporting Framework (in force from 1 January 2026), UK crypto service providers must collect user and transaction details — including for UK residents — and file their first reports with HMRC by 31 May 2027; users who give wrong or missing details can face a penalty of up to £300. In the US, brokers issue Form 1099-DA for gross proceeds on transactions from 1 January 2025 (and cost basis on certain transactions from 2026); non-custodial DeFi brokers are excluded. 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.
Where should UK filers start?
HMRC cryptoasset manuals on GOV.UK, then Digital Assets UK’s crypto tax guide 2026/27 and DeFi tax UK pages for worked examples. This site is protocol research, not a filing product.