WORLD CRYPTOCURRENCY GUIDE
Execution

Slippage: calculate minimum output before a swap

A quote is an estimate; the signed limit defines what you actually accept.

Comparing two swap quotes on a computer with a separate signing device.
AI-generated illustrative photograph: Comparing two swap quotes on a computer with a separate signing device.
Short answer

For a fixed-input swap, compare the quote, minimum output and total cost. Tolerance is neither a certain fee nor a security guarantee. Do not increase it without understanding why execution failed.

Minimum output

Floor for fixed input

Maximum input

Cap for fixed output

Deadline

Validity limit

01

Read the asset and route

Check network, both token contract addresses, route and amount. Identical symbols do not establish identical assets. Multiple pools can add costs and dependencies; the quote should cover the whole route.

02

Calculate an explicit limit

Hypothetical example: a quote of 1,000 units and 0.5% tolerance gives a simplified minimum of 995 units. Wallet rounding and router rules can differ. Always check the actual signed value rather than the displayed percentage alone.

03

Separate quote, threshold and fees

Your order’s price impact may already be included in the quote. Tolerance permits additional movement without always being consumed. Network fees, preliminary approvals and token charges differ; a failed transaction may still use gas.

04

Handle failure or delay

Check whether price, deadline, balance, permission or contract caused the problem. Refreshing the quote may suffice. A wide tolerance permits unfavorable execution and some MEV scenarios. Inspect status before submitting another swap.

05

Check the limit for your type of swap

If you fix the amount spent, compare the quoted output and the minimum output the router must satisfy. If you fix the amount received, check the maximum input the swap can spend. This guide’s calculator models the first case. In either case, also check the token, recipient and any deadline in the signature request.

Compare

Check parameters

Check parameters
ParameterPurposeLimit
Minimum outputFloor for fixed inputNot a guaranteed price
Maximum inputCap for fixed outputDifferent from minimum output
DeadlineValidity limitNot an inclusion time
Network feesProcessing costPossible even on failure

From displayed price to execution price

The last traded price does not tell you how many tokens are available at that price. Explore a fictional three-level order book: each level has limited supply before a purchase moves to the next price.

Frozen fictional book · CU = accounting unit · best bid: 99 CU · best ask: 100 CU · spread: 1 CU.

Ask price (CU)Available quantityFilled quantity
10055
102107
105200
Filled quantity
12
Unfilled quantity
0
Cost before fees (CU)
1,214.00
Average price (CU/token)
101.1667
Difference from best ask
1.17 %

This fictional book covers the full requested quantity.

Example: buying 12 tokens uses 5 × 100, then 7 × 102, costing 1,214 CU. The average price is 101.1667 CU, approximately 1.17% above the best ask. With a 100 CU limit, only 5 tokens fill and 7 remain unfilled in this snapshot.

Three checks before interpreting a price
Which market?
Compare the same pair and venue. A USD, EUR or stablecoin quote may use a different accounting unit.
How much depth?
Look at quantities close to your price and the size of your order. Past 24-hour volume does not guarantee available liquidity now.
Which limit?
Compare total cost, fees and execution conditions. Raising swap tolerance allows a worse result; it does not create liquidity.

Average price = sum of (price × filled quantity) ÷ filled quantity. Difference = (average price ÷ 100 − 1) × 100. Spread is separate: it is the difference between the best ask and best bid.

This model excludes fees, market rounding, latency, hidden orders and new offers. It does not model an AMM pool. A limit order may remain open or be cancelled depending on time-in-force; here, the remainder is simply displayed. No transaction is sent.

References on how orders work : Coinbase: Slippage · Coinbase: Order book

Calculate minimum output

Simplified minimum : 995

Hypothetical example: 1,000 units at 0.5% gives 995. Quote and result use the same unit; network fees excluded. Rounding, token fees and router rules can differ: the signed minimum governs.

FAQ

Frequently asked questions

Does 1% tolerance mean losing 1%?

No. It permits unfavorable movement up to the defined limit; execution can be better.

Can tolerance be zero?

A very strict limit may cause failure as the quote changes. No universal setting fits every asset.

Does minimum output protect against malicious tokens?

No. Check contracts, permissions, restrictions and the entire route separately.

Verifiable sources

Independent educational content reviewed against primary documentation. No personalized recommendation or promise of returns. Updated November 15, 2026

Related terms

Maximum input
Input cap for a fixed-output swap, distinct from a minimum-output limit.
Minimum output
Lowest output accepted for a fixed-input swap; verify it in the signed parameters.
Price impact
Movement caused by the size of your own trade in available liquidity, distinct from quote-to-execution change.
Slippage
The difference between expected and executed price.

Prepare and continue reading

Review of a digital-wallet authorization with a security key.

Useful background

A chart being explained with its context document — AI-generated photograph

Continue to the next step

Market prices and trends

Bitcoin, Ethereum, Solana and Litecoin: latest trades in US dollars on Coinbase Exchange, with daily closes over 30 days. These are one venue’s prices, not a global average or a guaranteed purchase price.

BitcoinBTC / USD

Data is currently unavailable.

History unavailable.

EthereumETH / USD

Data is currently unavailable.

History unavailable.

SolanaSOL / USD

Data is currently unavailable.

History unavailable.

LitecoinLTC / USD

Data is currently unavailable.

History unavailable.

Prices are cached for 15 minutes; history for 6 hours. Days without trades may be missing. Chart points are closing prices for completed UTC days. Offline, only previously cached data remains readable; data older than 48 hours is hidden.

Source: Coinbase Exchange · Understand price and liquidity