Uniswap v2 vs v3 vs v4: what changed for LPs

Uniswap v2 vs v3 vs v4 compared from the docs: liquidity ranges, fee tiers, protocol fees, hooks and what each version means for an LP's risk.

Published · Updated · Last verified · Decentralized exchanges

Uniswap v2 spreads every LP’s liquidity across all prices and charges one flat fee. Uniswap v3 lets LPs pick a price range and a fee tier. Uniswap v4 keeps the v3 liquidity math but moves all pools into one contract and lets each pool attach a hook, custom code that can change fees and behaviour.

The swap interface looks the same in all three. For an LP, the economics and the trust assumptions do not. This guide compares the versions from the Uniswap developer docs, version by version, then sets out what each change means for the person supplying capital. It quotes no live volumes or returns.

How did Uniswap v2 work?

Uniswap v2 pools hold two ERC-20 tokens and price them with the constant product formula, x times y equals k. The How Uniswap Works page says v2 mints fungible ERC-20 pool tokens that represent a proportional share of the reserves.

An automated market maker is a contract that quotes prices from a formula applied to its own reserves, with no order book. In v2 every LP’s capital backs the whole price curve, from zero to infinity.

Fees in v2 are simple. Every pool charges a flat 0.30% (Uniswap fees docs), added to the pool reserves so it compounds into each LP’s share without any claim.

The weakness was capital efficiency. The docs give an example: the v2 DAI/USDC pair used about 0.50% of its capital for trading between $0.99 and $1.01 (Concentrated Liquidity docs), the range where most volume happens. The rest sat idle.

What did Uniswap v3 change?

Uniswap v3 introduced concentrated liquidity: each LP chooses a price range, and liquidity earns fees while the current price sits inside that range. The Concentrated Liquidity page calls it the defining idea of v3.

Concentrated liquidity is liquidity allocated within a custom price range instead of across all prices. A position is that range plus the capital in it. Ticks mark the possible range boundaries, and one tick equals a 0.01% price move (Uniswap docs).

Fee tiers arrived with v3. The standard tiers are 0.05%, 0.30% and 1% (fees docs), and UNI governance can enable more. The same pair can have a pool in each tier.

Positions also changed form. The docs say v3 positions are ERC-721 NFTs issued by the NonfungiblePositionManager, since two positions with different ranges are not interchangeable. Fees no longer compound into the pool; they accrue as claimable balances the owner collects.

What concentrated liquidity means for LP risk

A narrow range earns more fees per unit of capital while the price stays inside it. When the price leaves the range, the docs say the position stops earning and ends up holding a single asset, the one swappers sold to it.

For a TradFi reader, a v3 position behaves like a market maker who quotes inside a band and nowhere else. Inside the band the book is busy. Outside it the desk holds inventory in the losing asset and earns nothing until price returns. In v2 that outcome was rare, because the band ran from zero to infinity.

What does Uniswap v4 add?

Uniswap v4 keeps v3’s concentrated liquidity and rebuilds the architecture around it. The v4 vs v3 page lists the changes: a singleton contract, flash accounting, native ETH, position subscribers and hooks.

Singleton. In v3 a factory deploys a separate contract per pool. In v4 one PoolManager contract creates every pool and stores its state, which the docs say makes pool creation and multi-hop swaps cheaper.

Flash accounting. A caller can run several swaps and liquidity changes in one PoolManager session and settle token transfers at the end. In v3 each step moved tokens to and from each pool contract.

Native ETH. v4 pools can pair native ETH, while v3 requires wrapping it to WETH first.

Subscribers. A v4 position owner can register a subscriber contract that is notified when liquidity changes. The docs say this lets staking programs track positions without the owner transferring the position, which in v3 put assets at risk.

What are Uniswap v4 hooks?

A hook is an external smart contract attached to a v4 pool at creation, which runs custom code at set points in the pool’s lifecycle. The hooks docs say each pool can have one hook and a hook can serve many pools. Hooks are optional.

Hook points cover pool initialization, liquidity changes, swaps and donations, each with a before and an after call. A hook can also manage a dynamic fee, updated per swap or on a schedule, and can charge its own hook fee.

Hooks change the trust model. In v2 and v3, every pool of a version runs the same audited code. In v4, a pool’s behaviour includes whatever its hook does, so an LP has to read or trust that extra contract. The docs also note that building a hook does not mean the Uniswap front end will route liquidity to it.

How do fees compare across Uniswap v2, v3 and v4?

Fees moved from one fixed rate in v2 to tiers in v3 to any rate in v4. The Uniswap fees page says v4 pool creators can set any fee from 0% to 100% in 0.0001% steps.

v2 v3 v4
LP fee Flat 0.30% (docs) Tiers: 0.05%, 0.30%, 1% (docs) Any static fee, or dynamic via hook
How LPs receive fees Added to reserves, compounds Claimable per position Claimable per position
Protocol fee source Taken from LP fee Taken from LP fee Added on top of swapper’s fee
Protocol fee rate 1/6 of the swap fee 1/4 to 1/10 of the swap fee, by tier Capped at 0.1% of swap amount (docs)
LP position form Fungible ERC-20 token ERC-721 NFT Managed by PositionManager
Price range Zero to infinity Chosen by LP Chosen by LP
Custom code per pool None None Optional hook

The docs say protocol fees are active across Uniswap versions as of December 2025, and point to onchain values for which pools charge them. For an LP in v2 or v3, a protocol fee lowers the share of the swap fee they keep. In v4 it raises the cost to the swapper instead.

Which Uniswap version should an LP use?

No version is right for every LP. The choice turns on how much time you will spend managing a range, and how much code beyond the core contracts you are willing to trust.

  1. If you will not manage ranges, a full-range position avoids going out of range, at the cost of lower fee income per unit of capital.
  2. If you will manage ranges, v3 and v4 concentrated positions earn fees while price stays inside them, and you carry the single-asset outcome when it leaves.
  3. For any v4 pool, read the hook address and its code, and check whether it can change fees or block withdrawals.
  4. Check the fee tier or fee setting, and whether a protocol fee applies to that pool.

Aggregators such as 1inch route swaps across versions and venues, so a swapper may never see which pool filled the order. LPs do not get that abstraction. Our Uniswap listing summarises how the protocol works, and the decentralized exchanges category lists other designs such as Curve.

This guide is educational and is not investment advice. Check fees and hook code on the specific pool and network before you supply liquidity.

Questions

Is Uniswap v4 better than v3 for liquidity providers?
The docs say v4 keeps the same concentrated liquidity math as v3 and changes the architecture around it. Whether a v4 pool suits an LP depends on its fee, its hook and the hook's code, which v3 pools do not have.
What is the difference between Uniswap v2 and v3?
In v2, liquidity covers every price from zero to infinity and every pool charges 0.30%. In v3, LPs choose a price range and pick from fee tiers, and positions are NFTs instead of fungible LP tokens.
What are Uniswap v4 hooks?
Hooks are external smart contracts attached to a v4 pool at creation. They run custom code at set points such as before and after swaps or liquidity changes, and can set dynamic fees.
Does Uniswap charge a protocol fee?
The Uniswap docs say protocol fees are active across protocol versions as of December 2025. In v2 and v3 the fee comes out of the LP fee; in v4 it is added on top of what the swapper pays.

Sources

  1. How Uniswap Works, Uniswap Developersaccessed
  2. Fees, Uniswap Developersaccessed
  3. Concentrated Liquidity, Uniswap Developersaccessed
  4. v4 vs v3, Uniswap Developersaccessed
  5. Uniswap v4 Hooks, Uniswap Developersaccessed