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
- Enter both balances in the same units.
- Enter A from the pool's page.
- 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.