Context window size has become a headline spec in every model release, but most people don't have a clear sense of what it actually means or when it matters. Here's a plain explanation.
Every new model release seems to lead with a bigger context window number, a million tokens, two million tokens, as if it's the single most important spec. It matters, but probably not in the way, or for the reasons, most headlines suggest.
TL;DR: A context window is the total amount of text a model can consider at once, measured in tokens, covering your prompt, any attached files, and the model's own response combined. A bigger context window lets you feed in more material, but it doesn't guarantee the model uses all of it equally well; models can still lose track of details buried in the middle of a very long input, a pattern sometimes called the "lost in the middle" effect. For most everyday tasks, context window size isn't the limiting factor at all; it matters most specifically for long documents, large codebases, and conversations you need the model to fully remember over an extended session.
Every time you interact with a model, everything involved, your instructions, any documents or images you've attached, the model's own generated response, and often the full history of the conversation so far, counts against a single limit measured in tokens, the small chunks of text covered in our glossary of AI terms. Once that combined total exceeds the model's context window, older parts of the conversation typically get dropped or summarized to make room, which is why very long conversations can sometimes cause a model to "forget" something discussed earlier.
It's tempting to assume a model with a much larger context window will always perform better with lots of input, but that's not guaranteed. Research and real-world use have both shown that models can struggle to give equal attention to everything in a very long input, often performing better on information near the beginning or end of the context than on details buried in the middle, an effect researchers have called "lost in the middle." A large context window increases what a model can consider, but doesn't guarantee it will weigh every part of that content equally well.
For most everyday tasks, drafting an email, answering a quick question, summarizing a short article, you're using a small fraction of what a modern model's context window can hold, which means context window size isn't the limiting factor for these tasks at all. Choosing a model based primarily on context window size for short, simple tasks doesn't add meaningful benefit and sometimes means paying a premium for capacity you're not using.
How is a context window measured? In tokens, small chunks of text roughly equivalent to a word or part of a word, which is the same unit most AI pricing is based on, covered in our pricing explainer.
Does a bigger context window cost more to use? Using more of a model's available context generally costs more, since most pricing is based on tokens processed; a large context window gives you the option to use more, but you're typically only charged for what you actually send.
Can I just always use the model with the biggest context window to be safe? It's a reasonable default for tasks genuinely involving long documents or codebases, but for short, simple tasks it usually adds unnecessary cost without a meaningful quality benefit.
What happens when I exceed a model's context window? Behavior varies by product, but commonly the oldest parts of a conversation get dropped, summarized, or the system prevents you from sending additional input until the total falls back under the limit.
Is context window the same as memory? Related but distinct. A context window is what a model can consider within a single session or conversation; persistent memory across separate sessions is a different feature some products add on top of the underlying context window, which we cover in more depth in our post on retrieval vs. memory in AI assistants.
Last updated: September 9, 2026. Context window sizes continue to expand across model releases; check a specific model's current documentation for its exact limit.