An automated market maker (AMM) is a smart contract that prices tokens algorithmically and settles trades against a pool of assets, so a trade can execute without an order book or a matched counterparty. This guide covers how AMMs work, how pool depth sets the price your traders actually get, and where a pool stops being enough for a token with real volume.

Key takeaways

  • An AMM quotes a price for two or more tokens from the balances held in a smart contract, so trades settle against pooled reserves instead of a matched buyer and seller.
  • Price moves with every trade. How far it moves is set entirely by pool depth, and it is calculable before launch.
  • Anyone can supply a pool and earn a share of trading fees. Those fees are payment for real risks, including impermanent loss and adverse selection.
  • A pool responds to flow. It does not form a view, quote a spread, manage inventory, or defend a level.
  • For a token launch, a DEX pool sets a floor on tradability. Depth on centralized venues, tight spreads, and inventory management come from somewhere else.

What is an automated market maker?

An automated market maker is a protocol that prices assets algorithmically and settles trades against a shared pool of tokens. It replaces the two roles a traditional exchange needs, the order book and the market maker quoting into it, with one smart contract.

On an order book venue, a price exists because someone posted a bid and someone posted an ask. Those quotes can be pulled at any moment. On an AMM, a price always exists, because the contract derives it from the balances currently in the pool.

That property is what made decentralized exchanges viable. Any token can have a live market within minutes of deployment and without a single professional counterparty involved. AMMs now settle a large share of on-chain spot volume across Ethereum, Solana, BNB Chain, Base and Arbitrum. Uniswap popularized the model, and Curve, Balancer, PancakeSwap and Aerodrome extended it.

How does an AMM work?

An AMM works by holding token reserves in a smart contract and recalculating the price after every swap based on the new balances. Three parts do all the work.

Liquidity pools

A liquidity pool is a smart contract holding reserves of two or more tokens, for example ETH and USDC. Traders swap against those reserves directly, which makes the pool the counterparty to every trade. There is no matching engine and no queue.

Liquidity providers and LP tokens

Anyone can deposit tokens into a pool and become a liquidity provider, or LP. In a standard two-asset pool, deposits are made at equal value on both sides. The LP receives LP tokens, which represent a proportional claim on the pool and can be redeemed for the underlying assets at any time.

Trading fees

Every swap pays a fee, typically between 0.01% and 1% depending on the pool and the pair. Fees accrue to LPs in proportion to their share of the pool. That fee income is the return LPs are paid for taking the risks covered below.

How does pool depth affect price impact?

Pool depth determines price impact directly: a trade against a pool ten times deeper causes roughly one tenth of the slippage. This is the single most useful thing for a token team to understand about AMMs, so here it is with numbers.

Take an ETH/USDC pool holding 100 ETH and 300,000 USDC, quoting 3,000 USDC per ETH. A trader buys 10 ETH and pays roughly 33,333 USDC. That is an average execution price of 3,333, or 11.1% of slippage, and the pool now quotes closer to 3,700.

Run the same trade against a pool holding 1,000 ETH and 3,000,000 USDC. The buyer pays roughly 30,303 USDC, an average price of 3,030, or 1.01% slippage.

Same trade, ten times the depth, one tenth of the price impact. Price impact is a mechanical output of pool size, and it is knowable before launch rather than after it.

What types of AMMs are there?

Four designs cover almost all on-chain liquidity today. The standard two-asset pool is general purpose and inefficient with capital, so later designs trade generality for efficiency.

Concentrated liquidity

Uniswap v3 let LPs allocate capital to a chosen price range instead of spreading it across every possible price. Within that range, the same capital produces far more depth. Outside it, the position stops earning and sits entirely in one asset.

Stable-swap pools

Curve uses a pricing curve that is nearly flat around parity, which is what assets expected to trade one to one need. Stablecoin and liquid staking pairs get much tighter execution than a standard pool would give them.

Weighted multi-asset pools

Balancer supports pools of up to eight tokens with custom weightings, so a pool can hold something closer to a portfolio than a pair.

Hooks and custom pool logic

Uniswap v4 introduced hooks, which let developers run custom code at specific points in a pool's lifecycle, such as before or after a swap. Dynamic fees, on-chain limit orders and time-weighted execution can all be built at the pool level.

AMM vs order book market making: what is the difference?

An AMM is a passive pricing mechanism. A market maker is an active participant with a view, inventory and hedges. Seven differences matter in practice.

Price source. An AMM derives price from the balances sitting in the pool. A market maker posts quotes that reflect a view on where the asset should trade.

Depth. Pool depth is fixed by the capital deposited in it. A market maker adjusts size and levels continuously through the session.

Spread. On an AMM the spread is the fee tier and nothing else. A market maker sets the spread deliberately and widens it when risk rises.

Inventory. A pool rebalances mechanically as trades hit it, with no target position. A desk manages inventory and hedges the exposure it takes on.

Behaviour in volatility. A pool keeps quoting into a move at the same shape. A desk widens, reduces size, or steps back.

Availability. A pool quotes continuously by construction. A desk quotes according to its mandate and obligations.

Venue coverage. A pool exists on one chain in one pair. A desk quotes the same token across multiple centralized and decentralized venues at once.

What can an AMM not do?

An AMM cannot make a decision. Everything below follows from that, and it is where token teams lose money.

A pool has no view

It quotes the same way whether the market is calm or a large holder is unwinding. It will keep selling your token into a sell-off at a mechanically decreasing price until the reserves are gone. A desk quoting the same pair widens, reduces size and hedges.

Depth is symmetric and static

A standard pool offers the same shape of liquidity in both directions regardless of where the token should be trading. It cannot lean, skew or step away.

Arbitrageurs set the price

An AMM never discovers price on its own. It drifts until an arbitrageur corrects it against a deeper venue. The value that correction captures comes out of LP returns, an effect researchers call loss-versus-rebalancing.

A pool cannot support a listing

Exchange listing teams look at consolidated depth within a percentage band of mid, uptime of quotes, and spread stability across venues. A DEX pool contributes to that picture without covering it.

What are the risks of providing liquidity to an AMM?

Liquidity providers take four distinct risks, and fee income has to compensate for all of them.

Impermanent loss

When the relative prices of the pooled assets diverge, the mechanical rebalancing leaves the LP holding a different asset mix than they deposited, worth less than simply holding would have been. It stays theoretical until withdrawal, at which point it is realized. Fee income can offset it. It often does not.

MEV and sandwich attacks

Pending swaps are visible and price impact is deterministic, so searchers can trade ahead of and behind a large swap to capture the difference. Private orderflow routing and dynamic fee hooks reduce this exposure.

Smart contract risk

Pool logic, router logic and any hooks are all code holding funds. Audits reduce this risk without removing it.

Thin pool risk

In a shallow pool, ordinary retail size produces double digit price impact. On a chart, that reads as volatility the token did not earn.

How should a token team use AMM liquidity at launch?

Treat the pool as the tradability layer and plan real depth separately. A DEX pool is the cheapest way to be tradable, and it is also the reason a lot of tokens print a chart that scares off the exact allocators the team wanted to attract.

  1. Size the pool against expected trade size, not against a budget. Decide what price impact a typical buy should cause, then size reserves to hit it. The comparison above shows the scale involved.
  2. Assign an owner to concentrated liquidity. A v3 or v4 position outside its range stops working. Someone has to hold responsibility for rebalancing it.
  3. Plan CEX depth in parallel. Spread, quote uptime and two-sided depth on centralized venues come from an active market maker. Those are the metrics listing committees and institutional desks read.

FAQ

What is an AMM in crypto?

An automated market maker is a smart contract that prices tokens algorithmically and settles trades against a pooled reserve of assets, so no order book or matched counterparty is required for a trade to execute.

How do AMMs determine price?

Price comes from the ratio of assets held in the pool. Each swap changes those balances, so the price moves along a fixed curve set by the pool's design, and a larger trade relative to the pool moves it further.

What is the difference between an AMM and a market maker?

An AMM is a passive pricing mechanism that quotes mechanically from pool balances. A market maker is an active participant that posts and adjusts two-sided quotes, manages inventory and hedges risk across venues. An AMM cannot widen spreads, reduce size or step back during volatility.

What is impermanent loss?

Impermanent loss is the shortfall a liquidity provider takes versus simply holding the two assets, caused by the pool rebalancing as relative prices diverge. It becomes permanent when the position is withdrawn.

How much liquidity does a token need in an AMM pool?

It depends on the price impact the team will accept for a typical trade. As a rough guide, a standard two-asset pool needs reserves on the order of 100 times a given trade size to keep that trade's price impact near 1%. Larger expected trades require proportionally deeper pools.

Do AMMs replace market makers?

No. AMMs made passive liquidity provision open to anyone and they cover continuous on-chain trading well. Two-sided depth on centralized exchanges, spread stability, listing support and large block execution still require an active desk.