Fees & trade costs

How to compare the total cost of a crypto swap

Compare crypto swap quotes after embedded fees, gas and approvals, using a worked example and a consistent price benchmark.

Compare the value you expect to receive after every charge you will actually pay. Use the same input amount, output token, network and observation time. A route with a higher output quote can still leave you with less value once you include separate network and approval costs.

Try the cost comparison

Hypothetical USD values for the same input amount. Enter quoted output after any fees already included in the quote. Subtract only additional gas and approval costs to avoid counting a charge twice.

Route A
Route B
Example: A = $992.70; B = $993.95. B returns $1.25 more after these additional costs.

This is arithmetic, not a live quote, price feed or recommendation. No wallet or network request is used.

The difficult part is deciding which costs the quoted output already includes. Subtracting an embedded charge again makes an accurate quote look artificially expensive. Keep a short ledger with two columns: deductions already reflected in output, and charges paid separately.

Start with a comparable transaction

Record the input quantity and exact token, the desired output token, the network, and when each quote was obtained. Two assets sharing a ticker are not necessarily the same asset. A quote on one network also does not deliver the same result as a quote on another network unless moving the funds is part of your comparison.

For an exact-input comparison, hold the input quantity fixed and rank the alternatives by net output value. If you need a fixed output quantity, compare the required input plus separate charges instead. Uniswap's execution documentation distinguishes minimum-output protection for exact-input swaps from maximum-input protection for exact-output swaps.

Separate embedded deductions from extra payments

  • Pool fees and quoted price impact: a usable output quote should reflect the route's execution at your requested size. Do not deduct a displayed impact percentage again when it already describes that quote.
  • Interface or service charges: establish whether the displayed output is before or after the charge. If the interface does not explain this, the comparison has an unresolved input.
  • Network cost: include the value of the native tokens or other payment asset you will spend separately.
  • Preparation transactions: include an approval when this swap actually requires a paid approval transaction. Do not assume every signature is a paid transaction.

These distinctions have practical consequences. Uniswap's approval explanation separates a network transaction from a signature request. For Ethereum, the network fee depends on consumed gas and the price paid per unit; a wallet's spending ceiling is not necessarily the eventual charge.

Apply the calculation to a BSC swap

For an ordinary BNB Smart Chain transaction, network gas is paid in native BNB. That payment is separate from the pool and interface charges associated with the route; no single BSC-wide fee percentage describes every swap. Establish which deductions the quoted output already includes before adding the separate gas payment.

A BEP-20 input can require a paid approval transaction before the swap. Use the current wallet estimates for the actual sequence, including any intended later transfer, and budget native BNB for those actions. The BNB you expect to receive from a swap is not gas already available before it executes.

A supported sponsorship arrangement can change who funds execution. It still requires checking the final received amount and any charge recovered from the user. See the BSC gas-asset explanation for the distinction between native BNB and token balances.

A worked comparison

Hypothetical example: you swap an input worth $1,000 for a stablecoin. For this calculation only, value that output stablecoin at exactly $1. Both quotes use the same input and observation time. Their outputs already include every pool and service deduction. The gas and approval estimates below are separate payments, converted to dollars using the same reference prices.

ItemRoute ARoute B
Quoted output value$995.60$994.90
Separate swap network cost$2.10$0.65
Required approval cost$0.80$0.30
Net economic output$992.70$993.95
Shortfall versus $1,000 benchmark$7.30$6.05

The arithmetic is: net economic output equals quoted output value minus separate costs. Route A gives $0.70 more output tokens, but requires $1.95 more in separate payments. Route B therefore leaves $1.25 more net value under these assumptions.

Relative to the $1,000 input benchmark, the estimated economic shortfalls are 0.73% and 0.605%. Those are comparison results, not either route's advertised fee rate. They include the benchmark-to-quote difference as well as separate payments. The stablecoin's assumed $1 valuation is also not a claim about its live market price.

Keep the quote and the worst accepted result distinct

The quoted output is an estimate for the observed market state. Minimum received is a protection threshold, not a prediction that the swap will execute at that threshold. Report both if the downside boundary matters to your comparison.

Do not treat slippage tolerance as an automatic extra fee. Uniswap distinguishes price impact from price slippage: your trade changes the pool price, while the eventual fill can differ from the quote. Mixing those measures can count the same deterioration twice or charge a tolerance that was never used.

Reconcile the result after execution

Replace the estimated output with the received quantity and replace estimated separate charges with the actual payments. Preserve the original comparison timestamp and valuation method. Otherwise, a later token-price move can make the transaction appear cheaper or more expensive without changing its execution.

Include any paid, reverted attempts in the cost of completing the task. Ethereum charges for computation even when an included transaction fails. A failed attempt that never reached execution is a different case; use the receipt rather than assuming a fee.

Finally, state what the result measures. A benchmark shortfall measures execution relative to your chosen reference. A receipt measures what you paid onchain. Neither alone proves that another route was executable at a better price when your transaction completed.

Sources & verification (7)

Source-check date is recorded in the article details. URLs are provided for manual verification. Use Copy to keep this page open.

  1. Understanding Swaps on Uniswap

    Exact-input minimum output, exact-output maximum input, quote-size price impact and swap execution distinctions.

    https://developers.uniswap.org/docs/get-started/concepts/traders/swaps
  2. What is an approval transaction?

    A paid approval transaction and a signature request are different operations.

    https://support.uniswap.org/hc/en-us/articles/8120520483085-What-is-an-approval-transaction
  3. Ethereum gas and fees: technical overview

    Gas cost calculation, maximum fee versus actual cost, and fees for executed failed transactions.

    https://ethereum.org/developers/docs/gas/
  4. Price Impact vs Price Slippage

    Own-trade impact differs from quote-to-fill slippage.

    https://support.uniswap.org/hc/en-us/articles/8643794102669-Price-Impact-vs-Price-Slippage
  5. BNB Smart Chain

    Native BNB funds smart-contract execution on BNB Smart Chain.

    https://www.bnbchain.org/en/bnb-smart-chain
  6. What is an Approval Transaction?

    BEP-20 trading can require a separate approval transaction before swap execution.

    https://docs.pancakeswap.finance/welcome-to-pancakeswap/contact-us/faq/what-is-an-approval-transaction
  7. Overview - BSC Paymaster

    Integrated EOA paymaster sponsorship can change who pays for qualifying BSC transactions.

    https://docs.bnbchain.org/bnb-smart-chain/developers/paymaster/overview/

Continue reading

Is a fee already included in the quoted output? Input fee or output fee: which amount is the percentage applied to? What a useful swap-fee breakdown should show Budget native BNB for a sequence of swaps Why BEP-20 swaps still need native BNB