---
title: "Slippage"
canonical: https://www.quantconnect.com/docs/v2/writing-algorithms/reality-modeling/slippage
markdown: https://www.quantconnect.com/docs/v2/writing-algorithms/reality-modeling/slippage.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/03%20Writing%20Algorithms/24%20Reality%20Modeling/03%20Slippage
modified: 2026-11-24
index: https://www.quantconnect.com/llms.txt
---

# Slippage

[Documentation](https://www.quantconnect.com/docs/v2.md) > [Writing Algorithms](https://www.quantconnect.com/docs/v2/writing-algorithms.md) > Reality Modeling > Slippage

> Code examples are shown in Python. Append `?lang=csharp` to this URL for the C# version of this page.

## Pages in This Section

- [Key Concepts](https://www.quantconnect.com/docs/v2/writing-algorithms/reality-modeling/slippage/key-concepts.md): Slippage is the difference between the fill price you expect for an order and the actual fill price. Modeling slippage makes backtests more realistic.
- [Supported Models](https://www.quantconnect.com/docs/v2/writing-algorithms/reality-modeling/slippage/supported-models.md): This page describes the pre-built slippage models in LEAN. If none of these models perform exactly how you want, create a custom slippage model.
