The Step-by-Step Thinking (Chain-of-Thought) Technique
The chain-of-thought technique: raising accuracy on complex problems by steering the model to think step by step. When it works — and when it's excess.

Chain of thought is a prompt technique that splits a multi-step problem into intermediate stages before the final answer. The technique can be useful in work like mathematical calculation, logic, planning and rule-based comparison. In a simple factual query, it can stretch the answer — and even produce convincing-looking wrong reasoning.
There's an important update here: you don't need to ask the model to reveal its hidden internal thinking word for word. What a user needs is not the answer to "what did the model think?" but to "with which inputs, formula, sources and checks can I confirm this result?" In other words: not thinking theatre, but a verifiable work trail.
What is chain of thought and where did it come from?
A chain-of-thought prompt is a method letting the model generate the intermediate stages of a complex task. In the classic variant, the prompt includes not only a question and an answer but also a few examples containing correct solution steps. The model imitates that stepping structure on the new question.
The technique became widely known through the 2022 paper "Chain-of-Thought Prompting Elicits Reasoning in Large Language Models." In the NeurIPS paper, the authors showed that intermediate-reasoning examples improved results on arithmetic and symbolic reasoning tasks in sufficiently large models. This is not a verdict that it "always works on every model and every task"; it's an experimental result tied to the models, examples and measured tasks.
In later models, thinking behaviour can be built into the product itself. That's why the old sentence "Let's think step by step" may create no special advantage on every modern model. The prompt's goal and acceptance criteria must still be written explicitly.
A hidden chain of thought and a verifiable explanation are not the same
The model's internal computation, the reasoning shown to the user and real evidence are three separate things. The internal process may not be visible in every product. The visible explanation can be tidy text generated after the fact. Evidence arises only from input data, sources, formulas, tool results and repeated checks.
| Request | What it gives | What it doesn't give |
|---|---|---|
| "Show your full internal thinking" | Long-looking reasoning on some models | Guaranteed access to the internal process, or truth |
| "Justify the answer with three reasons" | A readable short explanation | Confirmation of an unsourced fact |
| "Show the inputs and the formula" | The ability to re-check the calculation | The correctness of the input data |
| "Quote the source line" | A claim–source link | An automatic guarantee of source quality |
| "Mark the unknowns separately" | Visibility of fabrication risk | The removal of all errors |
In its explanation of reasoning models, OpenAI stated that the o1 family does not show the raw chain of thought to users, instead presenting a model-generated summary. That decision applies to a specific product; other models and open-weight systems can behave differently. The practical conclusion doesn't change: don't treat the visible text as "an X-ray of the model's brain."
In which tasks is chain of thought useful?
A chain of thought gains meaning only in tasks with several dependent stages. If reaching the answer feeds one step's result into the next, splitting the work is useful. If the task is a single conversion or a simple lookup, intermediate explanation can create extra cost and text.
- Maths problems: the data, formula, calculation and final unit are separated.
- Rule-based classification: each condition is checked in order and the first matching rule is recorded.
- Planning: dependencies, resources, risks and sequence become visible.
- Document comparison: the same clause is found separately in two sources and the contradiction is shown.
- Code diagnostics: symptoms, hypotheses, tests and observations are chained together.
For translation, simple summaries, headline variants and direct data extraction, try a short prompt first. Google's current prompt design documentation for the mobile Gemini Nano recommends splitting multi-step conditional work into more focused model calls instead of one long answer when it gets difficult. Sometimes the best "chain of thought" lives not inside the prompt but in the system's workflow.
6 chain-of-thought prompts without demanding hidden thinking
These examples do not require an internal monologue. They separate the intermediate results to verify from the final answer. Replace the brackets with your own information.
1. Mathematical calculation
Solve the problem. In the answer show only:
1) the given numbers and units;
2) the formula used;
3) the results of intermediate calculations;
4) the final answer and its unit.
If any input is missing, don't calculate; write which data is missing.
2. Comparing two proposals
Compare proposals A and B by price, scope, limitations and risk.
For each criterion, write the fact from the document first, then a short comment.
Don't invent an advantage not in the document.
Don't declare a winner at the end; show under which conditions each fits.
3. Routing a customer request
Check the request in this order: security risk, account access,
payment, technical error, general question. Pick the first matching category.
In the output give the category, one piece of evidence from the message and the next step.
If two categories fit equally, require human review.
4. Fact audit of an article
Extract the verifiable claims in the text.
For each claim, find the supporting passage in the given official source.
Mark the result as "supported / partial / not found".
Only then propose fixes; if there's no source, don't add facts.
5. Diagnosing a code error
From the symptoms and logs, write at most three hypotheses.
For each hypothesis give one safe test that would confirm it.
Don't rewrite the code before the test results arrive.
Final answer: hypothesis, test, observation, minimal fix.
6. Sequencing a project plan
Order the tasks by dependency.
For each stage write the input, the owner, the output and the acceptance criteria.
Show work that can run in parallel separately.
Mark unknown durations as estimates; don't present them as fact.
When a role and boundaries are also needed, you can add the role-assignment technique to this structure. But stacking every method into one prompt is not the goal. Keep only the part that fixes a measured problem.
How is a chain of thought's result verified?
Neat-looking intermediate steps don't prove the answer is correct. Google Research's study on finding logic errors showed the tested models struggled to reliably identify the mistake in a given reasoning trace. That older research can't be transplanted directly onto every model today, but it's a good warning to check visible reasoning separately.
- For the same task, prepare a short baseline prompt and a staged variant.
- Include easy, borderline, incomplete and deliberately contradictory samples.
- Check not only the final answer but the source and calculation of each intermediate result.
- Score by correct answers, critical errors, format and human editing.
- If the staged variant delivers no real improvement, return to the shorter prompt.
As in a prompt engineer's evaluation approach, the test set must stay the same. Testing one variant on easy samples and the other on hard ones is not a comparison. When the model or version changes, rerun the test; don't treat the earlier result as a permanent property.
5 typical mistakes when using chain of thought
| Mistake | Why it's risky | Fix |
|---|---|---|
| Writing "think step by step" on every task | It stretches simple answers | Use it only in work with dependent stages |
| Counting a long explanation as correctness | Wrong logic looks convincing | Verify with formulas, sources and tools |
| Demanding raw internal thinking | The product may not show it | Ask for short reasoning and evidence |
| Giving a wrong step in the example | The model imitates the wrong structure | Have a human verify the example first |
| Judging on one good answer | Edge cases stay hidden | Compare on the same test set |
The most common mistake is turning the technique into the goal. The goal is not making the model write long thoughts; it's getting a result that is more correct, more verifiable and needs less human editing. If that isn't happening, return to the prompt's core parts: goal, context, input, sources, boundaries and output.
Questions about chain of thought
What does chain of thought mean?
It refers to the model splitting a complex task into the intermediate stages that lead to the final answer, rather than jumping straight to a conclusion.
Is writing "think step by step" enough?
It can sometimes help, but it's not a stable advantage. Writing the task's inputs, rules, the required intermediate results and the verification criteria concretely gives a more controllable outcome.
Is it possible to see all of a model's internal thinking?
It varies by product and model. A number of services don't show the raw internal thinking, giving a short summary or only the final answer. Treat the visible explanation as text to verify, not as proof.
Does this technique eliminate hallucination?
No. Non-existent facts and wrong logic can appear in a staged answer too. Sources, tool results, unknown-information behaviour and human review must be built separately.
What can I ask for instead of chain of thought?
Ask for verifiable outputs like "give short reasoning," "show the inputs and the formula," "note the source line," "separate the unknowns" and "give the intermediate results in a table before the conclusion."
Sources
- NeurIPS 2022: Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Google Research: Language Models Perform Reasoning via Chain of Thought
- OpenAI: Learning to reason with LLMs
- Google for Developers: Prompt design for Gemini Nano
- Google Research: Can large language models identify and correct their mistakes?
I'm Anar Rustamli - a strategist, entrepreneur, and AI adoption leader working at the edge of growth, technology, and human thinking. Since 2016, my work has focused on helping businesses evolve in a rapidly changing digital landscape. I design growth systems, AI-powered workflows, and strategic frameworks that align performance with purpose. I believe real growth happens when strategy, data, and human insight work together - and my mission is to help businesses adopt AI in a way that strengthens both their results and their identity.

