Too small: gas eats your profit. Too big: slippage does. OrnyTools finds the exact crossover point — calculated from the real constant-product curve.


The size where gas cost equals slippage cost — the bottom of the U-curve. Below it, gas dominates. Above it, slippage takes over. Load a live pool or enter manually.
Constant-product assumes a balanced 50/50 pool, single-hop swap. Switch to v3 to model concentrated liquidity.
Below the optimum, fixed gas dominates. Above it, slippage takes over. Hover to read exact values at any size.
| Trade size | Gas $ | Slippage $ | Fee $ | Total $ | Total % | Verdict |
|---|
Gas is a fixed dollar cost — as a share of your trade, it shrinks the bigger you go. Slippage is the price you move against yourself on a finite pool — it grows with size. The optimizer finds where the sum of the two is lowest.
OrnyTools uses the exact constant-product formula (x·y=k) — not the √(2·gas·TVL) shortcut that overstates optimal size by up to 2×. shortcut that overstates optimal size by up to 2×. qui surestime la taille optimale jusqu'à 2×.
At the minimum, gas dollars and slippage dollars are approximately equal — that's the equilibrium point.
Where it's only an estimate
This tool estimates execution efficiency only. It does not account for MEV, sandwich attacks, smart-contract risk, oracle failures, bridge risk, token volatility, or failed transaction costs. It is read-only: it never connects a wallet and never asks you to sign anything. Not financial advice.