Skip to content

What Is a Context Window, and Why Does It Matter?

A context window is how much text an AI can consider at once. Learn what counts toward it, why long chats drift, and how to work within the limit in ChatGPT and Claude.

By Orgwyse Published Last updated 5 min read

On this page
  1. A plain definition
  2. What counts toward the context window
  3. How big are context windows?
  4. Why bigger isn't automatically better
  5. What happens when a chat runs out of room
  6. How to work within the limit
  7. Context window vs. memory
  8. FAQ

A context window is the amount of text an AI model can take into account at one time, measured in tokens. It includes your instructions, the whole conversation so far, any files or pasted documents, and the answer the model is writing. When a chat outgrows it, the model can't see everything anymore, so it may forget early details or start to drift. And even before the limit, more text doesn't always mean better answers, so keeping the context focused matters as much as its size.

A plain definition

Anthropic defines the context window as "all the text a language model can reference when generating a response, including the response itself," and describes it as the model's "working memory." It's different from the huge body of text the model was trained on (Claude docs: Context windows).

A useful way to picture it: training is everything the model has read in its life; the context window is the desk in front of it right now. It can only work with what's on the desk.

Context windows are measured in tokens, the small chunks of text models read and write. OpenAI's rough guide for English is that one token is about four characters, or about three-quarters of a word (OpenAI Help Center: Understanding and counting tokens).

What counts toward the context window

More than people expect. In Anthropic's description of its API, everything in a request counts: the system prompt, every message in the conversation (including tool results, images and documents), the tool definitions, and the output the model generates, including any thinking it does (Claude docs).

In a chat app, that roughly means:

  • your custom or project instructions
  • every message you and the AI have sent in this chat
  • files and images you've uploaded to the chat
  • results from tools like web search or code
  • the reply being written right now

So a chat with a long PDF, a few screenshots and fifty back-and-forth messages can be much "bigger" than it looks.

How big are context windows?

It depends on the model, and it changes as new models come out. Anthropic's documentation lists current Claude models with context windows of up to 1 million tokens, and some older ones at 200,000 (Claude docs). OpenAI tells developers to check each model's documentation for its context window and maximum output, because these differ between models (OpenAI Help Center).

Models also have a separate limit on how long a single reply can be. A large context window doesn't mean the model will write a reply that long.

In the chat apps, you usually won't see a token counter, and the amount of context available depends on the model you're using.

Why bigger isn't automatically better

It's tempting to paste everything in. Anthropic warns against that: "more context isn't automatically better. As token count grows, accuracy and recall degrade," something it calls context rot. It adds that curating what goes into the context matters as much as how much space there is (Claude docs).

In practice, that's why very long chats can feel worse over time: the model gets less precise about details from early on, mixes up versions of a document you revised, or loses track of an instruction you gave fifty messages ago.

What happens when a chat runs out of room

Different products handle it differently. Anthropic notes that chat interfaces such as claude.ai can manage the context window on a rolling "first in, first out" basis (Claude docs), which means the oldest material is what drops out of view. Some apps summarize older parts of the conversation, and some tell you the chat has reached its length limit and ask you to start a new one.

Either way, the symptom is the same: the AI stops reliably using things from early in the chat.

How to work within the limit

Start a new chat for a new task. One topic per chat keeps the context clean. It's also easier to find later.

Carry over a summary, not the whole history. Before you switch chats, ask:

Prompt
Summarize this conversation for a fresh chat: the goal, the decisions we made, the current version of the work, and the open questions. Keep it under 300 words.

Paste that summary at the start of the new chat.

Put long documents first and your question last. Anthropic's guidance for long inputs is to place documents near the top of the prompt, above the instructions and question, and says queries at the end can improve response quality by up to 30 percent in its tests, especially with multiple documents (Claude prompting best practices).

Trim what you paste. Send the relevant section of a document, not the whole thing. OpenAI's suggestions for input that's too large are to shorten the prompt, remove unnecessary or repeated context, split large inputs into parts, or summarize before sending (OpenAI Help Center).

Break big jobs into steps. Outline first, then draft each section in its own step, carrying forward only what the next step needs. That's the idea behind prompt chaining.

Restate the rules that matter. If an instruction is critical, repeat it when you ask for the final output, or put it in project or custom instructions so it's always included. For writing clearer prompts in general, see how to write a good prompt.

Use projects for reference material. In Claude Projects, files in project knowledge are available to every chat in the project, and on paid plans Claude switches on a retrieval mode when project knowledge approaches the context limit (Claude Help Center: Projects).

Context window vs. memory

They're different things. The context window is what the model can see in the current request. Memory features in ChatGPT and Claude save selected details across chats and bring them into new conversations. Memory doesn't make the window bigger: whatever it brings into a chat has to fit alongside everything else.

FAQ

What is a context window in simple terms?

It's how much text an AI can look at at once, including your instructions, the conversation, any files and the reply it's writing. Anything outside it, the model can't use.

What happens when I exceed the context window?

The app may drop or summarize the oldest parts of the chat, or ask you to start a new one. You'll notice the AI forgetting early details or instructions. Starting a fresh chat with a summary fixes it.

Is a bigger context window always better?

No. Bigger windows let you include more, but Anthropic notes that accuracy and recall degrade as the token count grows. Focused, relevant context usually gives better answers than everything at once.

How many words fit in a context window?

It depends on the model. As a rough guide for English, 100 tokens is about 75 words, so a model's token limit times about 0.75 gives a loose word estimate. Remember that the reply and any files count too.

Does the context window include uploaded files?

Yes. Documents, images and tool results all count toward it, along with the conversation itself.

Last updated 9 November 2026 · Spotted something out of date? [email protected]