Chain of thought

Chain-of-thought prompting asks the AI to think step by step before answering. It makes fewer mistakes on maths and logic.

Everyday analogy

Your maths teacher saying "show your working." Writing each step makes it easier to get the final answer right.

Example

Add "Think step by step" to: "I have ₹500, buy 3 books at ₹120 each. How much is left?" The AI writes 3 × 120 = 360, then 500 − 360 = ₹140.

❓Trickyquestionbat + ball = 110🪜Step 1ball = x🪜Step 2bat = x + 100🧮Step 32x + 100 = 110✅Answerball = 5
Chain of thought: asking the AI to show its steps makes tricky answers more accurate.

Try it yourself

About 10 min

Make it think step by step

  1. Ask: A bat and a ball cost 110 rupees. The bat costs 100 more than the ball. How much is the ball?
  2. Ask again in a new chat, adding Think step by step and show your working.
  3. Check which answer is right (it's 5 rupees).

What you should see: Asking for the reasoning helps on tricky maths and logic questions.

Use any free AI chatbot (ChatGPT, Claude, Gemini or Copilot). Never paste private or confidential information.

Build it for real · guided projectPrompt lab: build a prompt pack for your real workAbout 90 min · No coding needed · step by step
Test what you learned

Take a quick quiz, or look up any word in the glossary.