Skip to main content
DFR Publication
IntermediateGetting Started
18 min

How DeFi Taxes Work: A Plain-English UK and US Guide

In the US and UK, every crypto-to-crypto swap is a taxable disposal event; EU treatment varies (France, for example, defers tax on crypto-to-crypto swaps, and Germany exempts gains on crypto held for more than one year). 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.

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.

Desk-researched · Editorial responsibility: Kaiser Khan · Last updated . We have not used reader funds in these protocols — this guide is built from official docs and public on-chain data.

Educational content only — not financial advice. Cryptocurrency involves significant risk including total loss of funds.

On this page (14 sections)
  1. Who should skip this?
  2. Why DeFi creates complex tax situations
  3. The core principle: disposals and income
  4. Which DeFi activities are taxable
  5. How is DeFi taxed in the UK?
  6. How is DeFi taxed in the US?
  7. Are crypto airdrops taxable?
  8. Is wrapping ETH a taxable event?
  9. Cost basis: what you actually paid
  10. Crypto tax software that handles DeFi
  11. Record-keeping: what to save
  12. UK readers: HMRC detail lives on Digital Assets UK
  13. Frequently asked questions
  14. 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

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 disposal of the tokens you depositYou 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 earnedIncome when receivedTrack carefully — often complex
Airdrop receivedIncome in most jurisdictionsUS: taxable as income; UK: may be income or CGT
Lending/borrowing (collateral)Possibly a disposalUK: 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
LiquidationDepends on how the deposit was treatedUK: 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 ETHDisposal of ETHETH is 'sold' at the NFT price
Gas fees paidAdd to cost basis or deduct as expenseKeep records — it adds up

How is DeFi taxed in the UK?

HMRC treats cryptoassets held by individuals as property, not currency. Selling a token, swapping it for another token, spending it or using it to pay for something is normally a disposal for Capital Gains Tax. Buying crypto with pounds is not a disposal; it sets your cost.

Gains above the annual exempt amount (£3,000 from 2024–25) are taxed at 18% or 24% depending on your income. Tokens received as staking or lending rewards are generally treated as income when you receive them, valued in pounds on that date, and a later sale can then produce a capital gain on top. Whether depositing tokens into a lending or liquidity protocol is itself a disposal depends on whether beneficial ownership passes, which HMRC analyses protocol by protocol in its DeFi manual pages.

Gains and income go on your Self Assessment return. From 1 January 2026, UK crypto service providers collect user details and transaction data under the Cryptoasset Reporting Framework, so assume HMRC can see exchange activity.

How is DeFi taxed in the US?

The IRS treats digital assets as property. Selling crypto for dollars, exchanging one token for another or spending it is a realisation event, and your cost basis and holding period decide whether the result is a short- or long-term capital gain or loss.

Rewards are generally ordinary income at fair market value when you gain dominion and control over them. Revenue Ruling 2023-14 applies this to staking rewards, and Revenue Ruling 2019-24 to airdrops following a hard fork. Selling those tokens later is a separate capital gain or loss measured from that value.

The IRS has not published rules for every DeFi mechanic, such as depositing into a lending pool, minting LP tokens or liquid staking, so practitioners reason from the general property and income principles. Form 1040 asks every filer whether they received or disposed of digital assets, and brokers report digital-asset sales on Form 1099-DA.

Are crypto airdrops taxable?

In the US, usually yes on receipt: the IRS treats tokens you gain control of as ordinary income at fair market value, with a capital gain or loss when you later sell or swap them.

In the UK, it depends on why you received them. HMRC says Income Tax may not apply to an airdrop received without doing anything in return and outside a trade, but does apply when the tokens were given in return for, or in expectation of, a service. Either way, disposing of airdropped tokens later can produce a chargeable gain.

Keep the claim date, transaction hash, quantity and a contemporaneous market price for every airdrop. Claim sites are also a favourite phishing lure, so verify the address before you connect a wallet.

Is wrapping ETH a taxable event?

Wrapping deposits ETH into a contract and mints the same amount of WETH, an ERC-20 token that DEXes and lending markets accept. Economically you still hold one ether, minus gas.

Neither HMRC nor the IRS has published guidance that names wrapping. Because the asset you hold changes from native ETH to a different token, a strict reading of the general rule that swapping one token for another is a disposal could catch it; many advisers instead treat a one-for-one wrap you can always reverse as no change in what you own. Ask a qualified adviser which view to take and apply it consistently, and keep the wrap and unwrap transaction hashes either way.

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.

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

  1. Cryptoassets for individuals: Income Tax: airdrops (CRYPTO21250) — HMRC Cryptoassets Manual. UK airdrops: Income Tax only when given for a service or in a trade; CGT on later disposal
  2. Revenue Ruling 2019-24 (hard forks and airdrops) — IRS. US airdropped tokens are ordinary income when the taxpayer gains dominion and control
  3. 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
  4. 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
  5. Cryptoassets for individuals: Income Tax: staking (CRYPTO21200) — HMRC. UK staking rewards taxed as income at sterling value when received; later disposal subject to CGT
  6. Capital Gains Tax rates and allowances — HMRC. UK capital gains tax owed on profit above annual exempt amount; current CGT rates
  7. Digital assets — US IRS. IRS digital-asset question on Form 1040; fees paid in crypto are transactions; Form 1099-DA broker reporting
  8. Revenue Ruling 2023-14 (staking rewards) — US IRS. US staking rewards are income at fair market value when received
  9. 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.

Does HMRC tax DeFi lending and staking rewards?

Generally yes, as income when you receive them, valued in pounds on that date, with Capital Gains Tax possible when you later dispose of the tokens. The exact treatment depends on the arrangement, so check HMRC's cryptoassets manual or an adviser.

Are US staking rewards taxed when received?

Under Revenue Ruling 2023-14, staking rewards are ordinary income at fair market value in the year you gain dominion and control over them. Selling them later creates a separate capital gain or loss.

If I never sell airdropped tokens, is there still tax?

Possibly. In the US an airdrop is usually income on receipt even if you never sell. In the UK, Income Tax applies only to some airdrops, such as those received for doing something, but a later disposal can still be taxable.

More guides