Skip to content

Prompting for Step-by-Step Reasoning

When asking a model to reason before answering improves results, how to ask for it, and how to keep the final answer clean.

Editorial team 1 min read

For problems with several steps, models perform better when they work through the reasoning rather than jumping to an answer.

When It Helps

  • Arithmetic and quantitative problems.
  • Multi-criteria decisions and comparisons.
  • Logic puzzles and planning.
  • Diagnosing problems from symptoms.
  • Tasks requiring several facts to be combined.

How to Ask

  • "Work through this step by step before giving your answer."
  • "First list the relevant facts, then evaluate each option against the criteria, then decide."
  • Provide a worked example showing the reasoning pattern you want.

Separate Reasoning From the Answer

Ask for reasoning in one section and the final answer in another, clearly marked — for example inside <answer> tags — so the answer can be extracted and shown cleanly.

Reasoning Models

Some models are designed to reason internally before responding. For these, detailed step-by-step instructions are usually unnecessary; a clear problem statement and success criteria matter more. Follow the provider's guidance.

Check the Reasoning

A plausible explanation doesn't guarantee correctness. Verify key steps for important decisions.

Don't Use It Everywhere

For simple classification or extraction, reasoning adds latency and cost without much benefit.

More in Prompting

All Prompting guides →
Prompting Guide · 1 min

Anatomy of an Effective Prompt

The parts of a prompt that reliably produce good results, with a template you can adapt for almost any task.

Prompting 1 min read 1 Nov 2025

Prompting Guide · 2 min

Giving Models Context

Why most weak outputs come from missing context, and what background information to include in a prompt.

Prompting 2 min read 31 Oct 2025

Prompting Guide · 1 min

Role Prompting: When It Helps and When It Doesn't

Telling a model to act as an expert or a persona can shape tone and focus — but it isn't a substitute for clear instructions.

Prompting 1 min read 30 Oct 2025