Swap Execution Calculator
Estimate the all-in execution of a constant-product pool swap before signing it.
Data basis
Formula
Assumption
Reserve direction
Input reserve and output reserve must match the swap direction. The output-token spot price is derived from those reserves. Slippage tolerance only calculates minimum received; it is not counted as an extra predicted cost.
Pool and trade
Assumption
Reserve before the swap.
Assumption
Reserve before the swap.
Assumption
Gross input before pool fee.
Assumption
For example 0.05, 0.30 or 1.00.
Assumption
Anchors the pool-derived spot value in USD.
Assumption
Manual gas or transaction-cost estimate.
Assumption
Used only for minimum received.
Execution result
Expected output
493.5790172
Minimum received
488.64322703
Price impact
1.00%
Total execution cost
$17.84
Fee $3.00 · impact $9.84 · gas $5.00
Execution price
$2.02
Break-even output price
$2.04