School/Prompt Engineering/Advanced Prompting
1/5
Wave 210 minintermediate

Chain of Thought Prompting

Make AI think step-by-step for dramatically better reasoning.

Chain of Thought Prompting

Want AI to solve complex problems? Tell it to think step by step. This simple technique dramatically improves reasoning.

The Problem

Without chain of thought, AI often jumps to answers:

Prompt: "If a store has a 25% off sale, and you have a 10% member discount applied after the sale price, how much do you pay for a $80 item?"

AI might say: "$52" (wrong — it might just subtract 35%)

The Fix

Add "Think step by step" or "Show your reasoning":

"If a store has a 25% off sale, and you have a 10% member discount applied after the sale price, how much do you pay for an $80 item? Think step by step."

AI response:

Step 1: Original price = $80

Step 2: 25% sale discount = $80 × 0.25 = $20

Step 3: Sale price = $80 - $20 = $60

Step 4: 10% member discount on sale price = $60 × 0.10 = $6

Step 5: Final price = $60 - $6 = $54

Why It Works

Chain of thought forces the AI to:

  1. 1.Break the problem into sub-steps
  2. 2.Show intermediate results (which you can check)
  3. 3.Avoid shortcut errors
  4. 4.Handle multi-step logic correctly

Trigger Phrases

Any of these work:

  • "Think step by step"
  • "Walk me through your reasoning"
  • "Show your work"
  • "Break this down into steps"
  • "Let's solve this systematically"
  • "First, ... Then, ... Finally, ..."

When to Use It

  • Math and calculations
  • Logic puzzles
  • Complex analysis
  • Decision-making with multiple factors
  • Code debugging
  • Any multi-step problem

Advanced: Structured Chain of Thought

For really complex problems, give the AI a reasoning structure:

"Analyze whether we should expand into the European market.

Structure your analysis:

1. First, list the key factors to consider

2. For each factor, assess the opportunity and risk

3. Then weigh the factors against each other

4. Finally, give a recommendation with confidence level"

Exercises

0/3
Prompt Challenge+15 XP

Ask AI this math problem with AND without chain of thought: "A restaurant bill is $156. You want to leave a 20% tip, then split the total equally among 4 people. How much does each person pay?" Compare the answers.

Hint: Try the plain question first, then add "Think step by step." The answer should be $46.80.

Quiz+5 XP

Chain of thought prompting is MOST useful for:

Reflection+15 XP

Create a prompt that uses structured chain of thought to analyze a business decision you're facing (real or hypothetical). Include at least 4 reasoning steps.

Hint: Think about a decision with multiple factors: cost, time, risk, potential reward, etc.