Skip to main content

What Is the Significance of the Constant Product Formula ($x Y=k$)?

The constant product formula, $x y=k$, is the core algorithm used by many AMMs like Uniswap. It dictates that the product of the quantities of the two assets in the pool ($x$ and $y$) must remain constant ($k$).

This formula ensures that there is always liquidity available for a trade, no matter how large. It automatically determines the new price ratio after a swap, creating a smooth, continuous price curve.

How Are New Coins Distributed to Holders after a Hard Fork?
How Is the Price Impact of a Trade Calculated in an AMM?
Explain the Difference between a Constant Product and a Constant Sum AMM Curve
How Does an Automated Market Maker (AMM) Algorithm Maintain the Constant Product in a Liquidity Pool?