loading prices...
prices by coingecko
onchain.search tools/free · no sign-up/links/about

home / defi / constant-sum-amm-calculatorlocal

Constant-Sum AMM Swap Calculator

Compare a swap in a constant-sum pool (x + y = k) with a constant-product pool (x * y = k).

constant-sum-amm-calculatorready · runs in this browser

Runs locally in your browser. Nothing you type is sent anywhere.

defi tools · free · runs in your browser · no sign-up · no wallet

01 // about this tool

A constant-sum pool always swaps 1 for 1, so there is no price impact until one side runs out. A constant-product pool moves the price with every trade. This puts the two side by side.

02 // how to use it

  1. Enter both reserves and the amount in.
  2. Enter the pool fee.
  3. Press Run.

03 // faq

Why do few pools use pure constant sum?

If the peg breaks, traders can drain the valuable side entirely.

What does Curve do?

Blends the two, flat near the peg and curved away from it.

04 // related tools

all 20 defi tools →