The Trick Behind the Trick
Chain-of-thought prompting is the practice of asking an AI model to work through a problem in explicit, visible steps before giving its final answer, rather than jumping straight to a conclusion. The approach was formalized in a 2022 Google research paper that showed something surprising: simply adding a phrase like “let’s think step by step,” or showing the model a worked example with its reasoning spelled out, measurably improved accuracy on math word problems and logic puzzles, in some cases more than doubling the correct-answer rate compared to asking for a direct answer.
What Changes When You Ask for Steps
Language models generate text one piece at a time, using everything written so far to predict what comes next. When you force the model to write out intermediate reasoning, each step becomes additional context that the next step can build on and check against. A direct-answer prompt asks the model to essentially guess the destination in one leap. A chain-of-thought prompt breaks that leap into a walkable path, which gives the model more opportunities to catch an inconsistency and course-correct before committing to a final answer.
When It Helps, and When It Doesn’t
Chain-of-thought shows its biggest gains on tasks with multiple steps that depend on each other: multi-step arithmetic, logic puzzles, planning tasks, and multi-part analysis. It tends to add little or even slow things down on simple factual lookups or single-step questions, where there’s no real reasoning chain to walk through. It’s also worth knowing that the written-out reasoning isn’t a perfect window into what the model is “actually thinking,” research has found cases where the stated steps don’t fully match the internal computation, so treat the visible reasoning as a useful scaffold and a way to check the answer, not as a guaranteed audit trail.
How to Use It in Your Own Prompts
You rarely need to engineer this yourself anymore: modern reasoning-focused models already do a version of step-by-step thinking internally by default. For everyday prompts to standard chat models, three habits still help. First, explicitly ask the model to show its reasoning before the final answer on anything with more than one logical step. Second, for a task you do repeatedly, give one worked example showing the steps you want followed, known as few-shot chain-of-thought. Third, if an answer looks off, ask the model to double-check its own steps rather than just re-asking the original question, which often surfaces the exact point where the reasoning went wrong.