The Alternatives Issue For tool owners Sign in

Chain-of-thought prompting

Chain-of-thought (CoT) prompting tells a language model to write its reasoning steps before its final answer, increasing accuracy on multi-step problems.

Example input

If a shirt is $20 and on 25% off, what's the final price? Think step by step.

In more detail

What it means

Chain-of-thought (CoT) is a prompting technique introduced by Wei et al. (2022) where the model is instructed to expose intermediate reasoning before delivering a final answer. The two most common forms are zero-shot CoT ("Let's think step by step.") and few-shot CoT (showing 2–5 worked examples in the prompt). CoT measurably improves performance on arithmetic, commonsense reasoning, and symbolic tasks, but it costs extra output tokens and slows latency. Modern reasoning models like o1, Claude with extended thinking, and Gemini 2 Thinking effectively run CoT internally, so manual CoT is most valuable on smaller or non-reasoning models.

Part 1 of 3

When to use it, and when not

Use it for

  • Math, logic, and multi-step planning prompts.
  • Smaller models (8B–70B) where reasoning capability is weaker.
  • When you can afford 2–10× output tokens.

Skip it for

  • Trivial extraction or single-step classification (CoT adds cost with no quality gain).
  • Real-time UX with strict latency budgets.
  • Reasoning models that already think internally — explicit CoT can hurt.

Part 2 of 3

Example

What goes in, and what comes out.

Input

If a shirt is $20 and on 25% off, what's the final price? Think step by step.

Output

Step 1: 25% of $20 = $5. Step 2: $20 - $5 = $15. Final price: $15.

Part 3 of 3

Common mistakes

  • Using CoT on reasoning models — it often degrades quality.
  • Forgetting to mark the final answer (e.g. 'Answer:') so it's parseable.
  • Pairing CoT with high temperature, which makes reasoning incoherent.

FAQ

Questions readers ask.

What is chain-of-thought prompting?

Chain-of-thought (CoT) prompting tells a language model to write its reasoning steps before its final answer, increasing accuracy on multi-step problems.

When should you use chain-of-thought prompting?

Math, logic, and multi-step planning prompts. Smaller models (8B–70B) where reasoning capability is weaker. When you can afford 2–10× output tokens.

When should you not use chain-of-thought prompting?

Trivial extraction or single-step classification (CoT adds cost with no quality gain). Real-time UX with strict latency budgets. Reasoning models that already think internally — explicit CoT can hurt.

What are the common mistakes with chain-of-thought prompting?

Using CoT on reasoning models — it often degrades quality. Forgetting to mark the final answer (e.g. 'Answer:') so it's parseable. Pairing CoT with high temperature, which makes reasoning incoherent.

Last updated: 2026-06-01. Raw markdown: https://promtable.com/glossary/chain-of-thought.md. Found a mistake? Tell us.