Skip to main content

The Magic of the Phrase 'Think Step by Step'

A legendary prompt engineering technique (Zero-Shot Chain-of-Thought). Adding the phrase 'Let's think step by step' compels the neural network to unfold a chain of intermediate calculations, reducing logical errors by 50–70%.

1. Concept Overview & Systemic Problem

In 2022, researchers from the University of Tokyo and Google made a remarkable discovery that became a sensation in the scientific community. They tested a large language model on complex mathematical problems: the model provided correct answers only 17.7% of the time.

However, once the scientists added a simple magic phrase at the end of the prompt:

"Let's think step by step"

...the accuracy of the same model skyrocketed to 78.7% without any retraining!

Mental Model: the ultimate free hack that instantly transforms the model from a careless word generator into a meticulous analyst.

2. Why AI Needs a "Draft"

Recall how you solved a complex problem like (124 * 7) - 348 in school. If the teacher demands an answer in one second without paper, you are almost certain to make a mistake. But if you are allowed to write down steps 1 and 2 on scratch paper, you will solve the problem easily and correctly.

┌─────────────────────────────────────────────────────────────┐
│                 HOW STEP-BY-STEP REASONING WORKS          │
├─────────────────────────────────────────────────────────────┤
│ ❌ Request without the phrase:                               │
│    "A farmer has 15 apples. He sold a third and then ate 2.│
│     What is the final answer?"                              │
│    The model rushes to give a number: ➔ "Answer: 7" [ERROR]│
├─────────────────────────────────────────────────────────────┤
│ ✅ Request with the phrase "Think step by step":           │
│    The model writes intermediate conclusions:               │
│    Step 1: There were 15 apples.                            │
│    Step 2: A third of 15 is 15 / 3 = 5 apples sold.       │
│    Step 3: Remaining: 15 - 5 = 10 apples.                  │
│    Step 4: Ate 2 apples: 10 - 2 = 8 apples.                │
│    ➔ "Final answer: 8 apples" [100% CORRECT]               │
└─────────────────────────────────────────────────────────────┘

3. How to Use This Trick in Everyday Work

You don't have to use just one specific English phrase. Equivalent phrases work excellently in other languages:

  1. For calculations: "Before giving the final number, outline all intermediate formulas and calculation steps."
  2. For complex solutions: "Break down the solution to this task into 4 sequential logical stages. Do not proceed to the conclusion until you justify each stage."
  3. For code verification: "Trace the variable x step by step from initialization to exit from the function."

4. Production Engineering Scenarios

If you notice that the AI is making an annoying logical error in calculations or reasoning — do not blame the model. Simply hit the edit button on the prompt and add the magic sentence at the end: "Think through your reasoning step by step." In 9 out of 10 cases, the error will resolve itself!

/ Frequently Asked QuestionsSchema.org FAQPage

FAQ: The Magic of the Phrase 'Think Step by Step'

Neural networks generate responses token by token. If you immediately ask for the final answer ('What is...'), the model has to guess the number in the first word without a draft. The phrase 'Think step by step' forces the model to first outline all intermediate steps: each generated step becomes part of the context for the next, eliminating errors.
/ Internal links
All terms