AI chat memory calculator
AI chats do not have memory in the human sense. They re-read the conversation every turn, up to a fixed budget of tokens. Enter your model's context window and typical message lengths to see how far back it can actually see.
■ system prompt ■ reply reserve ■ chat history
Words are converted at ~1.33 tokens per word (typical English). Once history exceeds the free budget, the oldest messages fall out of memory.
Why the AI forgets
Each reply is generated from a prompt that contains the system prompt, any character card, as much recent history as fits and your newest message. When the conversation grows past the context window, the oldest messages are left out, so the model genuinely cannot see them any more.
A long character card or a large reply reservation shrinks the space left for history. That is why a bloated card makes a character forget recent events faster.
How to stretch your budget
- Trim the character card to the details that change behaviour.
- Ask for shorter replies when the scene allows it.
- Pin key facts in a short summary or memory note instead of relying on old messages.
- Pick a model with a larger context window for long stories.
Common questions
How much context do I need for role-play?
16K-32K tokens covers most sessions comfortably. Very long campaigns benefit from 64K or more, plus a running summary.
Does a bigger context window make the AI slower?
Somewhat. Longer prompts take more time and memory to process, especially on local hardware.
Is this calculation exact?
It uses about 1.3 tokens per English word, which is close for most models. Names, code and other languages can use more.
Related
Character Card Generator
Build a role-play character card and export it as Character Card V2 JSON for any compatible chat app.
Free toolSystem Prompt Builder
Turn a few choices into a clean system prompt that sets role, tone, format and boundaries for any AI chat.
Free toolAI Token Counter
Estimate tokens, words and cost for any text, and see how much of a model's context window it fills.
Free toolUncensored Model Finder
Choose a task, your hardware and a priority, and get open model families and quantisations that fit, including low-refusal options.
Free toolRole-play Scenario Generator
Generate an opening scenario for AI role-play by genre, tone and your role, ready to paste into any chat.
Free toolAI Chat Cost Calculator
Estimate what your AI chat habit costs per month on pay-as-you-go API pricing and compare it with a flat subscription.
GuideMulti-Character AI Role-play: Running a Cast in One Chat
How to run several AI characters in one story: narrator setups, group chats, distinct voices, turn order and keeping the cast consistent.
Put your prompt to work.
Paste what you just built into the chat app and see how an uncensored model responds.