← Academy library

Crypto / Evergreen

An automated market maker derives prices from available liquidity

An automated market maker uses a pricing rule linked to pool liquidity, allowing trades to change the quantities and relative prices of assets in the pool.

THE IDEA TO KEEP

AMM execution prices are produced by the interaction between a pricing rule and changing pool state.

The distinction that matters

An automated market maker uses a pricing rule linked to pool liquidity, allowing trades to change the quantities and relative prices of assets in the pool. In an automated market maker, available reserves or active liquidity determine the quoted trade along a pricing curve. A router may choose among several pools or combine routes. The displayed quote is therefore a calculation about a particular path and state, not an unconditional offer from every possible counterparty.

How the mechanism works

In a simple constant-product model, removing one asset requires adding enough of the other to preserve the relevant invariant after fees and rounding. Execution changes the state, and other transactions can change it before the user's transaction arrives. Several costs can appear in the same trade: pool fees, movement along the pricing curve, market changes before inclusion, and network execution charges. A minimum-output condition limits what the contract is allowed to deliver, while a deadline limits when the authorization remains usable. Neither guarantees execution.

A worked situation

Consider this hypothetical situation: A hypothetical buyer acquires a large share of one pool asset, reducing its remaining reserve relative to the asset supplied in exchange. The marginal price becomes less favorable as the trade progresses, so the average execution price differs from the initial displayed spot relationship.

Where interpretation can fail

A pool's quoted price is not independent of trade size, especially when the requested amount is large relative to active liquidity. Examine the pool model and the trade's size relative to available liquidity rather than extrapolating a tiny quote to a large order. AMM execution prices are produced by the interaction between a pricing rule and changing pool state.

The wider technical implication

The familiar constant-product equation is an illustrative model, not a universal description of every AMM. Stable-asset pools and concentrated-liquidity systems can use different effective curves or active ranges. Fees and integer rounding also affect the exact output. A quote should therefore be derived from the actual pool implementation and state rather than from a memorized formula applied indiscriminately. The common principle is that executable output depends on the pool's rules and available liquidity. That principle explains why the same pair can have different prices and price impact across pools with different designs or inventory.

A global perspective

Swap interfaces, pool access, token classification, and reporting obligations can differ by jurisdiction. Technical availability does not establish regulatory status.

Sources & further reading

Uniswap documentation — Swaps ↗Ethereum.org — Decentralized finance ↗

Sources checked Oct 27, 2026. Educational examples. Historical observations are attributed to their sources. No affiliation with cited organizations.

Make the idea stick.

Mark complete when you are ready. Reaching the end alone does not mark a lesson complete.

What assumption in this guide would change the result in a different situation? Revisit the example and explain that change in your own words.

Explore crypto →

KEEP THE CONNECTION

Your next useful question.

Your saved guides →