← Glossary · Behavior

chain of thought

Technique

Fact-checked Aug 3, 2026

Also called: chain of thought prompting, CoT prompting, CoT

A technique that encourages AI models to show their step-by-step reasoning process, much like a human thinking aloud, to solve complex problems more accurately.

What is chain of thought?

Chain of Thought (CoT) is a prompting technique used to improve the ability of large language models (LLMs) to handle complex reasoning tasks. Instead of just asking for a direct answer, CoT prompting encourages the model to break down the problem into intermediate steps and explain its reasoning along the way, much like a student showing their work on a math problem.

Traditionally, LLMs could struggle with multi-step problems, often jumping to an incorrect final answer even if they understood individual components. Chain of Thought prompting addresses this by giving the model a mental roadmap. By generating these intermediate steps, the model has more opportunities to correct itself and connect disparate pieces of information, leading to more accurate and reliable solutions.

This technique is often implemented by adding phrases like "Let's think step by step" to a prompt. Developers might also provide a few example answers where the model *does* show its reasoning, known as few-shot CoT prompting. This primes the model to adopt a similar step-by-step approach for new, related questions. For instance, if you ask a model, "If John has 5 apples, eats 2, then buys 3 more, how many does he have?" a CoT response would be: "John starts with 5 apples. He eats 2, so 5 - 2 = 3 apples. He then buys 3 more, so 3 + 3 = 6 apples. John has 6 apples."

You'll encounter Chain of Thought in advanced AI applications, especially where LLMs are used for logical reasoning, mathematical problem-solving, or intricate planning. It's a key method for making AI systems more transparent and trustworthy in their decision-making process. While powerful, a common misconception is that CoT guarantees correctness. It doesn't. The model's reasoning steps can still contain errors, leading to a wrong final answer, even if the process looks logical. It also requires the model to generate more text, which can make it slower and more expensive to use.

Common questions

How does chain of thought work?

Chain of Thought (CoT) is a prompting technique used to improve the ability of large language models (LLMs) to handle complex reasoning tasks. Instead of just asking for a direct answer, CoT prompting encourages the model to break down the problem into intermediate steps and explain its reasoning along the way, much like a student showing their work on a math problem.

What else is chain of thought called?

chain of thought is also referred to as chain of thought prompting, CoT prompting, CoT.

Learn AI in 5 minutes a day.

Daily Deck explains terms like chain of thought as part of a free seven-card daily brief. No jargon. No fluff.

Start free