Technique · 39 studies

Chain-of-thought prompting: what the research shows

Chain-of-thought prompting makes the model write intermediate reasoning before its answer, either freely or through a fixed template. It reliably helps on checkable multi-step problems, works best when the steps are structured, and can hurt summaries, social judgement, code and constraint-following.

Also called: CoT, step-by-step reasoning, think step by step, scratchpad

What chain-of-thought prompting is

Chain-of-thought (CoT) prompting asks the model to write its intermediate reasoning before it commits to an answer. The simplest form is a single phrase such as Think step by step. The stronger forms replace that phrase with a fixed route: pull out the facts, match them against the criteria, explain the logic, and only then answer.

The research on this site splits CoT into two families:

  • Free-form reasoning. The model decides what to write. This is the classic zero-shot trigger, and on hard professional material it can be the difference between guessing and working through the problem, as the CFA Level III essay study describes.
  • Templated reasoning. You define the steps or slots and the model fills them. In a comparison of four prompt styles for text classification, a step-by-step decomposition (extract evidence, match to category definitions, explain, answer) beat plain instructions and few-shot examples: accuracy rose from about 0.55 to 0.775 and agreement (kappa) from about 0.45 to 0.744.

Most of the useful work in CoT happens in that second family: the template decides what the model is allowed to think about.

Why it works

A language model writes one token at a time, and every new token is conditioned on everything already on the page. Reasoning written before the answer becomes part of that context, so the answer is built on stated intermediate conclusions rather than on a quick pattern match to the question.

The same mechanism explains why order matters as much as the presence of reasoning. In a production LLM-judge pipeline, six rounds of rubric rewrites barely moved the judge, while simply putting the reasoning field before the score field raised agreement with human experts from 43% to 52%. When the score comes first, the explanation is written to defend a number that already exists.

Written reasoning also switches which knowledge the model draws on. An implicit-bias study across 15 stereotypes found that turning on reasoning cut word-association bias from 0.41 to 0.13 in GPT and from 0.59 to 0.18 in Claude, while Gemini and Llama barely moved. The authors read this as reasoning activating the values learned in alignment, which only works where such values exist.

A scratchpad prompt adds a practical reading of the same idea: a separate space for working notes acts as external memory, so the model does not have to juggle conditions and output at once.

Variants that tested well

The variants that held up in testing all narrow the reasoning rather than lengthen it.

  • Slot templates for code. A study of five CoT paradigms for code generation found that structured CoT (problem analysis, algorithm, implementation) reached 85-95% of the accuracy of long reasoning-model traces at roughly 10% of the tokens, while plain Let's think step by step often made code worse. The gain was +12% for GPT-3.5 and only +1.5% for GPT-5.
  • Facts first, then reasoning. Focused CoT first extracts the problem into numbered tags, then reasons only over that block. On Qwen-3 models from 0.6B to 32B it used 2-3x fewer tokens at comparable accuracy.
  • An explicit decomposition plan. Writing out the subtasks and their order helped even reasoning models in a Text2SQL benchmark of six workflows: o4-mini went from 56.27% to 65.53% with decomposition plus three worked examples.
  • Linked-question steps. Derivation prompting forces the model to state what changed in the input and what must change in the output before answering a follow-up question (+15.2% accuracy over plain CoT and few-shot in the authors' tests).
  • Formalise, then solve. Formula-first prompting writes givens, unknowns and equations before choosing how to compute (+13.3% on finance problems over plain CoT). A diagram-based variant replaces prose with a Mermaid graph, and a timeline variant sorts events by date before asking chronological questions.
  • Cross-check two kinds of reasoning. CoT-PoT solves once in words and once in code; when the two agree, the answer is accepted, which settled 78.6% of problems in two calls.

When it helps and when it hurts

CoT is reliable on problems with a checkable answer: arithmetic, logic, multi-step analysis, classification against explicit criteria. Outside that zone the evidence turns negative quickly, and the adaptive reasoning page covers how to decide when to switch it off. The main failure modes:

One more caution: reasoning that is cut off mid-way can be worse than none. Under a tight token budget, DeepSeek scored 17% with truncated CoT and 53% with a direct answer.

What the studies measured

StudyLab scoreFindingEffect
Step-by-Step Task Decomposition: How to Make an LLM Reason Instead of GuessJul 18, 2025 82 A four-step decomposition prompt raised classification accuracy from about 0.55 to 0.775 and kappa from about 0.45 to 0.744, beating few-shot examples. Helps
Structured CoT vs Deep Reasoning: When "Think Step by Step" Hurts Code GenerationDec 10, 2025 80 Structured CoT for code reached 85-95% of deep-reasoning accuracy at about 10% of the tokens; naive zero-shot CoT often lowered code quality. Mixed
Focused Chain-of-Thought (F-CoT): Structured Input for Faster LLM ReasoningNov 27, 2025 88 Extracting facts into numbered tags before reasoning cut tokens 2-3x at comparable accuracy on Qwen-3 models. Helps
Divide-and-Conquer + Few-shot: why explicit instructions work even for reasoning modelsOct 13, 2025 72 Explicit decomposition plus three examples lifted o4-mini on Text2SQL from 56.27% to 65.53%. Helps
Judge output order: why an LLM should explain itself before scoringSep 2, 2026 75 Putting reasoning before the score raised an LLM judge's agreement with experts from 43% to 52%. Helps
Inference-Time Reasoning: cutting hidden bias by switching on reasoning modeFeb 4, 2026 74 Reasoning cut implicit social bias by 70-91% in GPT and Claude, with almost no effect in Gemini and Llama. Mixed
Derivation Prompting: How to Make an LLM Actually Apply the Rules It FindsNov 18, 2025 78 A three-step derivation structure for linked questions gave +15.2% accuracy over plain CoT and few-shot. Helps
Formula-One Prompting: Equations First, Then the Solution StrategyJan 27, 2026 84 Writing givens and equations before solving gave +13.3% on finance and +2.55% on physics over plain CoT. Helps
BRAID: Structured Reasoning Through Diagrams Instead of TextDec 17, 2025 88 Reasoning through a Mermaid diagram let gpt-5-nano-minimal reach 45.2% versus 40.4% for a larger model without one. Helps
CoT-PoT: Double-Checking by Switching the Type of ReasoningApr 19, 2026 82 Solving once in words and once in code settled 78.6% of problems with exactly two requests. Helps
When Slow Thinking Hurts: Reasoning Models Fail at Understanding PeopleFeb 11, 2026 86 More reasoning effort dropped o3 from 0.838 to 0.693 on hard theory-of-mind items. Hurts
Thinking Makes Agents Introverts: When "Think Before You Answer" Hurts the TaskFeb 8, 2026 95 Forced thinking made support agents disclose less information; Gemini-2.5-Pro dropped 37% on retail tasks. Hurts
Axiomatic Self-Elicitation: Strip Bias from AI Decisions with Explicit Domain PrinciplesApr 18, 2026 91 CoT made biased decisions worse; eliciting domain principles first cut bias by about 51%. Hurts
Prompting Inversion: When Simple Prompts Beat Complex OnesOct 25, 2025 81 A strict rule-heavy prompt helped GPT-4o (97% vs 93%) but hurt GPT-5 (94% vs 96.4%) compared with simple CoT. Mixed
Broken Chains: Cut-Off Reasoning Hurts More Than No Reasoning at AllFeb 16, 2026 74 Truncated CoT scored 17% where a direct answer scored 53% for DeepSeek at half the token budget. Hurts
Step-by-step reasoning is a trap for summaries: when "think step by step" backfiresJul 2, 2025 80 Reasoning models wrote wordier dialogue summaries with more factual errors than GPT-4o. Hurts
SR → QR: Two-Step Constraint Reinforcement via Self-Declaration and Fact RecallJun 4, 2026 72 Step-by-step reasoning lowered adherence to a knowledge-cutoff constraint on all three tested models. Hurts
Reasoning for Summarization: When Overthinking Ruins the RecapDec 8, 2025 87 Across 8 summarization datasets, explicit reasoning strategies traded factual accuracy for fluency and a plain few-shot prompt often caught up. Mixed
Prompting to Model Strength – Top Models Need Simplicity, Budget Models Need Structured ReasoningJul 17, 2025 87 Across 23 techniques on 12 models, step-by-step prompting was ineffective for recommendation and strong models preferred simple prompts. Mixed
Chain-of-Thought on One of the Toughest Finance Exams: What Separates Failure from Professional-Grade WorkJun 29, 2025 70 Top models handled CFA Level III essay questions only when made to reason step by step. Helps

More studies on this technique:

Prompts to copy

Structured CoT template (code)

{task_description}
Use this structure:
**Problem analysis:**
- What needs to be solved?
- What are the inputs/outputs?
- What are the edge cases?
**Algorithm:**
- Which steps to perform?
- Which data structures to use?
- Which checks are needed?
**Implementation:**
[code with comments]
{additional_requirements}

From: Structured CoT vs Deep Reasoning: When "Think Step by Step" Hurts Code Generation

Focused CoT: reason over extracted facts

Use ONLY the facts from <context> below. Do not refer to the original problem.
Instructions:
1) Reason step by step
2) When you use a fact, cite <info_k>
3) Final answer in \boxed{}
{context_from_step_1}

From: Focused Chain-of-Thought (F-CoT): Structured Input for Faster LLM Reasoning

Reasoning before the verdict

Here's the ad post text: {text}.
First, break it down in detail:
- Are there any stretched arguments or exaggerations?
- Are there reputational risks if the post lands differently than intended?
- Is the logic actually convincing, or does the text just sound smooth?
Don't praise nice phrasing — look for substantive problems,
even if the text reads easily.
Don't mention a score until you've finished the breakdown.
Only at the very end, give a final score from 1 to 10.

From: Judge output order: why an LLM should explain itself before scoring

Problems it helps with:

Questions people ask

Does adding 'think step by step' always improve answers?

No. It helps most on problems with a checkable answer, such as arithmetic, logic and criteria-based classification. Studies on this site found it hurt dialogue summaries, theory-of-mind questions, code generation, customer-support agents and constraint-following, and strong models often did better with a plain request.

Is a reasoning template better than a free 'think step by step'?

In the tested settings, yes. Slot templates for code, fact extraction before reasoning and explicit decomposition plans matched or beat free-form reasoning while using fewer tokens. The template keeps the model on the steps that matter instead of letting it restate the problem.

Should the answer come before or after the reasoning?

For judgements and scores, put the reasoning first. In one LLM-judge study, moving the reasoning ahead of the score raised agreement with experts from 43% to 52%. When choosing between fixed options, some studies instead recommend naming the choice first and keeping the justification short.

Do reasoning models still need chain-of-thought prompts?

Less often. A generic step-by-step phrase adds little to strong models, but an explicit task-specific plan still helped: o4-mini gained on a Text2SQL benchmark when given a decomposition with worked examples.