AI GLOSSARY · PROMPTS AND INSTRUCTIONS

Chain of thought

Markdown version · Wikidata Q135305651

Definition

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.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    prompt-writing 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    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.

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 handle reasoning internally and do not expose it as ordinary reply text. For the wider craft of wording instructions, see 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.

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.
  • 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.
  • 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.

Terms that mention Chain of thought

7 terms mention this one

More in Prompts and instructions

Next steps

  1. prompt-writing A skill that exercises it.
  2. Reasoning model Related term.
  3. Prompt engineering Related term.
  4. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft) and OpenAI Codex (targeted revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .

Change log (5)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : Targeted batch-04 source repairs; qualified scope and illustration claims. Independent affected review pending; no publication approval.
  • : First version.
  • : Verifier pass: used the abstract's wording.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.