Can ChatGPT count words?

December 4, 2026 – By Jordan Ellis

Not reliably. AI models estimate counts instead of calculating them, and they're worst with characters and letters.

Ask a chatbot to write "exactly 150 words" or to count the characters in your bio, and you'll often get a confident answer that's wrong. This isn't a bug in one product. It comes from how language models read text.

Why AI struggles to count

Language models don't see letters or words the way you do. They read text in tokens, chunks that can be a whole word, part of a word or a single punctuation mark. "Counting" is a guess based on patterns, not arithmetic. That's why the famous question "how many r's are in strawberry?" tripped up chatbots for years. OpenAI said it fixed that specific case in April 2026, and users promptly found the same mistake with "cranberry."

What the research shows

TaskHow reliable AI isEvidence
Counting letters or charactersPoorModels averaged 43.6% accuracy on character-level tasks in the CharBench benchmark (2025)
Writing to a word targetRough at bestIn LIFEBench (2025), accuracy dropped sharply for longer targets, and models usually wrote too little
Counting words in your textOften off by several percentSame token problem; worse for long text
Counting with code (Python)ExactWhen a chatbot actually runs code, the count is calculated, not guessed

The last row is the catch. Some chatbots can run code, but they don't always choose to, and you can't always tell whether they did.

When this matters

How to get an exact count

Paste the AI's output into a real counter like the one below. It counts in your browser using exact rules, so the number doesn't change if you ask twice. If you need to hit a target, have the AI write the draft, count it here, then ask it to cut or add a specific number of words.

0words
0characters
Drop a .docx, .pdf or .txt here

Sources

More guides

Comments

Loading comments…

No account needed. Be kind; spam and abuse get removed.