What is a context window?
The context window is how much an AI can hold in mind at once, measured in tokens. It's shared by everything in the conversation: your messages, any files you attach, and the AI's own replies. That's why this calculator lets you save room for the reply and count what you've already used.
Chat apps have smaller limits than the API
The same model can have very different limits depending on where you use it. In the ChatGPT app, the Free plan's window is a small fraction of what Pro gets, and both are well below what the API allows. The Gemini app works the same way: the window depends on your Google AI plan.
What happens if I go over?
You may get an error, your file may be cut off without warning, or the AI may quietly forget the start of the conversation. If your text doesn't fit, split it into parts or start a fresh chat.
Frequently asked questions
What is a context window?
The maximum number of tokens an AI model can work with at once, including your messages, attached files and the AI's replies.
Why is ChatGPT's context window smaller in the app than in the API?
OpenAI sets separate limits for each ChatGPT plan. Free has a much smaller window than Plus or Pro, and all of them are smaller than what the same models allow through the API.
Does a bigger context window mean better answers?
Not always. Most models get less reliable at recalling details as conversations get very long, so sending only what's needed often works better.
Why isn't Microsoft Copilot listed?
Microsoft doesn't publish fixed context window sizes for Copilot. It runs on OpenAI models, so the ChatGPT rows are a reasonable guide.