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.

Prompt

Chain-of-Thought Prompting — ChatGPT

Asking a model to "think step by step" before answering measurably improves accuracy on reasoning, math, and multi-step logic tasks because it forces the model to externalize intermediate steps instead of jumping to a guess..

Glossary

Fine-tuning

Fine-tuning continues training a pre-trained model on your own examples to specialise its behaviour. It is the right tool for teaching consistent style, format or classification behaviour — not for adding knowledge.

Glossary

Reasoning model

A reasoning model is trained to generate extended internal deliberation before answering. It trades latency and cost for substantially better performance on maths, logic, coding and multi-step problems.

Prompt

Chain-of-Thought Prompting — Claude

Asking a model to "think step by step" before answering measurably improves accuracy on reasoning, math, and multi-step logic tasks because it forces the model to externalize intermediate steps instead of jumping to a guess..

Article

Chain-of-Thought Prompting: When It Helps and When It Wastes Money

Chain-of-thought prompting improves accuracy on reasoning tasks by asking the model to work step by step. Here is why it works, where it helps most, and when it is pure overhead.

Article

GPT vs Claude vs Gemini: An Honest Comparison

A practical comparison of the three leading AI models across writing, coding, reasoning, long documents and cost — including which one to reach for on which task, and where each genuinely falls short.