# Chain of thought

> Canonical: https://skillalmanac.com/glossary/chain-of-thought | Last verified: 2026-11-25 | Index status: index-eligible

Chain of thought is a prompting technique in which a language model writes out intermediate reasoning steps before its final answer. A 2022 paper by Wei and colleagues reported that it improved results on arithmetic, commonsense and symbolic reasoning tasks.

Also called: chain of thought prompting, CoT prompting, chain-of-thought reasoning, CoT, chain-of-thought prompting, think step by step.

## In plain language

Chain of thought means getting an AI to show its working. You ask it to explain a problem step by step instead of jumping to an answer, much as a teacher asks a student to show their work. For a question such as splitting a bill with a discount and a tip, the written steps give the AI a chance to handle each part in turn. It can help on multi-step problems, but there are limits. IBM warns that the steps can sound convincing and still lead to a wrong conclusion, so the written steps are not proof. Requested written steps can increase output tokens and latency; charges depend on the model, service and plan. They need not reveal the process that actually produced the answer.

## Technical definition

Chain-of-thought prompting adds intermediate reasoning steps to the prompt or to the requested output. In the original technique, described by Wei et al. (arXiv 2201.11903, first submitted in January 2022), the prompt includes exemplars of reasoning steps, which the abstract calls chain-of-thought prompting, and the model then writes similar steps for a new question. The paper reports gains on arithmetic, commonsense and symbolic reasoning tasks. A zero-shot variant, described by IBM, uses an instruction such as asking the model to explain step by step, without examples. The steps are ordinary generated tokens, so they use context and output budget and can contain errors that the final answer then relies on.

## How it shows up when you use agents

A coding agent may show a plan, hypotheses or an explanation, but these are not automatically the classic chain-of-thought prompting technique or faithful records of its reasoning. Classic CoT uses demonstrations of intermediate steps; a zero-shot variant requests steps without demonstrations. Some [reasoning models](/glossary/reasoning-model) handle reasoning internally and do not expose it as ordinary reply text. For the wider craft of wording instructions, see [prompt engineering](/glossary/prompt-engineering).

What breaks when it is misunderstood: people read a tidy explanation as evidence that the answer is correct. IBM warns about reasoning paths that sound convincing but reach false conclusions, and a wrong early step is carried into every step after it. Visible steps consume output tokens, but whether requesting them helps, adds latency or changes charges depends on the model, task and plan.

Next action: check the model's guidance and test whether worked examples or a request for intermediate calculations helps your task. Verify the outcome separately: run tests, re-compute numbers or read the diff. A debugging evidence ledger is an adjacent verification aid; its linter checks recorded experiment fields, not reasoning correctness or private thought. A model that lacks the facts can still invent them in its steps, which is a [hallucination](/glossary/hallucination).

## Common confusions

- **Chain of thought versus a reasoning model.** Chain of thought is a prompting technique, described in a 2022 paper. A reasoning model is a model that produces intermediate steps as part of how the vendor built and serves it. See [Reasoning model](/glossary/reasoning-model).
- **Chain of thought versus prompt chaining.** IBM distinguishes chain of thought, which elicits steps within one prompt, from prompt chaining, which sends several prompts in sequence.
- **Few-shot versus zero-shot.** The original technique includes worked examples in the prompt. The zero-shot variant relies on an instruction alone. See [Few-shot prompting](/glossary/few-shot-prompting).
- **Myth.** The shown steps are the real reason for the answer. They are generated text that can read well and still be wrong, so check results rather than the explanation.

## Worked examples in this catalogue

### [prompt-writing](https://skillalmanac.com/skills/skill-almanac/prompt-writing)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Hypothetical preparation of an arithmetic-app prompt with worked examples that show intermediate calculations before a final answer. No model is run here.

Why it exercises the concept: Worked reasoning demonstrations illustrate classic few-shot CoT. The skill can structure the prompt and its evaluation plan; linting the prompt does not establish correct or faithful reasoning.

## Related terms

- [Prompt engineering](https://skillalmanac.com/glossary/prompt-engineering.md)
- [Reasoning model](https://skillalmanac.com/glossary/reasoning-model.md)
- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)
- [Few-shot prompting](https://skillalmanac.com/glossary/few-shot-prompting.md)
- [Token](https://skillalmanac.com/glossary/token.md)
- [AI hallucination](https://skillalmanac.com/glossary/hallucination.md)
- [Tree of thoughts (ToT)](https://skillalmanac.com/glossary/tree-of-thought.md)

## Sources

- [Chain-of-Thought Prompting Elicits Reasoning in Large Language Models](https://arxiv.org/abs/2201.11903), arXiv (Wei et al.) (accessed 2026-11-23)
- [What is chain of thought (CoT) prompting?](https://www.ibm.com/think/topics/chain-of-thoughts), IBM (accessed 2026-11-23)
- [Prompting best practices (Thinking section)](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices), Anthropic (Claude Platform Docs) (accessed 2026-11-25)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
