An automated market maker (AMM) is a smart contract that prices tokens with a formula instead of an order book. Traders swap against pooled reserves, and liquidity providers earn a share of the fees. AMMs power most decentralized exchanges, and newer designs add concentrated liquidity, hooks, and dynamic fees.
Key Takeaways
An AMM prices assets with an algorithm, so trades don't need a buyer and seller to match.
Liquidity pools hold the tokens. Prices shift as trades change the pool's balances.
Anyone can provide liquidity and earn fees, but providers take on impermanent loss.
Modern AMMs add concentrated liquidity, programmable hooks, and dynamic fees.
Some are becoming aggregation layers, routing trades across many venues.
What Is an AMM?
An AMM is a protocol used by decentralized exchanges (DEXs). It holds tokens in pools and sets prices from the balance between them. No order book, and no counterparty needed for each trade.
That design matters because it runs without intermediaries. A trader swaps directly with a smart contract, and the contract settles the trade at the formula's price.
How Does an AMM Work?
Liquidity pools (LP) hold reserves of two or more tokens. Providers deposit matching values, for example $500 of ETH and $500 of USDC.
When someone swaps, they add one token and remove the other. The formula resets the price as balances shift, so a large trade moves the price more than a small one. That gap between expected and actual price is slippage, and deeper pools keep it lower.
Providers receive LP tokens that represent their share. They can redeem those tokens for the underlying assets at any time. They also earn a cut of every swap fee, in proportion to their stake.
What Types of AMMs Exist?
The constant-product formula is the original design, but it isn't the only one. Different formulas suit different trading pairs.
Type | How it prices | Best suited for |
Constant product | Fixed product of reserves, so price moves along a curve | General pairs with unrelated assets |
Stable swap | Flatter curve that assumes prices stay close | Stablecoins and pegged assets |
Weighted pools | Custom token weights, up to eight assets | Diversified baskets and custom exposure |
Concentrated liquidity | Liquidity placed within a price range | Pairs with predictable ranges |
Uniswap v4 added a hooks system in January 2025. Developers can attach custom logic to a pool, such as a limit order or a fee rule, at set points in a trade's life. A single contract now manages all pools, which cut pool creation gas costs by about 99%.
What Is Impermanent Loss?
Impermanent loss happens when the prices of pooled tokens move apart. The formula rebalances the pool, so a provider ends up holding more of the weaker asset and less of the stronger one.
If they withdraw at that point, they may have less value than if they had simply held both tokens. The loss stays "impermanent" only until withdrawal. After that, it's locked in. Trading fees can offset it, but not always.
Pools of closely correlated assets, such as two stablecoins, see far less of this. A newer metric, loss versus rebalancing (LVR), measures the gap against a strategy that rebalances to target weights. Net LP return comes down to fees minus impermanent loss, gas, and rebalancing costs.
What Risks Should Users Consider?
Contract risk: a bug or exploit in the pool contract can drain funds, which is why audits and track record matter.
Impermanent loss: price divergence can outweigh earned fees.
MEV: Maximal extractable value bots can sandwich trades. Tight slippage limits, short deadlines, and protected RPCs reduce the damage.
Regulatory uncertainty: rules for DeFi venues still vary by jurisdiction.
Before depositing any funds, remember to read the audit reports and understand how the specific pool prices assets.
How Are AMMs Evolving in 2026?
Design has moved toward specialization. Four shifts stand out:
Aggregation
Uniswap's Aggregator Hooks, live since October 22, 2026, wrap outside liquidity sources as v4 pools. Seven venues now route through it, covering more than 90% of DEX activity on Ethereum, Base, and Robinhood Chain. The protocol fee goes toward UNI burns. That turns v4 into an AMM and router at once.
Dynamic fees
Some protocols adjust fees to live market conditions instead of using fixed tiers, which can protect LPs when volatility rises.
Permissioned markets
On September 17, 2026, the SEC issued a five-year exemption letting qualifying venues run permissioned AMM pools for tokenized US stocks. Access is restricted rather than open to retail, and the relief runs to September 2031. However, this is a narrow path and not a broad green light for DeFi.
Scaling research
Proposals such as a Sharded AMM split a pool across independent shards. Testnets report roughly 5x more throughput on Sui and 16x on Solana, though resistance to overload attacks is still being tested.
FAQ
What is an AMM in crypto?
An AMM is a DEX protocol that uses smart contracts and liquidity pools instead of an order book. Prices come from the ratio of tokens in the pool, and anyone can supply liquidity to earn fees.
How do liquidity providers earn money?
Providers earn a share of the swap fees in their pool, proportional to their deposit. Some pools add token incentives on top, though those vary and can end.
What is impermanent loss?
It's the gap between holding two tokens and providing them to a pool when their prices diverge. The pool rebalances automatically, so you may withdraw less value than you deposited. It becomes permanent once you withdraw.
How do AMMs differ from order book exchanges?
An order book matches specific buyers and sellers at set prices. An AMM trades against a pool at a formula-driven price, so it always has liquidity but can shift price as trades get larger.
Are AMMs safe to use?
Yes, if you use them with care. Audits, a long track record, and tight slippage settings all help. Remember that impermanent loss, MEV, exploits, and regulatory change are real risks, so start small.
Closing Thoughts
AMMs have reshaped DeFi by making token trading and liquidity provision accessible to anyone with a crypto wallet. Starting from the simple constant-product formula, AMM design has evolved significantly, with concentrated liquidity, multi-asset pools, stable-swap curves, and programmable hooks now standard across leading protocols.
The next phase of AMM development points toward aggregation layers, dynamic pricing, and permissioned markets for real-world assets.
