Why Does ChatGPT Forget Things? The Context Window Explained
ChatGPT does not have a bad memory. It has a small desk, and everything you type has to fit on it.
Key takeaways
- ChatGPT does not forget the way a person does. Each reply is built from the text that fits in its context window, and in a long chat the oldest text is trimmed or condensed to make room.
- The window is measured in tokens (roughly three-quarters of an English word each) and is shared by your messages, its replies, pasted files and hidden text such as instructions and memory notes.
- Memory and the context window are different things. Memory carries short notes between chats, while the window is what the model can read right now.
- The fixes are simple habits: restate key rules, keep one task per chat, summarise and restart, put standing preferences in custom instructions or memory, and paste less.
The short answer: it is not a bug
You tell ChatGPT at the start of a chat to answer in plain English with no bullet points. Forty messages later, the bullet points are back. Or you spend an hour settling on a plan, and then it suggests something you already rejected. It feels like forgetting, and it happens for a simple reason: ChatGPT can only read a limited amount of text each time it replies. That limit is called the context window.
Once a conversation is longer than the window, something has to go, and it is usually the oldest material, including the instruction you gave first. Nothing is broken. This is how every large language model chatbot works, including Claude and Gemini. Once you understand it, a frustrating behaviour becomes something you can plan around.
What is a context window?
A large language model reads and writes tokens, which are small chunks of text. A token can be a short word, part of a longer word, a punctuation mark or a space. In English, one token is roughly four characters, or about three-quarters of a word. The context window is the maximum number of tokens the model can take into account at once, and it counts everything: your prompts, its answers, any files you pasted, and text you cannot see.
The model has no built-in memory of your chat. In a typical chat app, every time you send a message, the app gathers the conversation so far, adds hidden instructions, and sends that bundle to the model, which then writes the next reply. What feels like memory is just the earlier text being read again each time. When the bundle grows past the window, something has to be cut or condensed.
| Tokens | Approx. English words | Roughly the size of |
|---|---|---|
| 100 | 75 | A short paragraph |
| 1,000 | 750 | A long blog section |
| 10,000 | 7,500 | A 15-page report |
| 100,000 | 75,000 | A short novel |
These ratios are a rule of thumb, not an exact count. Code, numbers and languages other than English usually take more tokens per word, so the same window holds less text.
Why ChatGPT seems to forget in long chats
Old messages fall out of the window
When a conversation outgrows the window, older turns are dropped or condensed to make room for newer ones. OpenAI does not publish exactly how ChatGPT does this, but the effect is the same: the model can no longer see what was cut, so it cannot follow it.
Big pastes and files use the budget fast
A long document can use a large share of the window in one go, leaving less room for the conversation around it. Because the oldest text goes first, the instructions you gave at the very start are often the first thing to disappear.
Some of what it reads is not yours
Hidden instructions, saved memory notes and file or tool output all sit in the same window. They take up space you cannot see, and ChatGPT does not show you a live counter of how full the window is. That is why a chat can start misbehaving without any warning.
Fitting in the window is not the same as being used
Even when everything fits, models do not use every part of a long input equally well. A well-known 2023 research paper called "Lost in the Middle" found that models tended to use information at the beginning and end of a long input more reliably than information buried in the middle. The effect varies by model, but the safe assumption is that a rule you set 60 messages ago is less reliable than one you just repeated.
Watch out: a bigger context window is not a guarantee of perfect recall. It is a bigger desk, not a better memory.
Signs your chat has outgrown its window
- It ignores a formatting or tone rule you set early on.
- It asks for information you already gave.
- It contradicts a decision you both made earlier.
- Its answers become more generic and less specific to your situation.
If you notice two or more of these, stop pushing and use one of the fixes below.
Context window vs memory: two different things
People mix these up, and ChatGPT's own memory features add to the confusion. The context window is the text the model can read right now, for this one reply. Memory is a separate feature that saves short notes about you so they can be brought into future chats.
| Feature | What it does | How long it lasts | Best for |
|---|---|---|---|
| Context window | The text the model can read for this reply | This conversation, and only while it fits | Everything in the current task |
| Memory | Saves short notes and details about you | Across chats, until you remove them | Stable facts and preferences |
| Custom instructions | Standing preferences applied to your chats | Until you change them | Tone, format and role |
| Projects | A workspace that groups chats, files and instructions | As long as the project exists | Long-running work with shared files |
Memory is what ChatGPT keeps between chats. The context window is what it can read right now. Mixing them up is why long chats go wrong.
Memory does not make the window bigger. Relevant memory is added to the text the model reads along with your prompt, so it uses some of the same space. That is why memory works best for short, lasting facts rather than project details. OpenAI's Memory FAQ explains where the controls are (usually Settings, then Personalization, then Memory) and notes that features and controls vary by plan, region and platform, so what you see may differ from what is described here.
Do not save passwords, account numbers, health records or confidential work details as memory. Keep sensitive information out of chats that do not need it.
How big is the window, really?
It depends on your plan, the model and the mode. OpenAI publishes different windows for different plans and for fast versus reasoning models, and those numbers have changed several times, so check OpenAI's current plan comparison rather than trusting an old article (including this one). The raw API for the same model can also offer a larger window than the ChatGPT app.
What matters more is what those numbers mean in words. Imagine a window of 32,000 tokens. That is an illustration, not a specific plan limit. It equals roughly 24,000 English words, and that total has to cover your messages, ChatGPT's replies, any files and the hidden text. Paste a 20-page document (about 10,000 words, or around 13,000 tokens) and you have already used about 40% of it before typing your first question.
Seven fixes that work
- Restate what matters. Put the rules that must be followed at the top of any long or important request, or paste a two-line reminder every ten messages or so. It is cheap and it works.
- Use one task per chat. A chat that jumps from a resume to a recipe to a tax question is full of noise. Start a fresh chat for each new task.
- Keep a running summary. Every so often, ask ChatGPT to summarise the decisions so far, check it, and keep it handy to paste back in.
- Move standing preferences to custom instructions. Tone, format and role belong there, so they do not depend on a message that scrolled out of view.
- Use a project for long-running work. Where available, projects keep related chats, files and instructions in one place instead of one endless thread.
- Save durable facts to memory. Ask ChatGPT to remember stable facts, then check what it saved and edit anything wrong. Keep it short and non-sensitive.
- Paste less. Trim documents to the relevant sections, split large files into parts, and ask specific questions instead of "read all of this".
The most effective habit is also the simplest: when a chat gets long, start a new one with a summary. It takes thirty seconds and resets the window. For more prompts worth keeping, see 30 ChatGPT prompts that save an hour a day.
A copy-paste prompt for moving to a new chat
Use this at the end of a long chat, before you start a fresh one:
Summarise this conversation so I can
continue it in a new chat. Include:
1. My goal, in one sentence
2. Decisions we have already made
3. Rules and preferences I gave you
(tone, format, constraints)
4. Facts and numbers that must not
change
5. What is still unresolved
Keep it under 300 words and write it
so a fresh assistant can continue
without asking me anything.
Read the summary before you paste it. It is written by the same model, so it can drop details too. Add anything important that is missing, then paste it as the first message of a new chat.
What developers should know
If you are building with an API instead of using the app, this limit becomes your problem to manage. Most LLM APIs do not remember anything between calls. You send the conversation history with each request and pay for those input tokens every time (some platforms store the history for you, but the tokens still count). Long histories therefore cost more, run slower and eventually hit the window.
Common strategies are trimming the oldest turns (a sliding window), summarising older turns into a short note, and retrieving only the relevant pieces of a large document instead of pasting all of it. The last one is the idea behind retrieval-augmented generation, and it is covered in RAG chunking strategies and embeddings explained. Production prompts need this thinking from day one, as described in prompt engineering for production.
Running a model on your own machine has the same limit with an extra cost: the window uses memory. That is why inference optimization guides talk about KV cache growth, and why local runners such as Ollama start with a modest default (its documentation lists 4k tokens for GPUs with under 24 GiB of VRAM). If you are sizing a setup, the 8GB VRAM guide shows how much memory context takes.
ChatGPT does not forget because it is careless. It forgets because its working space is finite, and everything you paste, type and save has to share it. Keep chats focused, restate what matters, and summarise before a chat gets long, and the assistant will seem to have a much better memory.
Frequently asked questions
Why does ChatGPT forget what I told it earlier in the same chat?
Because each reply is generated from the text that fits in its context window. In a long chat, older messages are trimmed or condensed to make room, so an early instruction may no longer be visible to the model. Restating the rule, or starting a new chat with a summary, fixes it.
Does ChatGPT have a memory limit?
There are two things people call memory. The context window limits how much text ChatGPT can read for a single reply. Its Memory feature saves short notes across chats and has its own controls, which vary by plan, region and platform.
How do I make ChatGPT remember things?
Put standing preferences in custom instructions, save stable facts to Memory where it is available, group long-running work in a project, and restate anything critical in the chat itself. For a long chat, summarise it and continue in a new one.
Is ChatGPT memory the same as its context window?
No. The context window is what the model can read for the current reply. Memory saves short notes between chats, and relevant notes are added to the same window, so memory does not make the window bigger.
Do Claude, Gemini and other AI chatbots forget too?
Yes. Every large language model has a context window, and the sizes differ by model and product. The same habits help everywhere: keep chats focused, restate key rules, and summarise before a chat gets too long.