# Slippage

Slippage is the difference between the expected price of a trade and the price at which it actually executes. If market movement exceeds your slippage tolerance, APM automatically cancels the trade to avoid filling at a bad price. Setting slippage correctly is key to both execution success and cost control.

***

### 📐Recommended range

* Range: 1%–100%
* Low slippage (1–2%): For highly liquid, stable large-cap tokens
* Medium to high slippage (5–15% or higher): For volatile or early-stage meme tokens with thin liquidity to improve fill rates

<figure><img src="https://2166296216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F63ztrY8WeVQTbXUWd9Dv%2Fuploads%2FE8gPtaamvs5lpivIHeVc%2Fimage.png?alt=media&#x26;token=69a4be57-f2c1-4c4f-9e15-266caea1b1e2" alt=""><figcaption></figcaption></figure>

### ⚙️ Default value and best practices

| Topic           | Details                                                                                                                                                                                                              |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Default setting | APM defaults to 10%, which suits most meme coins and medium-volatility markets. It balances success rate and safety.                                                                                                 |
| How to adjust   | <p>High volatility / low liquidity → raise slippage (suggest 15–25%)<br>Low volatility / deep liquidity → lower slippage (suggest 1–5%)</p>                                                                          |
| Troubleshooting | If you get a “slippage too low” failure, increase slippage by a few percentage points and retry.                                                                                                                     |
| Pump.fun rule   | Pump.fun uses one-sided slippage. Leave extra SOL when buying (for 20% slippage, a 1 SOL buy needs at least 1.2 SOL). APM will auto-reduce slippage if your balance is too low so the transaction can still be sent. |
| Anti-MEV        | For large trades (>1 SOL), do not set slippage excessively high. Even with MEV protection enabled, extreme slippage can invite sandwich attacks. Reasonable slippage is your first and best defence.                 |
