What Is an Automated Market Maker (AMM)?

October 8, 2026
defiautomated market makerdexliquiditycrypto

If you have ever swapped one cryptocurrency for another on a decentralized exchange, you have used an automated market maker — even if you had no idea what that meant. AMMs are one of the most important inventions in decentralized finance, and understanding them helps explain how billions of dollars in crypto trades happen every day without a traditional middleman.

**The Old Way: Order Books**

On a traditional exchange — whether it is a stock market or a centralized crypto exchange — buyers and sellers are matched through an order book. Someone posts an offer to sell at a certain price, someone else agrees to buy at that price, and a trade happens. This system works well when there are lots of participants constantly posting orders, but it becomes fragile when the market is thin or when you want to run it without a central operator.

Decentralized exchanges needed a different approach. Running a full order book on a blockchain is slow and expensive, because every update would require a transaction. AMMs were developed as a cleaner alternative.

**What an AMM Actually Does**

An automated market maker is a type of smart contract that holds reserves of two or more tokens and allows anyone to trade against those reserves directly. Instead of matching a buyer with a seller, you are trading against a pool of tokens locked in a contract.

The price you get is determined by a mathematical formula, not by what another human is willing to accept. The most common formula is straightforward: the product of the two token reserves must stay constant. This is often written as x × y = k, where x and y are the quantities of each token in the pool, and k is a fixed number. When you buy some of token A, you add token B to the pool and remove token A. The ratio shifts, and so does the price.

This means the more of a token you try to buy at once, the worse the price you receive — the pool automatically prices larger trades at a premium. That effect is called price impact or slippage, and it is a natural consequence of the formula rather than a human decision.

**Liquidity Providers**

If nobody put tokens into the pool in the first place, there would be nothing to trade against. That is the job of liquidity providers (LPs). Anyone can deposit an equal value of both tokens in a pool and receive LP tokens in return — a kind of receipt proving their share of the pool.

In exchange for providing liquidity, LPs earn a portion of the trading fees generated every time someone swaps through the pool. This gives people an economic incentive to keep the pools funded.

There is a catch, though. When the price of one token in a pool shifts significantly relative to the other, LPs can end up worse off than if they had simply held their tokens in a wallet. This phenomenon is called impermanent loss, and it is something any liquidity provider needs to understand before depositing funds.

**How DEXs Use AMMs**

Decentralized exchanges like those built on Ethereum or Solana use AMMs as their core trading engine. Instead of a company operating servers and holding your funds, the exchange is just a set of smart contracts anyone can interact with. You connect your wallet, choose what you want to swap, and the contract handles the rest.

Uniswap is the most widely recognized example. It popularized the x × y = k model and spawned an entire generation of similar protocols across different blockchains. Variants like Curve were designed specifically for stablecoins, using a different formula that keeps prices more stable when trading assets that should be roughly equal in value. Others introduced concentrated liquidity, letting providers choose a specific price range to supply liquidity rather than spreading it across all possible prices.

**Why It Matters**

AMMs made it possible to list any token pair without needing a company to approve it or a counterparty to show up. As long as someone is willing to provide liquidity, a market exists. This permissionless quality is a big part of why DeFi grew as quickly as it did.

They also introduced new risks. Smart contract bugs can drain pools. Poorly designed formulas can be exploited. And the impermanent loss problem means providing liquidity is not a guaranteed income stream. These are trade-offs that come with removing the traditional intermediary.

**The Bigger Picture**

AMMs are not perfect, but they solved a real problem: how do you run a liquid, functional exchange on a decentralized network where no single party is in control? The answer turned out to be elegant — replace the human market maker with a formula and let the math do the work.

As DeFi protocols continue to evolve, AMM designs are becoming more sophisticated, trying to reduce slippage, improve capital efficiency, and protect liquidity providers from adverse outcomes. But the core insight remains the same: a pool of tokens, a formula, and an open smart contract can substitute for an entire trading desk.

Understanding AMMs is not just useful for DeFi enthusiasts. It is a window into how decentralized systems can replicate — and sometimes improve on — financial infrastructure that once required institutions to operate.

This article is informational and was produced with AI assistance and reviewed before publishing. It is not financial or investment advice. Crypto is volatile; always do your own research and verify with primary sources.

← More from Orask News