# Chain of Thought (CoT)

- **Canonical URL:** https://getaimath.com/dictionary/chain-of-thought-cot/
- **Topics:** [LLM Fundamentals](https://getaimath.com/dictionary/category/llm-fundamentals/), [Emerging AI Concepts & Research](https://getaimath.com/dictionary/category/emerging-ai-concepts-and-research/)
- **Also called:** Chain of Thought
- **Last updated:** 2026-11-25

## What is Chain of Thought (CoT)?

**In one sentence:** Chain of Thought is when an AI works through a problem step by step in writing before giving its final answer.

Instead of jumping straight to an answer, the model writes out its reasoning, like showing your work in math class. This often helps it solve harder problems, because each small step is easier than one giant leap. You can ask for it in a prompt, and some models do it automatically.

![How ChatGPT & Claude Talk: Super-Powered Autocomplete — Simple cartoon diagram showing a sentence chopped into Lego word blocks (tokens), an AI brain weighing the odds of the next word ("mat" 75%, "couch" 18%, "roof" 5%), and snapping "mat" onto the end of the sentence.](https://getaimath.com/diagrams/llm-fundamentals.png)
*Napkin Diagram (LLM Fundamentals): Language models don’t plan whole essays at once—they play a super-smart game of "guess the very next word" over and over.*

## What is an example of Chain of Thought (CoT)?

Asked "If I have 3 bags with 4 apples each and eat 2, how many are left?", the model writes "3 × 4 = 12, 12 − 2 = 10" before answering 10.

## Why does Chain of Thought (CoT) matter?

Step-by-step reasoning makes models better at math, logic and planning, and easier to check.

## Related Concepts

- [Few-shot Prompting](https://getaimath.com/dictionary/few-shot-prompting/): Few-shot prompting is giving an AI a handful of examples in the prompt before asking it to do the task.
- [Temperature](https://getaimath.com/dictionary/temperature/): Temperature is a setting that controls how random or creative a model's answers are.
- [Latent Reasoning](https://getaimath.com/dictionary/latent-reasoning/): Latent reasoning is when a model reasons inside its hidden states instead of writing its thoughts out as text.
- [Parallel Reasoning](https://getaimath.com/dictionary/parallel-reasoning/): Parallel reasoning is when a model explores several lines of thought at the same time and then combines or picks the best.
- [One-shot Prompting](https://getaimath.com/dictionary/one-shot-prompting/): One-shot prompting is asking an AI to do a task after showing it exactly one example.
- [Top-K Sampling](https://getaimath.com/dictionary/top-k-sampling/): Top-K sampling means the model only chooses the next token from its K most likely options.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/chain-of-thought-cot/)
