DeFi creates unique taxable events that generic crypto tax software can't handle. LP farms, perps, prediction markets, bonding curves, airdrops, and staking rewards — each has its own tax treatment. This guide covers all of them.
| DeFi Activity | Tax Treatment |
|---|---|
| Token Swaps on DEXs | Capital gains/losses on each swap |
| Liquidity Pool (LP) Farming | Income on rewards; capital gains on position close |
| Staking Rewards | Ordinary income when received |
| Airdrops | Ordinary income at FMV when received |
| Perpetual Futures (Perps) | Capital gains on PnL; income on funding received |
| Prediction Markets | Capital gains on wins; capital losses on expired positions |
| Bonding Curves & Token Launches | Capital gains on trades; income on creator fees |
| Bridge Transfers | Non-taxable (same asset); taxable if swap involved |
| Yield Farming & Lending | Ordinary income on interest/rewards |
| NFT Trading | Capital gains on trades; possible business income for creators |
Every token swap on a decentralized exchange (Uniswap, Raydium, Jupiter, PancakeSwap) is a taxable disposition. You are disposing of one asset and acquiring another. The cost basis is the fair market value of the tokens you gave up (plus gas fees), and the proceeds are the fair market value of what you received.
Providing liquidity to a pool (Raydium, Meteora, Uniswap V3) involves depositing token pairs. This deposit may be a taxable event if you're disposing of tokens. LP trading fees and reward token claims are generally treated as ordinary income at fair market value when received. When you withdraw, the difference between deposit and withdrawal values determines your gain or loss.
Staking rewards from proof-of-stake networks (ETH, SOL, MATIC) are generally treated as ordinary income at the fair market value when received. The IRS confirmed this in Revenue Ruling 2023-14. Your cost basis in staking rewards equals the income recognized. When you sell staked tokens later, you realize a capital gain or loss from that basis.
Airdropped tokens are typically treated as ordinary income at fair market value when you gain dominion and control over them. This applies whether you claimed them or they appeared in your wallet automatically. The income recognized becomes your cost basis for future sales.
Perpetual futures on platforms like Hyperliquid and Jupiter generate realized PnL when positions are closed. This PnL is typically treated as capital gains or losses. Funding rate payments received are income; funding paid may be deductible. Defitax auto-syncs Hyperliquid and Jupiter perp positions from your wallet — no CSV upload needed.
Prediction market positions (Polymarket, Kalshi) involve buying outcome tokens that pay $1 if the prediction is correct. Winning bets create capital gains (payout minus cost basis). Losing bets create capital losses when tokens expire worthless. Defitax has dedicated transaction types for prediction market activity.
Trading on bonding curve platforms (pump.fun, Four.Meme, Clanker) creates taxable events on every buy and sell. If you launch a token and earn creator fees, those fees are generally treated as ordinary income. Even if a token goes to zero, you realize a capital loss. Defitax auto-detects bonding curve trades from on-chain data.
Moving assets between chains via bridges (Wormhole, Stargate, Across) is generally not a taxable event — you're transferring the same asset. Cost basis carries over. However, if a bridge swaps your token for a different asset, that swap portion is taxable. Defitax auto-detects bridge transactions and classifies them correctly.
Interest earned from lending protocols (Aave, Compound, Solend) is generally treated as ordinary income. Depositing tokens into a lending protocol may or may not be a taxable event depending on whether you receive a receipt token. Yield farming rewards claimed are income at FMV.
Buying and selling NFTs follows standard capital gains rules. The cost basis is what you paid (including gas fees). The proceeds are the sale price. If you create and sell NFTs, the income may be treated as business income or self-employment income rather than capital gains.
Defitax was built specifically for DeFi traders. While Koinly and CoinTracker struggle with anything beyond simple swaps, Defitax auto-detects and correctly classifies every DeFi transaction type listed above — across 9 blockchains and dozens of protocols.
Connect your wallet. See your full PnL. Download tax forms when ready.
Connect Wallet — Start Free