Skip to content
Trading & AMMs

Constant Product

Constant Product Formula

Mathematical formula (x*y=k) used by AMMs for automatic pricing

Definition

The constant product formula (x*y=k) is the mathematical model used by AMMs like Uniswap to automatically set prices based on token ratios in liquidity pools.

Constant Product (Constant Product Formula) is a trading term used to understand Mathematical formula (x*y=k) used by AMMs for automatic pricing. In practice, it matters because it affects how users evaluate protocols, compare opportunities, and avoid hidden assumptions.

Example

In a ETH/USDC pool, if you buy ETH, the ETH amount decreases and USDC increases, maintaining the constant product while raising ETH's price.

1

How it works

In practice, the concept shows up like this: In a ETH/USDC pool, if you buy ETH, the ETH amount decreases and USDC increases, maintaining the constant product while raising ETH's price.

2

Why it matters

Constant Product matters because small misunderstandings in DeFi can turn into bad pricing, liquidation, governance, custody, or smart-contract risk. A good mental model helps you compare protocols without relying on marketing language.

3

What to check

Treat it as a trading concept: compare expected benefit with fees, slippage, liquidity, volatility, and execution risk. The main checks are: Price impact; Arbitrage opportunities; Impermanent loss.

Risks to Consider

  • Price impact
  • Arbitrage opportunities
  • Impermanent loss

Common Questions

What does Constant Product mean in DeFi?

Constant Product means Mathematical formula (x*y=k) used by AMMs for automatic pricing. The useful question is not only the definition, but how the mechanism changes risk, return, liquidity, or governance for the user.

How is Constant Product used in practice?

A practical example: In a ETH/USDC pool, if you buy ETH, the ETH amount decreases and USDC increases, maintaining the constant product while raising ETH's price.

What should I check before relying on Constant Product?

Check price impact, arbitrage opportunities, impermanent loss. Also verify liquidity, oracle assumptions, admin controls, and whether the protocol has been tested during stressed markets.