PromptForge
AI Glossary

Prompting techniques

Chain-of-thought prompting

Also known as: cot, chain of thought, step by step prompting

Definition

Chain-of-thought prompting asks a model to work through its reasoning step by step before answering. It measurably improves accuracy on maths, logic, and multi-step problems by forcing intermediate steps instead of an immediate guess.

The technique can be as simple as appending "think step by step" to a question. The effect is real and well documented: on multi-step reasoning benchmarks, chain-of-thought prompting can lift accuracy substantially compared to asking for the answer directly.

The mechanism is that generating intermediate steps gives the model more computation to work with, and lets each step condition on the previous one. Asked for an answer immediately, the model must produce it in a single forward pass; asked to reason, it can decompose.

Use it for arithmetic, logic puzzles, debugging, and decisions with multiple competing criteria. Skip it for simple factual lookup and short creative tasks, where it adds latency and cost without improving the answer. Newer reasoning models do this internally, making explicit instruction less necessary.

Example

"Product A costs $340 and lasts 2 years. Product B costs $610 and lasts 4 years. Which has the better cost per year? Think step by step, show your maths, then give a one-line recommendation."

Related terms

Put this into practice

Understanding the term is step one. Our free courses and tools let you actually use it.