Chain of Thought
Chain of thought (CoT) is a prompting technique that asks a large language model to produce intermediate reasoning steps before giving its final answer. In the original study, showing a few worked examples with those steps markedly improved large models on arithmetic, commonsense, and symbolic reasoning tasks.[1]
What does Chain of Thought mean in simple terms?
It works much like a math teacher asking you to show your working instead of writing only the answer. When a model is asked to work through a problem step by step, multi-step questions are less likely to go wrong in a single jump.[1][2] The effect is largest on problems that need several steps, such as math word problems and logic puzzles. Adding one line such as "Let's think step by step" improved results substantially in a 2022 experiment, but the gain depends on the model and the task.[2]
How can Chain of Thought be explained with an analogy?
It is like asking a supplier not to send just the final quote, but to list the unit prices line by line first.
Where is Chain of Thought used?
Wei et al. (Google Research) — GSM8K math word problems
The original CoT paper prompted PaLM 540B with eight worked examples that included reasoning steps. On the GSM8K math word-problem benchmark, accuracy rose from 17.9% with standard few-shot prompting to 56.9% with chain-of-thought prompting, and to 58.6% with an external calculator.[1] The paper reports that this surpassed the prior best result, a fine-tuned GPT-3 with a verifier.[1] Multi-step arithmetic, such as checking a quote or unit prices, is the kind of task where the pattern can help.
Result: GSM8K accuracy, PaLM 540B — standard prompting 17.9% → CoT prompting 56.9% (+39.0 points).[1]
Kojima et al. (University of Tokyo) — Zero-shot CoT
In May 2022, Kojima and colleagues showed that adding "Let's think step by step" before each answer, without any worked examples, improved zero-shot reasoning.[2] With InstructGPT (text-davinci-002), MultiArith accuracy rose from 17.7% to 78.7% and GSM8K from 10.4% to 40.7%.[2] This version requires no worked-example preparation.
Result: MultiArith accuracy, text-davinci-002 — zero-shot 17.7% → zero-shot CoT 78.7%.[2]
Anthropic documentation — Manual CoT as a fallback
Anthropic's current prompting guide describes manual CoT as a fallback for when the model's built-in thinking is off: ask Claude to think the problem through before answering and put the final answer in answer tags.[4] For its newest models, the guide recommends relying on built-in thinking instead, at a lower effort level if cost or latency matters, and notes that prompts asking the model to write out its reasoning in tags may be declined.[4] Prompting advice therefore needs to follow the model generation in use.
Result: Guidance shifted from writing reasoning into the visible answer to using the model's thinking feature where available.[4]
Yao et al. (Princeton, Google DeepMind) — Tree of Thoughts
In May 2023, Yao and colleagues introduced Tree of Thoughts, which generalizes CoT so a model can consider several reasoning paths, evaluate them, and backtrack.[3] On the Game of 24 task, GPT-4 with chain-of-thought prompting solved 4% of tasks, while Tree of Thoughts reached 74%.[3] It suits problems that need exploration or lookahead, such as puzzles or comparing hypotheses.
Result: Game of 24 success rate, GPT-4 — CoT 4% → Tree of Thoughts 74%.[3]
Try it today
- Add one sentence such as "Work through this step by step before answering" to a question you usually ask in one line, and compare the two answers.[2]
- If your model has a built-in thinking or reasoning mode, try that first; use a manual step-by-step request when the mode is off.[4]
- For repeated multi-step calculations, such as quotes or inventory, include two or three worked examples in the prompt (few-shot CoT).[1]
- Keep short classification and simple fact lookups separate; check whether step-by-step reasoning actually changes the result before paying for longer outputs.
- Run the same task with a standard prompt and with a reasoning model or thinking mode, and record accuracy, response time, and cost to build a simple internal guide.
Limits and direction
The original paper describes CoT as an emergent ability of model scale: it gave gains mainly for models of about 100B parameters, and smaller models produced fluent but illogical chains that performed worse than standard prompting.[1] A written chain of thought is also not guaranteed to reflect how the model actually reached its answer. In Anthropic's 2025 study, reasoning models mentioned a hint they had used only 25% (Claude 3.7 Sonnet) and 39% (DeepSeek R1) of the time on average.[6] Treat the steps as an explanation to check, not as proof, especially in safety, legal, or financial work. Longer outputs also increase token use and response time.
Since OpenAI introduced o1 in September 2024, two approaches coexist.[5] One is CoT elicited by the prompt. The other is reasoning models trained with reinforcement learning to produce a long internal chain of thought before answering; OpenAI reported that o1 improves with both more training and more time spent thinking.[5] Users need to write "think step by step" less often, and deciding how much reasoning budget a task deserves becomes a design choice.[4][5]
How has Chain of Thought evolved?
Which concepts are related to Chain of Thought?
- Next stepTree of ThoughtsExtends linear CoT into a tree of reasoning paths that can be evaluated and backtracked.[3]
- Next stepReasoning ModelModels trained to reason internally before answering.[5]
- Related featureExtended ThinkingClaude's built-in thinking; Anthropic recommends it over manual CoT on its newest models.[4]
- Similar conceptFew-shotGuides output with examples; few-shot CoT adds reasoning steps to those examples.[1]
- FoundationPrompt EngineeringThe broader practice of prompt design that CoT belongs to.
Chain of Thought vs Tree of Thoughts
Which sources explain Chain of Thought?
- Wei et al. — Chain-of-Thought Prompting Elicits Reasoning in Large Language Models (arXiv 2201.11903, NeurIPS 2022) — https://arxiv.org/abs/2201.11903
- Kojima et al. — Large Language Models are Zero-Shot Reasoners (arXiv 2205.11916, NeurIPS 2022) — https://arxiv.org/abs/2205.11916
- Yao et al. — Tree of Thoughts: Deliberate Problem Solving with Large Language Models (arXiv 2305.10601, NeurIPS 2023) — https://arxiv.org/abs/2305.10601
- Anthropic — Prompting best practices (Claude Platform Docs) — https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices
- OpenAI — Learning to reason with LLMs (2024-09-12) — https://openai.com/index/learning-to-reason-with-llms/
- Anthropic — Reasoning models don't always say what they think (2025-04-03) — https://www.anthropic.com/research/reasoning-models-dont-say-think
Tell us what you think
Your feedback helps us improve the content.