All Guides
Intermediate • ~1h10~1h10 reading timeFree Guide

Chain-of-Thought Reasoning

Initiate LLMs to reason step by step using Chain-of-Thought and Self-Consistency techniques for robust results.

CoT in 2026: what still works, what got absorbed into reasoning models

Chain-of-Thought was introduced in Wei et al. 2022 ("Chain-of-Thought Prompting Elicits Reasoning in Large Language Models") and became the defining prompting technique of the first LLM wave. Four years later, the practitioner view on r/MachineLearning, r/LocalLLaMA, and r/ChatGPTPro is that CoT has bifurcated: partially obsolete for frontier reasoning models, still essential everywhere else.

What changed with reasoning models:

  • →o-series, GPT-5 Thinking, Claude extended thinking, Gemini 2.5 Pro reasoning do CoT internally. You don't need to prompt "think step by step" — the model already does it, at scale, and hides the chain from the output. OpenAI's o1 announcement was explicit: the technique moved from prompt to architecture.
  • →On reasoning models, explicit CoT prompts can hurt. Adding "think step by step" to a reasoning model sometimes anchors the internal chain to a worse path. Let the model do its thing.
  • →On non-reasoning models, CoT is still the single biggest accuracy lever. For Claude Haiku, GPT-4o mini, Gemini Flash, Llama 3, and fine-tuned open models, explicit CoT still produces the 30-60 % gains the 2022 paper reported.

What still works as practitioners have learned:

  • →"Let's think step by step" vs. structured CoT. The naive zero-shot trigger (from Kojima et al. 2022) helps, but structured CoT ("First identify what's asked; then list known facts; then compute; then verify") outperforms it consistently.
  • →Self-consistency amplifies CoT on small models. Sample 5-10 chains at T=0.7, take the majority. The cost/quality tradeoff is best for cheap models on hard tasks.
  • →CoT fails on tasks without verifiable answers. Majority voting and chain-checking assume a correct answer exists. For open-ended generation, CoT mostly produces longer outputs without quality gains.
  • →Verifier-based selection beats voting. When possible, run code, check types, query a database. External verification is always better than LLM-majority.

Common 2026 mistakes:

  • →Using CoT on reasoning models without testing. It can help, hurt, or do nothing. Benchmark on your actual task.
  • →Hiding the chain from users who need auditability. For regulated domains, the chain is the audit trail. Don't discard it.
  • →Mistaking longer output for better reasoning. More tokens aren't more thought. Chains that restate the prompt add latency without gain.

The honest framing: Chain-of-Thought is the most successful prompting technique in LLM history, and in 2026 its role has moved. For frontier reasoning models, it's architectural; for everything else, it's still the default way to extract correct multi-step reasoning. Don't assume one-size-fits-all; benchmark both approaches on your task before committing.

Why Models Need Help Reasoning

LLMs predict the next token, they do not "reason" in the human sense. For simple questions, direct prediction works fine. But for multi-step problems (math, logic, analysis), the model needs to lay out intermediate steps to arrive at the correct answer.

Think of it this way: if someone asks you "What is 47 times 83?", you do not instantly produce "3,901." You decompose: 47 times 80 = 3,760, plus 47 times 3 = 141, total = 3,901. Chain-of-Thought forces the model to decompose in the same way.

The Three CoT Techniques

CoT Techniques Compared

TechniqueHow It WorksSetup EffortAccuracy BoostBest For
Zero-Shot CoTAdd "think step by step" to promptNone+20-30%Quick improvement on any task
Few-Shot CoTProvide examples with reasoning stepsMedium+40-60%Math, logic, complex analysis
Self-ConsistencyRun multiple CoT paths, vote on answerHigh+10-20% over CoTHigh-stakes decisions

← Scroll horizontally →

Zero-Shot CoT: The Magic Words

Zero-Shot Chain-of-Thought

One phrase that transforms AI reasoning

The Problem

A math problem that most models get wrong with direct prompting.
code
A bookstore has 3 shelves. Each shelf has 4 sections. Each section holds 15 books. If the store is 70% full, how many books are in the store?

💡 Direct prompting: many models answer 126 or some other wrong number.

1/3

Few-Shot CoT: Teaching Reasoning by Example

Few-Shot Chain-of-Thought

Provide examples with explicit reasoning steps

Example with Reasoning

Show the model HOW to reason, not just WHAT to answer.
code
Q: If a train travels 120km in 2 hours, and then 90km in 1.5 hours, what is the average speed for the whole trip?

A: Let me work through this step by step.
1. Total distance = 120 + 90 = 210 km
2. Total time = 2 + 1.5 = 3.5 hours
3. Average speed = 210 / 3.5 = 60 km/h
Answer: 60 km/h

💡 The example teaches the decomposition pattern, not just the answer.

1/2
Quick Check

Why does Chain-of-Thought work?

Self-Consistency: Voting for the Best Answer

Self-Consistency Explained

Multiple reasoning paths, one best answer

Generate Multiple Paths

Run the same CoT prompt 5-10 times with temperature > 0. Each run may take a different reasoning path but should arrive at the same correct answer.

💡 Temperature 0.7 is the sweet spot: diverse enough for different paths, focused enough for valid reasoning.

1/4

When CoT Fails

Click to expand

Test Your Understanding

Chain-of-Thought Reasoning Check

0 / 5 answered

Q1.What is the simplest way to activate Chain-of-Thought reasoning?

5 questions remaining

Further Exploration

You have mastered Chain-of-Thought and Self-Consistency. In the next article, you will explore Tree-of-Thought, a technique that lets the model explore and backtrack through branching reasoning paths, solving problems that linear reasoning cannot.


Continue to Tree-of-Thought Reasoning Arena to go beyond linear thinking.


CoT vs ToT: The Key Difference

Chain-of-Thought vs Tree-of-Thought

AspectChain-of-ThoughtTree-of-Thought
Reasoning PathSingle linear pathMultiple branching paths
BacktrackingCannot backtrackCan abandon and revisit branches
ExplorationFollows one directionExplores alternatives in parallel
API Calls1 call5-20 calls per problem
Best ForWell-defined problemsOpen-ended, creative problems

← Scroll horizontally →

How Tree-of-Thought Works

The ToT Process

Branch, evaluate, prune, solve

Decompose the Problem

Break the problem into sequential subproblems. Each subproblem becomes a node in the tree.
code
Problem: Plan a 3-day marketing campaign.

Subproblems:
1. Define target audience and messaging
2. Choose channels and budget allocation
3. Create content calendar and metrics

💡 Good decomposition creates 3-5 meaningful subproblems, not 20 trivial ones.

1/4

The Reasoning Arena Pattern

A powerful way to implement ToT is through a Reasoning Arena: you prompt the AI to take on multiple roles and debate.

Building a Reasoning Arena

Multiple experts debate to find the best solution

Set Up the Arena

Define 3 expert roles with different perspectives. Each expert will propose and defend a solution.
code
You will act as 3 experts debating the best solution:

Expert A: Conservative strategist (risk-averse, proven methods)
Expert B: Innovation advocate (cutting-edge, high risk-reward)
Expert C: Data analyst (evidence-first, quantitative)

💡 Choose roles that represent genuinely different approaches, not minor variations.

1/4
Quick Check

What is the main advantage of pruning in Tree-of-Thought?

When to Use Tree-of-Thought

Limitations and Practical Concerns

  1. →Cost: ToT uses 5-20x more API calls than CoT. Budget accordingly.
  2. →Latency: Multiple sequential calls mean longer wait times. Not suitable for real-time interactions.
  3. →Complexity: Implementing ToT requires orchestration logic (which branch to expand, when to prune).
  4. →Diminishing returns: For well-defined problems with clear steps, CoT is faster and equally accurate.
  5. →Model dependency: Small models produce incoherent branches. ToT works best with frontier models.
Click to expand

Test Your Understanding

Tree-of-Thought Reasoning Check

0 / 5 answered

Q1.What is the key advantage of ToT over CoT?

5 questions remaining

Continue Learning

You now command the full reasoning toolkit: direct prompting, Chain-of-Thought, Self-Consistency, and Tree-of-Thought. In the next module, you will learn to chain and route prompts, building multi-step pipelines that orchestrate these techniques together.


Continue to Prompt Chaining and Pipelines to build your first AI workflow.

Your progress

Progress is self-reported and stored in your browser. The final completion record is not a qualification or an independent assessment.

View progress and completion record

Learn AI, from prompts to agents

15 free guidesQuizzes, diagrams and workshopsNo account needed
GO DEEPER — FREE GUIDE

Prompt Orchestration

Build multi-step AI workflows with prompt chaining and routing. Free course on AI pipeline design.

One practical AI workflow in your inbox

Methods, resources and new exercises. Free, unsubscribe at any time.