DeFi Taxes US 2026 – Complete Guide to Every DeFi Tax Event
DeFi creates dozens of unique tax events that do not exist in traditional finance. This comprehensive guide covers how the IRS taxes every major DeFi activity.
The Core IRS Principle: Every Disposal Is Taxable
Calculate Your Crypto Taxes Automatically
Import your transactions and get a complete tax report in minutes – no manual spreadsheets needed.
Start for free →The IRS treats every cryptocurrency as property. Any time you exchange one token for another, provide tokens to a protocol, or receive tokens from a protocol, you may have a taxable event. DeFi activity amplifies the number of such events dramatically compared to simple buy-and-hold investing.
DEX Token Swaps
Swapping tokens on Uniswap, Curve, SushiSwap, or any other DEX is a taxable crypto-to-crypto trade. You dispose of the token you give up (triggering capital gains or losses based on your cost basis) and receive a new token (establishing a new cost basis at the current market value). This applies even to stablecoin swaps – swapping USDC for USDT at 1:1 is technically a taxable event, though the gain is typically near zero.
Liquidity Pool (LP) Taxes
Adding and removing liquidity from pools involves multiple potential tax events:
- Depositing into a pool: You exchange your tokens for LP tokens. Most practitioners treat this as a taxable disposal of the deposited tokens (swap for LP tokens).
- Holding LP tokens: Your share of the pool grows as trading fees accumulate. These fees may be taxable income as they accrue or when you withdraw.
- Withdrawing from a pool: You return LP tokens and receive your underlying tokens. The return of your tokens may constitute another taxable exchange.
- Impermanent loss: Not directly tax-deductible until you realize it by withdrawing. The "loss" is reflected in the cost basis of tokens received on exit.
Yield Farming and Liquidity Mining
Protocols reward liquidity providers with governance tokens or other rewards. These rewards are taxable as ordinary income at fair market value when received. The value at receipt also becomes your cost basis in those reward tokens for future capital gains calculations.
Lending and Borrowing
Lending crypto on Aave, Compound, or similar protocols:
- Depositing crypto: Exchanging ETH for aETH (or similar receipt tokens) may be a taxable disposal
- Interest earned: Taxable as ordinary income when received or accrued
- Borrowing against collateral: Taking out a loan is generally not taxable (loans are not income)
- Liquidation: If your collateral is liquidated, it is treated as a forced sale at the liquidation price
Staking in DeFi vs Protocol Staking
DeFi staking (locking tokens in a smart contract to earn rewards) creates the same income event as exchange staking: rewards are ordinary income at fair market value. Liquid staking derivatives (stETH, rETH) may also trigger taxable exchanges when obtained.
NFT DeFi (NFTfi, Lending Against NFTs)
Using NFTs as collateral for DeFi loans does not typically trigger a taxable disposal (the NFT is not transferred, just pledged). However, if the NFT is liquidated to repay the loan, that constitutes a taxable sale of the NFT.
Tracking DeFi Transactions
DeFi transactions occur on-chain and can be imported by connecting your wallet address to crypto tax software. The software fetches all interactions from Ethereum, Solana, BNB Chain, and other supported chains via their respective explorers. Manual tracking of DeFi activity is extremely difficult and error-prone – software is strongly recommended.
Gas Fees as Tax Deductions
Gas fees paid in ETH or other native tokens to execute DeFi transactions may be deductible in two ways: added to the cost basis of assets acquired (increasing basis, reducing future gains) or deducted as an investment expense. The specific treatment depends on the nature of the transaction. Keep records of all gas fees paid.
Related Resources
Generate Your Crypto Tax Report
Import your transactions and get an audit-ready PDF report in minutes.
Start for free →Disclaimer: This article is for general informational purposes only and does not constitute tax advice. For individual tax advice, consult a licensed tax professional.