Zero-shot prompting: what it is and when it's enough

TL;DR: Zero-shot prompting means giving an AI model an instruction with no examples of the answer you want. With today's models it is enough for most everyday tasks, as long as the instruction carries your context, the format and your limits. Add examples, which is few-shot prompting, when the format, labels or tone keep coming out wrong.

What zero-shot prompting is

A zero-shot prompt tells the model what to do without showing it a finished example. "Summarize this contract in five bullet points for a sales manager" is zero-shot. So is almost everything people type into ChatGPT, Claude or Gemini on a normal day.

The "shot" is an example. Zero shots means none, one-shot means one, and few-shot means several. The model has to work out what you want from your words alone, using what it learned in training about summaries, contracts and sales managers.

Zero-shot is not the same as a short or lazy prompt. A zero-shot prompt can run to several paragraphs of context, rules and format. The only thing it leaves out is a worked example of the output.

Where the term comes from

The terms were set out in the 2020 GPT-3 paper, "Language Models are Few-Shot Learners" by Tom Brown and colleagues at OpenAI. It tested the model in three settings: zero-shot (only a written instruction), one-shot (one demonstration) and few-shot (as many demonstrations as fit in the prompt).

At the time, zero-shot was the weakest setting. The paper called it "the most challenging" and in some cases "unfairly hard". Its example: asked to "make a table of world records for the 200m dash", even a person might not know which columns to include. That point still holds. When an instruction can be read more than one way, a zero-shot answer is a guess at which way you meant.

What changed is the models. Models trained to follow instructions became much better at reading a plain request, which is why zero-shot is now the normal way most people use AI.

When zero-shot is enough

Use zero-shot by default and switch only when you see a reason to. OpenAI's guidance for its reasoning models says the same: try a prompt without examples first, then add a few if the output needs it. Zero-shot usually works when:

  • The task is common. Summarizing, translating, rewriting, explaining, drafting a standard email. The model has seen millions of these.
  • The format is easy to describe. "A table with columns for name, price and risk" or "three bullet points under 15 words each" leaves little to guess.
  • You can judge the answer at a glance. If a wrong answer is easy to spot and cheap to redo, an example is not worth the setup.
  • You want range. Brainstorms come out more varied without examples, which models tend to imitate.

Zero-shot is also the cheaper option. The ticket-sorting prompt in our few-shot prompting guide was 42 tokens zero-shot and 160 tokens with five examples, measured with OpenAI's o200k_base tokenizer (used by GPT-5, GPT-4.1 and GPT-4o). In a chat that difference doesn't matter. In an automated job that runs thousands of times, it does.

How to write a zero-shot prompt that works

Without examples, the instruction has to carry everything. The fix for a weak zero-shot answer is almost always more context, not a cleverer phrase. Compare:

Before: zero-shot, but missing everything
Write a follow-up email to a client.
After: still zero-shot, now specific
Write a follow-up email to [client name], the operations manager at [company]. We met on [day] to discuss [project]. They liked [what they liked] but were worried about [concern]. I want them to agree to [next step, for example: a 30-minute call with our engineer next week].

Tone: friendly and direct, no sales language.
Length: under 120 words.
End with one clear question they can answer yes or no.
If you need a fact I haven't given, put it in [brackets] instead of inventing it.

Neither prompt contains an example. The second one works because it answers the questions the model would otherwise guess at: who the reader is, what happened, what you want, how long, what tone, and what to do about missing facts. For the full checklist, see how to write a prompt.

Three habits make zero-shot prompts more reliable:

  1. Name the reader. "For a CFO who has five minutes" changes length, vocabulary and what gets left out.
  2. Describe the output's shape. Sections, length, table columns, or the first line you expect. This is where a missing example hurts most, so be precise.
  3. Say what to do when unsure. "If the document doesn't say, write 'not stated'" stops the model filling gaps with plausible inventions.

Zero-shot chain of thought: "Let's think step by step"

Zero-shot chain of thought is a zero-shot prompt that asks the model to reason before it answers. It comes from the 2022 paper "Large Language Models are Zero-Shot Reasoners" by Takeshi Kojima and colleagues. They added one sentence, "Let's think step by step", before the model's answer, with no examples.

On the models of the time, the effect was large. With OpenAI's text-davinci-002, accuracy on the MultiArith set of math word problems rose from 17.7% to 78.7%, and on GSM8K, a harder set of grade-school math problems, from 10.4% to 40.7%. The authors saw similar gains with Google's 540-billion-parameter PaLM. The point was that models could reason through problems without hand-written worked examples, if you simply asked them to.

Zero-shot chain of thought, for models without built-in reasoning
[Your question or problem]

Work through this step by step before you answer. Then give your final answer on its own line, starting with "Answer:".

Does "think step by step" still matter?

For many current models, much less than it did, and sometimes not at all. Many models now reason before they answer on their own. OpenAI calls these reasoning models; Anthropic calls the feature thinking. Both vendors now give similar advice.

  • OpenAI says its reasoning models perform best with straightforward prompts, and that telling them to "think step by step" may not improve performance and can sometimes hurt it. Its advice is to avoid chain-of-thought prompts with these models, because they already reason internally.
  • Anthropic says that when thinking is on, general instructions such as "think thoroughly" often produce better reasoning than a hand-written step-by-step plan. It describes manual chain-of-thought prompting as a fallback for when thinking is off. For its newest models, which think by default, it advises relying on the built-in thinking (at a lower effort setting if cost or speed matters) and notes that a prompt asking the model to write out its reasoning may be declined.

So the practical rule is simple. If your model already reasons on its own, don't script its reasoning. Spend your words on the goal, the context and what a good answer looks like. If you are using a smaller or faster model with no reasoning step, asking it to work through the problem before answering can still help on math, logic and multi-step questions.

Should you add "think step by step"?
Your situationWhat to do
Model with built-in reasoning or thinkingLeave it out. Describe the goal and the success criteria instead.
Fast model with no reasoning step, simple taskLeave it out. It only makes the answer longer.
Fast model with no reasoning step, multi-step problemAsk it to work through the problem first, then give the answer on a separate line.
You need to check how it got the answerAsk for a short explanation of the key steps after the answer, not a scripted method.

How to tell when to switch to few-shot

Switch when the same problem comes back after you have fixed the instruction. If one clear rewrite of the prompt doesn't fix it, an example usually will. The signs:

Signs a zero-shot prompt needs examples
What you seeWhy it happensWhat to add
The format drifts from answer to answer"Short summary" or "a table" can be read many waysOne or two examples of the exact output
Borderline cases get the wrong labelThe categories overlap and the rule is in your headAn example of each tricky boundary case
The tone is close but not yoursStyle is hard to describe in wordsTwo or three pieces you actually published
Missing data gets inventedThe model fills gaps to complete the patternAn example where a field is missing and marked "not stated"
Output feeds another system and must parseSmall format slips break the next stepExamples that match the exact format, character for character

Before you add examples, try one more zero-shot fix: describe the output more precisely, or give the first line of it. If that doesn't work, add one example and test again. Our few-shot prompting guide covers how to pick and format them.

Sometimes neither is the answer. If a single prompt is trying to research, decide and write all at once, the fix is to split it into steps, which is prompt chaining.

Zero-shot prompts to copy

1. A summary you can rely on
Summarize the document below for [reader, for example: our head of sales]. Give: what it says in five bullet points, what it means for [team or decision], and anything unclear or missing. Quote the exact sentence for any number you include. If something isn't in the document, say so instead of guessing.

Document:
[paste]
2. Classify without examples by defining the edges
Sort the customer message below into one of these categories: [list your categories]. Use these definitions:
[category]: [one line on what belongs here]
[category]: [one line]
If it fits two, choose [which one wins]. Reply with the category name only.

Message: [paste]

Why it works: written definitions and a tie-break rule do part of the job examples would do, at a fraction of the length. If the labels still wobble, that's your cue to add examples.

3. A decision with the criteria spelled out
I need to decide [decision]. The options are [options]. What matters most, in order: [criteria]. Constraints: [budget, deadline, team]. Recommend one option, explain why in under 150 words, and name the one fact that would change your recommendation.

Let the right experts write your prompt

Prompt Expert is an AI prompt generator that brings the right experts to every job. They ask a few questions, read your website and files, and write the prompt for ChatGPT, Claude or Gemini with your real facts, working together when a job needs more than one.

See how it works

Questions

What is zero-shot prompting?

Zero-shot prompting is asking an AI model to do a task with an instruction only, without any examples of the output. The model relies on what it learned in training to work out what you want.

What is an example of a zero-shot prompt?

"Translate this email into Spanish, keeping the tone formal" is a zero-shot prompt. It describes the task and the format but shows no sample translation.

What is the difference between zero-shot and few-shot prompting?

Zero-shot gives only instructions; few-shot adds a few worked examples of inputs and outputs. Zero-shot is shorter and cheaper. Few-shot gives more consistent formats, labels and tone.

Does "Let's think step by step" still work?

It still helps some models without a built-in reasoning step on multi-step problems. For reasoning models, OpenAI advises against it and says it can sometimes hurt, and Anthropic recommends relying on the model's own thinking instead.

When should I use zero-shot instead of few-shot?

Use zero-shot first for common tasks with a format you can describe in words. Switch to few-shot when the format, labels or tone keep coming out wrong after you have made the instruction clearer.

Sources