Skip to content
Search
TechniquesGlossary

Chain-of-Thought (CoT)

Chain-of-thought shifts a model from "answer directly" to "reason then answer." Classic form: add "Let's think step by step" to the prompt, or show a few-shot example that includes reasoning before the answer.

On reasoning models, explicit CoT instructions are often redundant, because the model already reasons before it answers. On non-reasoning models, CoT can still matter. The original paper found the gains appeared in large models (around 100B parameters) on arithmetic, commonsense and symbolic reasoning benchmarks, and that small models didn't benefit.

Example

Problem: A shop sells apples at 3 for $2 and oranges at 5 for $3. What does it cost to buy 12 apples and 15 oranges?

Think step by step, then give the final price.

When to use it

  • Multi-step math, logic, or planning problems
  • The task requires combining multiple pieces of information
  • You're working with a large non-reasoning model
  • You need the reasoning trace for debugging or auditing

When not to use it

  • Simple lookup or classification, where CoT just adds latency
  • Using a reasoning model that already thinks internally (wastes tokens)
  • Latency-sensitive endpoints where the reasoning isn't user-facing value