Same question, different answer: why AI isn't a calculator.
People expect a computer to give the same answer every time. A calculator does. A language model doesn't, and once you know why, you know when to trust a single answer and when not to.
What happens on every word
The model writes its answer one token at a time (a token is a word or a piece of one, more on tokens here). At each step it scores every possible next token. "The capital of France is" puts almost all of the weight on "Paris". "A good name for a coffee shop is" spreads it across hundreds of options.
Then it picks one, weighted by those scores, adds it to the text, and does it all again for the next token. One different pick early on and the rest of the answer follows a different path.
See it yourself
Ask the same question three times. This runs with the official anthropic package and an API key.
import anthropic
client = anthropic.Anthropic()
question = "Suggest one name for a coffee shop in Berlin. Reply with the name only."
for attempt in range(3):
reply = client.messages.create(model="claude-haiku-5-5", max_tokens=1024, messages=[{"role": "user", "content": question}])
text = next(block.text for block in reply.content if block.type == "text")
print(attempt + 1, text)
same_question.py · 7 lines · now swap in "What is the capital of France?" and run it again
The coffee shop names will usually differ. The capital won't. The model is most consistent where the answer is clear, and most varied where many answers fit.
When it helps and when it hurts
For ideas, drafts and wording, variety is useful: ask again and you get another option. For facts, numbers and decisions, it's a warning sign. If two runs give two different figures, at least one is wrong, and you can't tell which from the answer alone.
What to do about it at work
- Ask twice on anything that matters. If the answers agree, good. If they don't, check the source before you use either.
- Give it the facts. Paste the document, the table or the policy into the prompt. A model choosing between your numbers is far steadier than one recalling them.
- Fix the format. Ask for the same headings or the same fields every time, so the parts you rely on are easy to compare.
- Let code do the exact parts. Sums, dates and lookups belong in a tool the model calls, not in the model's head.
None of this makes a model a calculator. It makes it a colleague whose work you check, which is what it should have been all along.
Want to build this yourself?
AI Literacy. Learn when to trust an answer and when to check it. Free, no code needed. The first chapter is free, in your browser.
READ NEXT
What is a token? Why AI reads your text in pieces.
Models don't read words, they read tokens. Here's what a token is, how to count them in seven lines of Python, and why they decide your bill, your limits and your wait.
CARINA · 3 MIN READ · 25 NOV 2026
What is an AI agent? A model in a loop, in 15 lines of Python.
Strip away the frameworks and an agent is a short loop: ask the model, run the tool it picks, repeat, stop. Here's the whole thing, line by line.
CARINA · 3 MIN READ · 24 NOV 2026