AI · for biologists who use Claude · 12 minutes

What is a token?

Claude does not read letters or words. It reads tokens, and tokens are also the unit on the bill, the unit of its memory, and the unit of its usage limits. Here is what one is, and what 100 000 of them get you.

Start here the idea in bench terms

Before Claude sees your text, a program called a tokenizer cuts it into pieces taken from a large, fixed dictionary of text fragments. Frequent words are one piece. Rare words are assembled from several smaller pieces. Each piece is a token, and from then on the model works with tokens only.

A useful picture: a restriction digest with a very large set of enzymes, chosen so that ordinary language falls into long fragments and unusual strings fall into short ones. English prose is ordinary. A gene accession number, a DNA sequence or a column of p-values is not.

Input tokens
Everything Claude reads for one reply: your message, the instructions, attached files, and the whole conversation so far.
Output tokens
Everything Claude writes, including reasoning it does before answering. Output costs five times as much as input.
Context window
The most tokens Claude can hold in view at once, input and output together. Think of it as bench space. Current models have room for a million tokens.
API
The way to call Claude from a script or a program instead of the chat window. API use is billed per token.

1. Cut some text into tokens

Type or paste anything, or pick an example. Compare an English sentence with a sequence.

characters
tokens, roughly
characters per token
characters of text like this in 100 000 tokens
This is a sketch, not Claude's tokenizer. The cuts follow simple rules that imitate how real tokenizers behave: common words stay whole, long and rare words split, sequences and numbers shatter. Real counts differ, and they differ between models. For a real number, use the free token counter in section 6.

2. What do 100 000 tokens hold, and what do they cost?

As text

English words, roughly
pages of plain text
research papers, text only
full-size images

Assumes about 2.7 characters per token for English on current Claude models, 6 characters per word including the space, 500 words per page and 7 500 words per paper. Other languages, code, tables and sequences need more tokens for the same length.

As money (API list prices, US dollars)

Prices per million tokens as listed on 1 December 2026. They change, so check the pricing page before you budget.

So "100 000 tokens" is not one price. It is about a cent if a small model reads them and about four dollars if the largest model writes them. Which model, and whether the tokens go in or come out, matters far more than the count.

3. Why a long chat gets expensive

Claude has no memory between messages. Every time you send a message, the whole conversation so far is sent again, together with any file you attached at the start. You type one new question. Claude re-reads everything.

One bar per message you send. Dark: material Claude has already read in earlier turns and reads again. Light: what is new in this turn.

tokens you typed
input tokens billed
output tokens billed
total cost

4. What counts as a token

ItemCounted asGood to know
Your messageInputUsually the smallest item on the bill.
Instructions (system prompt, project instructions)Input, on every turnA two-page instruction block is read again with each message.
Earlier turns of the conversationInput, on every turnThe reason long chats cost more per message than short ones.
Attached text, pasted tables, FASTA filesInput, on every turnA 500 kB research paper is in the region of 125 000 tokens.
ImagesInputPriced by size, not by content: one token per 28 × 28 pixel patch. Large images are shrunk first. Try it below.
PDF pagesInputEach page counts twice: as its text, and as an image of the page (at most 1 568 tokens).
Tools and web searchInputTool descriptions and everything a tool returns are read by Claude. On the API, web search also costs $10 per 1 000 searches.
ThinkingOutputReasoning before the answer is billed as output, even when the reasoning text is not shown to you.
Claude's answerOutputFive times the input price. A single reply can run to 128 000 tokens.

How many tokens is my micrograph?

tokens for this image
size Claude actually sees

5. Subscription or API: two ways to pay for the same tokens

Claude apps (chat, desktop, Claude Code on a plan)Claude API
You payA flat monthly feePer token, from prepaid credits. There is no free tier, and the smallest purchase is $5.
The limitA usage allowance that refills: a five-hour window that starts with your first message, plus a weekly limitYour budget, and rate limits per minute
What uses it upThe same things in both: long conversations, large attachments, tools and connected apps, more thinking, and larger models.
Where to lookSettings, then UsageThe usage page of the Claude Console, and the usage block in every API response

On a subscription nobody shows you a token count, but the allowance is drained by the same mechanics as in section 3. If you hit a limit halfway through the afternoon, a very long chat with a large file attached is the usual reason.

6. Plan a job before you run it

input tokens in total
output tokens in total
estimated cost

Do not guess the input size. Counting is free and takes three lines:

import anthropic

client = anthropic.Anthropic()
n = client.messages.count_tokens(
    model="claude-opus-5-5",
    messages=[{"role": "user", "content": open("abstract.txt").read()}],
)
print(n.input_tokens)

The count is an estimate and depends on the model, so count with the model you plan to use.

7. Seven habits that save tokens

8. Check yourself

Sources, date and caveats

Facts and prices were taken from Anthropic's public documentation on 1 December 2026: pricing, glossary (tokens), token counting, context windows, vision (image tokens), PDF support, and the help article How do usage and length limits work?

The documentation states that current Claude models produce about 30 % more tokens for the same text than earlier models, on which a token was about 3.5 English characters. The figure of 2.7 characters per token used here is derived from that, and is an average for English only. The token cutter in section 1 is an illustration with invented rules. The chat simulation ignores thinking and tools, and treats caching in a simplified way (a 5-minute cache, written at 1.25 times and read at a model-specific fraction of the input price). Prices are list prices in US dollars for the Claude API. Plans, limits and prices change often.

This page is an independent teaching aid from the MMV Lab and is not an Anthropic publication.