Chain-of-thought prompting (CoT for short) gets a language model to write out a solution in intermediate steps before it answers. The technique comes from a 2022 Google Research paper and mainly improves math and logic tasks.
The simplest analogy is showing your work on a math test. Someone who writes down only the result slips up more often than someone who notes every step. The model benefits from the same effect, because every step it writes becomes the basis for the next one.
Three findings up front. In our own test, DeepSeek V4.1 Flash solved the German math task in only 1 of 5 tries when asked to answer immediately, and in 5 of 5 with a reasoning step. For GPT-6.1 Terra, the hit rate in a second test rose from 12 of 20 without reasoning to 20 of 20 with reasoning on high. And for reasoning models, the Wharton study of June 2025 finds that the reasoning step adds little: accuracy rose by about 3% on average, while the response took 20 to 80% longer.
An example in which the last sentence makes the difference. gradually.ai tested three models with exactly this task (results below):
Three shirts cost €25 each. There is 20% off, then 19% VAT is added. Finally comes €4.90 shipping, which carries neither discount nor VAT. What do you pay in total? Work through it step by step first, then give the result.1. Why does writing out the reasoning help at all?
A language model produces text token by token and has no notepad other than what it has already written. If you demand the answer immediately, the model has to “guess” the result in one step. If you ask for the path, it can break the task into small parts, and each part then sits in the context as text it can build on. The extra computation lives in the extra tokens.
The paper by Wei and colleagues also showed that the effect appears only in sufficiently large models. Small models write reasoning chains too, but they often look coherent and are still wrong.
Example without and with reasoning: own test
How big is the difference in practice? In its own test on November 7, 2026, gradually.ai sent the shirt task from above to three models through OpenRouter, in two versions. One ended with “Answer with the final amount only”, the other with “Work through it step by step first, then give the result”. There were five requests per model, language and version, with no retries. The correct total is €76.30.
This is how Llama 3.1 8B Instruct answered the English version without reasoning. All five answers were wrong:
Attempt 1:
€43.34
Attempt 2:
€33.95
Attempt 3:
€24.89
Attempt 4:
€16.82
Attempt 5:
€53.With the request to reason step by step, the same model got four of five right. The first attempt:
Let's break it down step by step:
1. Three shirts cost €25 each, so the total cost before any discounts or VAT is:
3 x €25 = €75
2. There is 20% off, so we need to calculate the discount:
20% of €75 = 0.20 x €75 = €15
Subtract the discount from the total cost:
€75 - €15 = €60
So, the cost after the discount is €60.
3. 19% VAT is added to the cost after the discount:
19% of €60 = 0.19 x €60 = €11.40
Add the VAT to the cost after the discount:
€60 + €11.40 = €71.40
So, the cost after VAT is €71.40.
4. Finally, there is €4.90 shipping, which is added to the cost after VAT:
€71.40 + €4.90 = €76.30
Therefore, the total amount you pay is €76.30.The results of all three models in both languages:
| German | English | |||
|---|---|---|---|---|
| Model | answer only | with steps | answer only | with steps |
GPT-6.1 Terrareasoning off | ||||
DeepSeek V4.1 Flashreasoning off | +4 | |||
Llama 3.1 8B Instructno reasoning mode | +1 | +4 | ||
GPT-6.1 Terra (reasoning set to none) got every version right, even without visible steps. DeepSeek V4.1 Flash (reasoning off) benefited clearly in German. In English it wrote out a calculation in all five answers even in the version without reasoning, and was therefore always right. The small Llama 3.1 8B never hit the total without reasoning. With reasoning it reached four of five in English but only one in German. Its wrong chains looked tidy but calculated with a single shirt:
Let's break it down step by step:
**Step 1: Calculate the discount**
The shirts cost €25 each, and there's a 20% discount. To calculate the discount amount, multiply the original price by the discount percentage:
€25 x 20% = €25 x 0.20 = €5
So, the discount amount is €5.
**Step 2: Calculate the discounted price**
Subtract the discount amount from the original price:
€25 - €5 = €20
The discounted price of each shirt is €20.
**Step 3: Calculate the VAT**
There's a 19% VAT on the discounted price. To calculate the VAT amount, multiply the discounted price by the VAT percentage:
€20 x 19% = €20 x 0.19 = €3.80
So, the VAT amount is €3.80.
**Step 4: Calculate the total price**
Add the discounted price, VAT amount, and shipping cost:
€20 (discounted price) + €3.80 (VAT) + €4.90 (shipping) = €28.70
**Result:**
You pay a total of €28.70.That matches the observation by Wei and colleagues that small models write chains that look coherent but are wrong. The test covers no more than three models and one task, but it shows the pattern. The weaker the model, the more depends on the written-out path.
2. Zero-shot CoT: “Let's think step by step”
Do you have to supply examples? In the original paper the researchers did exactly that and showed the model examples with a worked solution (few-shot CoT). Takeshi Kojima and colleagues soon found that it also works without examples. Appending “Let's think step by step” to the question was enough to make the model write out its work.
With text-davinci-002, accuracy on the MultiArith test rose from 17.7% to 78.7% and on GSM8K from 10.4% to 40.7%. That is where the famous phrase comes from. As with all study figures, they apply to the model of the time, not to today's.
3. How much does chain of thought really help?
The chart shows published accuracies of PaLM 540B on six benchmarks from the papers by Wei et al. and Wang et al. The gain is large on arithmetic tasks such as GSM8K and small on everyday knowledge. That fits a 2024 meta-analysis by Sprague and colleagues, which reviewed over 100 studies and found the benefit mainly in math and symbolic reasoning.
CoT Performance Comparison
Published PaLM 540B accuracy on six precisely identified benchmark setups
The steps help most on tasks with several calculation or symbol steps. On GSM8K accuracy rose from 17.9 to 56.9%, and on Last Letter (four words, out of distribution) from 0 to 63%. In the separate run by Wang et al., self-consistency added another 17.9 percentage points on GSM8K (56.5 to 74.4%).
4. Variants: from few-shot CoT to graph of thoughts
The idea did not stay that simple. Many extensions have appeared since 2022. Auto-CoT (Zhang et al., 2022) creates the worked examples automatically. It picks a diverse set of questions and has the model write the solution paths itself with “Let's think step by step”. Self-consistency has the model generate several solution paths and takes the most common answer. Tree of Thoughts and Graph of Thoughts branch the steps and score them. More effort almost always means more tokens. The table sorts the most important variants.
Delimiting chain of thought and prompt chaining
The two terms are often confused. With chain of thought, the model writes out the intermediate steps in the same answer, so it stays one prompt. With prompt chaining, you split the task into several prompts yourself. The output of the first step is the input of the second. Each step is a request of its own, so you can inspect, log or branch on intermediate results.
- Chain of thought
- One
- Prompt chaining
- Several in sequence
- Chain of thought
- Appear in the model's answer
- Prompt chaining
- You get them as separate output and pass them on
- Chain of thought
- Only that the path is written out
- Prompt chaining
- Every step: check, log, branch
- Chain of thought
- Math and logic tasks in one go
- Prompt chaining
- Workflows like draft, review, revise
A three-prompt flow in which each step builds on the one before:
Prompt 1: Extract all deadlines from the following contract as a list, with page numbers.
[Contract]
Prompt 2: Check the list against the contract and mark every deadline without evidence.
[List from step 1] [Contract]
Prompt 3: Turn the checked list into a schedule overview for the team.
[Checked list from step 2]The most common pattern in Anthropic's prompting guide is self-correction: generate a draft, have it reviewed against criteria, then revise based on the review. Anthropic still considers prompt chaining useful when you want to inspect intermediate outputs or enforce a fixed sequence. Current models, however, mostly handle the multistep logic themselves.
5. Do reasoning models still need a thinking prompt?
Reasoning models think before they answer on their own. The instruction “think step by step” adds little for them and can bloat the prompt. Describe the goal, constraints, and desired output format instead, without prescribing every intermediate step. If quality falls short, raise the effort level.
What the Wharton study measures
A research group at the Wharton School answered the question with numbers in June 2025 (Lennart Meincke, Ethan Mollick, Lilach Mollick and Dan Shapiro: “The Decreasing Value of Chain of Thought in Prompting”). They tested five standard models and three reasoning models on GPQA Diamond, 198 multiple-choice questions at PhD level in biology, physics and chemistry, with 25 runs per question and condition.
- Type
- Standard model
- Accuracy with reasoning step
- +13.5%
- Type
- Standard model
- Accuracy with reasoning step
- +11.7%
- Type
- Standard model
- Accuracy with reasoning step
- +4.4% (not significant)
- Type
- Reasoning model
- Accuracy with reasoning step
- +2.9%
- Type
- Reasoning model
- Accuracy with reasoning step
- +3.1%
- Type
- Reasoning model
- Accuracy with reasoning step
- −3.3%
Then there is time: for standard models, requests with a reasoning step took 35 to 600% longer (5 to 15 seconds), for reasoning models 20 to 80% (10 to 20 seconds). The study also shows that the reasoning step can make results less consistent. For standard models, the share of questions answered correctly in all 25 runs was partly worse, by 17.2% for Gemini Pro 1.5. The models tested are several generations old by now, but the direction is clear: with a reasoning model you pay in time and tokens for hardly measurable gain.
For Claude Fable 5.1, Opus 5.5 and Sonnet 5.5, Anthropic recommends relying on the built-in thinking rather than a reasoning step in the prompt, at a lower effort level if needed. A prompt that asks the model to write out its thoughts, for example in thinking tags, may even be declined.
Measured: what the reasoning step does for current models
On November 9, 2026, gradually.ai set four German calculation tasks with fixed results: profit after markup and discount, two pumps, divisibility of the numbers from 1 to 1,000, and gross back to net with shipping. Each cell had 5 attempts per task, so 20 requests, through OpenRouter. The frontier models got the same instruction (“Answer only with Ergebnis: <number>”) at two reasoning levels, and DeepSeek V4.1 Flash ran without reasoning with two versions.
- Setting
- Reasoning low
- Correct
- 20 of 20
- Median output tokens
- 196
- Total cost
- $0.043
- Median time
- 1.8 s
- Setting
- Reasoning high
- Correct
- 20 of 20
- Median output tokens
- 146
- Total cost
- $0.033
- Median time
- 2.0 s
- Setting
- Reasoning low
- Correct
- 20 of 20
- Median output tokens
- 301
- Total cost
- $0.027
- Median time
- 3.7 s
- Setting
- Reasoning high
- Correct
- 16 of 20
- Median output tokens
- 1,202
- Total cost
- $0.246
- Median time
- 8.1 s
- Setting
- Reasoning off
- Correct
- 12 of 20
- Median output tokens
- 10
- Total cost
- $0.003
- Median time
- 1.2 s
- Setting
- Reasoning high
- Correct
- 20 of 20
- Median output tokens
- 72
- Total cost
- $0.010
- Median time
- 3.7 s
- Setting
- Reasoning off, “result only”
- Correct
- 0 of 20
- Median output tokens
- 8
- Total cost
- $0.0003
- Median time
- 0.6 s
- Setting
- Reasoning off, “step by step”
- Correct
- 20 of 20
- Median output tokens
- 391
- Total cost
- $0.005
- Median time
- 1.9 s
For GPT-6.1 Terra, the hit rate rose from 12 of 20 without reasoning to 20 of 20 with reasoning set to high. Without reasoning, the profit task scored 0 of 5 and the divisibility task 2 of 5 (the answer 400 three times). DeepSeek V4.1 Flash hit 0 of 20 with “result only” and 20 of 20 with “step by step”. That is the effect of the reasoning sentence on a model without reasoning.
More reasoning is not automatically better. Gemini 3.8 Flash hit only 16 of 20 on high against 20 of 20 on low, and needed more time and money. The profit task used 10,157 tokens on average, and 4 of 5 answers were rounded to €351 instead of €350.89. Claude Sonnet 5.5 hit 20 of 20 at both levels.
The limits: Claude Sonnet 5.5 cannot run without reasoning on this endpoint. At low, it wrote visible calculation steps in all 20 answers despite the format instruction, so that cell is not a no-reasoning baseline. There are four tasks with fixed results, temperature was at the provider default, and the costs are provider-reported values, not an invoice.
As a decision tree, the rule of thumb looks like this.
Effort settings differ by provider and change with new models. The table shows the state of the documentation. Check the values for your model in the current provider documentation. Which models exist and how they differ is shown in the model directory.
- Setting
- reasoning.effort
- Levels
- A selection from none, minimal, low, medium, high, xhigh, max, depending on the model
- Default
- medium
- Setting
- output_config.effort
- Levels
- low, medium, high, xhigh, max
- Default
- high
- Setting
- output_config.effort
- Levels
- low, medium, high, xhigh, max
- Default
- medium
6. Limits and when chain of thought hurts
Even with standard models, writing out the reasoning is no cure-all. Four limits are worth knowing.
- Cost and latency: The reasoning is made of tokens that you pay for and wait for. On simple lookups such as a translation or a classification, that is pure waste.
- False confidence from coherent text: A chain of thought reads convincingly even when it leads the wrong way. Check the result, not just the argument.
- The reasoning is not always the real explanation: Turpin and colleagues showed in 2023 that a model's explanations can miss the actual reason for its answer, for example when a hidden hint in the prompt sways the answer and the text never mentions it. A chain of thought is therefore no proof of what happens inside the model.
- The examples do not even have to be correct: Wang and colleagues showed in 2023 that few-shot CoT with flawed reasoning in the examples kept most of its effect. What mattered more was relevance to the question and the order of the steps. The effect rests more on the format than on correct logic in the examples.
- Little benefit beyond math and logic: On knowledge questions and text tasks the gain is small.
Before and after on a simple lookup
Unnecessary: What is the capital of France? Think step by step and justify every consideration.
Better: What is the capital of France?7. Templates to copy
Three templates to take with you. The first is for standard models on hard tasks.
[Task]
Proceed like this:
1. Briefly summarize the given information.
2. Calculate or argue in individual steps.
3. Check the result once more.
4. At the end, give only the result in one line.As a few-shot template with one worked example:
Question: Roger has 5 tennis balls and buys 2 cans with 3 balls each. How many balls does he have?
Path: 2 cans times 3 balls is 6 balls. 5 + 6 = 11.
Answer: 11
Question: [Your question]
Path:For reasoning models, without an instruction to think:
Goal: [What should exist at the end]
Constraints: [Rules, limits, data]
Output format: [e.g., table with three columns]
Before you output, check that all constraints are met.8. What this means for you
- With standard models and hard tasks, use a reasoning path. For simple lookups, leave it out.
- With reasoning models, describe the goal and output format and raise the effort if needed.
- Check the result, not just the path. For important decisions it helps to run the task several times and compare the answers.
- More techniques are in prompting techniques, and the basics in the entry on the prompt. For standing instructions, use a system prompt.
Frequently Asked Questions
A chain-of-thought prompt asks a language model to write out its solution in intermediate steps before giving the answer. You do that with an instruction such as “Work through it step by step” or with an example that demonstrates the path. On math and logic tasks this makes errors noticeably less frequent.
Take “Three shirts cost €25 each, with 20% off, then 19% VAT and €4.90 shipping on top. What do you pay?” and add “Work through it step by step first, then give the result.” The model then works out discount, VAT and shipping one after another (€75 − €15 = €60, times 1.19 = €71.40, plus €4.90 = €76.30) instead of guessing everything in one step.
Zero-shot gives the model only the task, few-shot also shows example questions and answers. Chain-of-thought asks for a solution path and can be combined with both, either as zero-shot CoT with a phrase like “Let's think step by step” or as few-shot CoT with examples that work through the path. For other methods, see prompting techniques.
For standard models and hard tasks, yes. For reasoning models, which think before they answer anyway, the instruction adds little. There you control the depth of thinking with the effort level and describe the goal, constraints, and output format. The principle stays important, but the prompt phrase for it is needed less often.
Yes. The reasoning is made of tokens that you pay for and wait for. On simple questions that is wasted. On hard tasks it usually pays off, because fewer errors later save more effort than the detour costs.
Not blindly. A chain of thought can read convincingly and still point the wrong way, and research has shown that explanations don't always reflect the real reason for an answer. Check the result itself, not just the argument.
