Every AI chat tool and API talks about tokens: a model has a limit of so many tokens, a plan includes so many, a price is so much per million. Tokens are the unit the model actually works in, and once you know roughly what one is, a lot of otherwise confusing behaviour makes sense: why long documents get cut off, why some languages cost more, and why a short question can still run up a bill.
This post explains what tokens are, how they relate to words, and why they matter for limits and cost.
A token is a piece of text
A language model does not read letters or words directly. Before it sees your text, a tokenizer splits it into pieces from a fixed vocabulary of tens or hundreds of thousands of fragments. Common short words are usually a single token. Longer or rarer words are split into several pieces. Spaces and punctuation are part of the pieces too.
The model reads those tokens, and when it answers, it writes one token at a time, each chosen based on everything before it. So tokens are not just a billing unit; they are how the model sees and produces language.
Why models use tokens rather than words
Working in whole words would need an enormous vocabulary, and it would still fail on every name, misspelling, product code or new word it had never seen. Working in single letters would make every text very long, and the model would have to work out what each word means from scratch every time. Tokens sit between the two. A vocabulary of word pieces can spell out any text at all, unusual words included, while common words still fit in a single piece.
That is also why the token count of a piece of text depends on what it contains. Everyday words in common languages are cheap. Unusual names, technical terms and invented words are assembled from several pieces and cost more.
How many words is a token?
There is no fixed conversion, because it depends on the text and the tokenizer. But there are reliable rules of thumb. Google’s documentation for its Gemini models says a token is about 4 characters, and that 100 tokens are about 60 to 80 English words.
| Text | Roughly |
|---|---|
| 100 tokens | 60 to 80 English words |
| 1,000 English words | 1,250 to 1,700 tokens |
| A page of 500 words | 625 to 850 tokens |
| 4 characters | About one token |
The token counter applies both rules to any text you paste, so you can see an estimate and how far apart the two methods land.
Why the same text has different token counts
Each model family trains its own tokenizer, so the same sentence can be a few tokens longer in one model than in another. Several kinds of text consistently use more tokens than plain English:
- Other languages. Tokenizers are built mostly from English text, so words in other languages, and especially in other scripts, tend to be split into more pieces.
- Code. Brackets, operators, indentation and long variable names all break into small tokens.
- Numbers and data. Long numbers, dates and identifiers are often split digit by digit or in small groups.
- Formatting. Markdown symbols, tables and repeated spaces all count.
For planning, the rules of thumb are close enough. When an exact count matters, use the counting tool or library your provider offers for the specific model.
Tokens set the limits
Every model has a context window: the maximum number of tokens it can handle in one request. That limit covers everything at once: the system instructions, your message, any documents you attach, the earlier conversation, and the answer the model writes. When people find that a long chat starts forgetting its beginning, or a document is refused as too long, the context window is usually the reason.
Because the answer counts towards the same limit, a request that fills the window with input leaves no room for a reply. The context window calculator shows how much room is left for your material after keeping space for the answer and the instructions.
There is usually a separate, smaller limit on how many tokens the model may write in one answer. That is why very long outputs sometimes stop mid-sentence, even when the input was short.
Tokens set the price
APIs charge per token, usually quoted per million, with separate prices for input tokens (what you send) and output tokens (what the model writes). Output is typically priced several times higher than input. Two consequences follow:
- Long answers cost more than long questions. A short prompt that asks for a long report can cost more than a long document with a one-line summary.
- Repeated instructions add up. A system prompt of a thousand tokens sent with every request is paid for every time.
The AI API cost calculator turns tokens per request and prices per million into a cost per request, per day and per month. Ways to bring that number down are in how to reduce AI API costs.
Tokens in chat apps
If you use a chat app on a subscription rather than an API, you rarely see token counts, but they are still there. Usage limits, the length of documents you can upload and how much of a long conversation the assistant can still see are all measured in tokens behind the scenes. A conversation that has run for hours may be close to the limit, which is why starting a fresh chat with a short summary often improves the answers.
Reasoning tokens
Some models think before they answer, working through a problem in steps before writing the reply. That thinking is also made of tokens. Depending on the model and the provider, it may count towards the output limit and be billed as output even when you do not see all of it. If a model offers a setting for how much it thinks, that setting is also a setting for how many tokens a request uses.
Estimating tokens before you send
For most planning, a quick estimate is enough:
- Words to tokens: multiply English words by about 1.3 to 1.7.
- Characters to tokens: divide by about 4.
- Pages: a 500-word page is roughly 625 to 850 tokens.
Then add a margin for code, numbers or other languages. For a specific text, paste it into the token counter to get both estimates at once.
A support email, in tokens
Suppose a support assistant receives a customer email of 300 words, has a 600-word set of instructions, and writes a reply of about 150 words. Using the middle of the word range, 100 tokens for every 70 words:
| Part | Words | Tokens, roughly |
|---|---|---|
| Instructions | 600 | 860 |
| Customer email | 300 | 430 |
| Input total | 900 | 1,290 |
| Reply (output) | 150 | 215 |
The instructions are two-thirds of the input, and they are sent with every email. Halving them would cut the input by about a third on every request. That is the kind of saving that only becomes visible once you think in tokens rather than in messages.
Using fewer tokens without losing quality
Fewer tokens means lower cost, faster answers and more room in the context window. A few habits help without making the answers worse:
- Cut repeated boilerplate from instructions sent with every request. Say each rule once.
- Ask for the length you need. “Under 150 words” or “three bullet points” stops the model writing more than the task requires.
- Send the relevant part of a document, not the whole file, when the question is about one section.
- Start a new conversation when the topic changes, with a short summary of what matters, instead of carrying a long history forward.
- Avoid pasting formatting you do not need, such as long tables of data the model will not use.
Common misunderstandings
- “A token is a word.” Often, but not reliably. Plan with a ratio, not one-to-one.
- “Only my question counts.” Instructions, attached files and the conversation so far all count.
- “The answer is free; I pay for the question.” In most APIs output costs more than input.
- “Same text, same count everywhere.” Every model family tokenizes differently.
What to remember
A token is a piece of text, roughly three-quarters of an English word. Models read and write in tokens, their limits are measured in tokens, and their prices are quoted per token. Knowing the rough conversion is enough to judge whether a document will fit, why an answer stopped early and where an API bill comes from. For a closer look at the limit itself, see what is a context window.
Sources, read November 14, 2026:
- Google AI for Developers, Understand and count tokens: a token is about 4 characters, and 100 tokens are about 60 to 80 English words, for Gemini models.