DeFi Taxes: Complete Guide to Taxing DeFi Activities in 2026

June 16, 2026 3 min read

Key Takeaways

  • Every token swap is a taxable disposal — swapping ETH for USDC, or swapping pegged tokens, still crystallises a capital gain or loss.
  • Yield farming and airdrop rewards are income at fair market value when received, and compounding rewards is taxed each time.
  • Adding liquidity usually isn't a disposal, but withdrawing from a pool is, and trading fees are income at receipt.
  • Borrowing against crypto isn't taxable, but a liquidation is treated as a sale of the collateral.

DeFi creates complex tax situations. Swapping tokens, providing liquidity, yield farming, and borrowing all have different tax treatments.

Here’s the complete breakdown of DeFi taxes.

DeFi tax treatment for swaps, liquidity pools, yield farming, and borrowing

DeFi Activities and Tax Treatment

Token Swaps (Uniswap, SushiSwap)

EventTaxable?Treatment
Swap ETH for USDCYesCapital gains on ETH
Swap USDC for ETHYesCapital gains on USDC
Swap same pegged tokensYesStill taxable
Each swap = a saleAlwaysTreat as disposing of old token

Example: Swap 1 ETH ($2,500) for 2,500 USDC

  • You disposed of ETH at $2,500
  • If your ETH cost basis was $1,500, you have $1,000 capital gain
  • Taxed at your capital gains rate

Providing Liquidity (LP Tokens)

EventTaxable?Treatment
Add liquidity (deposit tokens)Usually noNo disposal
Receive LP tokensNoNot income
Remove liquidity (withdraw)YesCapital gains on tokens
Earn trading feesYesIncome at receipt
Impermanent lossNot until realizedOnly when withdrawing

Yield Farming

EventTaxable?Treatment
Stake LP tokensNoNo disposal
Receive farm tokensYesIncome at FMV
Sell farm tokensYesCapital gains
Compound rewardsYesIncome each time

Airdrops

EventTaxable?Treatment
Receive airdropYesIncome at FMV
Sell airdropYesCapital gains
Unclaimed airdropNoNot until claimed

Borrowing Against Crypto

EventTaxable?Treatment
Borrow against collateralNoNot a taxable event
Pay interestNoNot deductible (personal)
LiquidatedYesTreated as sale of collateral
Repay loanNoNo tax event

Country-Specific Rules

ActivityUSUKCanada
Token Swaps0-20% LTCG18-28% CGT50% taxable
Yield Farming10-37% income20-45% income100% income
Liquidity PoolsVariesVariesVaries
AirdropsOrdinary incomeIncome taxIncome at FMV
BorrowingNot taxableNot taxableNot taxable
LiquidationTaxable saleTaxable disposalTaxable disposition

Record-Keeping for DeFi

You need to track:

Data PointWhy
Date/timeTo determine short vs long-term
Transaction typeSwap, LP, farm, borrow
Tokens involvedBoth sides of the transaction
AmountsToken amounts and USD value
Gas feesFor cost basis calculation
Wallet addressesFor audit trail

DeFi Tax Software

Not all tax software handles DeFi well. Here’s what works:

SoftwareDeFi SupportChainsPrice
KoinlyExcellent300+$49-279
CoinTrackerGood100+$59-599
TokenTaxGoodMajor chains$65-799
ZenLedgerGood20+$49-999
AccointingGood100+$49-299

Common DeFi Tax Mistakes

MistakeWhy It’s Wrong
Ignoring token swapsEvery swap is taxable
Not tracking LP positionsWithdrawals are taxable
Forgetting airdropsIncome when received
No records of gas feesNeeded for cost basis
Treating DeFi as tax-freeAll crypto is taxable

Activity by activity

Key PointTakeaway
SwapsAlways taxable (capital gains)
Liquidity poolsTaxable when withdrawing
Yield farmingIncome at receipt
AirdropsIncome at FMV
BorrowingNot taxable (until liquidated)
Track everythingUse DeFi-compatible tax software

Building a DeFi record-keeping routine

DeFi moves fast and produces dozens of small events, so the only reliable defence is a record routine that runs while you transact rather than after. For each interaction capture the date and time (to determine short versus long-term holding), the transaction type, the tokens on both sides, the amounts with their USD value, the gas fees for cost basis, and the wallet addresses for an audit trail. Services such as Koinly support 300+ protocols and auto-import from MetaMask, Trust Wallet, and Ledger, which removes much of the manual burden. When you later file, the software maps each swap, reward, and withdrawal to the correct tax treatment instead of leaving you to reconstruct months of activity from memory.

What to avoid

The mistakes that most often catch out DeFi users are about classification rather than arithmetic. Counting a token swap as a mere position change when it is really a disposal understates gains. Treating a liquidity-pool withdrawal as a non-event when it is taxable, or forgetting that airdrop and farming rewards are income the moment they arrive, leads to underreported income. Rebasing tokens and multi-hop swaps confuse even experienced trackers, and flash loans sit in a grey area that most software handles poorly. The practical answer is to assume every crypto interaction is taxable until you have confirmed otherwise, and to lean on a tax professional when your activity involves the genuinely complex corners of DeFi.

Frequently Asked Questions

Is swapping one token for another taxed in DeFi?

Yes. Every token swap is a taxable disposal. For example, swapping 1 ETH at $2,500 that you bought for $1,500 creates a $1,000 capital gain. Even swapping pegged tokens is still a taxable event.

How are liquidity pool deposits taxed?

Depositing tokens to add liquidity is usually not a disposal and receiving LP tokens is not income. But removing liquidity is taxable on the tokens withdrawn, and any trading fees you earn are income at receipt.

Are yield farming rewards taxable?

Yes. Farm tokens you receive are income at their fair market value when received, selling them creates a capital gain, and compounding rewards is a taxable event each time the reward is received.

Is borrowing against my crypto taxable?

Borrowing against collateral is not a taxable event, and personal interest isn't deductible. However, if your position is liquidated, the liquidation is treated as a sale of the collateral and is taxable.

PP
PaisayehPaisa Editorial Team
Financial education in plain language. Our team reviews every article for accuracy and clarity.
← Back to Crypto Tax Search all articles
This content is for educational purposes only. Not financial advice. Do your own research before investing.