How is DeFi Taxed? A Complete Guide for 2026
How DeFi is taxed: liquidity pools, yield farming, lending, borrowing and governance tokens, with the rules for the US, UK, Australia and Canada.
Quick Summary: DeFi (Decentralised Finance) activities are taxable in the US, UK, Australia and Canada. Depending on the activity, you may owe income tax (on rewards received) or capital gains tax (on disposal of crypto assets). The complexity of DeFi means most investors need specialist software to track their obligations accurately.
What is DeFi?
DeFi refers to financial services built on public blockchains, primarily Ethereum, without traditional intermediaries like banks. Common DeFi activities include:
- Swapping tokens on DEXes (Uniswap, Curve, etc.)
- Providing liquidity to liquidity pools
- Yield farming: moving capital between protocols to maximise returns
- Lending crypto (Aave, Compound)
- Borrowing against crypto collateral
- Staking (validator staking and liquid staking like Lido)
- Receiving governance tokens as rewards
DeFi Swaps (DEX Trading)
Trading on a decentralised exchange (Uniswap, etc.) is treated identically to a centralised exchange trade: you are disposing of one asset and acquiring another. This is a taxable event in all three countries.
Example: Swapping 1 ETH (cost basis £2,000) for 2,000 USDC when ETH is worth £3,000 creates a capital gain of £1,000.
Gas fees paid to execute the swap are typically deductible from your proceeds.
Liquidity Pool Deposits
When you deposit tokens into a liquidity pool (e.g. Uniswap V2), you typically:
- Dispose of the tokens you deposit (potentially triggering CGT)
- Receive LP tokens representing your share of the pool
The LP tokens have a cost basis equal to the value of tokens deposited at time of deposit.
When you withdraw from the pool, you dispose of LP tokens and receive underlying tokens: another potential taxable event.
Impermanent Loss
Impermanent loss occurs when the ratio of tokens in your LP position changes relative to simply holding. It is not deductible as a capital loss until you actually withdraw from the pool and realise the loss.
Yield Farming Rewards
Tokens earned through yield farming are generally taxed as income at market value when received. When you later sell those tokens, you create an additional capital gain or loss based on the change in value since you received them.
Staking Rewards
HMRC, the ATO, the CRA and the IRS all treat staking rewards as taxable income when you receive them (for the IRS, when you gain control of them, under Rev. Rul. 2023-14). The value is the market price of the tokens in your local currency at the moment they enter your wallet.
Example:
- You receive 0.1 ETH staking reward when ETH = £3,000
- Income recognised: £300
- When you later sell that ETH for £4,000, you have an additional £700 capital gain
Lending and Borrowing
Lending
Interest earned by lending crypto (Aave, Compound) is taxable income. The tokens received are income at their value on receipt.
Borrowing
Borrowing against crypto collateral (taking a DAI loan against ETH) is generally not a taxable event: you have not disposed of your ETH, merely used it as collateral.
However, if your position is liquidated, this is a disposal of the collateral at the liquidation price, which may create a capital gain or loss.
Governance Token Airdrops
Tokens received as governance airdrops (e.g. UNI, COMP) are generally taxed as income at market value on receipt. HMRC has specific guidance confirming this for UK taxpayers.
Wrapped Tokens
Wrapping ETH into WETH (or similar) may or may not be a disposal depending on your jurisdiction. In the UK, HMRC has not provided definitive guidance, but wrapping is generally treated as a disposal of ETH and acquisition of WETH.
DeFi Tax by Country
| Activity | US (IRS) | UK (HMRC) | Australia (ATO) | Canada (CRA) |
|---|---|---|---|---|
| DEX swap | Capital gain | CGT | CGT | CGT |
| LP deposit | No specific IRS guidance | Disposal + income | Disposal + income | Disposal + income |
| Staking rewards | Income (Rev. Rul. 2023-14) | Income tax | Income tax | Income tax |
| Yield farming rewards | No specific IRS guidance | Income tax | Income tax | Income tax |
| Borrowing | No specific IRS guidance | Not taxable | Not taxable | Not taxable |
| Liquidation | Capital gain | CGT | CGT | CGT |
In the US, the IRS treats swapping one crypto for another as a disposal and staking rewards as income when you gain control of them. It has not published specific guidance on liquidity pools, yield farming or crypto loans, so get professional advice on those. See the US crypto tax guide.
Why You Need Crypto Tax Software for DeFi
DeFi activity generates hundreds or thousands of micro-transactions. Tracking cost bases across multiple protocols, calculating impermanent loss, and categorising income vs capital events manually is extremely complex. Specialist crypto tax software can:
- Import from all major DeFi protocols automatically
- Categorise transactions correctly
- Calculate income from staking/rewards
- Track cost basis through complex multi-step transactions
Best Crypto Tax Software
Frequently Asked Questions
Is staking income taxed when I receive it or when I sell?
In the US, UK, Australia and Canada, staking rewards are taxed as income at the time of receipt, at their market value. When you later sell, you pay capital gains tax on any increase in value since receipt.
Is providing liquidity to Uniswap a taxable event?
In most countries, yes. Depositing tokens into a liquidity pool constitutes a disposal of those tokens. The LP tokens you receive have a cost basis equal to the value of tokens deposited.
How do I report DeFi income if I received thousands of tiny rewards?
This is where crypto tax software is essential. Platforms like Koinly and CoinLedger can import your DeFi transaction history and aggregate rewards into a single income figure for tax reporting.
Are gas fees tax deductible?
Gas fees paid to acquire assets add to your cost basis. Gas fees paid to dispose of assets reduce your proceeds. Gas fees paid for transactions unrelated to disposals may not be deductible.
This article is for informational purposes only and does not constitute tax advice.
Official sources
This guide is based on the official guidance below. Tax rules change, so check the current version before you file.
- Rev. Rul. 2023-14: staking rewards (Internal Revenue Bulletin 2023-33), Internal Revenue Service
- CRYPTO61000: DeFi lending and staking, HMRC (GOV.UK)
- Decentralised finance and wrapping crypto, Australian Taxation Office
- Reporting income from crypto-asset transactions, Canada Revenue Agency