AI cost calculator
Token calculator
Paste text, or type a word or page count, to estimate how many tokens it is and what it costs on every current model. The estimate uses OpenAI's rule of thumb: one token is about 4 characters or three quarters of an English word.
Your inputs
Result
About 104 tokens
78 words, 419 characters. Sending it 1,000 times a month costs $0.21 on Claude Sonnet 5.5.
- Estimated tokens
- 104average of the character and word rules
- By characters (4 per token)
- 105
- By words (0.75 per token)
- 104
- Cost to send once on Claude Sonnet 5.5
- $0.00021as input
- Cost to generate once on Claude Sonnet 5.5
- $0.00104as output
- Sent 1,000 times a month
- $0.21
Worked examples
Each row is the calculator run on the inputs shown, with every other input at its default.
| Text | Words | Tokens | Send once on Sonnet 5.5 |
|---|---|---|---|
| A tweet | 40 | 53 | $0.00011 |
| An email | 200 | 267 | $0.00053 |
| A blog post | 1,500 | 2,000 | $0.00400 |
| A 10-page contract | 5,000 | 6,667 | $0.01 |
| A 300-page book | 150,000 | 200,000 | $0.40 |
| A 1 million token context | 750,000 | 1,000,000 | $2.00 |
How it is calculated
Exact token counts depend on each model's tokenizer, so the calculator uses OpenAI's published rule of thumb and averages two versions of it.
The rule holds for ordinary English. Code, numbers, tables and most other languages produce more tokens per word; Chinese, Japanese and Korean can produce one or more tokens per character. Pages are counted at 500 words each.
Tokenizers also differ between model families. Anthropic says Claude 4.7 and later models produce about 30% more tokens for the same text than Claude 4.6 and earlier. For an exact count, use the provider's token-counting endpoint or the usage figures in its API response.
Questions
How many tokens is a word?
In English, about 1.33 tokens per word: 100 tokens is roughly 75 words. Long, rare or technical words split into more tokens.
How many words is 1,000 tokens?
About 750 English words, or roughly one and a half single-spaced pages.
How many tokens is a page?
At 500 words per page, about 670 tokens. A 300-page book is around 200,000 tokens.
Is my text sent to a server?
No. The count runs in your browser and the text never leaves the page.
Why does my model report a different number?
Each model family has its own tokenizer. This is an estimate for planning; the usage field in the API response is the billed count.
Sources
- OpenAI Help: Understanding and counting tokens, checked 2026-10-29
- Anthropic: Claude API pricing, checked 2026-10-29
- OpenAI: API pricing, checked 2026-10-29
- Google: Gemini Developer API pricing, checked 2026-10-29
Prices and plans change. This page was last checked on 2026-10-29. The data is open: llm-prices.json (CC BY 4.0).