Key insight

Ask a model a multi-step question and by default it blurts an answer in one shot — and gets it wrong far too often. Chain-of-thought prompting fixes this: add “think step by step” and the model writes out the intermediate steps first, making each one more likely to be right. It works because a model has no private scratchpad — it thinks on the page, in the words it writes. Use it for logic, math, and planning; skip it for simple lookups. And a visible chain of reasoning is a checkable one.

One tiny addition to a prompt — four words — can dramatically improve a model's accuracy on anything involving logic. This guide starts from nothing, shows why the trick works, and gives you the judgment for when it's worth the extra time and when it's just waffle.

1 · The model that blurts the answer

Ask a model a question that needs a few steps of reasoning — a bit of math, some logic, a multi-part problem — and by default it does something risky: it blurts an answer immediately, in one shot, without visibly working through it. Like a person forced to answer a tricky puzzle instantly, it gets these wrong far more often than it should. The knowledge is in there; the problem is that jumping straight to the answer skips the working. The fix for this whole class of errors is beautifully simple, and it's one you already use when a problem is hard: slow down and think it through step by step.

2 · Chain-of-thought: think step by step

Chain-of-thought prompting means asking the model to reason out loud, step by step, before its final answer. The magic phrase is almost comical: add “let's think step by step” or “show your reasoning.” Instead of leaping to a conclusion, the model writes out the intermediate steps — and writing each step makes the next more likely to be correct, because each becomes solid ground rather than a leap. For “twelve apples, eat four, buy five,” it writes: start with twelve, eat four leaves eight, buy five makes thirteen. Same model, same question, but by laying down stepping stones, accuracy on reasoning tasks jumps. You didn't make the model smarter; you gave it room to use the intelligence it has.

Writing the steps out loud makes each one more likely to be right The model writes start with 12, eat 4 gives 8, buy 5 gives 13, then the answer 13. the model start 12 → eat 4 = 8 → buy 5 = 13Answer: 13 Each step becomes solid ground for the next
Figure 1. The steps aren't decoration — they're the medium the model reasons in.

3 · Why it actually works

Why does merely writing steps help so much? A model generates one piece of text at a time, and each new piece is shaped by all the text before it. A model has no private scratchpad, no inner mind where it quietly works things out — its “thinking” can only happen on the page, in the words it writes. So when you let it write the intermediate steps, those steps become the context that guides the next step. Force it to skip straight to the answer and you've denied it the very medium it thinks in. Chain-of-thought works because it lets the model reason where it actually can — out loud.

4 · When to use it — and not

Chain-of-thought isn't free, so use it where it pays. Reach for it whenever a task involves several steps: arithmetic and math, logic, planning, debugging, comparing options against criteria — anywhere a wrong intermediate step derails the answer. There, the accuracy gain is huge. But skip it for simple things — a direct fact, a quick lookup, a translation, casual chat. Forcing “think step by step” onto “what's the capital of France” just produces waffle, wastes time, and costs more tokens. The judgment is the one you'd apply to yourself: hard, multi-step problem, slow down; easy, familiar question, just answer.

5 · A worked example: the trap question

The classic example shows the whole effect. A bat and ball cost $1.10 total; the bat costs $1 more than the ball; how much is the ball? Almost everyone's gut screams “ten cents” — and a model answering instantly usually blurts the same, because it feels right. But it's wrong. Force the working: let the ball be x, so the bat is x + $1; together $1.10, so 2x + 1 = 1.10, meaning 2x = $0.10, so x = $0.05. The ball is five cents. Same model, same question — the only change was laying down steps instead of trusting the snap answer. That gap between the fast wrong answer and the worked right one is exactly what chain-of-thought closes.

The snap answer feels right; the worked answer is right Snap answer 10c is wrong; the stepped answer 5c is right. snap answer: 10cfeels right — wrong stepped answer: 5c2x + 1 = 1.10 → x = 0.05 The only change was making it show the working
Figure 2. Intuition and language models share the same trap — and the same cure: slow down and work it through.

6 · Reasoning models: built-in thinking

An important update: many newer models are reasoning models that do this automatically. Behind the scenes, they take time to think step by step before answering, without being asked — the technique has been baked into the model. So you may not need to type “think step by step” with them. But two things stay true: understanding chain-of-thought explains why these models are better at hard problems and why they take longer and cost more (they're literally doing more thinking); and your job doesn't vanish — you still have to state the problem clearly and give the needed context, because even a great reasoner can't reason well about a vague question.

7 · You can read the reasoning

A valuable bonus: when the model shows its steps, you can check them. If the answer looks off, read the reasoning and you can often pinpoint exactly where it went wrong — a bad assumption in step two, a dropped detail in step four. That makes answers far more trustworthy and debuggable than a bare number with no explanation. It also protects you from the most dangerous thing in AI: a confident wrong answer. So even when you don't strictly need the reasoning, asking for it on important questions is cheap insurance — visible reasoning is checkable reasoning. Treat the steps like a colleague's working: usually right, but worth a glance before you rely on the conclusion.

8 · A simple test you can run this week

Feel the effect

1. Find a multi-step question the model got wrong.
2. Re-ask with “think step by step, then give the answer.”
3. Read the steps — check each one is sound.
4. Try it on a trivial question too — notice the wasted waffle.

The lesson: a model thinks on the page, not in a hidden head — give it room to reason, then check the working.

9 · Glossary — every term, spelled out

Chain-of-thought
Prompting a model to write out its reasoning step by step before giving a final answer.
Reasoning model
A model that automatically thinks step by step before answering, without being asked — slower and costlier, but better at hard problems.
Thinking on the page
The fact that a model's reasoning can only happen in the words it writes; it has no private scratchpad.
Intermediate step
A single reasoning step written out, which becomes solid ground for the next.
Confident wrong answer
A plausible-sounding but incorrect reply given with no working — the risk chain-of-thought helps you catch.
Verifiable reasoning
Visible steps you can check, making an answer trustworthy and debuggable.
Key takeaways

By default a model blurts multi-step answers and gets them wrong; chain-of-thought fixes it.
“Think step by step” makes the model write intermediate steps, each making the next more likely right.
It works because a model thinks on the page, not in a hidden head — so use it for logic, skip it for simple lookups.
Reasoning models do this automatically; and visible reasoning is checkable reasoning — read the working.

References

  1. Wei et al., Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. arxiv.org
  2. Kojima et al., Large Language Models are Zero-Shot Reasoners — the “let's think step by step” result. arxiv.org
  3. This guide’s Zero-shot, Few-shot & Examples, Explained From Zero — examples that show reasoning.
  4. This guide’s Prompt Engineering Basics, Explained From Zero — the clarity a reasoner still needs.