AI Costs
How many more tokens does Spanish use than English? Measured on 7 tokenizers
The same 2000 sentences cost between 12.5% and 33.8% more tokens in Spanish than in English depending on the tokenizer. GPT-4o/GPT-5 and Gemma 3 stay below 17%.
- Date
- Oct 18, 2026
- Reading time
- 6 min
- Result
- +16.3% on o200k (GPT-4o/GPT-5) • +33.8% on cl100k • 2000 parallel sentences
Translated from the Spanish original. The code, data and READMEs on GitHub are in Spanish.
The same text in Spanish uses between 12.5% and 33.8% more tokens than in English, depending on the tokenizer. With o200k_base (the GPT-4o/GPT-5 family) the overhead is 16.3%; with cl100k_base (GPT-4 and GPT-3.5), Llama 3, Qwen3 and DeepSeek-V3 it’s over 30%. In Portuguese, between 10.4% and 30.0%. Measured on 18 October 2026 on 2000 parallel sentences from the OPUS-100 corpus.
The figures circulating in the media and on blogs don’t agree with each other and almost always come from a single paragraph. Here’s the measurement, with corpus, code and raw results.
Definitions
- Token: the unit a model splits text into. Providers charge and limit context in tokens, not words.
- Tokenizer: the algorithm and vocabulary that do the splitting. Each model family uses its own.
- Overhead: tokens of the text in Spanish ÷ tokens of the same text in English − 1, over the whole corpus. If, at the same price per token, you use 16.3% more tokens, you pay 16.3% more.
Hypotheses
- Spanish uses more tokens than English on every tokenizer.
- The difference depends far more on the tokenizer than on the language: recent, multilingual vocabularies reduce it.
- Part of the overhead isn’t the tokenizer’s fault: the Spanish translation is already longer.
Setup
- Corpus: OPUS-100 test split, English–Spanish and English–Portuguese pairs, 2000 parallel sentences each. In the English–Spanish pair, the Spanish has 7.25% more characters (ratio 1.0725) and 4.72% more words (ratio 1.0472) than the English.
- Tokenizers (7): o200k_base and cl100k_base (tiktoken), and the public
tokenizer.jsonfiles for Llama 3, Gemma 3, Qwen3, DeepSeek-V3 and Mistral Tekken (Nemo). Counted without special tokens. - Uncertainty: 95% bootstrap confidence interval, resampling sentences 2000 times.
- Speed: 7 passes per tokenizer over the 2000 Spanish sentences, one call per sentence.
- Machine: Apple M1 Max laptop with 64 GB, macOS 26.6.2, Python 3.12.4.
Results
Spanish vs English
| Tokenizer | Tokens in English | Tokens in Spanish | Overhead | 95% CI of the ratio | Tokens per word (es) |
|---|---|---|---|---|---|
| Gemma 3 | 33,647 | 37,863 | +12.5% | 1.106–1.143 | 1.42 |
| o200k_base (GPT-4o/GPT-5) | 32,214 | 37,478 | +16.3% | 1.145–1.182 | 1.41 |
| Mistral Tekken (Nemo) | 33,878 | 39,647 | +17.0% | 1.152–1.188 | 1.49 |
| DeepSeek-V3 | 32,840 | 42,870 | +30.5% | 1.284–1.326 | 1.61 |
| Qwen3 | 33,582 | 44,360 | +32.1% | 1.300–1.342 | 1.66 |
| Llama 3 | 32,922 | 43,981 | +33.6% | 1.313–1.357 | 1.65 |
| cl100k_base (GPT-4/3.5) | 32,935 | 44,067 | +33.8% | 1.317–1.358 | 1.65 |
In English, they all hover around 1.3 tokens per word (from 1.27 on o200k_base to 1.33 on Tekken). In Spanish the range widens: from 1.41 to 1.66.
Portuguese vs English
| Tokenizer | Overhead | 95% CI of the ratio |
|---|---|---|
| Gemma 3 | +10.4% | 1.083–1.124 |
| o200k_base (GPT-4o/GPT-5) | +10.6% | 1.087–1.125 |
| Mistral Tekken (Nemo) | +14.6% | 1.123–1.167 |
| DeepSeek-V3 | +26.0% | 1.236–1.283 |
| Qwen3 | +28.0% | 1.255–1.306 |
| Llama 3 | +29.8% | 1.273–1.322 |
| cl100k_base (GPT-4/3.5) | +30.0% | 1.276–1.325 |
Tokenization speed (2000 Spanish sentences, 7 passes)
| Tokenizer | Median | Min–max | Million characters/s |
|---|---|---|---|
| o200k_base (tiktoken) | 7.16 ms | 7.14–8.63 ms | 22.15 |
| cl100k_base (tiktoken) | 11.6 ms | 11.58–12.97 ms | 13.67 |
| Gemma 3 (tokenizers) | 39.01 ms | 38.91–41.29 ms | 4.07 |
| Mistral Tekken (tokenizers) | 58.01 ms | 57.78–61.4 ms | 2.73 |
| Llama 3 (tokenizers) | 62.13 ms | 60.69–66.16 ms | 2.55 |
| Qwen3 (tokenizers) | 67.38 ms | 64.13–70.18 ms | 2.35 |
| DeepSeek-V3 (tokenizers) | 72.42 ms | 72.11–73.56 ms | 2.19 |
Counting tokens locally is never the bottleneck: the slowest one processes the 2000 sentences in under 75 ms.
What it means
- All three hypotheses hold. Spanish always costs more, but the tokenizer decides whether it’s 12.5% or 33.8%.
- Part of it can’t be avoided. The Spanish text already has 7.25% more characters. With Gemma 3 and o200k_base the overhead stays close to that figure; with cl100k_base, Llama 3, Qwen3 and DeepSeek-V3 the tokenizer adds quite a lot more on top.
- For a company working in Spanish: when comparing prices between models, multiply the price per million tokens by its tokenizer’s ratio. A model with a slightly lower price per token but a tokenizer that uses 33.8% more can come out more expensive with your texts.
- The same applies to context. With cl100k_base, a window of N tokens only fits the Spanish text equivalent to N ÷ 1.338 tokens in English. Take it into account when sizing document chunking for RAG and agent memory.
When to use each option
- If you’re choosing between open models for Spanish or Portuguese text: the Gemma 3 and Mistral Tekken tokenizers use fewer tokens than Llama 3, Qwen3 and DeepSeek-V3.
- If you still use models with cl100k_base: moving to one with o200k_base reduces the tokens for the same Spanish text from 44,067 to 37,478 in this corpus.
- Write prompts in English to save money? It only pays off for the fixed instructions repeated in every call. What the user writes and what they get back has to be in their language.
Limitations
- A single corpus: OPUS-100 mixes short sentences from subtitles, software and general texts. Long technical prompts, code or JSON may give different ratios.
- The English–Spanish and English–Portuguese pairs don’t share the same English sentences, so Portuguese isn’t directly comparable with Spanish sentence by sentence.
- We didn’t measure Claude’s tokenizer or Gemini’s API tokenizer: they aren’t public and counting with them requires an API key. Gemma 3 is from Google, but that doesn’t guarantee Gemini tokenizes the same way.
- The “GPT-4o/GPT-5” label indicates the family that uses o200k_base according to tiktoken; it wasn’t checked against API billing.
- The speeds come from a single laptop with other apps open and mix two libraries (tiktoken and tokenizers) called sentence by sentence from Python. They’re good for the order of magnitude, not for comparing engines.
- The token counts are deterministic: repeating the test gives exactly the same figures with the same revisions (in
entorno.txt).
How to reproduce it
Code, environment and raw results (sentence-by-sentence counts and every repetition of the speed measurement): yeswelab-laboratorio/tokens-espanol-vs-ingles-coste-llm on GitHub. It runs in under a minute, with no accounts or keys.
Related
- Code Execution with MCP: how to cut tokens in agents
- Context engineering and context bloat in AI agents
- Agent routing: cost and latency per model
Want to know what your real case will cost with each model before choosing a provider? Commission the experiment.