$> Kaya
~/tools/price-impact-calculatorinteractive
/tools/price-impact-calculator

Price Impact Calculator

Use this price impact calculator to estimate AMM swap output, execution price, and price impact from pool reserves, trade size, and fee bps.

~/tools/price-impact-calculatorestimate impact
Ideal output
Actual output
Price impact %
Spot price
Execution price
Post-trade spot price
~/tools/price-impact-calculator/examplesusage.txt

Example Usage

  • Estimate how much output a trade would get from a constant-product pool.
  • Compare the ideal no-slippage output against the actual AMM output.
  • Check how fee bps and trade size change execution price before swapping.
~/tools/price-impact-calculator/guideREADME.md

Price Impact Calculator Explained

A price impact calculator helps you estimate how much a swap moves the price in an automated market maker pool. It compares the ideal no-slippage output against the actual output after both AMM curve effects and trading fees. That lets you see price impact, execution price, and how the post-trade pool price changes. This is useful when planning trade size, comparing routes, or explaining why larger swaps get worse execution than smaller ones. The calculator uses a simple constant-product AMM model, which makes it a good fit for first-pass DeFi analysis and user education.

~/tools/price-impact-calculator/faq3 items

FAQ

What is price impact?

Price impact is the amount a trade moves the pool price away from the pre-trade spot price.

Is price impact the same as fee?

No. Fees are explicit trading costs, while price impact comes from moving along the AMM curve.

Does this model every AMM exactly?

No. It uses a simple constant-product model, which is useful for quick estimates but not every pool design.

~/tools/price-impact-calculator/related5 links
~/tools/price-impact-calculator/linksinternal