Home / Learn / AI, explained simply

Reasoning models explained: what AI "thinking" really is

New to this? Read from the top. Already know the basics? Jump to Going deeper for intermediate and advanced detail.

A reasoning model: the question goes in, the model writes hidden thinking steps that try, check and correct an approach, then gives the final answer
Beginner

Many AI models now have a "thinking" or "reasoning" mode. Before answering, they produce a long stream of working out: trying an approach, checking it, spotting a mistake, trying again. Only then do they write the answer. On maths, coding and multi-step problems this can make a big difference. This guide explains what's really happening, how these models are made, and when it's worth the wait and the cost.

The idea: give the model room to work

A language model produces text one token at a time, and each token gets roughly the same amount of computation. Asked a hard question and made to answer straight away, it has to jump to the result in one go. That's like being asked to multiply 47 × 38 in your head instantly, versus being allowed to write the steps down.

In 2022, researchers showed that simply prompting large models with worked examples, or even adding "Let's think step by step", made them much better at arithmetic and logic puzzles. This is called chain-of-thought reasoning. Each step the model writes becomes part of its input for the next step, so it can build on its own working.

From a prompting trick to a trained skill

Reasoning models take this further: they're trained to think at length before answering. OpenAI's o1 (previewed in September 2024, fully released that December) was the first widely known example, and DeepSeek published how it built its R1 model in January 2025. The key ingredient is reinforcement learning:

  1. Give the model problems whose answers can be checked automatically, such as maths with a known answer or code with tests.
  2. Let it generate reasoning and an answer.
  3. Reward it when the final answer is right.
  4. Repeat at huge scale.

Nobody writes the reasoning for it. Over training, the model learns for itself that longer, more careful working, checking its steps and backtracking from dead ends, earns more rewards. DeepSeek reported that this checking-and-revising behaviour emerged on its own during training.

Thinking costs time and money

The thinking is made of tokens, just like the answer, and it can run to thousands of tokens for one question. That means:

  • Slower replies: seconds or minutes before the answer starts.
  • Higher bills on an API: thinking tokens are generated, so they are charged as output, even when you aren't shown them.
  • Control over effort: most providers let you choose how hard the model thinks, through an "effort" or "reasoning" setting or a thinking budget. Lower settings answer faster and cheaper.

Many apps now decide automatically. Simple questions get a quick answer; harder ones trigger more thinking.

When reasoning helps, and when it doesn't

Worth turning upUsually not worth it
Maths and calculations with several stepsSimple facts or definitions
Writing and debugging codeRewording, summarising or translating
Planning a task with many constraintsCasual chat and brainstorming
Checking an argument or design for flawsAnything where speed matters more than depth

A reasoning model still can't know facts it never learned, and it can still make things up. Thinking longer helps it work through a problem; it doesn't give it a reference book. For facts, pair it with search or your own documents (see what is RAG?), and check anything that matters, especially calculations used for real electrical work.

Can you trust the reasoning you're shown?

Not entirely. Two things to know:

  • You may see a summary, not the real thing. Several providers, including OpenAI and Anthropic, show a condensed summary of the thinking, or none at all, rather than the raw working.
  • The written reasoning may not be the whole story. A 2025 study by Anthropic researchers gave models hidden hints towards an answer. The models often used the hint but didn't mention it in their reasoning. The visible working is a useful view into the model's process, but not a guaranteed true account of how it reached its answer.

So judge a reasoning model on whether its final answer checks out, not on how convincing its thinking looks.

Getting the most from a reasoning model

  • State the goal and the constraints clearly, then let it work. You rarely need to tell it to "think step by step" any more; it already does.
  • Give it a way to check itself: expected results, tests, or the rule it must satisfy.
  • Use the lowest effort that gets the job done, and turn it up only for the hard cases. Our guide to choosing an AI model covers the trade-offs.
Intermediate and advanced

Going deeper

Test-time compute

For years, models got better mainly by being made bigger and trained on more data. Reasoning models add a second dial: spending more computation when the question is asked, at "test time". OpenAI reported that o1's accuracy kept rising both with more reinforcement-learning training and with more thinking time per question. Other ways to spend test-time compute include generating several answers and taking a majority vote (self-consistency), or using a second model to score candidate answers.

Verifiable rewards

DeepSeek-R1-Zero was trained with simple rule-based rewards: is the final answer correct, and is it in the requested format? Rewards that can be checked by a rule are hard for the model to cheat, unlike rewards from a learned scoring model, which a model can learn to exploit. That's why maths and code, where answers can be checked, led the way. DeepSeek's paper also describes R1-Zero's problems, such as mixing languages and hard-to-read reasoning, which a short phase of supervised training on readable examples fixed in R1.

Distillation

Reasoning can be passed to smaller models by training them on the reasoning traces of a large one. DeepSeek released small "distilled" models trained this way that beat much larger non-reasoning models on maths benchmarks, which is how capable reasoning reached models you can run at home.

Thinking in the Claude API

On Anthropic's API, recent Claude models decide for themselves how much to think (adaptive thinking), steered by an effort setting from low to max. The thinking is billed whether or not it's displayed, and recent models don't return the raw reasoning: you can ask for a summary of it, or nothing. Older models took a fixed thinking budget in tokens instead.

Sources

The main references behind this guide. Numbers we worked out ourselves, such as the code outputs, come from running the code.