Solana · Routing primer

How Jupiter Swap works, end to end

Between typing an amount and receiving a token, four things happen: a quote is assembled, a route is split, a tolerance is set, and a transaction races a thirty-second clock. Here is each one.

Reviewed 25 November 2026 · 9 minute read · Independent reference

Where the quote comes from

When you enter an amount, Jupiter does not ask one exchange for a price. It asks many: on-chain automated market makers, third-party liquidity providers and market makers, and its own routing systems. What comes back is not one price but a set of possible paths, each with its own depth, hops and fees.

Those paths are assembled by two engines working in parallel. Metis is the on-chain router. It finds pools, builds multi-hop routes through intermediate tokens, and can split a single order across several venues so that no one pool absorbs all of the price impact.

JupiterZ is a request-for-quote engine. Instead of reading pools, it asks professional market makers to quote a firm price for the trade. On major pairs, competition between those quotes can beat an on-chain route by a few basis points. A basis point is one hundredth of a percent, so the difference is real but small.

The result is one transaction that may contain several swaps inside it. Your wallet shows a single approval because the route was already assembled; the blockchain records every leg.

Slippage and price impact

These two numbers are often confused, and the confusion is expensive.

Price impact is caused by you. It is how far your own order pushes the pool’s price before it fills. A deep pool barely moves; a token with a few thousand dollars of liquidity can move several percent on a modest trade.

Slippage is caused by everyone else. It is the difference between the price you were quoted and the price when your transaction lands. Your slippage tolerance is the maximum you will accept. If the market moves further than that, the swap reverts rather than filling at a worse rate.

In Ultra mode, Jupiter’s real-time slippage estimation sets the tolerance for each trade. It weighs the token’s recent volatility, the depth of liquidity and current network conditions, then refreshes the quote roughly once a second. Values under one percent are normal for established pairs; volatile or thin tokens need more room.

Fees, line by line

Three costs can appear on a swap, and only one of them belongs to Jupiter.

  • Platform fee — Jupiter’s commission in Ultra mode, set by pair.
  • Network fee — paid to Solana validators, including a priority fee when the network is busy. It is charged even when the swap fails.
  • Pool fees — charged inside each liquidity pool the route touches, already reflected in your quote.
Jupiter Swap Ultra platform fee by pair type
Pair typeUltra fee
Stablecoin ↔ stablecoin, and liquid staking tokens0%
SOL → stablecoin0.02%
Liquid staking token → stablecoin0.05%
Every other pair0.1%
Tokens less than 24 hours old0.5%

Manual mode carries no Jupiter commission, which is why it is attractive for large or unusual trades. You give up the automatic slippage estimate and the built-in MEV protection, and you take on the routing decisions yourself. For most people swapping normal sizes, Ultra is the simpler default.

Gasless swaps

A new wallet can hold USDC and no SOL, which makes it unable to pay the network fee. Jupiter handles this as an onboarding case: it pays the transaction costs itself and deducts their value from the swap, with no separate gasless fee.

It activates automatically only when all of these are true:

  • The wallet holds less than 0.01 SOL.
  • The trade is worth roughly $10 or more; the floor moves with network fees.
  • The token being sold is verified — major tokens such as USDC qualify.
  • The covered cost stays within about 10% of the trade value.

The deducted amount is fixed, so it weighs more heavily on small trades. If you can, keep a little SOL in the wallet: paying the network fee yourself generally gives better execution. Swaps routed through JupiterZ are effectively gasless too, because the market maker covers the network and priority fees.

You can tell when a swap is gasless from the quote details: the network fee row reads “Gasless”.

Why swaps fail

A failed swap is not usually a bug. It is the system protecting you from a worse fill than the one you agreed to. The four common causes:

Slippage was exceeded
The price moved past your tolerance between quote and landing. Retry, reduce size, or accept a slightly wider tolerance on a volatile pair.
The transaction expired
A Solana transaction stays valid for roughly 30 seconds. A slow wallet approval can outlast the quote, so the network rejects it.
The route lost liquidity
One leg of a multi-hop route filled before your transaction landed. Refresh the quote to get a new path.
The wallet rejected it
You declined the prompt, or the wallet could not cover the network fee. Nothing moved, and no fee was charged.

The one exception to “nothing was charged” is a transaction that reached the network and failed there. That consumes the network fee even though no swap occurred, which is why failed trades still show a small SOL deduction.

Beyond spot trading

Swap is one product in a suite that has expanded well past aggregation. Limit orders let a trade wait for a target price; DCA splits a deposit into scheduled buys; perpetual futures offer leveraged exposure against a liquidity pool; lending lets you supply or borrow; and a bridge compares routes in from other chains.

Each of those carries risk that a spot swap does not. Leverage can liquidate a position; a lending health factor can deteriorate quickly; a bridge adds another contract and another chain. None of them are required to use Swap, and none of them should be tried before the basics are comfortable.

See the five tools compared on the main page, including what to watch for in each.

Before you sign

Jupiter cannot protect a wallet from a token the user chose to buy, or from a domain that is not Jupiter. The checks that matter most are the ones outside the protocol:

  1. 01Confirm you are on jup.ag — bookmark it rather than following a link from a message.
  2. 02Verify the token's mint address. Names and logos are trivially copied.
  3. 03Read the token's shield flags: unverified, active mint authority and active freeze authority all change the risk.
  4. 04Check the wallet prompt's amounts and programme. Unexpected fees can be injected by a browser extension.
  5. 05Keep slippage tight enough that a bad fill is refused, not accepted.

Self-custody means nobody can reverse a bad trade for you. Start with a small amount, confirm it on-chain, and only then size up.

Questions

Sources and review

Product mechanics and fee tiers were checked against Jupiter’s official documentation in November 2026. Routing claims and fee schedules are the project’s own and can change without notice. This page is educational and is not financial advice.

New to the protocol? Start with the basics.

What Jupiter Swap is
Built with ExaSpark