2026-10-21 · 2 min read · AI Prompts Online Team
Chain-of-Thought Prompting Examples: When Step-by-Step Helps
Chain-of-thought prompting examples for math, logic, planning, and analysis, plus when to skip it with reasoning models and how to keep answers short.

Chain-of-thought prompting examples show a simple idea: when a problem has several steps, asking the model to work through them before answering reduces mistakes. It's most useful on non-reasoning models and on tasks where you want to audit the logic.
Zero-Shot Version
[Problem]
Work through this step by step, then give the result on a final line starting with "Answer:".
Math Example
A shop sells notebooks at $3 each or 4 for $10. I need 14 notebooks. What is the cheapest total?
Reason step by step, then "Answer:".
A good response compares 3 packs + 2 singles ($36) with other combinations and lands on $36. Without the step-by-step request, older models often just multiply or divide wrongly.
Planning Example
I need to move offices in 3 weeks: notify clients, transfer internet, pack, hire movers.
List dependencies first, then build a schedule that respects them.
Asking for dependencies first is chain-of-thought dressed as structure.
Analysis Example
Here are Q2 and Q3 numbers: [..]. First list what changed, then possible causes for each
change, then which causes the data can and can't support. Then a 3-sentence summary.
Self-Check Variant
Solve the problem. Then check your answer by a different method. If the two disagree, find the error.
When to Skip It
| Situation | Use CoT? |
|---|---|
| Multi-step math/logic on standard models | Yes |
| Reasoning models (o-series, extended thinking) | Usually no |
| Simple lookups, rewrites, translation | No |
| You need to audit the logic | Yes |
Combine with demonstrations in few-shot prompting examples, and put the "Answer:" convention into your system prompt when building apps.
FAQ
What is chain-of-thought prompting?
Asking the model to work through intermediate steps before giving an answer. It tends to help on multi-step math, logic, and planning problems.
Do I need chain-of-thought with reasoning models?
Usually not. Models built to reason internally already do it; telling them to 'think step by step' adds little and can make answers longer. Focus on stating the problem and success criteria clearly.
How do I get the reasoning but a short final answer?
Ask for the reasoning first and then a clearly labeled final answer line, for example 'Final answer: ...', so you or your code can extract it.
Frequently asked questions
- What is chain-of-thought prompting?
- Asking the model to work through intermediate steps before giving an answer. It tends to help on multi-step math, logic, and planning problems.
- Do I need chain-of-thought with reasoning models?
- Usually not. Models built to reason internally already do it; telling them to 'think step by step' adds little and can make answers longer. Focus on stating the problem and success criteria clearly.
- How do I get the reasoning but a short final answer?
- Ask for the reasoning first and then a clearly labeled final answer line, for example 'Final answer: ...', so you or your code can extract it.
Related articles
Ready to generate a prompt?
Use our free tools to build copy-ready prompts for any model and category.