Skip to content
Koit Academy

Context window calculator

Your numbers

The numbers filled in are an example. Replace them with yours.

Room for your input

190,000 tokens

About 133,000 words, or 266 pages of 500 words, after keeping 8,000 tokens for the answer and 2,000 for instructions. That is 95% of the window.

How it adds up

ItemTokens for inputWordsPages
8,000 window---
32,000 window22,00015,40031
128,000 window118,00082,600165
200,000 window190,000133,000266
1,000,000 window990,000693,0001,386

An estimate: each model splits text into tokens differently, and code, tables and languages other than English usually take more tokens per word. Filling a window to the limit also leaves less room for the model to work with what it has read; leaving a margin is safer.

Worked out from the numbers you enter. Calculated in this browser; nothing you enter is sent anywhere or stored.

How to use it · free, no signup

How to use the Context Window Calculator

Enter a model’s context window, the tokens to keep for the answer and the instructions to see how many words and pages of material fit. Calculated in your browser.

  1. 01

    Enter the window

    The model’s context window in tokens, from its documentation.

  2. 02

    Keep back room

    Tokens for the answer and for the instructions.

  3. 03

    Read the result

    The tokens, words and pages left for your material.

What a context window holds

A model’s context window is the most it can handle in one request, measured in tokens. Everything counts towards it: the system prompt and instructions, the material you paste, any earlier messages in the conversation, and the answer the model writes. The room left for your material is the window minus everything else.

ItemTokens
Context window200,000
Kept for the answer8,000
System prompt and instructions2,000
Left for your material190,000
In words, at 0.7 a tokenAbout 133,000
In pages of 500 wordsAbout 266

From tokens to words and pages

Google’s documentation for Gemini puts 100 tokens at about 60 to 80 English words, and the calculator uses the middle of that range, 0.7 words a token, which you can change. Code, tables, numbers and languages other than English usually take more tokens per word, so for that kind of material lower the figure. For a specific text, the token counter gives an estimate from the text itself.

Why not fill it to the limit

A window filled to the last token leaves no room if the answer runs long, and the request fails or the answer is cut off. There is also a quality reason: the more material a model is given at once, the easier it is for a detail in the middle to be overlooked. Leaving a margin, and putting the most important instructions where they are easy to find, is the safer habit.

When the material does not fit

There are three usual approaches: split the material and work through it in parts, summarise it first and work from the summaries, or store it in chunks and retrieve only the passages relevant to each question. The chunk size calculator works out how many chunks a document makes and how much each question adds to the prompt, and the AI API cost calculator shows what long inputs cost.

Published by Koit Academy. Who runs it, how it is paid and how its tools are checked.

Questions

What people ask about the Context Window Calculator

What is a context window?
The most tokens a model can handle in one request, counting everything: instructions, your material, the conversation so far and the answer it writes.
How many words are in 200,000 tokens?
Roughly 120,000 to 160,000 English words, using Google’s figure of 60 to 80 words per 100 tokens. At 0.7 words per token it is about 140,000.
Why keep tokens back for the answer?
Because the answer counts towards the same limit. If the input fills the window, the model has no room left to reply.
Should I fill the window to the limit?
It is safer not to. A margin leaves room for a longer answer, and models can find it harder to use every detail of very long input.
What if my material does not fit?
Split it into parts and work through them in turn, summarise it first, or retrieve only the passages relevant to each question.