AI & prompting

Chain of Thought Prompting: What It Is and When It Still Helps

Chain of thought prompting means asking a language model to write out its intermediate reasoning before it gives the final answer, either by adding a line such as "Let's think step by step" or by showing worked examples that include the steps. It improves accuracy on multi-step problems like arithmetic and logic for standard models, but reasoning models already do this internally, so on them it is usually unnecessary.

The simplest version is one extra sentence at the end of your prompt:

A shop sells pens in packs of 12 for $4.80. How much do 30 pens cost
if you can only buy whole packs?

Let's think step by step, then give the final answer on its own line.

What chain of thought prompting is

A language model produces text one token at a time. When you ask for an answer directly, the model has to commit to that answer in its first few tokens, with no room for scratch work. Asking it to write the steps first gives it that room: each intermediate result is on the page, and later tokens can build on it.

The technique was named in a 2022 paper by Wei et al. at Google, "Chain-of-Thought Prompting Elicits Reasoning in Large Language Models". They showed that giving a large model a handful of examples whose answers include the reasoning steps improved results on arithmetic, commonsense and symbolic reasoning tasks. With eight such examples, their 540-billion-parameter model reached state-of-the-art accuracy on the GSM8K benchmark of math word problems at the time.

Zero-shot vs few-shot chain of thought

There are two ways to trigger it, and they suit different situations.

FormWhat you addBest for
Zero-shot CoTA trigger phrase such as Let's think step by step.Quick one-off questions; no examples to write
Few-shot CoT2 to 8 worked examples, each showing question, steps and answerRepeated tasks where you want a specific method and format

The zero-shot form comes from Kojima et al. (2022), "Large Language Models are Zero-Shot Reasoners". Adding "Let's think step by step" before the answer, with no examples at all, raised the accuracy of OpenAI's text-davinci-002 on the MultiArith benchmark from 17.7% to 78.7%, and on GSM8K from 10.4% to 40.7%. Those numbers are from 2022-era models; current models score far higher without help, but the mechanism is the same.

Chain of thought prompt examples

Zero-shot

Our team has 3 developers. Each can review 4 pull requests a day.
We receive 70 pull requests a week (5 working days). How many days
of backlog build up per week, if any?

Work through this step by step. Put the final answer in <answer> tags.

The tag at the end matters in practice: the reasoning is useful to read, but your code needs a predictable place to pull the answer from. The arithmetic here is checkable: 3 × 4 = 12 reviews a day, 60 a week, so 10 pull requests pile up each week, just under one day of capacity.

Few-shot

Q: A file is 750 MB. The connection downloads 25 Mbps. How long does it take?
A: 750 MB = 750 × 8 = 6,000 megabits. 6,000 / 25 = 240 seconds.
Answer: 4 minutes

Q: A backup is 1.2 GB. Upload speed is 10 Mbps. How long does it take?
A:

The example teaches the method (convert bytes to bits first) and the format (steps, then Answer:). The model copies both. This is the more reliable form when the same kind of problem comes up many times, such as an internal tool that always converts units or always applies the same pricing rules.

Structured

For longer tasks, name the steps you want instead of leaving them open:

Before recommending a database, list in order:
1. The read/write ratio implied by the requirements
2. The consistency requirements
3. Which options satisfy both
Then give one recommendation in <answer> tags.

When chain of thought helps, and when it doesn't

  • Helps: multi-step arithmetic, word problems, logic puzzles, planning, debugging where the cause has to be traced through several steps, and comparisons with several criteria.
  • Adds little: fact lookups, translation, short rewrites, classification into a few labels. There is nothing to reason through, so you pay for extra tokens and get the same answer.
  • Costs: every step the model writes is output. That makes responses slower and, on a paid API, more expensive. The steps also take up room in the context window if you keep them in a long conversation.

Do reasoning models still need chain of thought prompts?

Mostly no. A reasoning model is trained to work through a problem before answering, usually in a separate reasoning or thinking section. The vendors' own guidance (as of October 2026) says so directly:

  • OpenAI's reasoning best-practices guide says that because these models reason internally, prompting them to "think step by step" or "explain your reasoning" is unnecessary, and that such instructions may not improve results and can sometimes hinder them. It recommends simple, direct prompts and trying zero-shot before adding examples.
  • Anthropic's Claude prompting guide recommends general instructions such as "think thoroughly" over a hand-written step-by-step plan when thinking is on, notes that worked examples still shape how the model approaches similar problems, and describes manual chain-of-thought prompting as a fallback for when thinking is off. On several current Claude models it says to rely on built-in thinking (at a lower effort setting if cost matters) rather than asking for reasoning in the visible output.

So the practical rule: on a standard, non-reasoning model, use chain of thought for anything multi-step. On a reasoning model, state the goal and constraints clearly, and control depth with the model's reasoning or effort setting instead of prompt wording.

Common mistakes

  • Asking for reasoning but parsing the whole reply. If a program reads the output, ask for the final answer in a fixed place (tags, a last line starting with Answer:, or a JSON field) so the steps don't break your parser.
  • Prescribing every step on a strong model. A rigid plan can be worse than the model's own approach. Prescribe steps when you need a specific method, not by default.
  • Treating the reasoning as proof. Written steps make errors easier to spot, but a model can produce a confident chain that is wrong. It still hallucinates; check numbers that matter.
  • Using it everywhere. On simple tasks it only adds latency and cost. See how to reduce AI token usage for where those output tokens go.

If the answers are still wrong

Read the reasoning and find the first wrong step. If it misread the question, rewrite the question. If it used the wrong method, add one worked example that shows the right method. If the arithmetic is wrong, have the model call a calculator tool or write code for the calculation instead of doing it in text. For general prompt structure, see how to write a good prompt.

Frequently asked questions

Does "let's think step by step" still work?
On a standard model with no built-in reasoning, yes: it is the zero-shot chain-of-thought trigger from Kojima et al. (2022) and it still makes the model write out intermediate steps. On reasoning models it adds little, because they already reason internally, and OpenAI's guidance says such prompts can sometimes hurt.
Is chain of thought the same as a reasoning model?
No. Chain of thought is a prompting technique: you ask any model to show its working in the visible answer. A reasoning model is trained to produce that working on its own, usually in a separate thinking or reasoning section that is billed but often hidden.
Does chain of thought cost more?
Yes. The reasoning text is output, so every step the model writes is billed as output tokens and adds latency. Use it on multi-step problems where accuracy matters, and skip it for lookups, short rewrites and classification.
Can I trust the reasoning the model writes?
Treat it as a draft you can check, not proof. A written chain of thought makes arithmetic and logic errors easier to spot, but a model can still write plausible steps that lead to a wrong answer, or a right answer with flawed steps. Verify the final result independently when it matters.

Sources