Paraprompt logoParaprompt

Prompt technique

Chain-of-Thought (CoT) Prompting

Unlock multi-step reasoning by asking the model to think before it answers.

What it is

Chain-of-Thought prompting elicits intermediate reasoning steps from the model before the final answer. Introduced by Wei et al. (2022), CoT dramatically improves performance on math, logic, multi-hop QA and planning tasks. The trigger can be as simple as appending "Let's think step by step" or providing few-shot examples that include explicit reasoning traces.

When to use it

  • Math, logic, code reasoning, or any multi-step decision
  • Tasks where the wrong answer is also a plausible answer
  • Whenever you'd want a junior teammate to "show their work"

Example

Q: A bakery sells 240 croissants over 3 days. Tuesday they sold twice as many as Monday, and Wednesday they sold 30 more than Tuesday. How many did they sell on Monday?

Let's think step by step.

Why it works: The trigger phrase forces the model to enumerate constraints and solve them in order, surfacing arithmetic errors before the final answer.

Pitfalls

  • !Long reasoning chains burn tokens — for production, ask the model to think internally then return only the final answer.
  • !CoT can hallucinate confidently — verify with self-consistency or an external check on critical paths.

Pairs well with

Open · free · community-built

Stop losing your best prompts.
Put them on the registry.

Join thousands of prompt engineers using Paraprompt as their canonical home for prompts across every model.