What Is Chain-of-Thought? The Key to Better AI Reasoning
Chain-of-thought prompting helps AI models reason step by step for more accurate, transparent answers. Here's how it works and how to use it.
Chain-of-thought prompting helps AI models reason step by step for more accurate, transparent answers. Here's how it works and how to use it.
Asking an AI model a tricky question and getting a confidently wrong answer reveals one of the biggest limitations of large language models: they sometimes jump straight to a conclusion without actually working through the problem. Chain-of-thought (CoT) is the fix that changed how we prompt, train, and even build modern AI systems.
In this guide, we'll break down what chain-of-thought actually means, why it matters, how it evolved from a clever prompting trick into a built-in feature of today's reasoning models, and how you can use it in your own prompts to get noticeably better results.
Chain-of-thought is a technique where an AI model generates intermediate reasoning steps before arriving at a final answer, instead of jumping directly from question to conclusion. Think of it as the difference between a student who blurts out an answer and one who shows their work on scratch paper.
The idea was formally introduced by researchers at Google in a 2022 paper, where they showed that if you give a language model a few examples of step-by-step reasoning, it can dramatically outperform models that just answer directly, especially on tasks like grade-school math problems, logic puzzles, and multi-step word problems.
Here's a simple way to see the difference:
A store had 150 cartons of eggs. They sold 35 on Monday and received 60 more on Tuesday. How many cartons do they have now?" → Answer: "175
A store had 150 cartons of eggs. They sold 35 on Monday and received 60 more on Tuesday. How many cartons do they have now? Let's think step by step." → "They start with 150 cartons. After selling 35, they have 150 - 35 = 115. After receiving 60 more, they have 115 + 60 = 175. So the answer is 175 cartons.
Both examples land on the same number here, but as problems get more complex, the reasoning model is far more likely to catch its own mistakes along the way, and you get a transparent trail you can actually check.
Chain-of-thought isn't just about getting the right answer. It also gives you visibility into how the model got there, which matters a lot when you're using AI for anything with real stakes, like financial analysis or medical information.
Large language models predict text one token at a time, based on everything that came before it. That means the more relevant reasoning a model has already written out, the better positioned it is to predict the next correct step. Skipping straight to an answer forces the model to compress a lot of reasoning into a single guess, which is where errors creep in.
Chain-of-thought helps in a few concrete ways:
This last point has become especially important as AI gets used in higher-stakes domains. As one Forbes contributor put it, chain-of-thought lets us start opening the black box of how models arrive at their conclusions, which matters enormously in fields like healthcare, finance, and legal services where every decision needs to be explainable and auditable.
When CoT first emerged, it was purely a prompting trick. You'd literally add a phrase like "let's think step by step" to your prompt, and the model would produce noticeably better output. This zero-shot version of the technique, introduced not long after the original CoT paper, showed that you didn't even need worked examples. The magic phrase alone was often enough to unlock better reasoning.
Fast forward to today, and the landscape looks quite different. Reasoning has moved from being something you had to coax out of a model through clever prompting, to something that's built directly into how modern models operate. TechCrunch's own AI glossary describes chain-of-thought as a technique that lets large language models break down a problem into intermediate steps to improve the quality of the final result, and notes that reasoning models are now trained through reinforcement learning specifically to think this way by default.
That shift toward built-in reasoning is part of a broader industry move. As AI companies look past raw scaling toward new architectures and more targeted deployments, TechCrunch has reported that the field is moving from hype to pragmatism, with more attention going toward how models actually reason and operate rather than simply how large they are.
Here's a quick comparison of how CoT has shown up across different eras of AI development:
| Era | How CoT Worked | Example |
|---|---|---|
| Early prompting (2022) | Manually added few-shot examples of step-by-step reasoning | Providing 2-3 worked math problems before the real question |
| Zero-shot CoT | Adding a trigger phrase to the prompt | "Let's think step by step" |
| Reasoning models (today) | Reasoning happens internally by default, often with a controllable depth or budget | Extended thinking modes, reasoning effort dials |
| Distilled reasoning models | Smaller models fine-tuned on reasoning traces from larger models | Open-weight models trained to mimic frontier-level reasoning at lower cost |
This is one of the most common questions people have once they hear that modern models already "reason" on their own. The honest answer is: it depends on the model and the task.
Many of today's frontier models have reasoning built in and will think through a problem internally before responding, even without being asked to. In these cases, explicitly telling the model to "think step by step" can sometimes be redundant, or even slightly counterproductive, since it may interfere with a reasoning process the model already runs on its own.
That said, explicit chain-of-thought prompting still has a place, especially when:
If you're using a modern reasoning-enabled model, try adjusting its thinking depth or reasoning effort setting first before layering on manual chain-of-thought instructions. You'll often get better results with less prompt engineering.
Not every task benefits equally from step-by-step reasoning. Here's a general breakdown:
| Task Type | Benefits from CoT? | Why |
|---|---|---|
| Math word problems | Yes, strongly | Requires tracking multiple calculations in sequence |
| Logical reasoning / puzzles | Yes, strongly | Needs careful, ordered deduction |
| Multi-step planning | Yes | Breaking down dependencies avoids skipped steps |
| Code debugging | Yes | Walking through logic surfaces edge cases |
| Simple factual questions | Rarely | Direct answers are usually just as accurate and much faster |
| Creative writing | Sometimes | Can help with structure, but may slow down natural flow |
Adding chain-of-thought instructions to a task that doesn't need them can actually add unnecessary latency and token cost without improving quality. It's worth testing both approaches for your specific use case.
If you're working with a model that benefits from explicit CoT prompting, here's a reusable template you can adapt for almost any multi-step task.
You are solving the following problem: {{problem_description}}
Think through this step by step before giving your final answer. Show your reasoning for each step, and clearly label your final answer at the end.
Constraints or context to consider:
{{relevant_constraints}}
Here's what that looks like filled in with a real example:
You are solving the following problem: A marketing team has a budget of $12,000 for the quarter. They spend $3,500 on ads in month one, $4,200 in month two, and want to know how much is left for month three if they also need to reserve $1,000 for an unexpected contingency.
Think through this step by step before giving your final answer. Show your reasoning for each step, and clearly label your final answer at the end.
Constraints or context to consider:
The contingency reserve must be set aside before calculating the remaining spend budget.
This structure works well because it does three things: it gives the model a clear problem, it explicitly asks for visible reasoning, and it tells the model exactly how to format the final answer so you're not left digging through a wall of text to find it.
Even a good technique can be misused. Here are a few pitfalls worth avoiding:
When debugging a wrong answer, ask the model to walk back through its own reasoning and identify where it might have gone wrong. This "self-critique" step often catches errors that the first pass missed.
It's tempting to assume that because a model shows its reasoning, that reasoning is a perfectly accurate window into how it actually reached its answer. Researchers have pushed back on this assumption, noting that a chain-of-thought explanation can be logically consistent and still not fully match the model's real internal computation.
That distinction matters if you're using CoT output for high-stakes decisions. Treat the reasoning chain as a genuinely useful diagnostic tool, one that helps you catch errors and understand the model's approach, rather than as a guaranteed, complete account of what happened under the hood.
Here are a few real-world scenarios where chain-of-thought prompting or reasoning-enabled models tend to shine:
Chain-of-thought started as a simple prompting trick, a way to nudge a language model into showing its work instead of guessing. Today, it has grown into a foundational part of how modern AI reasons, whether that reasoning is triggered explicitly through your prompt or happens automatically inside the model itself.
Whether or not you need to manually prompt for it depends heavily on which model you're using and what the task demands. But understanding how chain-of-thought works, and when it genuinely helps, is one of the most useful things you can learn if you want to get more reliable, transparent results out of AI.
1. Is chain-of-thought the same as a model "thinking"?
Not exactly. Chain-of-thought is a visible sequence of reasoning steps the model produces, but it isn't necessarily a perfect representation of every internal computation happening behind the scenes.
2. Do I need to add "think step by step" to every prompt?
No. Many modern reasoning models already do this internally. Manually adding the phrase is most useful for smaller or non-reasoning models, or when you specifically want the reasoning steps visible in the output.
3. Does chain-of-thought slow down responses?
Yes, generally. Producing intermediate reasoning steps takes more tokens and time than a direct answer, so it's best reserved for tasks that actually benefit from it.
4. Can chain-of-thought eliminate hallucinations completely?
No, but it typically reduces them. Breaking a problem into smaller steps makes it easier for the model to catch inconsistencies, though it's not a perfect safeguard.
5. What's the difference between chain-of-thought and reasoning models?
Chain-of-thought is the technique of producing step-by-step reasoning. Reasoning models are AI systems specifically trained to do this automatically and extensively, often with a controllable depth, rather than needing to be prompted for it.

Evaluation, Robustness & Prompt Security: Building Trustworthy AI Prompts

Iterative Prompt Refinement: How to Test, Debug & Improve AI Prompts

10 Essential Prompt Testing Methods to Optimize AI & LLM Outputs

Claude XML Tags: Improve Prompt Accuracy and Structure

Best Prompt Frameworks for AI in 2026 (With Templates & Examples)