Skip to content
Crypto & Web3 Rich #amm#uniswap#liquidity

AMM Constant Product Curve

x * y = k. Larger trades move price further along the hyperbolic curve.

A free, animated amm constant product curve you can read here or embed on any website, from Scrollchart.

AMM Constant Product Curve

AMM Constant Product Curve: x * y = k

A hyperbolic x*y=k curve plotting reserves of token X against token Y. A trade slides the position along the curve; the slope at any point is the marginal price. Slippage is the difference between expected and executed price as trade size grows.

Good for

  • Uniswap mechanics articles
  • AMM design content
  • DeFi liquidity primers

Source & accuracy

This amm constant product curve is an editorial illustration built to represent the concept accurately. Where it shows figures, they are typical or representative values chosen to make the relationship clear, not a single underlying dataset. The diagram and its explainer are reviewed and maintained centrally, and updated over time as understanding improves.

The x times y equals k formula

Automated Market Makers (AMMs) use a simple mathematical formula to price assets without a central order book. The most common formula is x * y = k, where x and y are the quantities of two assets in a liquidity pool and k is a constant. If a pool has 100 ETH and 10,000 USDC, then k equals 1,000,000. When you swap 1 ETH for USDC, the pool must maintain the constant: the new ETH amount (101) times the new USDC amount must equal k.

Solving 101 * y = 1,000,000, you get y = 9,901 USDC. Since the pool started with 10,000 USDC, you receive 99 USDC (not 100). The 1 USDC difference is slippage: the price you received is worse than the spot price because your trade moved the pool's ratio. Larger trades incur more slippage because they move the pool further along the curve.

Why the hyperbolic curve increases slippage

The curve x * y = k is a hyperbola, which gets steeper at the extremes. Small trades (e.g., swapping 0.1 ETH) have minimal impact and low slippage. Large trades (e.g., swapping 10 ETH out of a 100 ETH pool) move the pool significantly and slippage is severe. This design creates an incentive structure: it discourages large single trades from pushing prices far and encourages liquidity providers to add capital (increasing x and y, thus k) to reduce slippage. More liquidity means tighter prices and lower fees.

Embed this diagram

Add this animated amm constant product curve to your own site. Copy one line of HTML, or use the embed builder for theme and sizing options.

Reference

What this is
A free, embeddable, animated amm constant product curve for any website.
Who uses it
Crypto / Web3 blogs, Fintech content sites.
How to embed
Copy one line of HTML. No signup. No watermark. Works in WordPress, Webflow, Ghost, Substack, plain HTML.
File size
iframe embed, ~80 KB gzipped (loads on demand, does not block your page paint).
License
Free forever. Editorial explainer text included; updated centrally over time.

Embed format options

Copy the universal HTML snippet, the WordPress shortcode, or an iframe fallback - see the WordPress plugin page for details. Any format keeps the same Core Web Vitals profile and the same explainer text.

Embed snippet
<div data-scrollchart="amm-constant-product" data-scrollchart-v="1"></div>
<script src="https://scrollchart.com/embed.js" async></script>

Frequently asked questions

Where can I get a free animated "AMM Constant Product Curve" for my website?
Scrollchart provides "AMM Constant Product Curve" as a free, embeddable animated diagram you can add to any website with one line of HTML. No signup is required and there is no watermark. The diagram and its explainer text are served from scrollchart.com, so the embed stays current without any maintenance on your end.
How do I add a amm constant product curve to a finance or business article?
Copy the embed snippet from the Scrollchart page for this diagram and paste it anywhere in your article HTML. It is compatible with WordPress, Webflow, Ghost, Substack, and static HTML pages. No account or API key is needed.