Tokens and context
Context window fit checker
Whether a document fits a model's context window, how much of it the document uses, and how many chunks it needs otherwise.
With document tokens 250,000 tokens, model claude-sonnet-5-5, reserve tokens 8,000 tokens, chunk overlap 10%, the fits in one request is Yes at list prices read 2026-11-01.
Fits in one request
Read from vendor pricing pages on 2026-11-01. Arithmetic on list prices, not advice or a quote.
Saving and exports come with Pro, $9 a month. What is in it. The calculator itself is free.
How it works
A context window is the most tokens a single request may hold, prompt and answer together. Fitting is not the same as affordable: a 900K-token prompt on a 1M window is billed for 900K input tokens every call, which is where prompt caching earns its keep.
The formula
usable = window - reserve; fits = tokens <= usable; chunks = ceil(tokens / (usable * (1 - overlap)))
Worked example
Inputs
- Document tokens
- 250,000 tokens
- Model
- claude-sonnet-5-5
- Reserve tokens
- 8,000 tokens
- Chunk overlap
- 10%
Result
- Fits in one request
- Yes
- Context window
- 1,000,000 tokens
- Share of the window
- 25%
- Chunks needed
- 1
- Tokens per chunk
- 250,000 tokens
Sources
- developers.openai.com/api/docs/models (read 2026-10-20)
- platform.claude.com/docs/en/models/overview (read 2026-10-20)
- ai.google.dev/gemini-api/docs/models (read 2026-10-20)
Prices read from each vendor's own pricing page on 2026-11-01; the page may have changed since. This is arithmetic on published list prices, not advice or a quote. Check the vendor's page before committing a budget.