Chain of thought prompting means asking a model to work through a problem in steps before it answers, usually with “think step by step.” The vendors’ current guides say it matters less now: OpenAI calls it “unnecessary” for reasoning models, Anthropic keeps it as a fallback when thinking is off, and Google notes that Gemini models already think internally.

On this page

What chain of thought prompting is

You ask for the reasoning first and the answer second. A plain version is “Solve this. Think step by step, then give the final answer on its own line.” The idea is that the written steps give the model room to work, and give you something to check.

Current chat models do a lot of this on their own. ChatGPT and Claude have modes that think before replying, and Gemini does too. So the question is no longer “should I add the phrase?” but “does this model already reason, and do I need to see the steps?” It still earns its place on multi-step problems when a model answers without thinking.

What the three vendors say

OpenAI. The reasoning best practices page advises against it: “Avoid chain-of-thought prompts,” because for these models “prompting them to ‘think step by step’ or ‘explain your reasoning’ is unnecessary.” It says the models respond best to “brief, clear instructions,” and suggests delimiters such as markdown, XML tags and section titles to separate parts of the input.

Anthropic. The prompting best practices page says Claude 4.6 and later models use adaptive thinking, where Claude decides when and how much to think. It adds that a prompt such as “think thoroughly” often produces better reasoning than a hand-written step-by-step plan. Manual chain of thought remains a fallback when thinking is off: ask Claude to think through the problem before it answers, and have it put the final answer in answer tags so you can extract it. The page also warns that some models might decline to write their reasoning when asked to.

Google. The Gemini API prompting strategies page says Gemini 2.5 and 3 series models “automatically generate internal ‘thinking’ text to improve reasoning performance.” Its own example templates still include a plan step and end with “Remember to think step-by-step before answering,” so Google does not rule the phrase out. It also lists “Think very hard before answering” as a simple request for heavy reasoning, at the cost of more thinking tokens.

When to add it and when to skip it

Situation What to do
A reasoning model (a thinking mode in ChatGPT, Claude or Gemini) State the goal and the limits. Skip “think step by step” and do not script the steps.
A fast model with thinking off Ask it to work through the problem before answering, and say where the final answer goes.
You want to check the logic Ask for the steps and the answer separately, so you can read one without the other.
A short, simple question Skip it. It adds length and no value.
Output that feeds another tool Ask for the final answer in a fixed spot or tag, as Anthropic suggests, so it can be pulled out.

Four templates to adapt

These are our own wording. The vendor pages give the principles and make no claim about these exact prompts. Replace the brackets.

1. Reason first, answer last (thinking off). “[Problem]. Work through it step by step before you answer. Then put only the final answer inside <answer> tags.”

2. Goal and limits (thinking on). “I need [outcome]. The limits are [limit 1] and [limit 2]. Think thoroughly, then give me the result and the one assumption it depends on most.”

3. Check before you finish. “[Task]. Before you finish, verify your answer against these tests: [test 1], [test 2]. If it fails one, fix it and say what changed.”

Anthropic’s page describes this self-check pattern and says it catches errors reliably, especially for coding and math.

4. Show the steps for review. “[Problem]. List the steps you took as a numbered list, one line each, and mark any step that depends on a guess. Then give the answer.”

Treat the listed steps as an account to read, not proof. A model can write steps that look sound and still reach a wrong answer, so check the parts that matter.

Mistakes to avoid

  • Scripting every step for a model that thinks. Anthropic says a general “think thoroughly” often beats a hand-written plan, so let the model choose the path.
  • Repeating the phrase on every prompt. It is a tool for hard, multi-step problems, not a habit.
  • Asking a thinking model to expose its raw reasoning. Anthropic notes some models may decline, so ask for a short explanation of the result instead.
  • Treating the steps as verified. Ask for a check against criteria you set.