Step-by-step reasoning prompts
Learn why asking an AI to work through a problem in steps gives better answers on maths, logic and decisions, and how to check its working, compare options and avoid being fooled by confident but wrong reasoning.
Some questions can't be answered well in one jump: a word problem, a bug that depends on three things, a choice between two job offers. People solve these by working through them on paper. Models do better when they do the same.
In this tutorial you will try step-by-step prompts on a maths problem, a logic puzzle and a real decision, then learn how to check the reasoning instead of trusting it. You need a free chat tool (ChatGPT, Gemini, Claude or Copilot). You should know the basics from *Anatomy of a good prompt*.
Why steps help
A language model writes its answer one piece at a time, and each piece is based on everything written so far. If it states the final answer first, it has done no working. If it writes the working first, every step gives it something correct to build on.
This is called chain-of-thought prompting: you ask the model to show intermediate steps before the answer. It helps most on tasks with several steps (arithmetic, logic, planning, debugging). It helps little on simple facts or rewriting a sentence.
Reasoning models already do this
Many current models (often called reasoning or thinking models) work through a problem internally before answering. With them, "think step by step" adds less, and very long instructions about how to think can even get in the way. Everything below still helps: it makes the working visible so that you can check it, and it works on every chat tool, including the fast, free ones. Tool features change quickly, so check what your tool offers.
Step 1: compare direct and step-by-step
Brew & Bean sold 14 cappuccinos at ₹180, 9 cold brews at ₹220 and 23 filter coffees at ₹80 on Saturday. A customer coupon took ₹150 off the total. What was the day's revenue? Reply with just the number.What to expect: The correct answer is ₹6,190: 14 x 180 = 2,520; 9 x 220 = 1,980; 23 x 80 = 1,840; total 6,340; minus the ₹150 coupon = 6,190. Models told to reply with just a number sometimes get this wrong, which is the point.
Brew & Bean sold 14 cappuccinos at ₹180, 9 cold brews at ₹220 and 23 filter coffees at ₹80 on Saturday. A customer coupon took ₹150 off the total. What was the day's revenue?
Work through it step by step: first the revenue for each item, then the total before the coupon, then subtract the coupon. Show each calculation, then give the final answer on its own line starting with "Answer:".What to expect: Expected working: 2,520 + 1,980 + 1,840 = 6,340, minus 150 gives Answer: ₹6,190. Naming the steps yourself is stronger than a bare "think step by step".
Cappuccino: 14 x 180 = 2,520
Cold brew: 9 x 220 = 1,980
Filter coffee: 23 x 80 = 1,840
Total before coupon: 2,520 + 1,980 + 1,840 = 6,340
After coupon: 6,340 - 150 = 6,190
Answer: ₹6,190Chat models can still slip on arithmetic
Even with steps, a chat model may make a small calculation error. For anything where numbers matter, redo the sum on a calculator or ask the model to write a short Python snippet and run it yourself. The steps make such errors easy to find.
Step 2: ways to ask for reasoning
Reasoning prompt patterns
| Pattern | Wording | Use when |
|---|---|---|
| Plain step-by-step | "Think through this step by step, then give the answer." | Quick boost on multi-step problems |
| Named steps | "First do A, then B, then C." | You know the method (as in the revenue example) |
| Plan first | "Before answering, list what you need to find out." | Open problems, planning, debugging |
| Check at the end | "Now verify your answer by a different method." | Maths, logic, code |
| Answer last | "Give the final answer on its own line starting with Answer:" | When you need to find or extract the answer easily |
Step 3: a logic puzzle with a check
Three friends, Asha, Bilal and Charu, each ordered a different drink from Brew & Bean: an espresso (₹120), a masala chai (₹90) and a cold brew (₹220). Clues:
1. Asha did not order the masala chai.
2. Bilal ordered the cheapest of the three drinks.
3. Charu did not order the cold brew.
Who ordered what? Reason step by step, listing what each clue rules out. Then check your answer against all three clues one by one and say whether each clue holds. Finally, say whether the answer is the only possible one.What to expect: Answer: Bilal has the masala chai (clue 2, the cheapest at ₹90). Charu is not cold brew (clue 3) and chai is taken, so Charu has the espresso. Asha has the cold brew. Clue 1 holds (Asha did not have the chai) and the answer is unique. If the model skips the uniqueness check, ask again.
Notice the last request: "say whether the answer is the only possible one". Models often state one answer with confidence without checking whether the clues allow another. Asking for a uniqueness check is a cheap way to catch this.
When you write your own puzzles for a model, test them first: a question with two valid answers makes any reply look right or wrong by luck.
Step 4: reasoning for decisions
Many real questions have no single correct answer. For these, ask for reasoning you can argue with: the options, the criteria, how each option scores on each criterion and what could change the result.
I need to decide: [the decision, e.g. accept a 4-month unpaid internship at a startup or do a paid certification course].
My situation: [your context: year, finances, goals, deadlines].
Do this in order:
1. List the options, including one I may not have thought of.
2. List 4-5 criteria that matter given my situation, and say which matter most.
3. In a table, rate each option against each criterion (high / medium / low) with a short reason.
4. State your recommendation and the 2 facts that, if different, would change it.
5. List what I should check myself before deciding.What to expect: A useful answer is specific to your context, shows the table, names what would change the recommendation and tells you what to verify. Treat it as a thinking aid, not a ruling.
Confident steps can still be wrong
A neat, logical-looking explanation is not proof. A model can reason fluently from a false first step, or write steps that justify an answer it already chose. Read the reasoning: is each step true? Does it follow from the one before? Check any fact or number it relies on.
Step 5: check the reasoning
A habit for important answers
- 1Ask for the steps and read them yourself, looking for the first step that is wrong or unsupported.
- 2Ask for the answer to be verified by another method (for example, estimate it, work backwards or write code).
- 3Ask the model to argue against its own answer: "What is the strongest reason this could be wrong?"
- 4Run the question again in a new chat. If the answers differ, don't trust either until you've checked.
- 5For facts, numbers and code, confirm with a reliable source or by running it.
Here is a problem and your answer.
Problem: [paste problem]
Your answer: [paste answer and steps]
Act as a strict reviewer. Check each step. List any step that is wrong, unsupported or assumes something not stated. If the answer is correct, say so and explain how you verified it.What to expect: A good reply goes through the steps one by one. Be wary if it simply says "looks correct" without checking anything; ask it to recompute the numbers.
How this comes up in interviews
Interviewers for AI-related roles ask "How do you improve an LLM's accuracy on multi-step tasks?" A good answer: ask for intermediate steps (chain-of-thought) or use a reasoning model, give worked examples in the prompt, verify with code or a second pass for calculations, and measure on a test set rather than relying on a few good runs (see *Testing and evaluating prompts*). Also mention the cost: more reasoning means more tokens, so slower and more expensive calls.
Try it: Test it on your own subject
Pick 3 problems from your syllabus or work, for example a probability question, a time-complexity analysis or a loan EMI calculation. For each, ask once with "reply with just the answer" and once with a step-by-step prompt that names the steps. Check the answers yourself against your textbook or a calculator. Note which problems improved with steps and which didn't.
Key takeaways
- Asking for steps before the answer helps on multi-step tasks (chain-of-thought), not on simple lookups.
- Naming the steps yourself works better than a bare "think step by step".
- Reasoning models do some of this internally; visible steps are still useful for checking.
- Steps make errors findable but don't prevent them: verify numbers, facts and code.
- Ask the model to verify another way, argue against itself and check whether an answer is unique.
- For decisions, ask for options, criteria, a rating table and what would change the recommendation.
Check yourself
Finishing the quiz marks the lesson as done.
1. Why does asking a model to show its working before the final answer often improve results on multi-step problems?
2. A model gives a neat step-by-step solution to your exam question. What should you do before relying on it?
3. Which prompt is stronger for the revenue problem?
4. You use a reasoning (thinking) model. How does the advice "show your steps" change?
5. The same question gives different answers in two new chats. What is the best response?
Saved on this device. Create a free account to keep it on every device.
Practise this with Sam
A real mock interview, out loud, with an honest scorecard. Free to start.