Trader tools
Add up the pool fee, price impact and network fee of a swap, in dollars and as a share of the trade.
The dollar value you are swapping.
Shown on the pool or swap screen.
The swap screen shows this before you sign. Use 0 if you have none.
Gas for the transaction, in dollars.
Results appear here as you type.
Still needed: trade size, pool fee, price impact
The pool fee is trade size x fee tier. It is taken from the amount you send.
Price impact is how far your own trade moves the pool price. It is applied to what is left after the fee: (size - fee) x impact %. The network fee is a flat dollar amount for the transaction.
Total cost is the three added together, and the share is total / trade size. To get back to even you need the price to rise by total / (size - total).
Impact is not the same as slippage tolerance: impact is what you expect to lose, while tolerance is the most you will accept. Read Slippage and price impact for the difference. Bots can also add cost. See MEV and sandwich attacks.
The calculator uses only the numbers you type. It does not look up live pools or gas prices, so copy them from your swap screen.
Educational use only, not financial advice. This calculator works only from the numbers you type. It does not use live prices and it cannot predict what a market will do.