1. Home
  2. Glossary
  3. Chain-of-thought prompting
AI glossary · Prompting

Chain-of-thought prompting

Chain-of-thought prompting: Chain-of-thought prompting asks an AI model to work through a problem step by step before giving its final answer. Showing its reasoning tends to improve accuracy on math, logic, and multi-step tasks and makes mistakes easier to spot.

A language model produces its answer one token at a time, and it cannot go back and revise. If you ask for a final number directly, it has to commit before it has 'thought.' Asking it to lay out intermediate steps first gives it room to work, and the final answer is conditioned on that work.

The technique was described by Google researchers in a 2022 paper (Wei and colleagues, 'Chain-of-Thought Prompting Elicits Reasoning in Large Language Models'). The simplest form is adding 'think step by step' or 'show your reasoning before the answer.' Richer versions give the model an explicit procedure to follow.

Newer reasoning models do this on their own, spending extra time working through a problem before responding, so you may not need to ask. The habit is still valuable: a visible chain of reasoning is the easiest thing to check when the stakes are high, and it exposes wrong assumptions that a bare answer would hide.

Example at work

A financial analyst asks: 'Before recommending a lease-versus-buy option, list the assumptions you are making, calculate the five-year cost of each option showing each step, then state your recommendation and the one assumption that would flip it.' The visible math lets her catch that the model applied the wrong discount rate.

Why it matters

For anything involving numbers, multi-step logic, or policy interpretation, asking for the reasoning is cheap insurance. You get better answers and, more importantly, a trail you can audit before you act on them.

Related terms