esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

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.

10 min readIntermediateVery common · estimateFacts checked 26 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

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.

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.

Key words

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

    Write a worked example with the steps shown

    One problem, each step written out, then the answer.

  2. 2

    Ask the real question in the same shape

    The model copies the pattern: steps first, answer last.

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

Same claim, two ways to answer

Claim facts

Bill, excess and hire car limit

Without steps

Add everything in one go

Skips the hire car cap

With steps

Cut hire car to the limit

$180 claimed, $150 allowed

Add repair and hire car

$2,140 + $150 = $2,290

Take off the excess

$2,290 - $250 = $2,040

Overpays by $30

Pays $2,070, not $2,040

Pays $2,040

Matches the policy wording

  1. 1One jump to a total, with no working shown.
  2. 2The full $180 hire car goes into the total.
  3. 3The policy limit is applied before anything is added.
  4. 4The capped $150 joins the repair bill.
  5. 5The $250 excess comes off the total.
  6. 6That figure is what the customer is paid.
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.

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

    BetterIt 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."

    BetterOpenAI 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."

    BetterIn 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?

Quick check

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

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q076What is prompt engineering?11 min
  2. Q077Zero-shot vs few-shot prompting?12 min
  3. Q079Do reasoning models still need chain-of-thought prompts?10 min
  4. Q081What makes a good prompt?13 min
  5. Q082Context engineering vs prompt engineering?11 min

Learn it in depth

Last updated on 26 November 2026

Building an AI assistant that has to work through rules?

I design and build AI agents with checks around their steps: rule checks in code, a clear record of each step, and tests before launch. Book a short call and tell me what yours needs to do.