# What Is Chain-of-Thought Prompting?

> What chain-of-thought prompting is, when it helps, when it usually adds cost, and whether newer models still need it, explained simply for your AI interview.

**In short:** Chain-of-thought prompting asks a model to write out its intermediate reasoning steps before the final answer. It helps on multi-step problems, but on one-step jobs it usually just adds cost. Some newer reasoning models already reason inside, so test it on your task.

AI and LLM interview question Q078, Prompt and context engineering. Intermediate, very common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/what-is-chain-of-thought-prompting

## Say it in 30 seconds

Chain-of-thought means asking the model to write out its steps before the final answer. It is like a claims adjuster who shows the working on the file, so a checker can follow each step. It helps on multi-step problems, such as a payout with a limit and an excess. On a simple lookup it usually just adds cost. Some newer reasoning models already reason inside, so I test it on my own task first.

## Say it in 2 minutes

Chain-of-thought prompting asks a model to write its intermediate reasoning steps before it gives the final answer. Jason Wei and colleagues described the method in a 2022 paper. In their work, a few worked examples in the prompt showed the steps, and the model copied that pattern on a new question. The paper reported gains on arithmetic, commonsense and symbolic reasoning tasks.

It helps when a problem has several linked steps. Take a motor insurer's claims bot working out a payout: a repair bill, a hire car limit and an excess that comes off the total. Asked for the figure alone, a model can add everything and overpay. Asked to show its steps, it can apply the limit first and reach the right figure. The steps also give a human reviewer something to check.

It does not suit every task. As a rule of thumb, a one-step job such as a label or a short lookup usually gets nothing back for the extra steps, which add output, time and cost. The authors' 2022 Google blog found the benefit appeared only at a large enough model size, so a small model may gain nothing.

For newer models the advice has changed. OpenAI says its reasoning models reason internally, so asking them to think step by step is unnecessary. Anthropic says a general instruction such as "think thoroughly" often produces better reasoning than a hand-written step-by-step plan. So I test with and without the steps, and score the final answers.

## What is chain-of-thought, in plain words?

A language model writes its answer one piece at a time. Chain-of-thought prompting asks it to write the middle steps too, so the final answer comes at the end of the working.

Each step is an intermediate step: a small piece of reasoning that the next one builds on. For a payout, the policy limit (the most the policy pays for one item) comes first, then the total, then the deduction (the excess, the part the customer pays itself).

Picture a claims adjuster (the person who works out what an insurer pays) writing the working on the file: the policy limit, then the sum, then the excess. A senior checker can follow it and spot a slip. A file with only a total gives them nothing to check. The steps give a model's answer a trail a reviewer can read, but that trail is not a guaranteed record of how the model got there. The next section works through a real case.

- **Chain of thought:** The written steps the model produces before its final answer.
- **Intermediate step:** One small piece of reasoning that the next step uses.
- **Few-shot example:** A worked example placed in the prompt, so the model can copy its shape.
- **Reasoning model:** A model trained to work through steps internally before it answers.

## How does chain-of-thought prompting work?

The 2022 paper put a few worked examples in the prompt. Each example showed its steps before its answer, and the model copied that shape on the new question. The authors described the core idea this way, and their May 2022 Google blog post put it the same way:

> "a few chain of thought demonstrations are provided as exemplars in prompting" (Jason Wei and colleagues, 2022 paper)
>
> "enables models to decompose multi-step problems into intermediate steps" (Jason Wei and Denny Zhou, Google Research blog, May 2022)

1. **Write a worked example with the steps shown:** One problem, each step written out, then the answer.
2. **Ask the real question in the same shape:** The model copies the pattern: steps first, answer last.
3. **Read the answer after the steps:** Your code takes the last line as the answer and keeps the steps for review.

Here is what that looks like on a real job. A motor insurer's claims bot is asked what to pay. The facts are a $2,140 repair bill, a $180 hire car claim with a $150 policy limit, and a $250 excess that the customer pays. The chart shows both answers side by side.

*Diagram, Same claim, two ways to answer: Both paths start from the same claim facts. The top path adds everything in one jump and pays $2,070, which overpays by $30. The bottom path applies the hire car limit, adds the repair bill, takes off the excess and pays $2,040.*
1. One jump to a total, with no working shown.
2. The full $180 hire car goes into the total.
3. The policy limit is applied before anything is added.
4. The capped $150 joins the repair bill.
5. The $250 excess comes off the total.
6. That figure is what the customer is paid.

Asked for the figure alone, the bot may add everything and overpay. Asked for the working, it applies the $150 limit, makes $2,290, takes off $250 and pays $2,040. The working is also what the claims handler checks.

> **Tip:** Keep the steps for the reviewer, but check the total in code against the policy rules. A check in code catches a slip that the steps did not flag.

## When does it help, and when does it not?

- **Helps: Several linked steps.** Payouts with limits, rule checks and planning. Each step feeds the next one.
- **Usually adds cost: One-step jobs.** Labels, lookups and short facts. As a rule of thumb the extra steps add cost, so test first.
- **Needs scale: Small models may gain less.** In 2022, the authors' Google blog found the benefit appeared only at a large enough model size. Measure on the model you run.

The rule of thumb is simple. If the answer depends on several earlier results, ask for the steps. If it is one lookup or one label, leave the steps out and check the cost first.

## Do newer models still need it?

It depends on the model. OpenAI's guidance for its reasoning models is direct:

> "Since these models perform reasoning internally, prompting them to "think step by step" or "explain your reasoning" is unnecessary." (OpenAI, reasoning best practices)

Anthropic's guidance is more mixed. Anthropic says a general instruction such as "think thoroughly" often produces better reasoning than a hand-written step-by-step plan. As of 2026, on some current Claude models thinking is always on, so you cannot switch it off. Some models may also decline a prompt that asks them to write out their reasoning, and on those models you rely on their built-in thinking. Where thinking is off, you can still ask Claude to think through the problem first.

> **Tip:** Test it on your task. Run the same set of questions with and without the steps, and compare the wrong answers and the cost. If the steps do not change the score, drop them.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] A plain definition: the model writes its steps before the final answer.
- [ ] The usual reference: Wei and colleagues, 2022, with worked examples in the prompt.
- [ ] When it helps: several linked steps, such as a limit and then a deduction.
- [ ] When the steps are extra cost: lookups, labels and short answers. Test first.
- [ ] Newer reasoning models often reason inside, so test before you add it.
- [ ] A check in code on the final figure, not trust in the steps alone.

**Common traps**

- Trap: "Chain of thought makes every answer more accurate." Better: It helps on multi-step problems. On a label or a short lookup the steps usually add cost, so test first.
- Trap: "Always add think step by step, it always helps." Better: OpenAI says its reasoning models reason internally, so the phrase can be unnecessary. Test it on your task first.
- Trap: "Small models get the same boost." Better: In 2022, the authors' Google blog found the benefit appeared only at a large enough model size. Measure on the model you run.

## Can you spot the right job for it?

**Spot the right job:** Which request should use chain-of-thought?

A. Detect the language of this support ticket. Reply with one word.
B. Pull the policy number and claim date from this letter as JSON.
C. Work out the payout: repair bill, hire car limit and excess, then give the total.
D. Is this customer on the approved list? Reply yes or no.

**Answer:** C. The payout has linked steps: the limit changes the sum, and the excess changes the total. The other three are one-step jobs, where the steps usually add cost as a rule of thumb.

**Quick check:** A returns bot must check four rules before it approves a refund. What is the best change?

A. Ask it to be more creative with each answer
B. Have it work through each rule before the decision
C. Cut the rules down to a single sentence
D. Hide the order history from the model

**Answer:** B. Working through each rule gives a reviewer steps to read, and your code a result to verify. The other options add no check, or remove the information the rules need.

## Can you answer these from memory?

**Flash cards**

- **What is chain-of-thought prompting?** Asking the model to write its intermediate reasoning steps before the final answer.
- **Which 2022 paper is the usual reference for the method?** Wei and colleagues' paper on chain-of-thought prompting for large language models.
- **Where does it help most?** Several linked steps, like a payout with a limit and then an excess.
- **Where does it usually add cost?** Usually on one-step jobs like labels or short lookups, where the steps add cost.
- **Do reasoning models need it?** OpenAI says often not: they reason internally, so the phrase can be unnecessary.
- **What is the catch with small models?** The authors' 2022 Google blog found the benefit appeared only at a large enough model size.

## Likely follow-up questions

- Q076 What is prompt engineering? https://designervenkat.online/interview/ai/what-is-prompt-engineering
- Q077 Zero-shot vs few-shot prompting? https://designervenkat.online/interview/ai/zero-shot-vs-few-shot-prompting
- Q079 Do reasoning models still need chain-of-thought prompts? https://designervenkat.online/interview/ai/do-reasoning-models-still-need-chain-of-thought-prompts
- Q081 What makes a good prompt? https://designervenkat.online/interview/ai/what-makes-a-good-prompt
- Q082 Context engineering vs prompt engineering? https://designervenkat.online/interview/ai/context-engineering-vs-prompt-engineering

## Learn it in depth

- [Chain-of-thought prompting](https://designervenkat.online/learn/ai-engineering/chain-of-thought)
