---
title: "Context Windows, Explained: What Your AI Can Actually See at Once"
author: "Ecem Karaman"
source: "https://aiwithecem.com/guides/context-windows"
published: 2026-11-21
tools: ["Claude","ChatGPT","Multi-Tool"]
topics: ["Setup","Workflows"]
---

# Context Windows, Explained: What Your AI Can Actually See at Once

A model doesn't see everything you've ever told it. Each time it answers, it works from whatever is in its context window: the text it can reference while writing a reply, including the reply itself. Knowing what fills that window explains a lot: why a long chat starts forgetting your early instructions, why a big PDF eats your usage, and when starting fresh beats pushing on. Below is how it works and the habits that keep it sharp.

**Details checked against [Anthropic's context window docs](https://platform.claude.com/docs/en/build-with-claude/context-windows), [Claude's Help Center](https://support.claude.com/en/articles/8606394-how-large-is-the-context-window-on-paid-claude-plans), [Claude Code's docs](https://code.claude.com/docs/en/costs), [OpenAI's Help Center](https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them) and [ChatGPT's plan page](https://chatgpt.com/pricing) on November 21, 2026.**

> **In this guide**
>
> 1. [Tokens: what gets counted](#tokens-what-gets-counted)
> 2. [What fills the window](#what-fills-the-window)
> 3. [Bigger isn't automatically better](#bigger-isnt-automatically-better)
> 4. [What happens when it fills up](#what-happens-when-it-fills-up)
> 5. [Context vs memory](#context-vs-memory)
> 6. [Habits that keep it sharp](#habits-that-keep-it-sharp)
> 7. [Start a new chat when](#start-a-new-chat-when)

## Tokens: what gets counted

Models measure text in tokens: whole words, pieces of words and punctuation. [OpenAI's rule of thumb](https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them) for English is about 4 characters per token, or 100 tokens for roughly 75 words. Treat it as an estimate: the count depends on the model and the language, and Anthropic says its newer Claude models produce [about 30% more tokens](https://platform.claude.com/docs/en/about-claude/glossary) for the same text than earlier ones.

How big are windows now?

| Where | Window |
| ----- | ------ |
| **Claude apps** | 1M tokens on the newest models (Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2), 200K to 500K on older ones ([Help Center](https://support.claude.com/en/articles/8606394-how-large-is-the-context-window-on-paid-claude-plans)) |
| **ChatGPT, Instant** | 27K on Free, 54K on Go and Plus, 128K on Pro ([plans](https://chatgpt.com/pricing)) |
| **ChatGPT, Reasoning** | 256K on Go and Plus, 400K on Pro; it varies on Free |

## What fills the window

Your messages are only part of it. [Anthropic's docs](https://platform.claude.com/docs/en/build-with-claude/context-windows) count everything in the request plus the answer being written.

| What | Why it adds up |
| ---- | -------------- |
| **System instructions and tools** | Loaded before you type anything. Every connected tool describes itself to the model |
| **Your messages and its replies** | The whole conversation so far, including earlier reasoning on models that keep it |
| **Files and PDFs** | Claude's docs put a PDF page at typically 1,500 to 3,000 tokens |
| **Images** | Claude splits an image into 28×28-pixel blocks, so a 1000×1000 image is about 1,300 tokens |
| **Tool results** | A web page, search result or log can be far bigger than the question that fetched it |
| **Memories and project instructions** | Pulled in to personalize the answer |

ChatGPT's plan page says the same thing from the other side: the part you can actually use for input is smaller than the total, because system instructions, tools, personality and memories share the space.

## Bigger isn't automatically better

A 1M-token window doesn't mean the model pays equal attention to all of it. Researchers at Chroma tested [18 models](https://www.trychroma.com/research/context-rot) and found performance grew less reliable as input got longer, even on simple tasks. An earlier study found models use information best at the [start or end of a long context](https://arxiv.org/abs/2307.03172) and worst in the middle.

Anthropic describes this as an [attention budget](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents): every token added spends a little of it, and quality slides gradually rather than falling off a cliff. In practice, that's why a two-hour chat can start ignoring an instruction you gave in the first message, long before it hits any limit.

## What happens when it fills up

- **Claude apps:** on paid plans with code execution turned on, Claude [summarizes earlier messages](https://support.claude.com/en/articles/8606394-how-large-is-the-context-window-on-paid-claude-plans) as the chat nears the limit, so it can keep going. Your full history is kept, but long chats that trigger this use more of your usage limit.
- **Claude Code:** it [compacts automatically](https://code.claude.com/docs/en/commands) near the limit. Run `/context` to see what's using space, `/compact` to summarize now (add a focus, like `/compact keep the API decisions`), or `/clear` to start fresh.
- **ChatGPT:** OpenAI doesn't document exactly what happens when a chat outgrows the window, so don't count on early details staying in view in a very long conversation.

Summaries keep a chat going, but they're summaries. A specific number or wording from early on can get flattened.

## Context vs memory

These get mixed up, and the difference matters:

- **Context** is what the model can see right now, in this conversation.
- **Memory** is stored separately, across conversations. [ChatGPT](https://help.openai.com/en/articles/8590148-memory-faq) pulls in relevant memories when they're likely to help, and Claude Projects load only the relevant parts of your project files.

So "it remembers me" doesn't mean every saved detail is in front of the model on every answer. More on controlling ChatGPT's in [ChatGPT's memory lives in five places](/guides/chatgpt-memory).

## Habits that keep it sharp

- **One task per chat.** A new topic deserves a new conversation.
- **Hand off with a summary.** Before switching chats, ask for one:

```text
Summarize this conversation for a fresh chat: the goal, decisions we made and why, exact numbers and names I'll need, and what's still open. Keep it under 200 words.
```

- **Put stable instructions where they load every time:** project instructions, custom instructions or a `CLAUDE.md` file. Keep them short; Claude Code's docs suggest [under 200 lines](https://code.claude.com/docs/en/costs) for `CLAUDE.md`.
- **Turn off connectors and tools you aren't using.** Claude's Help Center calls them token-intensive.
- **Send long reading to a subagent.** In Claude Code, a [subagent](/guides/subagents) works in its own window and returns only a summary.
- **Restate what matters.** If an instruction is critical, repeat it near your latest message instead of trusting the first one.

## Start a new chat when

- [ ] You're switching to an unrelated task
- [ ] It forgets or breaks an instruction you gave early on
- [ ] You've pasted several long files or a lot of tool output
- [ ] It's summarized the conversation and you need exact details from the start
- [ ] Answers are getting vaguer or more repetitive

**Go deeper:** [Anthropic on context engineering](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents), [Claude's context window docs](https://platform.claude.com/docs/en/build-with-claude/context-windows), [Weekly Context Audit](/guides/weekly-context-audit), [Harness Engineering](/guides/harness-engineering).
