Tutorial
Prompting reasoning models
What changes when a model thinks before it answers: write goals instead of steps, choose an effort level, use fewer examples and check the answer properly.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
A reasoning model works through a problem before it answers: it drafts, checks and revises internally, then writes a response. In 2026 that describes almost every flagship model. Current Claude models think adaptively by default, OpenAI’s GPT models and Google’s Gemini models reason too, and chat apps often decide how much thinking to do for you.
Many prompting habits were invented for models that did not do this. Some still help. Some now get in the way. This tutorial covers what to change, with before-and-after examples you can try in any assistant. The API details were re-checked against Anthropic’s effort documentation and OpenAI’s reasoning guide on 25 November 2026.
1. Describe the goal, not the steps
Older advice said to add “let’s think step by step” and to spell out the reasoning procedure. Reasoning models already think step by step, and OpenAI’s reasoning best practices say plainly that prompting them to “think step by step” is unnecessary and can sometimes hinder performance. A prescribed procedure can also make the model follow your steps even when its own approach would be better.
Instead, give it what a capable colleague would need: the goal, the context, the constraints and what a good answer looks like.
Before:
Think step by step. First, list all the costs. Second, add them up.
Third, compare to the budget. Fourth, write a recommendation.
Here are the quotes: ...
After:
We need to choose a supplier for 2,000 branded notebooks for a conference
in March. Budget is 9,000 euros including delivery.
Recommend one of the three quotes below, or say none fits. Delivery after
1 March is a dealbreaker. Show the total cost per quote and the one or two
facts that decided it.
Quotes: ...
The second prompt is not longer because of instructions about thinking. It is longer because it contains the information the model needs to reason well: the deadline, the budget and what you will do with the answer.
2. State what “done” looks like
Reasoning models are good at checking their own work against criteria, if you give them criteria. Say what the output must satisfy:
Write a SQL query that returns monthly active users for 2026.
It is correct if:
- it counts each user once per month,
- it excludes accounts with is_test = true,
- months with zero users still appear (use the calendar table).
The model can now test its draft against three concrete rules before it answers. Without them it can only check that the query looks plausible.
3. Use fewer examples, and use them for format
Few-shot examples still help when the output format is unusual or strict. They help less for teaching the reasoning itself, and too many can narrow what the model considers. OpenAI’s guidance is to “try zero shot first, then few shot if needed”.
A good pattern: describe the task fully, give one example that shows the exact output format, and say the example shows format, not content.
4. Choose how hard it should think
More thinking costs more tokens and takes longer. Less thinking is faster and cheaper but can miss things. Most products now let you control this.
- In chat apps, look for a thinking or reasoning toggle, or a choice between a fast and a thorough mode. Use the fast mode for rewording, summarising and simple questions; switch to the thorough mode for analysis, maths, code and anything with several constraints.
- In the Claude API, set
output_config.efforttolow,medium,high,xhighormax. Defaults differ by model: Claude Opus 5.5 and Haiku 5.5 default tomedium, most other current models tohigh. Not every model supports every level; the effort page lists which. - In OpenAI’s Responses API, set
reasoning={"effort": ...}. The documented values run fromnoneandminimalthroughlow,mediumandhightoxhighandmax, but each model accepts only a subset (some current models rejectnone), so check the model’s page.
A Claude example:
import anthropic
client = anthropic.Anthropic()
resp = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=8000,
output_config={"effort": "low"},
messages=[{"role": "user", "content": "Classify this ticket as billing, delivery or other: 'Where is my parcel?'"}],
)
print(next(b.text for b in resp.content if b.type == "text"))
Two things to know. Effort is a signal, not a hard budget: in Anthropic’s words, “at lower effort levels, Claude still thinks on sufficiently difficult problems”, just less. And max_tokens covers thinking plus the answer, so set it generously at high effort or the response can be cut short; for xhigh and max on recent Opus models, Anthropic suggests starting at 64k tokens.
Pick effort by task, and test it. Anthropic’s documentation recommends running “an effort sweep on your own evals rather than carrying settings over from an earlier model”, and OpenAI’s guide calls effort a tuning knob rather than the main way to improve quality. A sweep can be as small as this: the same ten test cases at three levels, with a pass count and the output tokens for each.
import anthropic
client = anthropic.Anthropic()
CASES = [
("Where is my parcel?", "delivery"),
("I was charged twice this month.", "billing"),
("Can I change the colour on my order?", "other"),
# ... seven more real tickets with the label a person gave them
]
for effort in ["low", "medium", "high"]:
passed, out_tokens = 0, 0
for text, label in CASES:
resp = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=8000,
output_config={"effort": effort},
messages=[{"role": "user", "content": f"Classify this ticket as billing, delivery or other. Reply with one word.\n\n{text}"}],
)
answer = next(b.text for b in resp.content if b.type == "text").strip().lower()
passed += answer == label
out_tokens += resp.usage.output_tokens
print(f"{effort:<7} {passed}/{len(CASES)} correct, {out_tokens} output tokens")
If low scores the same as high on your cases, use low: it is faster and cheaper. If it does not, look at which cases it missed before you decide. Your first LLM eval shows how to grow a set like this.
5. Do not ask it to show all its working
You may want to see the reasoning. Asking the model to write out every step in the answer duplicates work it already did internally, makes the answer long, and does not make it more correct. If you need an audit trail, ask for something specific:
After the recommendation, list the assumptions you made, one line each.
Assumptions are what you most need to check, and they fit in a few lines.
6. Check the answer properly
Reasoning makes models better at multi-step problems. It does not make them reliable on facts they do not have, and a long, careful-sounding chain can make a wrong answer more convincing. Checks that work:
- Run it. Code, queries and formulas can be executed. Do that before you trust them.
- Recompute the key number yourself, or with a second, independent prompt that does not see the first answer.
- Ask what would change the answer. “Which single fact, if wrong, would change your recommendation?” points you at what to verify.
- Check sources for any fact you will repeat. If the model cites a document, open it.
What still works from older advice
Plenty of prompting fundamentals carry over unchanged:
- Give context: who it is for, what it will be used for.
- Separate instructions from material with headings or tags.
- Specify the output format, and use structured outputs when software reads the result.
- Put long documents first and your question after them.
- Ask for one task at a time when the tasks are unrelated.
The prompting fundamentals tutorial covers these in depth, and the prompt patterns cheat sheet has copyable versions.
Pitfalls
Over-engineering simple tasks. A long prompt with goals, criteria and assumptions is wasted on “fix the grammar in this paragraph”. Match the prompt to the task.
Leaving effort on maximum. It is slower and costs more, and on simple or structured tasks it can overthink. Anthropic’s guidance for Claude Opus 4.7 says max adds “significant cost for relatively small quality gains” on most workloads. Use the lowest level that passes your checks.
Forgetting the budget. In the API, a small max_tokens with high effort produces truncated answers. Leave room.
Trusting reasoning over facts. Thinking does not add knowledge. For current or company-specific facts, give the model the source.
Next steps
- Review the basics in Prompting fundamentals.
- See how effort and thinking affect cost in Cut LLM costs with prompt caching and token budgets.
- Learn how to check model outputs systematically in Your first LLM eval.
- Go beyond the prompt to everything the model sees with context engineering techniques.
Covers
Check your understanding
Prompting reasoning models quiz
Goals instead of steps, success criteria, examples for format, effort settings and checking answers from thinking models.
7 questions · pass mark 70%
Review
Related
- Prompting fundamentals: clear tasks, examples and formats
How to write a good prompt: frame the task, say who the output is for, show an example and specify the format, so a model's answers are useful and repeatable.
- Prompt patterns cheat sheet
Copyable prompt patterns for Claude, ChatGPT and Gemini: briefing, examples, output formats, long documents, checking the work and avoiding made-up answers.
- Cut LLM costs with prompt caching and token budgets
Lay out prompts so the provider can cache them, measure tokens before you send, and use batch processing and model routing to cut what each request costs.
- Reasoning model
A model trained to spend extra tokens thinking through a problem before it answers, trading speed and cost for accuracy on hard tasks.
- Chain-of-thought
Having a model work through intermediate reasoning steps before it gives a final answer, either by prompting or by training.