Step-by-Step Prompting: 3 Templates and When to Skip It (2026)
Asking an AI to think step by step usually helps with multi-step calculations, logic checks, and questions where you need to compare several options. For one-step tasks like looking something up, rewriting, or translating, it makes little difference. If the product you use already has a reasoning mode (often called "deep thinking" or "reasoning"), the model thinks first and answers second on its own, so you don't need to type "think step by step" yourself.
This article covers three things: when it's worth asking, how to write it, and when you can skip it.
Why does "step by step" sometimes make answers more accurate?
Large language models generate text one token at a time. If you ask for the conclusion directly, the model has to "jump" to the answer in a very short output. If you ask it to write out the intermediate steps first, each step becomes context for what follows, and a complex problem is less likely to go off track. This is the basic idea behind chain-of-thought prompting.
Two caveats:
- It only raises the probability of a correct answer; it doesn't guarantee one. Intermediate steps can be wrong too, and they can look perfectly convincing.
- It doesn't give the model knowledge it doesn't have. If the model gets a factual question wrong, thinking through more steps won't fix it.
So for facts, data, and citations, you still need to verify things yourself. See our guide What to do when AI confidently makes things up: spotting and reducing hallucinations.
Which tasks suit step-by-step reasoning?
| Task type | Use step by step? | Why |
|---|---|---|
| Multi-step calculations, word problems, expense or schedule calculations | Yes | You can check the intermediate value at each step |
| Logic checks, matching against many conditions or rules | Yes | You can see which rule produced the conclusion |
| Comparing options, weighing trade-offs | Yes | Have it list criteria first, then score each option |
| Troubleshooting (code errors, a stuck process) | Yes | List possible causes first, then rule them out one by one |
| Translation, polishing, format conversion | Not needed | One-step tasks; extra steps just make the output longer |
| Looking up a fact, giving a definition | Not needed | Depends on knowledge, not on reasoning |
| Brainstorming, naming things | Depends | Step-by-step structure can actually limit divergent thinking |
A simple rule of thumb: if you'd need to write down a few steps on paper to do the task yourself, it's a good fit for asking the AI to show its steps.
How do you write the prompt?
The laziest approach is to add one sentence after your question. A more effective one is to spell out what the steps are.
Template 1: analyze first, then conclude
Here is a problem. Analyze it step by step first, then give your conclusion on a separate final line.
Problem: ...
Asking for the conclusion at the end makes the result easy to find, and it stops the model from stating a conclusion first and then inventing reasons for it.
Template 2: specify the steps
Work through this in the following order:
1. List the known conditions and numbers in the problem
2. Write down what needs to be found and how to calculate it
3. Calculate step by step, showing the formula at each step
4. Finally, check whether the result makes sense
Problem: ...
When you know what the right approach is, this is more reliable than a vague "think step by step," because you've set the checkpoints for the model.
Template 3: break the problem down, then answer each part
This problem is fairly complex. First break it into sub-questions and list them.
Wait for my confirmation before answering each one.
Problem: ...
This works in rounds: the first round only decomposes the problem, so you can correct the breakdown, and the second round fills in the answers. If a long conversation's context has gotten messy, see also When to start a new chat and when to keep going.
For more basic prompt writing, see How to write prompts: a four-part formula beginners can reuse. If answers keep coming back too general, read What to do when AI answers are too vague or generic first. The cause is often missing background and requirements, not a missing "step by step."
Do you still need to ask manually in products with a reasoning mode?
In most cases, no. Many products now offer a reasoning or deep-thinking mode: once it's on, the model generates a stretch of internal reasoning before it answers. Writing "think step by step" on top of that is mostly redundant and can sometimes make the answer wordy.
Things to keep in mind about these modes:
- They are usually slower and may use more of your quota or cost more. Check each product's official documentation for how it is billed.
- Don't turn them on for simple questions. For the weather or a one-sentence translation, it only makes things slower.
- With reasoning mode on, focus your prompt on making the task, background, and output format clear, rather than teaching the model how to think.
For an example of how to turn it on in a specific product, see How to use DeepSeek: the web, the app, and deep thinking mode for beginners. For each vendor's exact mode names, switch locations, and limits, rely on the official docs; interfaces change often.
What about calling a model through an API?
If you call models from code, there are two cases:
- Standard models: put "analyze step by step first, then give your conclusion" in the system or user message. For how to write the system message, see What is a system prompt? How to write a useful one. For the structure of the messages array, see What is Chat Completions? How to write the messages array.
- Models with reasoning capability: most providers enable it through a dedicated parameter or model option. Parameter names and values differ by vendor, so follow the official docs and don't copy another vendor's syntax.
Also, if a program needs to parse the result, have the model output its reasoning and final answer separately. For example, ask it to put the conclusion on the last line with a fixed prefix, and have your parser read only that line.
A simple self-test
Take a type of question you ask often and ask it twice, once directly and once with the step-by-step request. Compare three things:
- Whether the conclusions match
- Whether you can catch any errors in the intermediate steps
- Whether the answer length and wait time are worth it
If both runs give the same result and the steps didn't help you spot any problems, you don't need to add the request for that kind of task. Doing this once is more useful than memorizing a pile of generic tricks.
What if you want to compare models side by side?
How well step-by-step prompting works varies by model, and the same prompt can give different results on a different model. If you want to switch between capability tiers on one subscription, you could look at AGI Plan. It is a multi-provider LLM aggregation gateway with monthly subscriptions, billed in RMB, with no overseas credit card required. Tools like Claude Code and Codex connect by changing a single endpoint URL. AGI Plan is a commercial partner of cdnping. The service states plainly that it is not an officially authorized channel, and some models are labeled "outside China only." Check the models page for current details. Setup steps are at agiplan.dev/startup.
If you only chat casually, the free tier of a web or app version is often enough to start. For when to pay, see Is the free version of AI enough? When to pay.
If an API call gets slow or returns errors, check cdnping's API status page first to see whether it's a server-side issue, then go back and check your prompt.
Summary
Step-by-step requests suit tasks that need multi-step reasoning, not tasks that finish in one step. The more specific the steps, the more reliable the result. And if you're using a reasoning mode, you don't need to ask again. As a next step, pick a question from recently that got an unsatisfying answer and run the self-test above.