Chain of thought

Ask for the working before the answer.

Prompt
If a train leaves Station A at 2 PM traveling at 60 mph towards Station B (180 miles away), and a second train leaves Station B at 3 PM traveling at 40 mph towards Station A, at what time do they meet? Let’s think step by step.
What comes back
1At 3 PM: 120 miles apart
2Closing speed: 100 mph
3120 ÷ 100 = 1.2 hours
41.2 h = 1 h 12 min
4:12 PM

Lesson 3.2 · 6 min

Chain of thought

Chain of thought means asking the model to write out its reasoning before it gives the answer. You can do it with one sentence, such as “Let’s think step by step”2, or by showing worked examples whose answers include the reasoning1.

Writing the steps gives the model room for problems that need several moves, and gives you a trail to check. If step 2 is wrong, you can see it.

In the anatomy, this is the Reasoning part. It belongs to the elicit reasoning family, with self-consistency and tree of thoughts.

Sources for this page

  1. Chain-of-thought prompting elicits reasoning in large language models
    Wei et al. · Jan 2022 · arXiv 2201.11903
    Strong evidenceRead the paperLink not yet verified
  2. Large language models are zero-shot reasoners
    Kojima et al. · May 2022 · arXiv 2205.11916
    Strong evidenceRead the paperLink not yet verified

One sentence changes what comes back.

Without
If a train leaves Station A at 2 PM… at what time do they meet?
A single time, with nothing to check.
With
If a train leaves Station A at 2 PM… at what time do they meet? Let’s think step by step.
1120 miles apart at 3 PM
2Closing at 100 mph
31.2 h = 1 h 12 min
4:12 PM

Example · from the original PromptLibrary guide

The two trains

PromptWorks on any chat model
If a train leaves Station A at 2 PM traveling at 60 mph towards Station B (180 miles away), and a second train leaves Station B at 3 PM traveling at 40 mph towards Station A, at what time do they meet? Let’s think step by step.
Expected output
Step 1: By 3 PM the first train has gone 60 miles, so it is 120 miles from Station B. Step 2: At 3 PM the trains are 120 miles apart and close at 60 + 40 = 100 mph. Step 3: Time to meet = 120 / 100 = 1.2 hours. Step 4: 1.2 hours is 1 hour 12 minutes. Step 5: 3:00 PM + 1 h 12 min = 4:12 PM. Answer: The trains meet at 4:12 PM.

The phrase asks for the steps before the answer. Each step is small enough to get right, and the final line is easy to find. Without it, a model may jump straight to a time, and you cannot tell whether it is right.

Sources for this page

  1. Large language models are zero-shot reasoners
    Kojima et al. · May 2022 · arXiv 2205.11916
    Strong evidenceRead the paperLink not yet verified

Big gains on older models. Little on reasoning models.

Standard models, 2022
Shows the direction, not measured values

Large gains on multi-step problems

Reasoning models, 2024 on
Shows the direction, not measured values

Little gain, more time and cost

Direct answerWith chain of thought

The evidence

Mixed: it depends on the model

Mixed evidence

The original studies found large gains on multi-step arithmetic and commonsense tasks12. Those were standard models that answer as they write.

Reasoning models already plan before answering. A 2025 study found that asking them to think step by step adds little, and makes answers slower and costlier3.

Few-shot chain of thought

Tested
Examples that show worked reasoning
Models
Large standard models of 2022
Result
Large gains on multi-step tasks
Caveat
Gains mostly in the largest models

Zero-shot chain of thought

Tested
One sentence: “Let’s think step by step”
Models
Large standard models of 2022
Result
Large gains on reasoning benchmarks
Caveat
Predates reasoning models

Chain of thought on reasoning models

Tested
Asking for steps versus a direct answer
Models
Standard and reasoning models
Result
Little or no gain on reasoning models, slower answers
Caveat
Some standard models still gain

Sources for this page

  1. Chain-of-thought prompting elicits reasoning in large language models
    Wei et al. · Jan 2022 · arXiv 2201.11903
    Strong evidenceRead the paperLink not yet verified
  2. Large language models are zero-shot reasoners
    Kojima et al. · May 2022 · arXiv 2205.11916
    Strong evidenceRead the paperLink not yet verified
  3. Chain of thought on reasoning models
    Meincke et al. · Jun 2025 · arXiv 2506.07142
    Mixed evidenceRead the paperLink checked

Should you add it?

Does the task need several steps?
noSkip it. Ask directly.yes
Is it a reasoning model?
yesSkip it. Keep the format part.noAdd a reasoning part.

In practice

When to use it

Do

  • Ask for steps on maths, logic and planning tasks.
  • Ask for the final answer on its own line, so it is easy to find.
  • Keep the steps short when you only need the answer.

Avoid

  • Adding it to reasoning models, which already think first.
  • Using it for lookups, rewrites and short replies.
  • Trusting the steps without reading them; a fluent step can still be wrong.

Sources for this page

  1. Chain of thought on reasoning models
    Meincke et al. · Jun 2025 · arXiv 2506.07142
    Mixed evidenceRead the paperLink checked