Concentrated Liquidity: Uniswap v3 and v4, Explained
How custom price ranges improve decentralized exchange capital efficiency while increasing impermanent loss risk for liquidity providers.
Key points
- Concentrated liquidity allows users to specify custom price ranges for their capital, improving efficiency compared to full-range AMMs.
- Positions only earn trading fees when the current market price falls within the user's selected lower and upper ticks.
- Narrow price ranges amplify impermanent loss, meaning a position's value can drop sharply compared to simply holding the assets.
- Uniswap v4 introduces hooks, which are smart contracts that allow developers to build custom logic and dynamic fees on top of liquidity pools.
Concentrated liquidity allows decentralized exchange users to supply capital within specific price ranges rather than across an asset's entire price curve. Introduced by Uniswap v3, this architecture improves capital efficiency by clustering liquidity around current market prices. The trade-off is an increased risk of impermanent loss and the need for active position management.
From Constant Product to Concentrated Liquidity
Early decentralized exchanges relied on the standard constant product formula. This automated market maker (AMM) design spread liquidity evenly from zero to infinity. A liquidity provider supplying a trading pair like ether ($ETH) and US dollar stablecoins would have their capital distributed across all possible prices.
This full-range approach is highly capital inefficient. For stablecoin pairs, which rarely deviate from a one-to-one ratio, the vast majority of supplied capital sits idle. Even for volatile pairs, most trading occurs within a relatively narrow band around the current market price.
Concentrated liquidity solves this by allowing providers to define exact price bounds for their capital. If an asset trades within that selected range, the liquidity provider earns trading fees. If the price exits the range, their liquidity becomes inactive, earning zero fees until the price returns.
The Mechanics of Custom Price Ranges
To enable custom price boundaries, the protocol divides the price spectrum into discrete intervals called ticks. Liquidity providers select a lower tick and an upper tick to bound their position.
When the current market price sits within a provider's chosen ticks, their capital acts similarly to a traditional AMM, facilitating trades and accruing fees. As traders swap assets, the price moves along the curve within the range.
If the price crosses the upper or lower boundary, the provider's position is converted entirely into one of the two assets. For example, if a user provides ETH and USDC between $2,000 and $2,500, and the price of ETH drops below $2,000, their entire position converts to ETH. If the price rises above $2,500, the position converts entirely to USDC.
This mechanism requires providers to carefully select ranges based on expected price volatility and their willingness to hold either asset in a concentrated position.
Capital Efficiency: A Worked Example
Concentrated liquidity allows users to provide less total capital while capturing the same share of trading fees as a larger, full-range position. This is known as capital efficiency.
Consider a user who wants to provide liquidity for an ETH/USDC pool when ETH is trading at $2,000.
In a full-range model, a $10,000 deposit ($5,000 ETH, $5,000 USDC) is spread from zero to infinity.
In a concentrated model, the user might select a range between $1,500 and $2,500. By concentrating their capital, a much smaller deposit—say, $1,500—can provide the same depth of liquidity around the $2,000 price point as the $10,000 full-range position.
If the price remains between $1,500 and $2,500, the user earns the same fee volume with $1,500 as they would have with $10,000 in the older model. The remaining $8,500 can be deployed elsewhere, generating additional yield.
The Tradeoff: Amplified Impermanent Loss
Capital efficiency comes with a proportional increase in risk. Impermanent loss occurs when the price ratio of deposited assets changes compared to when they were deposited. In an AMM, liquidity providers automatically sell the outperforming asset and buy the underperforming asset as prices move.
Because concentrated positions deploy capital in a narrower band, the rate of conversion happens much faster. A 10% price move in a concentrated position will result in a significantly larger shift in asset balances than a 10% move in a full-range position.
If the price exits the chosen range, the impermanent loss becomes realized if the user withdraws their liquidity. The user is left holding 100% of the underperforming asset. Consequently, liquidity providers must balance the desire for high fee generation (tight ranges) with the risk of rapid portfolio depreciation (amplified impermanent loss).
Active Management and JIT Liquidity
The introduction of custom ranges shifted liquidity provision from a passive strategy to an active one. Providers must continuously monitor prices and adjust their ranges to ensure their capital remains active and generating fees.
This shift spawned specialized vaults and automated managers. These smart contracts pool user funds and automatically rebalance positions, adjusting ticks as the market moves to optimize fee capture and minimize time spent out of range.
Concentrated liquidity also enables Just-In-Time (JIT) liquidity provision. Highly sophisticated actors can monitor the blockchain memory pool for large pending trades. They can mint a concentrated liquidity position in the exact price range of the incoming trade, capture the trading fee, and instantly withdraw the liquidity in the same block. While this extracts fees from passive providers, it also gives the trader better execution by deepening the pool precisely when needed.
Uniswap v4: Hooks and Custom Pools
Uniswap v4 iterates on concentrated liquidity by introducing hooks. Hooks are externally deployed smart contracts that execute specific logic at designated points in a liquidity pool's lifecycle, such as before or after a trade, or before or after a liquidity position is modified.
While v3 standardized pool features (like specific fee tiers), v4 allows developers to customize how pools operate. Hooks can enable dynamic fee structures that adjust based on market volatility, integrating custom oracles, or establishing custom market-making curves.
Hooks also allow for complex routing and integration with broader decentralized finance protocols. For example, Uniswap v4 Launches Aggregator Hooks to Route External DEX Liquidity details how hooks can connect internal pools to external liquidity sources, further optimizing trade execution.
Furthermore, v4 moves all pools into a single singleton contract. In v3, every pool (e.g., ETH/USDC 0.3% fee and ETH/USDC 0.05% fee) was a separate contract. The singleton design drastically reduces the gas costs associated with creating new pools and routing trades across multiple pools.
Common Misconceptions
- Concentrated liquidity is passive income: While older AMMs allowed users to deposit and forget, concentrated liquidity requires active monitoring. If the price exits the range, the position stops earning fees entirely, requiring the user to pay gas fees to rebalance.
- Narrow ranges always yield more profit: Tighter ranges offer higher capital efficiency and greater potential fees, but they exponentially increase impermanent loss. In volatile markets, the losses from holding the depreciating asset often outweigh the accumulated trading fees.
- You can never lose your initial tokens: Providing liquidity is not a risk-free deposit. Because the AMM rebalances the portfolio to facilitate trades, a user will almost always withdraw a different ratio of tokens than they deposited, heavily weighted toward the asset that performed worse in dollar terms.
What to Watch
The evolution of concentrated liquidity fundamentally altered the market structure of decentralized exchanges. It pushed retail users toward automated liquidity managers and allowed institutional market makers to dominate fee generation by running complex, algorithmic strategies.
As protocols roll out v4 implementations and customizable hooks, the line between traditional limit order books and automated market makers will continue to blur. Regulators and tax authorities, such as the IRS and HMRC, generally treat the deployment and withdrawal of liquidity, as well as the accrual of fees, as taxable events, though specific treatments of rebalancing and impermanent loss vary widely by jurisdiction and are subject to ongoing policy updates.
The adoption of dynamic fees and programmable liquidity will likely increase market efficiency, but it will also increase the technical complexity of auditing and verifying the safety of custom pools.
Questions this story raises
- What happens if the price goes outside my chosen range?
- Your liquidity position becomes inactive and stops earning trading fees. Your position will also be converted entirely into the less valuable asset of the pair until the price returns to your range.
- What are ticks in concentrated liquidity?
- Ticks are discrete price boundaries. The protocol divides the continuous price spectrum into intervals (ticks), and liquidity providers select a lower and upper tick to define their custom price range.
- How do hooks change concentrated liquidity?
- Hooks allow developers to add custom code that runs at specific moments, such as before a swap. This enables features like dynamic fees, customized oracles, and integration with other protocols.
- Is concentrated liquidity better for stablecoins?
- Yes. Because stablecoins typically maintain a tight peg (e.g., $1.00), liquidity providers can concentrate their capital in a very narrow range around the peg, maximizing fee capture with minimal risk of the price exiting the range.
References
- [1] Uniswap v3 Core Whitepaper — Uniswap
Evergreen explainer written by Basis Desk's system and checked by an independent model pass for factual errors and advice language. Figures, fees and rules change — the references above are where to verify current specifics. Market figures marked "at the time of writing" come from live exchange data. Report an error: corrections@basisdesk.news · corrections policy.
The Daily Brief, in your inbox at 07:00 ET
Five stories, the numbers that moved, what to watch. Three minutes. No hype, no advice, unsubscribe in one click.
Get the big crypto stories first
A few alerts a day at most: major breaking news and the morning brief. Switch off anytime.
Not financial advice. Basis Desk publishes information, not recommendations. Crypto assets are volatile and you can lose what you invest.