What’s an Automated Market Maker (AMM)?

Crypto BasicsReza Ali • 6 Aug 2025 • 20 min read

What’s an Automated Market Maker (AMM)?

An automated market maker (AMM) is a pivotal innovation in the decentralized finance (DeFi) ecosystem, allowing traders to engage in decentralized trading without relying on traditional order books. Utilizing liquidity pools, AMMs facilitate continuous liquidity by enabling users to swap tokens directly through the AMM model. Each AMM employs a constant mathematical formula to determine the price of tokens, which is based on the ratio of assets in the pool. This algorithmic approach allows liquidity providers to contribute liquidity to AMMs and participate in trading, earning trading fees in return. Popular platforms like Uniswap exemplify this mechanism, offering trading pairs that provide deep liquidity for a wide range of crypto assets. As market conditions fluctuate, the current market price is constantly adjusted, ensuring that buyers and sellers can trade seamlessly, making AMMs an important instrument in the DeFi landscape.

Key Takeaways

  • AMMs don’t use order books. Regular exchanges match buyers and sellers. AMMs use liquidity pools. You’re trading against the pool, not another person.
  • Anyone can become a liquidity provider. You don’t need to be a big institution. Anyone with tokens can add to a pool and earn fees.
  • Prices are based on formulas. When people buy, the token’s price goes up. When they sell, the price drops, affecting the market cap of the tokens involved.
  • There’s a fee with every trade. It’s small, and it goes to those who put tokens in an AMM pool.
  • There’s a risk of impermanent loss. If token prices shift a lot, you might lose more than if you just held the tokens.
  • AMMs run non-stop. No closing times. You can trade anytime, day or night.

What Does an AMM Actually Do?

An AMM is a type of decentralized exchange. It lets you trade without needing someone else on the other side. Instead, it uses a token pool.

Here’s a simple way to understand it. Think of a container with ETH and USDC. If you want USDC, you drop in ETH and get USDC out. The AMM decides the amount you get using the ratio of tokens in that container.

The more of a token you pull out, the more expensive it gets. This is because the token becomes rarer in the pool. It’s just supply and demand, handled by code.

AMMs work on blockchains like Ethereum. Smart contracts handle the logic. There’s no human in the middle. No one needs to approve or adjust prices. The system does it for you.

Some well-known AMMs are Uniswap, SushiSwap, and Curve. They all have their differences but rely on the same idea: liquidity pools instead of order books.

The biggest benefit? You can always trade, even if your token isn’t popular. As long as there’s a pool, you’re good to go.

Types of AMMs<

AMM Type Formula Use Case
Constant Product x * y = k Popular for general trading pairs (e.g., Uniswap)
Constant Sum x + y = k Great for stablecoin pairs with minimal slippage
Constant Mean Weighted average Supports multiple tokens in a single pool (e.g., Balancer)
Hybrid Mixed models Balances stability and flexibility (e.g., Curve)
Dynamic Adaptive formulas Adjusts parameters like fees and weights over time

Not all AMMs follow the same rules. They use different math to manage prices and tokens. These are the common models:

  • Constant Product AMMs are the most popular. Uniswap made this model known. The formula is x * y = k. That means the product of the token amounts always stays the same.When you trade, you change how much of each token is in the pool. But the product stays fixed. This setup causes bigger price swings with larger trades.
  • Constant Sum AMMs use a different formula: x + y = k. Instead of multiplying, it adds the amounts. It’s useful for tokens that should stay close in value, like stablecoins.
  • Constant Mean AMMs allow more than two tokens in a pool. Balancer is an example. You could have ETH, USDC, DAI, and WBTC in one pool. Each token has a set percentage weight.
  • Hybrid AMMs mix models. Curve combines constant product and constant sum. This suits stablecoins that are expected to hold similar prices.
  • Dynamic AMMs can change their rules over time. They may adjust trading fees or shift token weights as conditions change.

The model used affects trade results. Some models handle big trades with less price movement. Others may cause more slippage.

Why People Use AMMs

AMMs offer some clear advantages over older crypto trading methods. That’s why they’ve become popular in DeFi.

  • You always have liquidity. Traditional exchanges may not have enough buyers or sellers, especially for niche tokens. With AMMs, you can trade if there are tokens in the pool.
  • No account needed. You don’t register or share personal info. Just link your wallet and start.
  • You can earn passive income. Add tokens to a pool, and you get a share of all the trading fees. It’s a way to earn from your idle tokens.
  • Prices adjust automatically. The AMM responds to trading activity. If demand rises, prices rise. If demand drops, prices fall. No human control or manipulation.
  • It works globally. If you have internet, you can use AMMs. Doesn’t matter where you live.
  • AMMs connect with other DeFi tools. You can use your LP tokens in lending platforms or for staking. This adds more options and earnings.
  • It’s easier for new tokens to get traded. Traditional exchanges have high listing costs and strict rules. With AMMs, any token can get a pool if someone provides liquidity to the AMM pool.

Trading Fees in AMMs

Platform Typical Fee Details
Uniswap (v2/v3) 0.3% Standard fee for most pairs
Uniswap (stable pairs) 0.05% Low-risk, low-volatility tokens
Uniswap (exotic pairs) 1.0% Higher risk, higher return
Curve ~0.04% Optimized for stablecoin trading
SushiSwap 0.3% With SUSHI rewards for LPs

Each trade on an AMM comes with a fee. It works differently than on a standard exchange.

  • The fee goes to liquidity providers. You pay a small percentage. That gets shared among the people who added tokens to the pool.
  • Fees vary by platform and pair. On Uniswap, it’s usually 0.3%. For low-risk pairs, it might be 0.05%. For riskier ones, it could be 1%.
  • Fees add up. As people trade, more fees go into the pool. That grows the pool over time. Your share becomes more valuable as the pool grows.
  • High-volume pairs earn more. If a pool trades often, like ETH/USDC, the daily fee income can be large. Small token pools may earn very little.
  • It’s all automatic. You don’t choose or pay a fee separately. The AMM deducts it from your trade automatically.
  • Some platforms allow voting on fees. Token holders might vote to raise or lower them. Higher fees mean more income but might reduce trading. Lower fees increase volume but reduce earnings.
  • Don’t confuse trading fees with gas. Gas is what you pay to run the trade on the blockchain. AMM fees are separate.

What are LP Tokens?

When you provide liquidity, you get LP tokens. These tokens matter.

  • LP tokens show your share. They’re like proof of how much you contributed. You return them later to withdraw your tokens.
  • Your share of the pool doesn’t change. If you hold 1% of LP tokens, you always have 1% of the pool. As fees grow the pool, your 1% becomes worth more.
  • LP tokens are useful elsewhere. Many protocols accept tokens in a liquidity pool as loan collateral. Some let you stake them to earn more rewards. This is called yield farming.
  • They’re affected by impermanent loss. If token prices shift, you might end up with less than you’d have by just holding the tokens. But the loss might reverse if prices return to original levels.
  • To withdraw, you burn your LP tokens. You send them back to the contract. It destroys them and sends you your part of the pool. You may get different token amounts than what you started with.
  • LP token value changes. As the pool grows or shrinks, so does the value of your LP tokens. If one token in the pool crashes, your LP tokens drop in value.
  • Some AMMs use NFTs for LP positions. Others build rewards into the tokens. Each platform is a little different.

How Crypto Derivatives Work?

Crypto derivatives let you trade on prices without owning the actual coins. Their value is tied to a crypto asset like Bitcoin or Ethereum, which can be traded in a dex.

  • Futures contracts lock in a buy or sell at a set price on a set date. Think Bitcoin will be $100k by December? You buy a future. If you’re right, you win. If not, you lose.
  • Futures help manage risk. For example, if you’re mining Bitcoin and worry about falling prices, you can sell futures now to lock in today’s rate.
  • Options give you the right but not the obligation to buy or sell at a certain price. Call options are for buying. Put options are for selling. You pay a fee (premium) for this flexibility in managing your tokens in an AMM.
  • Options cap your loss while allowing you to manage asset prices effectively. If you buy a $50,000 call and Bitcoin stays at $45,000, you just lose the premium. You’re not forced to buy.
  • Perpetual contracts are like futures, but they don’t expire. They’re the most common crypto derivatives. You can hold your position as long as you have margin.
  • Perpetuals use funding rates. These help the price stay close to spot. If the perp is above spot, longs pay shorts. If below, shorts pay longs.

Types of Crypto Derivatives

Derivative Type Key Feature Best For
Perpetual Swaps No expiration, funding rates keep price close to spot Short-term traders
Futures Fixed expiry date and price Hedging or long-term bets
Options Right to buy/sell at set price; not obligation Risk management, leverage
Binary Options Yes/No bets on outcomes Simple speculative trades
Variance Swaps Bet on volatility, not direction Advanced volatility strategies
Power Perpetuals Amplified exposure based on squared price changes High-risk, high-reward traders
Structured Products Combines multiple instruments Yield-seeking investors

The crypto derivatives market has different tools for different needs. Each one works in its own way and suits specific strategies.

Perpetual swaps are the most traded. They don’t have end dates like normal futures. You can keep your position open as long as you want. Platforms like Binance and the now-defunct FTX built their trading volumes around perpetuals.

Quarterly and monthly futures expire after a fixed time. They act more like traditional futures used for commodities. The CME Group offers Bitcoin and Ethereum futures that expire every quarter, allowing traders to speculate on asset prices.

Binary options are simple. You place a yes-or-no bet. For example: “Will Bitcoin be over $50,000 at 5 PM today?” If you’re right, you get paid a fixed amount. If not, you get nothing.

Variance swaps are for betting on volatility. Instead of guessing price direction, you trade on how much the price will move. Bigger swings, in either direction, mean more potential profit or loss.

Power perpetuals give amplified exposure. A squared perpetual changes based on the square of the price movement. If Bitcoin rises 10%, this contract might rise 20%.

Structured products mix different derivatives into one investment. One type, a reverse convertible note, might pay a high return but convert into Bitcoin if the price falls below a set point.

Prediction markets use tools similar to derivatives, providing an introduction to automated market makers. You trade on outcomes of real events. Examples: Will a Bitcoin ETF be approved? Who will win an election? Many settle in crypto.

Each of these tools carries its own risks, margin needs, and ways of settling. Some settle in cash. Others settle in crypto.

What Makes a Good Crypto Derivative Exchange?

Exchanges that offer crypto derivatives need special features. These make them different from basic spot trading platforms.

Margin systems allow leverage. You borrow money to take larger positions. The exchange holds collateral. If your losses get too big, it will close your position automatically. The goal is to balance risk and flexibility.

Risk tools are a must. They protect both the trader and the platform. Circuit breakers pause trading if prices move too fast. Position limits stop one trader from taking on too much risk. Insurance funds cover unexpected losses.

Advanced orders give more control. Stop-loss orders help limit damage. Take-profit orders lock in gains. Trailing stops follow the price and protect profits.

Real-time settlement means fast execution. Traditional markets might take days. Crypto derivatives often settle in seconds. This needs strong tech and good system design.

Cross-margining lets traders use profits from one trade to cover losses on another. It saves capital and helps manage many positions at once.

Ready to trade crypto with leverage using top-tier tools?
Join Margex today and explore seamless AMM-style trading, futures, and more — all without KYC. Start trading smarter.

FAQs

What are automated market makers?

Automated Market Makers (AMMs) are smart contracts used in decentralized finance (DeFi) that allow users to trade crypto assets without relying on buyers and sellers or a traditional order book. Instead of matching orders, you swap tokens using a liquidity pool — a pool of assets in the pool provided by users, known as liquidity providers. The market price of each token is determined by a mathematical formula, most commonly the constant product formula used by Uniswap and similar protocols. This setup allows for decentralized trading 24/7 on the blockchain.

What’s an example of an AMM?

AMMs hold token pairs in liquidity pools. When a trader wants to swap one crypto asset for another, they deposit one token into the pool and withdraw the other. The AMM uses a constant product market maker formula (e.g., x * y = k) to automatically adjust prices based on the ratio of tokens in the pool. This means the more users buy a token, the more its price rises, and vice versa. AMM liquidity is maintained by users who provide liquidity and earn trading fees and LP tokens in return.

How do AMMs work?

AMMs hold token pairs in liquidity pools. When a trader wants to swap one crypto asset for another, they deposit one token into the pool and withdraw the other. The AMM uses a constant product market maker formula (e.g., x * y = k) to automatically adjust prices based on the ratio of tokens in the pool. This means the more users buy a token, the more its price rises, and vice versa. AMM liquidity is maintained by users who provide liquidity and earn trading fees and LP tokens in return.

What does a market maker do?

In a traditional exchange, market makers place buy and sell orders in an order book, helping maintain a fair market price and profit from the spread. In an AMM, this process is fully automated via smart contracts. Instead of relying on trading firms, liquidity providers supply tokens to the pool, enabling decentralized access to trading. The AMM system replaces human activity with code, maintaining product market efficiency across the current market and reducing dependence on the external market structure.