Chain-of-thought prompting: why "let's think step by step" works
Chain-of-thought prompting means asking an AI to work through a problem step by step before giving its answer. Adding a phrase like "Let's think step by step" can make models noticeably better at maths, logic and multi-step problems, because the answer is built from visible reasoning instead of a single guess.
What the research found
In 2022, researchers (Kojima et al.) showed that adding "Let's think step by step" to a question, with no examples at all, lifted a GPT-3-family model's accuracy on a school-style maths benchmark called MultiArith from 17.7% to 78.7%. Earlier work by Wei et al. introduced chain-of-thought prompting using worked examples. Results depend on the model and the task, but the idea held up widely.
How to use it
[Your problem]. Think through this step by step and show your working. Then give the final answer on its own line, starting with "Answer:".
Separating the steps from the final answer makes the result easy to scan and easy to check.
When it helps most
- Maths, budgets and anything with several calculations.
- Logic puzzles and "which option is best and why" decisions.
- Planning tasks with dependencies.
- Debugging: ask the AI to explain what each part does before suggesting a fix.
Limits to keep in mind
- Newer "reasoning" models already think before answering, so the extra phrase may add little. Test it on your tool.
- Step-by-step text can look convincing and still contain a wrong step. Read the steps, not just the answer.
- For simple questions it only makes the answer longer.
You can combine it with examples: see few-shot prompting. For the basics, read how to write a good AI prompt.
Frequently asked questions
What does "Let's think step by step" do?
It nudges the model to write out its reasoning before answering. For multi-step problems this often improves accuracy.
Is chain-of-thought prompting still needed?
Less than before. Many current models reason by default, but asking for steps still helps you check the work.
Can the steps be wrong even if they look logical?
Yes. Always check each step, especially numbers and facts.