Chain-of-thought (CoT)
Chain-of-thought is a way of getting a language model to write out intermediate reasoning steps before its final answer, which often improves accuracy on maths, logic and other multi-step problems.
Asked a multi-step question, a language model can either jump straight to an answer or work through it on the page first. Chain-of-thought is the second approach. The model writes out the intermediate steps, and each step becomes part of the text it builds the next step on. Google's machine learning glossary gives the example of asking how many g-forces a driver experiences accelerating from 0 to 60 miles per hour in 7 seconds and requesting all the calculations: the model then sets out the formulas and the numbers, which makes the answer easier to check as well as more likely to be right.
The technique was named in a January 2022 paper by Jason Wei and colleagues at Google, Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. They put a handful of worked examples with written-out reasoning into the prompt. With eight such examples, a 540 billion parameter model reached state-of-the-art accuracy on GSM8K, a benchmark of maths word problems, beating a fine-tuned GPT-3 that used a verifier.
Examples turned out not to be essential. In May 2022 Takeshi Kojima and colleagues showed that simply adding Let's think step by step before the answer had a similar effect. On InstructGPT, accuracy on the MultiArith arithmetic benchmark rose from 17.7% to 78.7% and on GSM8K from 10.4% to 40.7%. This became known as zero-shot chain-of-thought.
Today the idea is mostly built into the models. Reasoning models are trained to produce a long chain of thought before answering. OpenAI's guidance for its reasoning models says that telling them to think step by step is unnecessary and can sometimes hurt. The gains are largest on maths, logic and symbolic problems; elsewhere the benefit is smaller, and the extra text adds cost and delay.
A written chain of thought is not a reliable window into how the model reached its answer. In a May 2025 paper, Reasoning Models Don't Always Say What They Think, Yanda Chen and colleagues slipped hints into prompts and found that models which used a hint mentioned it in their reasoning often less than 20% of the time. The authors concluded that reading a model's reasoning is useful for catching problems but not enough to rule them out.
It is prompting a language model so that it writes out its reasoning step by step before giving a final answer. You can do it by including worked examples that show the steps, or simply by asking the model to think step by step. It tends to help most on maths, logic and other problems with several stages. On ordinary chat models it can still help. Reasoning models already produce their own chain of thought, and OpenAI's guidance for its reasoning models says such instructions are unnecessary and can sometimes lower performance. For those models, state the task clearly and let them reason on their own. Not necessarily. Research published in May 2025 found that reasoning models often used information from hints without mentioning it in their written reasoning. The chain of thought is useful evidence about a model's behaviour, but it can leave out what actually drove the answer. Chain-of-thought began as a prompting technique applied to ordinary language models. A reasoning model has been trained to produce a chain of thought by default before answering, usually with far longer reasoning than a prompt would draw out. The idea is the same; what changed is that it moved from the prompt into training.Common questions
What is chain-of-thought prompting?
Does "let's think step by step" still work?
Is a model's chain of thought what it is really thinking?
What is the difference between chain-of-thought and a reasoning model?
Search for "chain-of-thought prompting", "zero-shot chain-of-thought" or "chain-of-thought faithfulness" to follow the technique from its origins to current debates. The original papers on arXiv by Wei and colleagues and by Kojima and colleagues are short and readable, and the AI companies' own prompting guides explain how their current models handle reasoning. Be wary of claims that a model's visible reasoning proves how it reached an answer, since research on faithfulness shows the two can differ.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.