DeFi & Staking

How Are DeFi Swaps and Liquidity Pools Taxed?

DeFi taxes explained: how token swaps, liquidity pools, LP tokens, and yield are treated by the IRS, plus what to track for 2026.

By The Glide Team · June 2, 2026 · 5 min read

In the US, most DeFi activity triggers tax. Swapping one token for another is a taxable disposal that creates a capital gain or loss, and the rewards or fees you earn are usually ordinary income taxed at their value when you receive them.

DeFi doesn't get a special tax regime. The IRS treats crypto as property, so the same rules that apply to selling Bitcoin on an exchange apply to a Uniswap swap or a Curve liquidity position. What makes DeFi tricky isn't the rules themselves — it's the sheer number of taxable events packed into a single strategy. Here's how the main pieces are treated. For the fundamentals, see our guide on how cryptocurrency is taxed.

Token swaps are taxable disposals

When you swap Token A for Token B on a decentralized exchange, you are disposing of Token A. That's a taxable event, even though no US dollars changed hands and nothing hit your bank account.

You calculate the gain or loss like this:

  • Proceeds = the fair market value (in USD) of the token you received at the moment of the swap.
  • Cost basis = what you originally paid for the token you gave up, including acquisition fees.
  • Gain or loss = proceeds minus basis.

If you held the disposed token more than a year, the gain is long-term; a year or less, short-term (taxed at ordinary rates). Gas fees paid to execute the swap can generally be added to your basis or netted against proceeds, which reduces the taxable gain. Every hop in a multi-step route can be its own disposal, so a single "trade" in your wallet may be several taxable events.

Adding and removing liquidity

This is the most debated area in DeFi taxes, because the IRS hasn't issued guidance specific to liquidity pools. When you deposit two tokens into a pool, you typically receive an LP token representing your share. The common, conservative position is that you have exchanged your two tokens for a new asset (the LP token), which is a taxable disposal of the deposited tokens.

Under that treatment:

  • Depositing into the pool disposes of your tokens — gain or loss is calculated against their basis.
  • Your LP token takes a cost basis equal to the value of what you put in.
  • Withdrawing disposes of the LP token, and the tokens you pull out get a fresh basis at that day's value.

Some taxpayers take a more aggressive view that a deposit is a non-taxable change in form (like a receipt) rather than a swap. There's no bright-line rule, so the treatment you choose should be applied consistently and discussed with a professional.

Yield, fees, and rewards are ordinary income

The return you earn inside DeFi is generally ordinary income, valued in USD when you gain control over it. That includes trading fees that accrue to liquidity providers, liquidity mining and governance token rewards, and lending interest. The logic mirrors how staking rewards are taxed: you recognize income at receipt, and that value also becomes your cost basis for when you later sell.

That double role matters. If you earn a reward token worth $200, you report $200 of income now — and if you sell it later for $260, you owe capital gains tax only on the $60 of appreciation.

Watch out for these DeFi gotchas

  • Wrapping and bridging. Wrapping ETH to wETH or bridging a token to another chain may be a disposal. Treatment is unsettled — many track it conservatively as a taxable swap.
  • Rebasing and auto-compounding. Vaults that auto-compound generate income each time rewards are harvested, even if you never claim manually.
  • Impermanent loss is not a deductible loss on its own. It's only realized when you actually withdraw from the pool and dispose of your position.
  • Per-wallet cost basis. Starting with 2025, basis is tracked wallet by wallet rather than universally, so you can no longer pool basis across every address. Keep records organized per wallet.

What about 1099-DA?

Form 1099-DA, which centralized brokers began issuing for 2025 transactions, largely does not capture self-custodied DeFi activity — decentralized protocols generally aren't treated as reporting brokers. That means the responsibility to track cost basis and report every swap falls on you. Centralized on-ramps like Coinbase may still send forms; see Coinbase tax documents for what to expect there.

Because on-chain records are complete but not human-readable, reconstructing DeFi activity by hand is impractical for most people. Explore more strategy in our tax strategy hub and the full DeFi and staking guides.

Let Glide do the math

Connect your wallets and exchanges — Glide identifies every DeFi swap, LP deposit, and reward, prices it to the exact block, and generates your tax forms.

Calculate my crypto taxes →

This article is general information, not tax advice. Consult a qualified professional about your specific situation.