Chain-of-Thought Prompting
Chain-of-thought prompting asks an AI to reason step by step before answering. Add phrases like "think through this step by step", "show your reasoning", or "break this down stage by stage" to any prompt. Works best on maths problems, multi-step decisions, logical puzzles, and analysis tasks. It measurably improves accuracy on complex reasoning without any technical setup — just a natural language instruction.
Chain-of-thought (CoT) prompting is a technique that asks AI models to reason through a problem step by step before giving a final answer. Instead of jumping straight to a conclusion, the model walks through its logic — catching errors, surfacing assumptions, and producing more accurate results on complex tasks. The technique was formally described in a 2022 Google Brain paper and has since become one of the most reliable ways to improve AI performance on reasoning, maths, and multi-step decision problems. You do not need any technical setup — it works in ChatGPT, Claude, and Gemini with a simple phrase like "think through this step by step" added to your prompt.
Last updated: May 2026
Want to put these prompts to work inside Claude Code?
The full guide to Claude Code, MCP, and hooks — free.
Ready-to-Use AI Prompts for Chain-of-Thought Prompting
Basic Chain-of-Thought Trigger
The simplest way to activate chain-of-thought reasoning — add one phrase to any prompt.
A company has 240 employees. 35% work in engineering, 25% in sales, 15% in marketing, and the rest in operations. If the company grows by 20% overall, how many people will work in operations after the growth? Think through this step by step before giving your final answer.
Business Decision with Visible Reasoning
Use CoT for high-stakes decisions where you want to see the logic before the conclusion.
I need to decide whether to raise our SaaS product price from $49/month to $69/month. Think through the implications step by step: Context: - Current: 850 paying customers at $49/month - Average monthly churn: 3.5% - Customer acquisition cost: $180 - Our main competitor charges $79/month Step through: 1) Revenue impact at different churn scenarios, 2) How price compares to competitor positioning, 3) Impact on new customer acquisition, 4) Break-even churn rate where price increase is still worthwhile, 5) Your recommendation with reasoning.
Debugging with Step-by-Step Analysis
Apply CoT to code debugging — the model finds more bugs when it reasons through the logic explicitly.
The following Python function is supposed to return the nth Fibonacci number but it has a bug. Reason through the code step by step to identify what is wrong before suggesting a fix. ```python def fibonacci(n): if n <= 0: return 0 elif n == 1: return 1 else: return fibonacci(n-1) + fibonacci(n-2) print(fibonacci(0)) # Expected: 0, Got: 0 ✓ print(fibonacci(1)) # Expected: 1, Got: 1 ✓ print(fibonacci(6)) # Expected: 8, Got: 8 ✓ print(fibonacci(-1)) # Expected: error, Got: 0 — is this correct? ``` Trace the logic step by step for each test case, then explain whether the edge case handling is correct or needs changing.
Zero-Shot CoT — The Universal Trigger
"Let's think step by step" is the most researched CoT trigger phrase — works across all major models.
A train leaves London at 09:00 travelling at 120 km/h. Another train leaves Birmingham (180 km from London) at 09:30 travelling toward London at 90 km/h. At what time do the trains meet, and how far from London? Let's think step by step.
How to Use These Prompts
Copy the Prompt
Click the "Copy Prompt" button to copy the prompt to your clipboard.
Paste in AI Tool
Paste the prompt into ChatGPT, Claude, Gemini, or your preferred AI tool.
Customize & Use
Fill in the bracketed sections with your specific information and get results!
Frequently Asked Questions
What is chain-of-thought prompting?+
Chain-of-thought (CoT) prompting is a technique that instructs an AI to show its reasoning before giving a final answer. Instead of jumping to a conclusion, the model works through intermediate steps — like showing maths workings. The technique was popularised by a 2022 Google Brain paper and consistently improves accuracy on complex reasoning tasks across ChatGPT, Claude, and Gemini.
When should I use chain-of-thought prompting?+
Use CoT for tasks involving multi-step reasoning: maths and calculation, logical puzzles, business decisions with multiple variables, debugging, and analysis that requires weighing competing factors. It adds little value for simple factual lookups or creative tasks where reasoning is not a bottleneck. The improvement is largest on tasks where the AI would otherwise skip over important intermediate steps.
What phrases trigger chain-of-thought reasoning?+
The most effective trigger phrases are: "think through this step by step", "let's think step by step", "show your reasoning before answering", "break this down stage by stage", and "explain your logic as you go". Research shows "let's think step by step" is one of the highest-performing triggers across models. You can also provide an example of reasoned output (few-shot CoT) for even stronger results.
Does chain-of-thought prompting work with all AI models?+
CoT prompting works well with large language models (GPT-4, Claude, Gemini). Smaller models benefit less because they lack the capacity to produce coherent extended reasoning chains. For best results, use CoT with the most capable model available to you. Claude responds particularly well to CoT because of its instruction-following training. GPT-4o and Gemini 1.5 Pro also show strong CoT performance.
What is the difference between zero-shot and few-shot chain-of-thought?+
Zero-shot CoT adds a simple trigger like "think step by step" without providing examples. Few-shot CoT provides 2-3 worked examples showing the reasoning pattern you want before your actual question. Few-shot CoT consistently produces more reliable and structured reasoning but requires more prompt writing. For most everyday tasks, zero-shot CoT ("think step by step") is sufficient. Use few-shot CoT when you need a specific reasoning structure or format.
Official Resources & Documentation
Explore More AI Prompt Use Cases
Art Styles for AI Prompts
Choosing the right art style is the single biggest factor in getting consistently great AI images. T...
How to Write Effective AI Prompts
Master the art of writing effective AI prompts that produce consistently better results. Our expert ...
AI Prompts for Business
Leverage AI to enhance your business operations with our curated collection of effective prompts. Fr...
Midjourney AI Prompts
Create stunning AI-generated artwork with our collection of effective Midjourney prompts. Learn expe...
AI Image Prompts
Create stunning AI-generated images with our collection of effective prompts and techniques. Whether...
AI Art Prompts
Create stunning AI-generated artwork with our collection of effective prompts and techniques. From d...