Skip to main content
DeFi Tax Guides7 min readUpdated Mar 2026

Uniswap Tax Guide: How to Report Swaps, LP Tokens, and Fees

Learn how Uniswap token swaps, liquidity pool deposits, V3 concentrated positions, and LP fee earnings are taxed. Complete guide to reporting Uniswap DeFi activity on your return.

By FCT Editorial

Uniswap Tax Guide: How to Report Swaps, LP Tokens, and Fees

Key Takeaways

  • Every token swap on Uniswap is a taxable event; calculate gain or loss as fair market value (FMV) of tokens received minus cost basis of tokens sold.
  • Providing liquidity is likely a taxable swap: you exchange tokens for LP tokens at their FMV at the time of deposit.
  • Removing liquidity is a taxable event; impermanent loss is not deductible until you actually withdraw from the pool.
  • Swap fees (0.3%, 0.5%, or 1%) are collected as you hold LP tokens and become ordinary income when withdrawn.
  • Uniswap V3 concentrated liquidity positions are more complex but follow the same fundamental tax principles.

What Is Uniswap?

Uniswap is a decentralized exchange (DEX) that allows users to swap one cryptocurrency for another without a centralized intermediary. Launched in 2018, Uniswap is one of the largest DEXs by trading volume.

Unlike centralized exchanges like Coinbase or Kraken, Uniswap operates through automated market makers (AMMs). Users deposit pairs of tokens (like ETH and USDC) into liquidity pools, and the protocol uses an algorithm to set prices based on the ratio of assets in the pool. When you swap tokens, you're trading against these pools, not against other users.

Uniswap has two main ways to use the protocol: swapping tokens and providing liquidity. Each activity creates different tax events that you need to report. For a broader overview, see our complete guide to crypto taxes.

Uniswap Swap Taxes

Every time you exchange one token for another on Uniswap, you've triggered a taxable event under IRS rules. The IRS treats cryptocurrency-to-cryptocurrency trades as dispositions of property, similar to selling one stock to buy another.

Here's how to calculate the tax on each swap:

Gain or Loss = Fair Market Value of Token Received - Cost Basis of Token Sold

Let's say you swap 1 ETH for 2,000 USDC on Uniswap. Your cost basis in the ETH was $2,200, and on the day of the swap, the 2,000 USDC was worth $2,000. You'd have a capital loss of $200 ($2,000 received - $2,200 cost basis).

The character of that gain or loss (short-term or long-term capital gain) depends on how long you held the token you're selling. If you held it less than a year, it's short-term (taxed as ordinary income). If longer than a year, it's long-term (preferential tax rates).

What about gas fees? Gas fees paid in ETH to execute the swap can be added to your cost basis of the token you're acquiring, or in some cases treated as a separate investment expense. Consult your CPA for the best approach for your situation.

Providing Liquidity: Are LP Tokens a Taxable Event?

This is one of the most debated questions in crypto tax. The IRS has not issued specific guidance on whether depositing tokens into a liquidity pool to receive LP tokens is a taxable event.

Most tax professionals take a conservative approach: when you deposit Token A and Token B into a Uniswap pool to receive LP tokens, you've made a taxable exchange. You gave up your original tokens and received a new asset (the LP token), so it's treated as a swap.

Under this view, your cost basis in the LP tokens equals the combined FMV of the two tokens you deposited on the day of deposit. Record this carefully; you'll need it when you eventually withdraw.

Some tax professionals argue that providing liquidity is not a taxable event since you still own the same economic value (just in LP token form). However, this is the minority view, and the conservative approach is recommended.

Key point: If you treat the deposit as taxable, you may recognize a gain or loss immediately. More commonly, you simply establish a cost basis in the LP tokens at fair market value.

Removing Liquidity

When you withdraw your liquidity from a Uniswap pool, you're redeeming LP tokens for the underlying tokens. This is a taxable event.

Calculate your gain or loss as:

Gain or Loss = Fair Market Value of Tokens Received - Cost Basis of LP Tokens

For example, if your LP tokens cost $10,000 when you deposited them, but you withdraw tokens worth $11,500, you have a $1,500 long-term capital gain (assuming you held the LP tokens over a year).

The tricky part: when you withdraw, you may get back different quantities of tokens than you originally deposited due to trading that happened in the pool. The FMV of what you receive is what matters for your tax calculation.

Impermanent Loss and Your Taxes

Impermanent loss occurs when the price ratio of tokens in a liquidity pool shifts significantly. If you provided liquidity to an ETH/USDC pool and the price of ETH drops dramatically, the pool's algorithm forces you to hold more ETH and less USDC (the opposite of what you'd want).

The bad news for your taxes: impermanent loss is not deductible as a loss until you actually withdraw from the pool. It's an unrealized loss. Only when you redeem your LP tokens and receive less value than you originally deposited can you claim the loss.

At that point, it's treated like any other capital loss. If your cost basis in the LP tokens was $10,000 and you withdraw $8,000 worth of tokens, you have a $2,000 capital loss (potentially long-term or short-term depending on your holding period).

Swap Fees and Fee Income

While you hold LP tokens, your share of the pool generates trading fees. On Uniswap V2, this is a flat 0.3% of every trade that passes through the pool. V3 offers multiple fee tiers: 0.01%, 0.05%, 0.30%, and 1.00%.

These fees are collected in the tokens that make up the pool (ETH and USDC, for example). From a tax perspective, the fees are ordinary income when you withdraw them from the pool, similar to how crypto staking taxes work. You must report the FMV of the fees at the time of withdrawal.

The tax basis in those fee tokens becomes their FMV at withdrawal. Any future appreciation is a capital gain.

Uniswap V3 and Concentrated Liquidity

Uniswap V3, launched in 2021, introduced concentrated liquidity. Instead of spreading your liquidity across all price ranges, you choose a specific price range (like ETH only between $1,800 and $2,200).

This makes liquidity provision more capital-efficient but creates more complex tax scenarios. V3 positions are represented as NFTs, not fungible LP tokens.

The tax treatment is fundamentally the same: depositing tokens to create a V3 position is likely a taxable swap, holding the position generates fee income, and withdrawing is a taxable event. However, the mechanics of tracking are more complex because each position is unique and may be sold or transferred separately.

If you sell a V3 position NFT on a marketplace, that's a taxable sale of the NFT asset itself.

How to Track Uniswap Transactions

Tracking Uniswap activity is essential for accurate tax reporting. Here's what you need:

On-chain data: Visit etherscan.io and search for your wallet address. You can download all transactions, including Uniswap interactions, as a CSV file.

Protocol-specific data: Uniswap's analytics dashboard shows your historical swaps and liquidity positions, though it may not provide cost basis information.

Tax software: FastCryptoTax can import your wallet address and automatically pull Uniswap transactions from the blockchain, then match them to market prices for gain/loss calculation.

Record the FMV of every token involved at the time of each transaction. For swaps, capture the FMV of tokens sent and received. For LP deposits and withdrawals, capture both the tokens involved and the FMV of the LP token itself.

This content is for informational purposes only and does not constitute tax, legal, or financial advice. Consult a qualified tax professional for advice specific to your situation.

Frequently Asked Questions

Yes, each swap is a disposition of property and creates a capital gain or loss. The tax is owed in the year the swap occurs, whether or not you've sold the new token for fiat currency.
No, impermanent loss is an unrealized loss. You can only claim a loss when you withdraw from the pool and actually realize the loss by receiving less value than you put in.
No, the fundamental tax treatment is the same: deposits are likely taxable, holdings generate fee income, and withdrawals are taxable events. The complexity lies in tracking multiple NFT positions.
Yes. Harvesting the fees is a taxable income event. Reinvesting them is then a new tax event (depositing tokens for LP tokens). It's two separate tax transactions.
Likely yes. Gas fees are investment costs and can typically be capitalized as part of your basis in the asset acquired or claimed as an investment expense. Consult your CPA.
The same way. Whether you swap directly on Uniswap or use an aggregator that routes through Uniswap, each swap is one taxable event. Capture the final tokens sent and received; the routing logic doesn't change the tax treatment. ## Recommendations for Complex DeFi Situations Uniswap strategies like multi-hop swaps, concentrated liquidity rebalancing, and fee reinvestment can create dozens of taxable events. For significant Uniswap activity, consult a CPA experienced in DeFi tax. For a step-by-step walkthrough of the filing process, see [how to file crypto taxes](/blog/how-to-file-crypto-taxes). The cost of professional advice is usually far less than the risk of incorrect tax reporting.

Ready to File Your Crypto Taxes?

FastCryptoTax generates your complete crypto tax report in minutes. Import from 300+ exchanges and wallets, get your Form 8949 and Schedule D, and file with confidence.

Get Started Free