Key Takeaway
Chain-of-thought (CoT) prompting asks the AI to show its working before giving a final answer. This simple technique dramatically improves accuracy on complex reasoning, maths, logic, and multi-step problems.
What Is Chain-of-Thought Prompting?
Chain-of-thought prompting is a technique where you ask an AI model to reason through a problem step-by-step before producing a final answer. Instead of jumping straight to a conclusion, the model works through intermediate reasoning steps — just like a human would when solving a maths problem on paper.
The concept was popularised by Google researchers in 2022. They found that simply adding “Let’s think step by step” to a prompt could improve accuracy on maths benchmarks by over 40 percentage points. The technique works because it forces the model to decompose complex problems into manageable parts.
Why Chain-of-Thought Works
Large language models predict the next token based on everything that came before. When a model writes out its reasoning, each step becomes part of the context for the next step. This creates a scaffold that keeps the model on track.
Without CoT, the model has to make a massive logical leap from question to answer in a single step. With CoT, it breaks that leap into smaller, more reliable jumps. The result is fewer errors, more consistent outputs, and the ability to solve problems that would otherwise fail.
Think of it this way: asking someone to multiply 47 × 83 in their head is hard. Giving them paper to write out the working makes it easy. CoT is that paper for AI.
Zero-Shot Chain-of-Thought
The simplest form of CoT requires no examples at all. You simply add an instruction like “Think step by step” or “Show your reasoning” to your prompt. This is called zero-shot CoT because you provide zero examples of the desired reasoning format.
Think through this step by step before giving your answer.
This simple addition typically improves accuracy on reasoning tasks by 20–50%, depending on the complexity of the problem.
Few-Shot Chain-of-Thought
Few-shot CoT provides one or more examples of the reasoning process you want. You show the model what good step-by-step reasoning looks like, then give it a new problem to solve in the same way.
This is more reliable than zero-shot because the model has a concrete template to follow. It is especially useful for domain-specific problems where the reasoning pattern might not be obvious.
The tradeoff is that few-shot prompts are longer and require you to write out example reasoning chains. For most business use cases, zero-shot CoT is sufficient.
When to Use Chain-of-Thought
CoT shines on tasks that require multi-step reasoning. Use it for:
- Maths and numerical calculations
- Logic puzzles and deduction
- Multi-step analysis (e.g., evaluating pros and cons)
- Complex decision-making with multiple factors
- Code debugging and problem diagnosis
- Any task where the “why” matters as much as the “what”
You do not need CoT for simple factual questions, creative writing, or tasks where the answer does not require logical reasoning. Adding it unnecessarily makes responses longer without improving quality.
Common CoT Patterns
Beyond the basic “think step by step” instruction, several CoT variations have proven effective:
- Structured decomposition: “Break this into sub-problems, solve each one, then combine for a final answer.”
- Pros and cons: “List arguments for and against, then weigh them to reach a conclusion.”
- Verify and correct: “Solve the problem, then check your work and correct any errors.”
- Multiple approaches: “Solve this two different ways and compare the results.”
Each pattern suits different types of problems. Experiment to find what works best for your specific use case.
Combining CoT with RCTF
Chain-of-thought works brilliantly alongside the RCTF framework. Use RCTF to structure your prompt (Role, Context, Task, Format) and add a CoT instruction within the Task component.
Context: A startup is choosing between two pricing models.
Task: Analyse both models. Think through each step of your analysis explicitly before reaching a recommendation.
Format: Show your reasoning, then a summary table, then your final recommendation.
The combination of structured prompting (RCTF) and explicit reasoning (CoT) consistently produces the highest-quality outputs across business and analytical tasks.
Want to Go Deeper?
Chain-of-thought is covered in depth in Module 3 of the Mastering AI Tools course, alongside zero-shot CoT, self-consistency, and tree-of-thought techniques.
Explore the Course