> For the complete documentation index, see [llms.txt](https://docs.yad.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yad.finance/knowledge-base/basics/what-is-slippage.md).

# What is slippage?

Slippage is the difference between a trade’s expected price and the actual price at which the trade is executed. It occurs because of a lag, since validation and transaction completion take some time, and the exchange rate might change within this period.&#x20;

You can adjust the settings to set a slippage tolerance, thus determining the percentage of negative price changes you’re ready to take. Otherwise, the transaction will not be completed. In this case, you will still have to pay the transaction cost, but the swap will not be executed.

Slippage can be both positive when price change is favorable for users and negative when price change is unfavorable for users.

## What is positive slippage?

Positive slippage for a buyer occurs when a buy order is executed at a price that is lower than the expected price, resulting in a better-than-expected price for the buyer.

However, slippage is generally more common in volatile markets, where prices can move quickly, and liquidity is limited. In more stable markets with high liquidity, slippage is less likely to occur.

## What is negative slippage?

Negative slippage is the opposite: It occurs when a buy order is executed at a price that is higher than the expected price, resulting in a worse-than-expected price for the buyer.

{% hint style="info" %}
To reduce the risk of experiencing significant negative slippage during a swap, you can adjust the slippage tolerance in the swap settings.
{% endhint %}

<figure><img src="/files/DGo3aGE6SzGFWYE8Nlb2" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.yad.finance/knowledge-base/basics/what-is-slippage.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
