Why does ChatGPT forget what you told it? The "context window" explained simply

In a long conversation, ChatGPT, Gemini or Claude start forgetting details or getting confused. It isn't a random glitch: it's about tokens and the context window. Here's what that means and how to avoid it.

Illustration of a head with circuits representing artificial intelligence
Image: DeltaWorks on Pixabay

It’s happened to everyone: you’ve spent ages with ChatGPT planning a trip, a project or a meal plan, and suddenly it forgets something you said at the start. It suggests steak after you told it you’re vegetarian, or goes back to the format you asked it to drop.

The AI isn’t “getting tired”, and it isn’t doing it on purpose. There’s a fairly simple explanation, and knowing it will help you get much more out of these tools.

AI doesn’t remember the way you do

A chatbot like ChatGPT, Gemini or Claude doesn’t remember the conversation the way a person would. Every time you send a message, the app hands the model the whole conversation so far (your messages and its replies), and the model answers by reading that block of text.

That block has a maximum size, called the context window. Anthropic, the company behind Claude, describes it as the model’s “working memory”: everything it can look at at once to produce an answer.

First, what’s a token?

AI models don’t count words, they count tokens: small chunks of text. A token can be a whole word, part of a word, a single character or a punctuation mark.

OpenAI’s help page gives these rough rules of thumb for English:

Rough equivalent (English)
1 token about 4 characters
1 token about three-quarters of a word
100 tokens about 75 words

OpenAI notes that other languages work out differently, without giving numbers. Treat these figures as a guide, not an exact count.

What fills the context window

According to Anthropic’s documentation, everything counts:

  • Your messages and the AI’s replies, right from the start.
  • Any documents, PDFs and images you’ve uploaded.
  • Hidden instructions the app gives the model behind the scenes.
  • The “thinking” some models do before they answer.

So if you upload a 200-page PDF and then chat for an hour, the window fills up far faster than in a short chat.

What happens when it’s full?

It depends on the app, but two things are worth knowing:

  1. The oldest parts can drop out. Claude’s documentation mentions that chat apps can manage the window so that the first thing in is the first thing out. Other apps automatically summarize the older part so the chat can continue (Anthropic calls this “compaction”). Summaries always lose detail.
  2. Even before it’s full, quality slips. Anthropic says it plainly: as the amount of text grows, accuracy and recall degrade. It calls this context rot. More context isn’t automatically better.

So sometimes the problem isn’t that what you said was deleted, but that there’s so much text the model stops paying attention to it.

How big is the window?

It has grown enormously. According to Anthropic’s documentation, many current Claude models have a 1-million-token window (others have 200,000). That’s hundreds of thousands of words, more than several novels.

But note: those figures are for the models, mainly when used through the API (for developers). Chat apps, especially free plans, may use less, and companies don’t always say how much. And as we’ve seen, fitting in doesn’t mean it’s all remembered equally well.

Context window vs “memory”

This is a common mix-up. ChatGPT, Gemini and Claude have features called “memory” that store facts about you across different conversations (your name, your tastes, your job). That’s something else:

Context window “Memory” feature
What it is The text the AI has in front of it in this chat Facts about you saved for future chats
How long it lasts As long as the chat (and with a limit) Until you delete it
Can you see it? Not directly Yes, in each app’s settings

If you want to see what Gemini remembers about you and how to delete it, check our guide to Gemini’s memory summary.

7 tips to stop the AI forgetting

  1. Start a new chat for each topic. This is the single most useful habit. One chat for the trip, one for work, one for the recipe.
  2. When a chat gets long, ask for a summary and start fresh. Type: “Summarize everything important we’ve decided as a list.” Copy it and paste it at the top of a new chat.
  3. Put key facts first, and repeat them if needed. “Remember: I’m vegetarian and the budget is $500.”
  4. Don’t upload whole documents if you only need part of one. Paste just the chapter or table that matters.
  5. Use custom instructions or memory for things you always want it to know (your language, level, preferred tone).
  6. If it gets confused, don’t argue, restart. Correcting it ten times in the same chat just fills the window further.
  7. Double-check important facts. A confused AI is exactly when it’s most likely to make things up. We explain why in AI hallucinations: why AI makes things up.

Quick summary

  • AI doesn’t “remember”: for every reply it rereads the conversation inside a limited space, the context window.
  • That space is measured in tokens (chunks of text) and fills with your messages, its replies and any files.
  • In very long chats the AI gets less accurate and may drop or summarize the oldest parts.
  • The easy fix: short, single-topic chats, plus a summary to start over.

And to get better answers from the very first message, see our guide on how to write good prompts.

Sources