Mcap -- BTC -- ETH -- SOL -- BNB -- XRP -- F&G -- View Market
Loading prices…

Why Did My Uniswap Swap Fail? (2026 Troubleshooting Guide)

Uniswap unicorn logo with failed transaction error concept editorial

Failed Uniswap swaps are common enough to have become a shared DeFi user experience — everyone who uses Uniswap regularly has dealt with the frustration of a swap that consumed gas but didn’t execute the trade. Understanding why swaps fail, how to prevent failures, and what to do when they happen is essential DeFi knowledge.

Common failure reasons

Typical failure modes: slippage, gas, approvals, toxic tokens, and MEV — check the exact revert on the explorer.

1. Slippage too high

What it means: The price moved more than your slippage tolerance between transaction submission and execution.

Why it happens:

Etherscan shows: “INSUFFICIENT_OUTPUT_AMOUNT” or similar

How to fix:

2. Insufficient gas limit

What it means: Your transaction ran out of gas before completing.

Why it happens:

Etherscan shows: “out of gas” error

How to fix:

3. Token approval missing

What it means: You tried to swap a token you haven’t approved Uniswap’s router to spend.

Why it happens:

Etherscan shows: “ERC20: insufficient allowance” or similar

How to fix:

4. MEV / sandwich attacks

What it means: An MEV bot detected your transaction and profitably manipulated the price around it.

Typical pattern:

How to prevent:

5. Liquidity depth insufficient

What it means: The pool doesn’t have enough liquidity for your trade size at acceptable price.

Why it happens:

Etherscan shows: Various errors depending on how this manifests

How to fix:

6. Contract pause or restriction

What it means: The token or pool has been paused or restricted.

Why it happens:

Etherscan shows: Various, often custom error messages

How to fix:

7. Honey pot tokens

What it means: Token is designed so you can buy but not sell (scam).

Why it happens:

Warning signs:

How to fix:

Reading Etherscan transaction details

When your swap fails, Etherscan provides diagnostic information:

Status and error message

Top of transaction:

Internal transactions

Below main transaction:

Interpreting common errors

“INSUFFICIENT_OUTPUT_AMOUNT”: Slippage too low; price moved beyond tolerance.

“TRANSFER_FROM_FAILED”: Usually approval issue; token not approved or insufficient allowance.

“out of gas”: Gas limit too low.

“execution reverted” (no specific reason): Custom contract revert; may need to read contract code for details.

“INVARIANT” or similar pool-specific errors: Pool-specific issue; check pool state.

How to execute Uniswap swaps successfully

Pre-swap checklist

Verify you have the right tokens:

Check pool liquidity:

Current price and spread:

Setting slippage

For major pairs (ETH/USDC, WBTC/ETH, etc.):

For mid-tier pairs:

For small-cap or new tokens:

Adaptive slippage:

Using aggregators

For serious trades:

Transaction submission

Network timing:

Priority fees:

MEV protection:

Chain-specific considerations

Ethereum L1

Pros: Deepest liquidity, most tokens available. Cons: Highest gas, most MEV, slowest. Best for: Large trades where execution matters more than cost.

Arbitrum, Optimism, Base

Pros: Lower gas, less MEV exposure, faster execution. Cons: Less liquidity for some tokens, chain-specific routing. Best for: Medium trades where cost matters.

Uniswap v4 (2026 status)

Pros: Hook architecture, customizable pool behavior, potentially better execution. Cons: More complex, newer ecosystem. Best for: Users comfortable with newer features.

After a failed swap

Debugging workflow

Step 1: Read Etherscan error: Understand specifically what went wrong.

Step 2: Check current conditions:

Step 3: Adjust and retry: Based on error:

Step 4: Consider alternative venues: If repeated failures:

Accepting failures

Small losses are part of DeFi:

Pattern recognition:

Security considerations

Token contract risk

Before swapping into any token:

Common scams:

Wallet security

When approving Uniswap router:

Phishing risks:

Failed Uniswap swaps are frustrating but almost always explainable. The combination of slippage management, proper gas settings, token approvals, MEV protection, and careful token selection covers most failure scenarios. Serious DeFi users develop pattern recognition for common issues and build workflows that minimize failures. For occasional users, the key insight is that failures are usually solvable by changing parameters, not a bug in Uniswap itself. When in doubt, check Etherscan for the specific error, adjust accordingly, and try again with lessons learned.

This article is for informational purposes only and is not financial advice. DeFi protocols carry substantial risks including smart contract bugs, oracle failures, and potential total loss of funds. Always verify contract addresses and understand risks before interacting with DeFi protocols.

Frequently asked questions

Why does Uniswap say my transaction failed?

Failed Uniswap swaps most commonly happen due to: (1) Slippage tolerance too low — price moved during execution, (2) Insufficient gas — complex swaps need more gas than simple transfers, (3) Token approval missing — ERC-20 tokens require approval before swap, (4) MEV/frontrunning — bots detected and front-ran your transaction, or (5) Insufficient liquidity — pool didn’t have enough tokens for your size. Etherscan will show the specific revert reason for your failed transaction.

How do I fix 'slippage too high' error on Uniswap?

Increase your slippage tolerance in the settings gear icon. For liquid pairs (ETH, USDC, WBTC), 0.5-1% slippage is usually sufficient. For less liquid or newer tokens, try 1-3%. For volatile tokens or small-liquidity pools, 5-10% may be needed. Understand the trade-off: higher slippage protects against failure but increases the price range you might accept. Frontrunners exploit high slippage, so don’t set it higher than necessary.

Do I pay gas for failed Uniswap transactions?

Yes. Failed transactions still consume gas because the network processed them up to the point of failure. The gas used depends on how far the transaction got before reverting — simple early failures consume little gas, while complex transactions that fail near the end consume substantial gas. This is one of the most frustrating aspects of Ethereum DeFi for new users. The fix is understanding why transactions fail so you can avoid the problem, not recover failed gas.

What is MEV and how does it affect Uniswap trades?

MEV (Maximum Extractable Value) is profit extractable by reordering, inserting, or censoring transactions. In Uniswap context, MEV typically manifests as sandwich attacks — a bot sees your pending transaction, trades ahead of you to push the price against your interest, lets your transaction execute at the worse price, then trades back to capture the spread. Protection: use Flashbots Protect RPC, MEV Blocker, or private mempool submission to hide transactions from MEV bots before execution.

How do I approve tokens before swapping?

When swapping ERC-20 tokens on Uniswap, you must first grant approval for Uniswap’s router to spend your tokens. The interface handles this in two steps: (1) Approval transaction (one-time per token pair), (2) The actual swap transaction. For tokens you haven’t approved before, expect to sign two separate transactions. Once approved, subsequent swaps of that token skip the approval step. You can set approval amount to infinite (convenient but slightly risky) or specific amount (safer but requires reapproval for larger swaps).
Share:
Twitter Facebook LinkedIn Reddit WhatsApp Telegram Email