AMM (Automated Market Maker)
An algorithm that prices and facilitates crypto trades using shared token reserves—called liquidity pools—and math formulas, so you don't need a traditional buyer-seller matching system.
Think of a vending machine that always has stock and adjusts its own prices. That's essentially what an Automated Market Maker does for crypto trading. Instead of waiting for someone to take the other side of your trade, an AMM uses a math formula to price tokens based on how many are sitting in a shared pool.
The most common formula is the "constant product" rule: x * y = k. In plain terms, if a pool holds 100 ETH and 200,000 USDC, those quantities multiply to 20,000,000—and that product has to stay the same after every trade. When you buy 1 ETH, you add enough USDC to keep the math balanced. This guarantees there's always liquidity available, for any token pair, at any size.
Different AMM designs optimize for different jobs. Curve's "stableswap" formula keeps slippage (the price impact of your trade) tiny when you're swapping similar-priced assets like USDC and USDT. Uniswap V3 introduced concentrated liquidity, letting liquidity providers focus their capital in specific price ranges for better efficiency.
AMMs have real tradeoffs versus traditional order books. On the plus side: anyone can list a token pair, they run 24/7, and no professional market maker is required. On the downside: liquidity providers face impermanent loss, large trades can move the price more than you'd like, and sandwich attacks (a type of front-running) are a known issue.
The AMM model has grown well beyond simple swaps. Balancer lets you create multi-token pools with custom weightings. Concentrated liquidity AMMs like Uniswap V3 and Maverick let providers actively manage their price ranges. These innovations keep narrowing the performance gap between AMMs and traditional order books.
Frequently Asked Questions
▸How does an AMM determine token prices?
Most AMMs rely on a math formula tied to the ratio of tokens in the pool. The constant product formula (x*y=k) means the price shifts proportionally with each trade—as one token gets removed, you need to add more of the other to keep the constant balanced, which pushes up the price of the scarcer token.
▸Are AMMs better than traditional exchanges?
Neither is universally better. AMMs give you permissionless access and simplicity, but large trades can suffer from higher slippage. Order book exchanges handle big trades more efficiently but depend on market makers. Many traders use both depending on the token and trade size.
Clarity tracks this automatically across your connected accounts. Start Free Trial · Demo