DeFi Tax Guide: How to Report Swaps, LPs, Staking & Airdrops
Complete guide to DeFi taxes. Learn how liquidity pools, yield farming, staking rewards, token swaps, and airdrops are taxed by the IRS.
DeFi Is a Tax Minefield — Here's the Map
Decentralized finance (DeFi) generates more tax complexity per dollar than almost any other crypto activity. A single yield-farming session can trigger dozens of taxable events: LP entry, reward harvests, reinvestment swaps, and eventually an LP exit — each with its own gain or loss calculation. Without proper tooling, it's nearly impossible to track manually.
This guide covers every major DeFi activity and how the IRS (or HMRC, CRA, ATO) is likely to treat it based on current guidance.
Token Swaps
Swapping one token for another on a DEX (Uniswap, Curve, Jupiter, Orca, etc.) is a taxable disposal. The IRS treats it identically to selling Token A and buying Token B at the same moment.
What gets reported:
- Proceeds = fair market value of the token you received at time of swap
- Cost basis = what you originally paid for the token you gave up
- Gain/loss = proceeds minus cost basis
Aggregated swaps (router paths through multiple pools, e.g., ETH → USDC → MATIC) are generally each treated as a separate swap event. Blockchain Smart Tax detects router hops and reconstructs the individual disposal events automatically.
Gas fees on EVM chains are added to the cost basis of what you acquired, or treated as a selling expense that reduces proceeds — depending on the transaction type.
Liquidity Pools (LPs)
LP taxation is the most contested area of DeFi tax law. There's no explicit IRS ruling, but the prevailing professional consensus is:
Entering an LP
When you deposit Token A and Token B into a pool, most tax professionals treat this as a taxable disposal of both tokens at their current fair market value. You receive LP tokens in return — those LP tokens have a cost basis equal to the FMV of what you deposited.
Some practitioners argue for a "no realization" position (similar to a contribution to a partnership), but the IRS has not blessed this approach. Without explicit guidance, the safer and more common approach is to recognize gain/loss on entry.
While in the pool
Trading fees earned passively inside the pool generally are not separately taxable as they accrue — they're reflected in the growing value of your LP position. However, any separately harvested yield (e.g., governance token rewards from liquidity mining) is ordinary income when claimed.
Exiting an LP
Withdrawing from the pool is another disposal event. You're disposing of your LP tokens (at their current FMV) and receiving the underlying tokens back. The underlying tokens have a new cost basis equal to their FMV at withdrawal.
Impermanent loss
Impermanent loss is real economic loss, but it's not a separate tax deduction. It's already reflected in the lower FMV of your LP position when you exit. You don't get an extra deduction for IL — the loss is captured in the disposal calculation automatically.
Blockchain Smart Tax tracks LP entries, exits, and reward harvests across 10 protocols on 4 chains, with a dedicated LP dashboard showing your open positions, cost basis, and unrealized IL.
Staking Rewards
The IRS position on staking rewards has been clarified through the Jarrett v. United States case (which the IRS ultimately settled, refusing to rule that newly created tokens are non-taxable). The current professional consensus: staking rewards are ordinary income when received, valued at the fair market value on the date received.
That FMV becomes your cost basis for future disposal. So if you receive 10 SOL as staking rewards worth $200/SOL, you report $2,000 of ordinary income. If SOL later rises to $300 and you sell, you have a $1,000 capital gain on top.
Liquid staking tokens (stETH, mSOL, jitoSOL) add another layer: receiving stETH for ETH may itself be a taxable swap, depending on whether you treat the stETH as a new asset or a receipt for the same ETH. Most practitioners treat the initial liquid staking as non-taxable (same asset, same value) but track rebases as income.
Yield Farming
Yield farming typically involves supplying liquidity to a protocol in exchange for governance or protocol tokens as rewards. These rewards are ordinary income at the time of receipt — even if you immediately reinvest them. The reinvestment is a separate acquisition with a new cost basis.
High-frequency auto-compounding strategies (e.g., Beefy Finance, Yearn vaults) can generate hundreds of micro-transactions per day. Blockchain Smart Tax aggregates and normalizes these events to prevent thousands of tiny income entries from overwhelming your return.
Airdrops
The IRS addressed airdrops in Revenue Ruling 2023-14: tokens received via airdrop are ordinary income at FMV when you have "dominion and control" — i.e., when they arrive in your wallet and you can transfer or sell them.
Important nuances:
- Unsolicited spam airdrops of worthless tokens: If the token has no liquid market and zero actual value, it's reasonable to report $0 income. The key question is FMV at receipt.
- Hard forks: Also treated as ordinary income at FMV when received (Rev. Ruling 2019-24).
- Retroactive governance airdrops (UNI, ARB, etc.): These are income when you can claim and transfer them, not when announced.
Blockchain Smart Tax integrates with GoPlus to auto-detect spam tokens, mark them as worthless, and exclude them from your income — so you don't accidentally pay tax on junk tokens.
Wrapped Tokens and Bridges
Wrapping a token (e.g., ETH → WETH) is generally treated as a non-taxable event by most practitioners, since you're receiving an economically equivalent instrument 1:1. However, some professionals argue it's a taxable swap. The IRS has not ruled specifically on wrapping.
Bridge transactions — moving assets cross-chain — are also in legal gray territory. The dominant professional view is that bridging your own assets to yourself is non-taxable (no economic realization), similar to a wallet transfer. Blockchain Smart Tax detects bridge patterns across 550+ chains and classifies them as transfers rather than taxable swaps.
Practical Record-Keeping for DeFi
DeFi generates far more transactions than centralized exchange trading. The practical requirements:
- Every wallet address you've used, across every chain
- Every LP entry and exit with token amounts and FMV at the time
- Every reward harvest with the token received and FMV at receipt
- Gas fees (deductible as part of cost basis or selling expenses)
Manual tracking in a spreadsheet is theoretically possible for light DeFi users, but most active DeFi users transact across dozens of protocols. Import your wallets into Blockchain Smart Tax — it reads your on-chain history automatically and handles the classification logic for you.
Track DeFi Taxes Automatically
Blockchain Smart Tax reads directly from the blockchain and automatically classifies defi transactions — swaps, LP entries and exits, staking deposits and rewards, lending positions, and more. No CSV uploads, no manual tagging.
How we compare to other crypto tax platforms:
- Koinly ($49+/year) — good DeFi support with growing protocol coverage
- CoinTracker ($59+/year) — strong Ethereum DeFi coverage with growing multi-chain support
- AwakenTax — strong Solana DeFi auto-classification, but limited to ~20 chains total
- Blockchain Smart Tax (from $25/year) — DeFi tracking across 550+ chains with automatic wallet discovery, all cost basis methods free, free during beta
Import your DeFi wallets in under 2 minutes — free during beta →