DeFi & AMM

Swap Fee

The fee charged on each trade in a liquidity pool, distributed proportionally to all liquidity providers in that pool.

Swap Fee — A swap fee is the small percentage of each trade that a decentralized exchange charges and distributes to liquidity providers as compensation for supplying capital to the pool. Swap fees typically range from 0.01% to 1% per trade, depending on the pool type, asset volatility, and DEX design.

How It Works

When a trader executes a swap on a DEX, a swap fee is deducted from the trade. On Uniswap v2, this is a flat 0.30% of the input amount. On Uniswap v3, pool creators choose from fee tiers: 0.01% (stablecoin pairs), 0.05% (correlated pairs), 0.30% (standard pairs), or 1.00% (exotic pairs). The fee is automatically collected by the pool smart contract.

In most AMM designs, swap fees are distributed to liquidity providers proportional to their share of the pool. Some protocols also take a protocol fee — a portion of the swap fee directed to the protocol treasury or token holders. Uniswap's governance can enable a protocol fee of up to 1/4 of the swap fee, though it has historically remained off.

For multi-hop swaps (trades routed through multiple pools), each pool charges its own fee. A swap from Token A to Token C through A/ETH (0.30%) and ETH/C (0.30%) incurs approximately 0.60% in total fees. DEX aggregators factor these cumulative fees into their routing optimization to find the cheapest path.

Why It Matters in DeFi

Swap fees represent the primary revenue model for DEXs and liquidity providers. They are the incentive that attracts capital into pools — without swap fees, there would be no reason for LPs to provide liquidity and bear impermanent loss risk. Higher-fee pools compensate for greater volatility and impermanent loss risk.

For traders, swap fees are a direct cost of trading. Frequent traders and arbitrage bots are sensitive to fee differences and will prefer lower-fee pools when liquidity permits. Fee tier selection also affects LP returns: too high a fee drives away volume, too low a fee does not compensate for risks.

Real-World Example

A trader swaps $10,000 USDC for ETH on Uniswap v3 through the 0.05% fee tier pool (chosen because ETH/USDC is a high-volume pair). The swap fee is $5.00, and the trader receives $9,995 worth of ETH (before slippage). If they had used the 0.30% fee tier pool instead, the fee would have been $30 — but the 0.30% pool might have deeper liquidity and lower slippage on large trades, potentially making it cheaper overall for very large swaps.

Common questions about Swap Fee in cryptocurrency and DeFi.

Liquidity providers receive the majority of swap fees in proportion to their pool share. Some protocols also direct a portion (the protocol fee) to the treasury, governance token stakers, or buyback mechanisms. The exact split varies by protocol.

Different asset types have different risk profiles. Stablecoin pairs (USDC/USDT) have minimal price movement and impermanent loss, so low fees (0.01-0.05%) are sufficient. Volatile pairs need higher fees (0.30-1.00%) to compensate LPs for greater impermanent loss risk. Fee tier selection is about matching compensation to risk.

No. Swap fees are charged by the DEX protocol and go to liquidity providers. Gas fees are paid to blockchain validators for processing the transaction. Both are costs of trading, but they go to different parties and are determined by different mechanisms.

Ready to put your knowledge into practice?

Start Boosting