loading prices...
prices by coingecko
onchain.search tools/local · 0 uploads/links/about

home / defi / curve-stableswap-calculatorlocal

Curve StableSwap Price Impact Calculator

Work out the output and price impact of a swap in a 2-coin Curve-style stable pool from balances and the A factor.

curve-stableswap-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

Stable pools use a curve that is nearly flat around 1:1, so big swaps move the price far less than in a normal pool. A higher A makes it flatter. This solves the same invariant the pool uses and compares it with a constant product pool.

02 // how to use it

  1. Enter both balances in the same units.
  2. Enter A from the pool's page.
  3. Enter the amount to sell and press Run.

03 // faq

What happens when a pool is unbalanced?

Prices move away from 1:1 and the side in short supply costs more.

Does this match Curve exactly?

It uses the StableSwap formula in floating point, so expect tiny rounding differences.

04 // related tools

all 20 defi tools →