Context Window Calculator

How much content fits in each AI model? Compare capacity across words, pages, emails and more.

ModelTokensWordsPages (A4)EmailsCode filesPDF pagesBooks (avg)
GPT-5.6 Sol
OpenAI
1,050,000807,6922,1005,2508752,62511
GPT-5.6 Terra
OpenAI
1,050,000807,6922,1005,2508752,62511
GPT-5.6 Luna
OpenAI
1,050,000807,6922,1005,2508752,62511
Gemini 2.5 Pro
Google
1,000,000769,2302,0005,0008332,50011
Gemini 2.5 Flash
Google
1,000,000769,2302,0005,0008332,50011
GLM-5.2
Z.ai
1,000,000769,2302,0005,0008332,50011
Kimi K3
Moonshot AI
1,000,000769,2302,0005,0008332,50011
Nemotron 3 Ultra
NVIDIA
1,000,000769,2302,0005,0008332,50011
Llama 4 Maverick
Meta
1,000,000769,2302,0005,0008332,50011
Claude Opus 4.8
Anthropic
200,000153,8464001,0001665002
Claude Sonnet 5
Anthropic
200,000153,8464001,0001665002
Claude Haiku 4.5
Anthropic
200,000153,8464001,0001665002

Estimates only. Actual token counts vary by language, formatting and content type.

What a context window actually means

A model's context window is the maximum number of tokens it can consider at once, across your entire conversation — system prompt, chat history, and the current input all count toward that budget. This table converts each model's raw token limit into more intuitive units: how many words, standard A4 pages, emails, source code files or average books would fill that window. It's a useful check before you architect a workflow around pasting an entire document in — some documents genuinely won't fit, even in the largest context windows available today.

What 128k, 200k and 1M actually mean in practice

The table above converts token limits into familiar units, but the more important conversion is into money and behavior. A 128k window holds roughly a full novel; filling it entirely on a premium model costs real money on every single request — at a $2.50 per million input rate, a maxed-out 128k request is about 32 cents, which at ten thousand requests a month is thousands of dollars. Big windows are capacity, not free storage.

Usable capacity is also smaller than the headline number: the window is shared by the system prompt, the conversation history, your input and the reserved space for the model's answer. An application that lets history grow unchecked will hit the ceiling — or the budget — long before a single document ever would.

Lost in the middle: why stuffing the window backfires

Long-context research keeps finding the same pattern: models recall information near the beginning and end of the context far better than material buried in the middle. Stuffing a window with everything you have doesn't just cost more — it can make answers worse, because the relevant passage competes with thousands of irrelevant ones.

Two practical habits follow. Put instructions at the start and the most decision-relevant facts near the end of the prompt. And when your source material is large, retrieval — indexing content and sending only the passages that matter — usually beats window-stuffing on both quality and cost. Treat the window as a ceiling, not a target.

Matching window size to workload

Short-turn chat and classification live comfortably in small windows; long-document Q&A and codebase analysis genuinely benefit from 200k and up; the million-token tier earns its keep when whole repositories or document collections must be reasoned over in one pass. Check what your documents translate to with the pages-per-context guide, and measure your real prompts in the token calculator before assuming you need the biggest window on the menu.

Context windows across the current catalogue

Window size is the first constraint to check and the easiest to get wrong, because the headline numbers are not comparable to each other in practice. As of August 2026, GPT-5.6 Sol, Terra and Luna all carry a 1.05M-token window. Gemini 2.5 Pro and Flash, GLM-5.2, Kimi K3, Nemotron 3 Ultra and Llama 4 Maverick sit at 1M. The Claude family — Opus 4.8, Sonnet 5 and Haiku 4.5 — stops at 200k, roughly a fifth of the others.

Price changes the calculus. Filling a 1M-token window once costs $5.00 on Sol, $0.20 on Luna (down from $1.00 before the 30 July repricing), $1.25 on Gemini 2.5 Pro (though prompts above 200k are billed at the higher $2.50 tier) and $0.20 on Llama 4 Maverick. Filling Claude's 200k window on Opus 4.8 costs $1.00. So the cheap-per-token models are also the ones where a large window is affordable to actually use, while a million-token prompt on a flagship tier is a deliberate, expensive choice rather than a default.

Once you know what fits, price it in the OpenAI or Claude calculator.

What fits in practice: four worked cases

A 40-page contract runs about 20,000 tokens. It fits comfortably in every model here, Claude's 200k included, with room for instructions and a long answer. This is the ordinary case, and window size is simply not the constraint.

A 300-page technical manual is around 200,000 tokens. That is the entire Claude window with nothing left for the question or the answer, so in practice you need to retrieve the relevant chapters instead of pasting the book. On a 1M-token model it fits with room to spare — and costs $1.00 on GPT-5.6 Sol just to read it once.

A 20-turn support conversation with a 1,500-token system prompt grows to roughly 15,000–25,000 tokens by the end, because every turn resends the whole history. Cheap per call, but it compounds across thousands of sessions.

A medium codebase, say 50,000 lines, lands near 600,000 tokens — it fits in a 1M window on paper, but retrieval almost always beats pasting it, for both cost and accuracy. The what actually fits guide works through more of these.

Frequently asked questions

Does a bigger context window mean better quality answers?

Not automatically. Most models show some degradation in recall and reasoning as you approach their context limit. A bigger window lets you fit more, but retrieval-based approaches often still outperform 'stuff everything in' for very large documents.

Does the context window include the model's output?

For most providers, yes — the context window is shared between your input and the model's output. If your prompt uses most of the window, the model has very little room left to generate a response.

Why do these page and word estimates seem approximate?

Tokenization depends on the specific text — dense technical writing, code, and different languages all tokenize differently. These conversions use reasonable averages so you can compare models at a glance; for a specific document, use the token calculator above.

Do I pay for the whole window or only what I send?

Only for tokens actually sent and generated. An unused window costs nothing — the risk is behavioral, since a bigger window invites bigger prompts, and every token you do send is billed at the input rate on every request that includes it.

Do input and output share the same window?

On most models yes — the context window is a budget shared between everything you send and everything the model generates, so a 200k window filled with 199k tokens of input leaves almost no room to answer. Some providers publish a separate maximum output length on top of that. Always leave headroom for the response, plus a margin for any reasoning tokens the model produces before answering.

Is a bigger context window always better?

No, for three reasons. Recall degrades toward the middle of very long prompts, so information buried there is more likely to be missed. Latency rises with prompt length, because the whole context is processed on every call. And you pay for every token you send, on every call — a large window used casually is one of the fastest ways to inflate a bill. Retrieval usually beats stuffing.

Does the model remember anything between calls?

Not by itself. The API is stateless: each request carries its own context, and the model has no memory of previous requests unless your application resends the history. That is precisely why multi-turn conversations get more expensive as they go — you are re-paying for the same earlier messages on every turn. Summarizing older turns is the standard fix.

Curious where these numbers come from? Read our pricing methodology.