What is chain of thought? Explained with showing your working
Chain of thought is an AI model writing out the steps of a problem before its answer. Like showing your working in an exam, it often helps, but the steps are not proof the answer is right.
- Author
Umair Mateen- Published
- Reading time
- 5 min
- Category
- AI
In one sentence: Chain of thought is when an AI model writes out the in-between steps of a problem before giving its final answer, which often helps on multi-step tasks such as sums, logic and planning, though the written steps are not always an honest record of how the answer was reached.
The everyday picture
Think of a maths exam where the teacher says, "Show your working." A student who jumps straight to an answer often slips on a long problem. A student who writes each step down tends to catch mistakes along the way.
The working also helps the examiner. They can follow the steps, see where things went wrong and give partial credit. But a wise examiner knows a student can copy an answer and then write tidy working around it.
AI models behave in a similar way. Asked to write the steps first, they often do better on hard questions. Those written steps are the model's chain of thought: a series of in-between reasoning steps, put down as text.
The question goes to the model. It writes out its steps, then a final answer. A person reads both, but checks the answer itself, because the steps may not tell the whole story.
How it works, step by step
- You send a prompt (the exam question). It can include worked examples, or a simple instruction to think it through before answering.
- The model writes intermediate steps (the working). The 2022 research paper that named the idea showed that adding a few worked examples to a prompt improved large models on arithmetic, common-sense and symbol puzzles.
- Each step feeds the next (each line of working builds on the last). The model writes text one piece at a time, so earlier steps it has written become part of what it uses to write the rest.
- The model gives the final answer (the answer box). Anthropic suggests asking for the answer inside separate tags, so your software can pull out just the answer.
- Someone checks the work (the examiner). People and tools can read the steps to spot errors, but they should still check the answer itself.
Try it · Myth or fact
Showing the working: myth or fact?
Decide for yourself first, then tap each statement to check it.
0 of 4 checked
Where the picture stops
- A student's working is a record of their thinking. A model's chain of thought is generated text. Anthropic's 2025 research found that reasoning models often left out a hint they had used: one model mentioned it only 25% of the time, another 39%, in those tests.
- Many newer models, called reasoning models, now do this working by themselves, often out of sight. OpenAI advises against telling its reasoning models to "think step by step", because they already reason internally and the extra instruction can hurt.
- A student writes the working once. A model's steps also take time and cost money, because every word it writes is billed and adds delay.
Why it matters for your business
- Better answers on hard tasks. Asking for steps can help on work with several stages, such as checking a calculation or comparing documents against rules.
- Easier review. Visible steps make it quicker for a person to see where an answer went wrong.
- Cost and speed. Anthropic notes that thinking adds latency, so use it only where it clearly improves quality. Simple sorting jobs rarely need it.
- Risk. Do not treat the steps as proof. Check important answers against the source, the same way you would check any AI output.
An example
Imagine a 12-person travel agency that uses AI to work out refund amounts under different airline and hotel rules. The first version gives a single figure, and staff cannot tell how it was reached. The agency changes its prompt so the model lists each rule it applied, then gives the final amount in a separate box. Staff now spot a wrong cancellation fee in seconds. They still check every refund against the booking before paying it.
Frequently asked questions
Is chain of thought the same as a reasoning model?
No. Chain of thought is the idea of writing out steps before answering. A reasoning model is a model trained to do this by itself, usually in hidden working that you see only as a summary, if at all.
Should I still write "think step by step" in my prompts?
It depends on the model. It can help a model that is not doing its own reasoning. For reasoning models, OpenAI says it is unnecessary and can sometimes make results worse.
Can I trust the steps an AI shows me?
Use them as a guide, not as proof. Research from Anthropic found that models do not always mention everything that shaped their answer, so check the answer itself.
Does chain of thought cost more?
Usually, yes. The steps are extra text the model writes, so they add to the tokens you pay for and to the time you wait.
Related explainers
The DevDrift builds AI automation with human review and audit trails: see how.
Sources
Could you explain this to a colleague now?
Mark it and posts that mention it will show a tick. Saved in this browser only.