How it works
Document tokens = pages × words per page × tokens per word. Total = document + system prompt + room for the answer; the model’s context window must hold all of it in one request. Pages that fit = (window − prompt − answer room) ÷ tokens per page. If it does not fit, the document is split into that many requests (or retrieved in pieces with RAG). A model can accept a full window but may still miss details buried in very long inputs, so shorter, focused context often works better.
⚠ Estimates for information only — not financial advice.
FAQ
Why keep room for the answer?
The context window holds the input and the output together. If the input fills it, the model has no room to reply or stops mid-answer.
Is a bigger window always better?
It is convenient, but cost grows with every input token and quality can drop on very long inputs. Retrieving only the relevant pages (RAG) is usually cheaper.
Checked 10 Nov 2026. Token rule of thumb from the OpenAI Help Center (“What are tokens and how to count them?”: 1 token ≈ ¾ of an English word); context window sizes as listed by the providers (e.g. 1M tokens for Claude 4.6+ and grok-4.3, 500K for grok-4.7).