Claude Tips mascot
Claude Tips & Tricks
Prompt Engineering beginner

Force Step-by-Step Reasoning

Adding 'think step by step' to a prompt makes Claude show its work and catch mistakes it would otherwise miss.

When Claude jumps straight to an answer, it skips steps and makes mistakes. Telling it to think step by step forces it to slow down.

The Prompt

Think through this step by step. Show your reasoning
at each stage before giving a final answer.

When to use it

  • Math or logic problems where the answer isn’t obvious
  • Debugging (“walk through this code line by line”)
  • Decision-making with multiple factors
  • Anything where Claude’s first answer feels too confident

Stronger variations

With self-checking:

Think step by step. After reaching your answer,
go back and verify each step. If you find an error,
correct it.

With alternatives:

Think step by step. At each decision point,
briefly note what other options existed and
why you picked this one.

The research behind it

Google’s original “chain of thought” paper showed that just adding “Let’s think step by step” to a prompt improved accuracy on math benchmarks from 17% to 78%. It’s one of the most replicated findings in prompt engineering.

Paste into Claude Code
Think through this step by step. Show your reasoning at each stage before giving a final answer.