Price impact vs slippage in Solana swaps: one worked example

Price impact is what your own order does to the pool. Slippage is what the market does between quote and execution. One sample pool shows both, with fees kept separate.

Engraved brass calibration marks and two red glass wedges set at a fine offset.

A quote offers 476,190 tokens for 5 SOL. The transaction confirms and 467,028 tokens arrive. Nothing failed.

The gap you noticed is slippage. A larger gap sat inside the quote before you signed, and that one is price impact. Every figure in this article is hypothetical and illustrative, and the same example pool is used throughout.

Three terms get mixed up:

  • Price impact is the price movement your own order causes. It depends on your size relative to the pool, and it is already in the quote.
  • Slippage is the difference between the quoted output and the executed output, caused by the pool changing between quote and execution.
  • Slippage tolerance is the limit you set on that difference. Past the limit, the transaction fails. It is a ceiling, and you do not pay it as a charge.

The example pool

A simple constant-product pool holds 100 SOL and 10,000,000 TOKEN. Before any trade, 1 SOL corresponds to 100,000 tokens. Fees are left out at first so the arithmetic stays visible.

Price impact: what your own size does

You swap Tokens at the starting price Tokens the pool quotes Price impact
0.1 SOL 10,000 9,990 0.10%
1 SOL 100,000 99,010 0.99%
5 SOL 500,000 476,190 4.76%
20 SOL 2,000,000 1,666,667 16.67%

In this model, impact equals your input divided by the pool's SOL reserve plus your input. For 5 SOL, that is 5 ÷ 105, or 4.76%. Nobody else has to trade for this to happen. A deeper pool shrinks it, which is why impact belongs next to liquidity when you read a token.

Small quote versus intended size

The first and third rows are the same pool at the same moment. A 0.1 SOL test quote shows 0.10% impact. The 5 SOL quote shows 4.76%.

A small quote confirms that a route exists. It tells you almost nothing about the cost of a larger order. Quote the size you mean.

Slippage: what happens between quote and execution

You accept the 5 SOL quote of 476,190 tokens with a 2% tolerance. The minimum you will accept is 476,190 × 0.98, or 466,667 tokens. Then other transactions reach the pool first.

Before your swap lands You receive Actual slippage Result at 2% tolerance
Nothing else trades 476,190 0% Executes
Someone buys with 1 SOL 467,028 1.92% Executes
Someone buys with 2 SOL 458,127 3.79% Fails
Someone sells More than 476,190 In your favor Executes

In the second row, tolerance was 2% and actual slippage was 1.92%. Those are different numbers with different jobs. One is a limit. The other is what happened.

Measured against the starting price, that fill delivered about 6.6% fewer tokens than 500,000. Roughly 4.76% came from impact and 1.92% from slippage, compounding.

In the third row the swap does not happen, though a failed transaction can still cost a network fee. In the fourth, the pool returns more than quoted, and how that surplus is handled can depend on the interface you use.

How to interpret a slippage tolerance setting

No single percentage is right, because the setting trades one risk for another.

Situation A tighter tolerance means A wider tolerance means
Deep, quiet pool Little practical difference Little practical difference
Thin, fast-moving pool More failed transactions More fills, further from the quote
Large size relative to the pool No reduction in impact, which is already in the quote A worse permitted fill on top of large impact

A wide tolerance in a thin pool also leaves room for other transactions to move the price against you, up to your limit. Four questions do more work than a rule of thumb:

  1. How much impact is already in this quote?
  2. How quickly is this pool trading right now?
  3. What does a failed transaction cost me in time and fees?
  4. What is the minimum received, in tokens, that this setting permits?

Fees and calculation caveats

  • Fees are a third thing. Pool fees, any interface fee, and network or priority fees sit apart from impact and slippage. With an illustrative 0.25% pool fee taken from the input, the 5 SOL quote falls from 476,190 to about 475,057 tokens.
  • Real routes are not one pool. Aggregators can split an order across pools with different designs, so the constant-product formula here is a teaching model. Jupiter's swap lesson covers how quotes and slippage appear to a user, and its developer guide to building a swap covers the request side.
  • Reference prices differ. A displayed price impact depends on the price a tool compares against, so two tools can show different figures for the same trade.
  • Automatic settings are still settings. If an interface chooses the tolerance for you, find the number and the minimum received.

A reading order before any swap

  1. Quote your real size.
  2. Read the price impact.
  3. Read the minimum received.
  4. Check the pool's age and depth, using how to use DEX Screener for Solana.
  5. Ask whether the idea still makes sense after the total cost.

Step 5 is where many ideas end, and that is a useful outcome. The same quote, run in both directions, is also one of the checks in how to spot rug pull red flags on Solana.