Guide
How Many R's in Strawberry? Why AI Gets It Wrong
Strawberry has three R's. A plain-English guide to why ChatGPT and other AI models said two, why seventeen, blueberry and cranberry trip them up too, what changed, and how to get a correct letter count from AI.
Quick answer: Strawberry has three R’s: s-t-r-a-w-b-e-r-r-y. AI chatbots such as ChatGPT answered two because a language model does not read letters: it reads tokens, chunks of text turned into numbers, so in the question “How many r’s are in the word strawberry?” OpenAI’s tokeniser hands the model the whole word as one number. In April 2026 OpenAI said ChatGPT could finally answer the strawberry question, but in reports since, it has miscounted other words, such as cranberry and seventeen.
This page explains the strawberry problem and the letter-counting failures like it. For how tokens work in general, see AI tokens explained. For the wider pattern of capable models failing easy questions, see why smart AI fails simple questions.
Why did AI say strawberry has two R’s?
A language model never sees the letters you type. Before your question reaches it, a tokeniser splits the text into tokens from a fixed vocabulary and swaps each token for a number, called a token ID. The model works only with those numbers. The AI tokens guide explains the process in full.
Common words usually get one token each. When “strawberry” comes after a space, as it does in a sentence, OpenAI’s tokeniser treats it as a single token. The model receives one number, not ten letters, so it has no direct way to look inside the word and count the R’s. Its answer comes from patterns it learned in training, and “two” was the answer it reached.
Here is how OpenAI’s o200k_base tokeniser splits the words in this guide. o200k_base is the encoding that OpenAI’s open-source tiktoken library assigns to GPT-4o, GPT-5, o1 and later models.
| Word | Letters | Tokens when the word stands alone | Tokens inside a sentence |
|---|---|---|---|
| strawberry | s-t-r-a-w-b-e-r-r-y (3 R’s) | st · raw · berry | ” strawberry” (1 token) |
| seventeen | s-e-v-e-n-t-e-e-n (4 E’s) | se · venteen | ” seventeen” (1 token) |
| blueberry | b-l-u-e-b-e-r-r-y (2 B’s) | blue · berry | ” blueberry” (1 token) |
| cranberry | c-r-a-n-b-e-r-r-y (3 R’s) | cran · berry | ” cranberry” (1 token) |
| bookkeeper | b-o-o-k-k-e-e-p-e-r (3 E’s) | book · keeper | ” book” · “keeper” (2 tokens) |
Even when a word is split, the pieces do not line up with the letters you need to count. Two of strawberry’s R’s sit inside the token “berry”, which the model also sees as a single number.
Tokens are the main explanation, but not the whole of it. A study by Tairan Fu and colleagues, “Why Do Large Language Models (LLMs) Struggle to Count Letters?”, tested a group of models on a large set of words. It found that “models are capable of recognizing the letters but not counting them”. Errors rose with the number of letters and tokens in a word, and most of all with repeated letters: most models could not correctly count words “in which letters appear more than twice”. Strawberry has three R’s, seventeen four E’s and cranberry three R’s.
Where the strawberry question came from
The question spread in mid-2024. On 19 June 2024, a user posted a bug report on OpenAI’s developer forum titled “Incorrect count of ‘r’ characters in the word ‘strawberry’”. They wrote that “the AI incorrectly states that the word ‘strawberry’ contains only two ‘r’ characters”, using ChatGPT on GPT-4 in the iOS app, and that it kept saying two when asked again. By August 2024, TechCrunch was explaining why AI “cannot tell you how many letters — let alone how many ‘r’s — appear in the word ‘strawberry’”.
Seventeen, blueberry and other words AI miscounts
Strawberry was not the last letter-counting failure to go viral.
Blueberry
OpenAI released GPT-5 on 7 August 2025. The same day, Kieran Healy posted “Blueberry Hill” on his blog, showing ChatGPT miscounting the B’s in blueberry. Data scientist Max Woolf wrote that Healy’s Bluesky post went viral “as ChatGPT insisted blueberry has 3 b’s despite the user repeatedly arguing to the contrary”. Blueberry has two.
Woolf then tested whether this was a one-off. He sent the prompt “How many times does the letter b appear in blueberry” 274 times to each of several models through OpenRouter, in a post published on 12 August 2025. His results:
| Model (setting) | Correct answers on blueberry |
|---|---|
| GPT-5 Chat | 5.8% |
| Gemini 2.5 Flash | 97.1% |
| Gemini 2.5 Pro (reasoning) | 93.8% |
| Kimi K2 | 99.6% |
| gpt-oss-20b (reasoning) | 89.7% |
| gpt-oss-120b (reasoning) | 100% |
| GPT-5 Mini and GPT-5 Nano (with or without reasoning) | 100% |
| Claude Opus 4.1 and Claude Sonnet 4 | 100% |
Source: Max Woolf, August 2025.
On strawberry, given 100 times each, every model Woolf tested got it right every time except Gemini 2.5 Flash, which was right 90% of the time. GPT-5 Chat, which counted strawberry perfectly, was right on blueberry only 5.8% of the time.
Seventeen
Seventeen has four E’s. In September 2026, content creator Husk (@huskirl on X) posted a clip of ChatGPT’s voice mode spelling the word out as “S-e-v-e-n-t-e-e-n” and then saying “Those are three e’s”, Futurism reported on 15 September 2026. When he pushed back, it answered “It’s still three”. Futurism reported that an OpenAI employee replied on X that voice mode used an older model, GPT-Live-1, and had not handed the question to a stronger model in the video. In an earlier clip from Husk, covered by Gizmodo in July 2026, ChatGPT’s voice mode answered two.
The seventeen clip shows two problems at once: a miscount, and a model that sticks to a wrong answer when corrected. The second is covered in AI hallucinations.
Does AI still get strawberry wrong?
On strawberry itself, mostly not. In Max Woolf’s August 2025 test, every model he ran answered strawberry correctly every time except Gemini 2.5 Flash, which was right 90% of the time (Woolf). In April 2026, OpenAI posted on X that ChatGPT could, “at long last”, answer the strawberry question correctly, 9to5Google reported on 28 April 2026.
Words that never went viral tell a different story. The same 9to5Google report showed ChatGPT answering “The word ‘cranberry’ has 1 ‘R.’” Cranberry has three. 9to5Google suggested that the fixes “might be hardcoded solutions”. GPT-5 Chat counted strawberry perfectly in Woolf’s test and blueberry almost never. And in September 2026, ChatGPT’s voice mode miscounted seventeen.
Woolf wrote that the near-perfect strawberry scores in his test “hint at the problem being in the LLM training dataset” (Woolf). For how current models compare overall, see best AI models.
Why hasn’t AI just fixed it?
A memorised answer is not a fix. Max Woolf wrote that it is likely OpenAI, Anthropic and Google added the strawberry question to their training data “to preemptively address the fact that someone will try it”, and that blueberry “may just be sufficiently out of domain to trip the LLMs up”. A model that has learned “three” as a fact about strawberry is no better at counting the R’s in cranberry.
The underlying cause is hard to remove. Working letter by letter instead of in tokens would make every sentence several times longer, which would make models slower and more expensive to run, as the tokens guide explains. So models keep tokens, and the fixes work around them.
Two workarounds do help:
- Reasoning models spell the word out first. A reasoning model writes out intermediate steps before it answers (see test-time compute). Writing “s, t, r, a, w…” turns each letter into its own token, which the model can then count. In Woolf’s test, every model run in reasoning mode scored 89.7% or better on blueberry. Spelling out is not a guarantee: in the seventeen clip, ChatGPT spelled the word correctly and still said three.
- A code tool counts exactly. A model that can run code can count the letters with a short program, and the program’s count is exact. The tokens guide notes that this fixes most letter-level failures.
How to get a right letter count from AI
- Ask it to count with code. In a chatbot that can run code, ask: “Use code to count the letter r in strawberry.” A line of Python such as
"strawberry".count("r")returns 3. - Ask it to spell the word out first. Ask for the word one letter per line, numbered, and then for the count. This gives the model one token per letter to work with.
- Turn on reasoning or thinking mode where the app offers it, so the model works through the steps before answering.
- Check anything that matters yourself. For a word, counting by eye takes seconds. Do not rely on a model’s letter count for a puzzle, a password rule or anything else where a wrong number has a cost.
The same approach works for the wider family of letter-level tasks, such as reversing a word or finding words with a given letter in a given position. For other ways to phrase requests so models get them right, see what is prompt engineering.
Frequently asked questions
How many R’s are in strawberry?
Strawberry has three R’s: s-t-r-a-w-b-e-r-r-y. One R comes after the “st” at the start, and two come together near the end in “berry”. AI chatbots famously answered two because they read the word as tokens, not letters.
Why does ChatGPT say strawberry has two R’s?
ChatGPT said strawberry has two R’s because the model behind it reads text as tokens, not letters. In a sentence, OpenAI’s tokeniser gives the model “strawberry” as a single number, so the model cannot look inside the word to count its letters and answers from learned patterns instead. In April 2026, OpenAI said ChatGPT could answer the strawberry question correctly, but it has miscounted similar words since.
How many e’s are in seventeen?
Seventeen has four E’s: s-e-v-e-n-t-e-e-n. In a clip covered by Futurism in September 2026, ChatGPT’s voice mode spelled the word correctly and still said it had three E’s, then stuck to that answer when corrected.
How many b’s are in blueberry?
Blueberry has two B’s: b-l-u-e-b-e-r-r-y. After GPT-5 launched in August 2025, ChatGPT insisted to Kieran Healy that it had three. In Max Woolf’s test of 274 runs per model that month, GPT-5 Chat was right 5.8% of the time, while most other models tested were right more than 90% of the time.
Can ChatGPT count letters now?
ChatGPT can count the R’s in strawberry, which OpenAI announced in April 2026, but it still miscounts other words. Reports since have shown it saying cranberry has one R and seventeen has three E’s. Asking it to use code, or to spell the word out letter by letter first, makes a correct count more likely.
Why was OpenAI’s o1 called Strawberry?
“Strawberry” was the code name for an OpenAI reasoning project that Reuters reported on in July 2024. OpenAI released the first o1 models, o1-preview and o1-mini, on 12 September 2024, and Reuters reported the launch as OpenAI’s “Strawberry” series of AI models. OpenAI researcher Noam Brown said the name “does not come from the ‘How many r’s are in strawberry’ meme”, as Simon Willison quoted him. OpenAI’s o1 launch post did include a cipher puzzle whose decoded answer reads “THERE ARE THREE R’S IN STRAWBERRY”.
Why can’t AI count letters?
AI language models struggle to count letters because they read text as tokens, chunks of words turned into numbers, not as individual letters. A study by Fu and colleagues found that models can recognise letters but not reliably count them, and that errors are most common when a letter appears more than twice in a word. A code tool or a spelled-out answer avoids the problem.
Is the strawberry problem a hallucination?
A wrong letter count is a confident, false answer, so it fits the broad definition of a hallucination. Its cause is narrower than most hallucinations: the model cannot see the letters it is asked about. The AI hallucinations guide covers why models state wrong answers with confidence, and the what is an LLM guide explains how models process text.