← Back to blog

Published on Sat Aug 22 2026 00:00:00 GMT+0000 (Coordinated Universal Time) by Jacob Cavazos

When you swap tokens on a decentralized exchange, the number you see on screen is not the number you pay. The quote shows you an exchange rate. The reality includes six distinct cost components, some visible and some hidden. Understanding these components is the difference between thinking you got a good deal and actually getting one.

This article breaks down the six costs that make up every DEX swap, explains how each works, and shows how different platforms structure their fees. All numbers cited are from public documentation.

The Six Cost Components

Every token swap on a DEX or aggregator involves some combination of these six costs:

  1. Pool fees — paid to liquidity providers
  2. Interface fees — charged by the front-end or aggregator
  3. Gas — paid to the network for execution
  4. Slippage — the difference between expected and executed price
  5. MEV extraction — value captured by transaction reordering
  6. Surplus retention — value kept by the solver or filler when they beat your price

Not every swap incurs all six. But every swap incurs at least three. The total cost of a swap is the sum of all applicable components, and it can be significantly higher than the headline fee rate suggests.

Component 1: Pool Fees

Pool fees are the most visible cost. They are paid to liquidity providers who supply the tokens that make trading possible. Every AMM (Automated Market Maker) charges a fee on every swap, and this fee is distributed to LPs.

Uniswap Pool Fees

Uniswap is the largest DEX on Ethereum and Base. Its fee structure varies by version:

  • Uniswap v2: All pools charge 0.30% per swap. Of this, 0.25% goes to liquidity providers and 0.05% goes to the protocol (when protocol fees are enabled by governance).
  • Uniswap v3: Introduced multiple fee tiers. The standard tiers are 0.01%, 0.05%, 0.30%, and 1.00%. The LP share varies: for the 0.05% tier, LPs receive 0.0375% and the protocol receives 0.0125%. For the 0.30% tier, LPs receive 0.25% and the protocol receives 0.05%.
  • Uniswap v4: Removes fixed tiers entirely. Pool creators can set any fee from 0% to 100% in 0.0001% increments. Dynamic fees can adjust over time through hooks.

The fee tier that applies to your swap depends on which pool the router selects. For stablecoin-to-stablecoin swaps, the 0.01% or 0.05% tier is typically used. For volatile pairs like ETH/USDC, the 0.05% or 0.30% tier is common. For exotic or low-liquidity pairs, the 1.00% tier may apply.

Other DEX Pool Fees

  • Aerodrome (Base’s largest native DEX) charges 0.01% to 0.05% pool fees depending on the pool type.
  • Curve specializes in stablecoin pools and typically charges 0.01% to 0.04%.
  • Balancer offers dynamic fees that can range from 0.01% to 1.00% depending on pool configuration.

Pool fees are unavoidable on AMMs. They are the cost of accessing on-chain liquidity. The only way to avoid them is to trade peer-to-peer, which batch auction protocols like CoW Protocol attempt to do through Coincidence of Wants matching.

Component 2: Interface Fees

Interface fees are charged by the front-end application you use to interact with DEXs. These are separate from pool fees and are charged on top of them. Not all interfaces charge interface fees.

MetaMask Swaps: 0.875%

MetaMask charges a 0.875% service fee on every swap routed through its Swaps feature. This fee is automatically factored into the quote rate — you do not see it as a separate line item. The fee has been unchanged since the desktop launch in October 2020.

MetaMask’s documentation describes the fee structure as including a quote rate, network fee (gas), and MetaMask fee (0.875%). The fee is applied by adjusting the exchange rate: to buy 100 ETH, you pay 100.875 of the quote token. The 0.875% is routed to a MetaMask fee contract internally.

MetaMask originally launched with dynamic fees ranging from 0.3% to 0.875% based on order size, but the standard rate settled at 0.875% for most users.

Matcha: 0.15%

Matcha is a consumer-facing DEX aggregator built on the 0x protocol. It charges a 0.15% fee on its consumer interface. The underlying 0x API, which integrators use programmatically, is free — the 0.15% applies only to the Matcha UI.

Because Coinbase Wallet’s in-app swap is powered by 0x, retail flow on Base concentrates through this infrastructure. The 0.15% Matcha fee applies to the consumer-facing experience.

1inch: 0% Protocol Fee

1inch charges 0% protocol fee on its aggregator interface. Users pay gas and pool fees, but no additional interface fee to 1inch.

In Fusion mode (1inch’s intent-based execution), infrastructure fees may apply. These range from 0 to 5 basis points (0.05%) for stable pairs and 0 to 30 basis points (0.30%) for non-stable pairs. In the Swap interface and for Limit Orders, these infrastructure fees are covered by the resolver who fills the order, not the user. For swaps routed via the DEX aggregator (not Fusion), the user covers these fees.

Uniswap Interface: No Interface Fee

Uniswap’s own interface does not charge an additional interface fee on top of pool fees. When you swap on app.uniswap.org, you pay the pool fee and gas, but no additional fee to Uniswap Labs for using the interface. (UniswapX, the intent-based protocol, introduces a different fee dynamic through surplus capture, discussed below.)

Summary of Interface Fees

InterfaceInterface Fee
MetaMask Swaps0.875%
Matcha0.15%
1inch (aggregator)0%
Uniswap Interface0%
CoW Protocol0% (if CoW found)

Interface fees are the most variable component. The same underlying trade can cost 0.875% more on MetaMask than on 1inch, purely because of the interface you choose.

Component 3: Gas

Gas is the cost of executing the transaction on-chain. On Ethereum mainnet, gas can be the dominant cost component, especially for small trades. On Base, gas is negligible — typically a fraction of a cent per transaction.

Gas costs depend on:

  • Network congestion. Higher congestion means higher gas prices.
  • Transaction complexity. A simple token transfer costs less than a multi-hop swap through several pools.
  • Layer. L2s like Base have dramatically lower gas costs than Ethereum mainnet.

For DEX aggregators, gas costs can be higher than for direct DEX swaps because aggregators may route through multiple pools, each requiring separate contract calls. A single swap routed through three pools costs more gas than a direct swap through one pool.

In intent-based systems (UniswapX, 1inch Fusion, CoW Protocol), the solver or filler pays gas, not the user. This is a significant cost saving for the user, but the solver’s gas cost is factored into the price they offer.

Component 4: Slippage

Slippage is the difference between the expected price of a trade and the executed price. It occurs because AMM prices move as trade size increases relative to pool liquidity.

How Slippage Works

AMMs use a constant function formula (x * y = k for Uniswap v2, concentrated liquidity for v3/v4) to determine prices. When you buy token B with token A, you remove token B from the pool and add token A. This changes the ratio, which changes the price. The larger your trade relative to the pool’s liquidity, the more the price moves against you.

For example, if a USDC/ETH pool has $10 million in liquidity and you swap $100, slippage is negligible. If you swap $1 million, slippage can be significant — you may get 2% to 5% less ETH than the initial quote suggested.

Slippage Tolerance

Most DEX interfaces let you set a slippage tolerance, typically 0.5% to 1.0%. If the executed price would be worse than your tolerance allows, the transaction reverts. This protects you from excessive slippage but also from sandwich attacks (which deliberately push price past your expected level).

However, slippage tolerance is a double-edged sword. Set it too low and your transaction may revert when normal market movement pushes price slightly. Set it too high and you are vulnerable to sandwich attacks. The default on most interfaces is 0.5% to 1.0%, which is a reasonable balance for most trades.

Reducing Slippage

Aggregators reduce slippage by splitting trades across multiple pools. Instead of routing a large order through a single pool (which would cause high slippage), an aggregator splits it across several pools, reducing the price impact on each individual pool. This is one of the primary value propositions of DEX aggregators.

Component 5: MEV Extraction

MEV (Maximal Extractable Value) is value extracted from your transaction by bots that reorder, front-run, or sandwich your trade. It is the most hidden cost component because it does not appear as a fee anywhere. You simply receive a worse price than you expected.

How MEV Adds Cost

A sandwich attack on your swap effectively increases your slippage beyond what the pool mechanics alone would produce. The attacker buys before your transaction (pushing the price up), lets your transaction execute at the inflated price, and then sells (capturing the difference).

The cost to you is the difference between the price you would have gotten without the sandwich and the price you actually got. This can range from a few basis points on small trades to several percent on large, vulnerable trades.

Scale of MEV Costs

Research from EigenPhi documented $87.7 million in losses from sandwich attacks in just the first six months of 2022. More recent data shows approximately $60 million in annual losses from sandwich attacks between November 2024 and October 2025. Nearly 40% of sandwich attacks hit low-volatility pools, meaning even typically safe stablecoin swaps can be targeted.

Mitigation

MEV protection (private mempools, batch auctions, intent-based execution) can eliminate or reduce this cost. Platforms that offer built-in MEV protection include CoW Protocol, UniswapX, and 1inch Fusion. Platforms that do not offer MEV protection leave this cost entirely on the user.

For a detailed explanation of MEV and protection approaches, see our companion article on what MEV is and how to protect against it.

Component 6: Surplus Retention

Surplus retention is the most subtle cost component. It applies primarily to intent-based and solver-based systems. When you sign an intent specifying a minimum output amount, and the solver finds a better price than your minimum, the difference is called surplus.

Who Keeps the Surplus

The answer depends on the protocol:

  • UniswapX: Fillers compete to win orders. The surplus (difference between the user’s minimum and the actual execution price) is retained by the filler as profit. This is the economic incentive for fillers to participate. In practice, competition among fillers tends to compress surplus retention, but it does not eliminate it.

  • CoW Protocol: Solvers compete in a batch auction. The protocol selects the combination of bids that maximizes surplus to the orders. Surplus is returned to users, not retained by solvers. This is a key differentiator — CoW’s auction mechanism is designed to pass surplus back to the user.

  • 1inch Fusion: Uses a Dutch auction where the price starts favorable to the user and degrades over time. The resolver who fills the order captures whatever surplus exists at the time of filling. Early fills benefit the user more; late fills benefit the resolver more.

Why Surplus Matters

Surplus retention is a hidden cost. You specified a minimum output and you received at least that amount. The trade looks successful. But if the solver found a price 0.5% better than your minimum and kept all of it, you effectively paid 0.5% more than you needed to.

This is why comparing DEX fees is harder than it looks — for a rigorous framework on measuring effective spread and surplus capture, see Measuring DEX Swap Cost. A platform with 0% interface fee may retain significant surplus. A platform with a 0.15% interface fee may return all surplus to the user. The headline fee rate does not tell the full story.

Putting It All Together: The Real Cost of a Swap

Let us walk through a concrete example. Suppose you swap $10,000 USDC for ETH on Base.

Scenario A: MetaMask Swaps

  • Pool fee (Uniswap v3 0.05% tier): $5.00
  • Interface fee (MetaMask 0.875%): $87.50
  • Gas: ~$0.01
  • Slippage (0.3% on $10K): $30.00
  • MEV extraction (estimated 0.1%): $10.00
  • Surplus retention: N/A (direct execution)
  • Total cost: ~$132.51 (1.33%)

Scenario B: 1inch Aggregator

  • Pool fee (blended across pools): $3.00
  • Interface fee: $0.00
  • Gas: ~$0.02 (multi-hop routing)
  • Slippage (reduced by splitting): $10.00
  • MEV extraction (some exposure): $5.00
  • Surplus retention: N/A (direct execution)
  • Total cost: ~$18.02 (0.18%)

Scenario C: 1inch Fusion (Intent-Based)

  • Pool fee: $3.00
  • Interface fee: $0.00
  • Gas: $0.00 (resolver pays)
  • Slippage: $5.00 (resolver optimizes routing)
  • MEV extraction: $0.00 (intent not in public mempool)
  • Surplus retention (estimated 0.1%): $10.00
  • Total cost: ~$18.00 (0.18%)

These are illustrative numbers. Actual costs vary with market conditions, pool liquidity, and network congestion. But the pattern holds: the interface fee is often the largest single cost component, and it varies dramatically across platforms.

Hidden Costs to Watch For

Beyond the six components, there are several hidden costs that can erode your returns:

Wrapped Token Spread

Some bridges and aggregators deliver wrapped tokens instead of native tokens. If you receive wrapped USDC instead of native USDC, you may need to pay an additional swap fee to convert it. Always check which token you are receiving.

Approval Gas

Before your first swap on a new platform, you must approve the platform’s contract to spend your tokens. This is a separate on-chain transaction that costs gas. On Base this is negligible, but on Ethereum mainnet it can cost $5 to $20. Permit2 (discussed in our gasless swaps on Base article) reduces this to a one-time cost.

Cross-Platform Routing

Some aggregators route through intermediary tokens or bridges that charge their own fees. A USDC to ETH swap might route through USDC to USDT to ETH, incurring two pool fees instead of one. The aggregator’s routing algorithm should minimize this, but it is worth checking the transaction details.

Dynamic Fees

Some platforms adjust fees dynamically based on order size, token volatility, or market conditions. MetaMask’s original fee model ranged from 0.3% to 0.875%. Always check the effective fee rate for your specific trade, not just the headline rate.

How to Evaluate the Real Cost

To understand what you are actually paying on a DEX swap:

  1. Check the pool fee. Which fee tier is the router using? On Uniswap v3, this can be 0.01% to 1.00%.
  2. Check the interface fee. Does the platform charge an additional fee on top of pool fees? MetaMask charges 0.875%. Matcha charges 0.15%. 1inch and Uniswap’s own interface charge 0%.
  3. Check gas. On Base, this is negligible. On Ethereum mainnet, it can dominate.
  4. Estimate slippage. Compare the quoted output to the expected output based on pool reserves. For large trades relative to pool size, slippage can be significant.
  5. Consider MEV exposure. If the platform does not offer MEV protection, assume some extraction will occur. Use platforms with built-in protection for large trades.
  6. Understand surplus retention. If using an intent-based system, understand who keeps the surplus. Some platforms return it to users; others retain it as solver profit.

Conclusion

The real cost of a DEX swap is not the number you see in the interface. It is the sum of pool fees, interface fees, gas, slippage, MEV extraction, and surplus retention. These six components can add up to significantly more than the headline fee rate suggests.

Interface fees are the most variable component, ranging from 0% (1inch, Uniswap interface) to 0.875% (MetaMask). MEV extraction is the most hidden, costing traders an estimated $60 million annually. Surplus retention is the most subtle, determined by who keeps the difference between your minimum price and the actual execution price.

The cheapest swap is not always the one with the lowest headline fee. It is the one with the lowest total cost across all six components — for a deeper framework on measuring this, see our guide on execution cost in DEX trading. Understanding these components is the first step to actually minimizing what you pay.

If you want to explore DEX aggregation on Base, Orkid is a product built on Base. This article covers only the general concepts of DEX fees from public sources and does not compare any specific product’s fee structure.

Frequently Asked Questions

What is a DEX aggregator fee?

A DEX aggregator fee is any cost charged on top of the underlying pool fees and gas costs when routing a swap through an aggregator. This can include explicit interface fees, protocol fees, or implicit costs like surplus capture. Understanding all fee layers is essential for comparing the true cost of different aggregators.

How do DEX aggregators make money?

DEX aggregators generate revenue through interface fees, protocol fees, or by retaining surplus from better-than-expected execution prices. Some charge a percentage of the trade value, while others take a portion of the price improvement they find over the best single pool. The model varies by platform.

What is the difference between explicit fees and spreads?

Explicit fees are clearly stated charges added to a trade, such as a 0.5% service fee. Spreads are the difference between the buying and selling price of an asset, which can include hidden costs. Explicit fees are transparent and visible, while spread-based costs are implicit and harder to detect.

Are DEX aggregator fees transparent?

Transparency varies widely across aggregators. Some clearly display all fees before execution, while others embed costs into the exchange rate or surplus retention mechanisms. Users should review the total cost breakdown, including gas, pool fees, interface fees, and any retained surplus, to understand what they are actually paying.

Written by Jacob Cavazos

← Back to blog

Research to next step

Turn this research into a usable next move

Reading the post is only step one. The stronger move is to route it into the asset or commercial lane that matches what your team needs next.

Try it now

Swap on Orkid

9 bps flat fee, gasless, MEV-protected. Live on Base, Ethereum, and Unichain. No ETH needed — the solver pays gas.

Open swap →

Launch overview

Read the launch brief

Start with the launch brief when the team needs the fastest summary of fit, trust, and the right next route through the site.

Read launch brief →

Technical packet

Review the Protocol Packet

If the post raised technical questions, move into the packet for the forwardable version of the core framework.

Review packet →

Shortlist and fit

Use comparisons or alternatives

When the question is no longer category education but shortlist fit, use the comparison surfaces to support an honest vendor evaluation.

See comparisons →
  • ZK Proving Systems Compared: Halo2, SP1, Plonky2, and STARKs

    ZK Proving Systems Compared: Halo2, SP1, Plonky2, and STARKs

    Eight zero-knowledge proving systems compared across proving time, proof size, verification, trusted setup, and ecosystem. A developer's guide to choosing a ZK system.

  • What Is Tokenized Credit Infrastructure?

    What Is Tokenized Credit Infrastructure?

    Tokenized credit is more than putting a loan on-chain. It is a full stack: SPV, token registry, compliance layer, and distribution. Here is how it works and why ERC-6909 matters.

  • What Is Surplus in DEX Aggregation?

    What Is Surplus in DEX Aggregation?

    When an aggregator routes your swap better than the quoted price, the difference is surplus. Some aggregators keep it. Some return it. Here is why that matters for your total cost.

  • What Is MEV and How to Protect Against It

    What Is MEV and How to Protect Against It

    Maximal extractable value costs DEX users millions. Here is what MEV is, how sandwich attacks work, and the four approaches to protection — private mempools, batch auctions, intent-based execution, and threshold encryption.

  • What Is ISO 20022 and Why It Matters for Blockchain

    What Is ISO 20022 and Why It Matters for Blockchain

    ISO 20022 is the global messaging standard for payments. Here is what it is, how it works, why banks are migrating to it, and what it means for blockchain settlement.

  • What Is Intent-Based Swap Execution?

    What Is Intent-Based Swap Execution?

    Intent-based execution lets users sign a message describing what they want, and solvers compete to fill it. Here is how the model works and why it's different from traditional DEX trading.

LLM Resource Index llms.txt