DeFi Tax Guide

The Complete DeFi Tax Guide for 2026

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 Tax Treatment Quick Reference

DeFi ActivityTax Treatment
Token Swaps on DEXsCapital gains/losses on each swap
Liquidity Pool (LP) FarmingIncome on rewards; capital gains on position close
Staking RewardsOrdinary income when received
AirdropsOrdinary income at FMV when received
Perpetual Futures (Perps)Capital gains on PnL; income on funding received
Prediction MarketsCapital gains on wins; capital losses on expired positions
Bonding Curves & Token LaunchesCapital gains on trades; income on creator fees
Bridge TransfersNon-taxable (same asset); taxable if swap involved
Yield Farming & LendingOrdinary income on interest/rewards
NFT TradingCapital gains on trades; possible business income for creators

Token Swaps on DEXs

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.

Tax treatment:Capital gains/losses on each swap

Liquidity Pool (LP) Farming

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.

Tax treatment:Income on rewards; capital gains on position close

Staking Rewards

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.

Tax treatment:Ordinary income when received

Airdrops

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.

Tax treatment:Ordinary income at FMV when received

Perpetual Futures (Perps)

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.

Tax treatment:Capital gains on PnL; income on funding received

Prediction Markets

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.

Tax treatment:Capital gains on wins; capital losses on expired positions

Bonding Curves & Token Launches

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.

Tax treatment:Capital gains on trades; income on creator fees

Bridge Transfers

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.

Tax treatment:Non-taxable (same asset); taxable if swap involved

Yield Farming & Lending

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.

Tax treatment:Ordinary income on interest/rewards

NFT Trading

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.

Tax treatment:Capital gains on trades; possible business income for creators

Why Defitax Is the Best DeFi Tax Software

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.

Auto-detect LP farms (Raydium, Meteora, Uniswap)
Hyperliquid perps synced from wallet
Polymarket + Kalshi prediction markets
pump.fun bonding curve trades
Bridge detection (non-taxable)
Gas fees baked into cost basis
All cost basis methods (FIFO, LIFO, HIFO)
AI Tax Agent for data questions

Calculate your DeFi taxes in minutes

Connect your wallet. See your full PnL. Download tax forms when ready.

Connect Wallet — Start Free