Exact input vs exact output swap: use exact input to spend a set amount of tokens, and exact output to receive a set amount. Slippage affects the side you leave open: the amount received can fall with exact input, while the amount sold can rise with exact output.
-
To spend a fixed amount, enter the amount you want to sell and review the minimum you will receive.
-
To receive a fixed amount, enter the amount you need to buy and review the maximum you could spend.
The Fixed Side Tells You Which Swap to Choose
Exact input fixes the tokens leaving your wallet. Say you want to sell 1 ETH: the swap spends 1 ETH, while the amount you receive depends on the execution price. Your slippage tolerance sets a minimum received. The trade executes at or above that minimum, or it fails.
Exact output fixes the tokens arriving in your wallet. Take a payment that requires exactly 500 USDC: enter 500 USDC as the output and set a maximum amount you are willing to sell. The swap draws the amount needed up to that cap. Any input it does not use stays in your wallet.
That payment makes the confirmation screen decisive. A route on Matcha swap fits the exact-output case only when the confirmation fixes 500 USDC received and shows a maximum sold amount. For a sale of your full 1 ETH, look instead for 1 ETH sold and a minimum received amount.
Typing 500 USDC into a buy box does not, by itself, select exact output. An aggregator can use that entry to calculate an estimated sell amount, then prepare an exact-input trade. If confirmation says “minimum received,” the output can fall below 500 USDC. Paying a bill from that trade could leave you short. “Maximum sold” identifies the spend cap you need for a fixed 500 USDC output.
The distinction also appears in contract names. Uniswap routers expose swapExactTokensForTokens for exact input and swapTokensForExactTokens for exact output; V3 calls the modes exactInput and exactOutput. You do not need those names to place a trade. Read the confirmation line that states which amount is fixed and which limit protects the other side.
Related Questions
What Does Minimum Received Mean?
Minimum received is the fewest output tokens an exact-input swap may deliver under your slippage setting. The quoted amount is an estimate; the minimum is the limit that determines whether the trade executes.
Why Did I Receive Fewer Tokens Than Quoted?
An exact-input swap can return fewer tokens when the execution price changes before the trade completes. The received amount can move down to your stated minimum. Compare the completed trade with the minimum on the confirmation screen.
Questions to Settle Before You Confirm
Can I Sell My Entire Token Balance With Exact Input?
Yes. Enter the balance as the input amount and review the minimum output. If the token also pays the network fee, leave enough of it in your wallet to cover that fee.
Does Exact Output Cost More Gas?
Exact output has no fixed gas premium. Gas depends on the route and contract calls, so compare the network fee shown for the available trades.
What Slippage Tolerance Should I Set?
Set the tightest limit that still permits the price movement you accept. A tighter limit increases the chance of a failed trade; a wider one permits a lower minimum received or a higher maximum sold.