Gemini Prompting Best Practices: What Google Recommends
Google's own guidance for prompting Gemini in one page: specific instructions, consistent examples, context, long-input ordering and Gemini 3 specifics.
On this page13 sections
Gemini prompting best practices, according to Google's own documentation, come down to five habits: give clear and specific instructions, include a few consistent examples, supply the context the model needs, put long material first and the question last, and break complicated jobs into smaller prompts. For Gemini 3 models, Google adds that you should be precise and direct, control verbosity explicitly and place critical rules at the start of the prompt or in the system instruction.
This page goes deeper on Gemini than our main guide, The Best Prompt For Anything. Everything below is drawn from Google's prompt design strategies documentation. Google describes its guidelines as starting points and prompt design as an iterative process, so treat each section as a default to test, not a rule.
Give clear, specific instructions
Google's documentation describes four kinds of input: a question, a task, an entity to act on, and partial input for the model to complete. Whichever you use, say exactly what you want back.
The guide's own example is a packing list. "What should I pack for camping?" leaves the model to guess the length and shape of the answer. "Give me a list of the 5 most important items to bring on a camping trip" does not.
State constraints
Tell Gemini what it must and must not do. Google's example asks for a summary limited to one sentence, and the reply holds to it. Length limits, scope limits and banned topics all belong here.
Specify the response format
Name the format: a table, a bulleted list, keywords, a short paragraph, an elevator pitch. Google also shows a completion trick: end your prompt with the start of the format you want, such as the first line of an outline, and the model continues in that pattern.
For complex JSON, Google recommends Gemini's structured output feature over describing the schema in the prompt.
Include a few examples
Google's guidance here is unusually firm: it recommends always including few-shot examples in your prompts. Examples regulate formatting, phrasing, scope and general patterning more reliably than description alone, and the documentation notes you can sometimes remove instructions entirely if the examples are clear enough.
Two cautions come with that advice:
- Not too many. A few examples are usually enough for the model to pick up the pattern. Too many can make it overfit to them.
- Keep the format identical. Google specifically says to watch XML tags, white space, newlines and example separators. Inconsistent examples produce inconsistent output.
Google's illustration is a question asking which of two explanations is best. With no examples, the model picks the longer one. With two examples that favour concise answers, it picks the short one. For more on choosing examples, see our few-shot prompting guide.
Supply the context
Do not assume the model knows your situation. Google's example is a router troubleshooting question: without the manual, the answer is generic. With the relevant troubleshooting text pasted in and the instruction "Respond with only the text provided", the answer is specific to that device.
That instruction doubles as a guard against invented detail. When the answer must come from your material, say so.
Long context: material first, question last
For Gemini 3, Google says to provide all the context first and put your instructions or question at the very end, ideally after a transition phrase such as "Based on the information above". This matches Anthropic's advice for Claude and is one of the few rules all three major vendors share.
Prompting Gemini 3
Google's documentation adds a set of principles specific to Gemini 3:
- Be precise and direct. State the goal plainly rather than wrapping it in persuasion.
- Use consistent delimiters. XML-style tags or Markdown headings both work. Pick one format per prompt and stick to it.
- Define ambiguous terms. If "short" or "recent" matters, give a number or a date.
- Control verbosity. Google describes Gemini 3 as direct by default. If you want a detailed or conversational answer, ask for it.
- Put critical rules first. Persona, hard constraints and output format belong in the system instruction or at the very start of the user prompt.
Google publishes a template in both styles. The Markdown version looks like this:
# Identity
You are a support analyst for a project management tool.
# Constraints
- Answer only from the help articles provided.
- If the articles do not cover the question, say so.
# Output format
A two-sentence answer, then numbered steps.
Thinking
Gemini 2.5 and 3 models think internally before answering. Google says it is therefore generally not necessary to ask the model to outline its reasoning in the response. For hard reasoning, "Think very hard before answering" can help, at the cost of extra thinking tokens. Our chain-of-thought prompting guide compares this with OpenAI's and Anthropic's advice.
Model settings
If you use the API, note Google's warning on sampling parameters. For earlier Gemini 3 models, it says to keep temperature, top-p and top-k at their defaults to avoid degraded reasoning. Newer models ignore custom values for those parameters. Most people using the Gemini app never touch these settings.
Break complicated jobs down
Google lists three ways to split work:
- One prompt per instruction. Keep separate prompts for separate jobs and choose which to run based on the input.
- Chain prompts. Each step's output becomes the next step's input. See our prompt chaining guide.
- Aggregate responses. Run different operations on different parts of the data in parallel, then combine the results.
When a prompt is not working
Google suggests three iteration strategies:
- Rephrase. "Suggest a recipe for a pie" can work where "How do I bake a pie?" does not.
- Switch to an analogous task. Turning an open question into a multiple-choice one often gives cleaner results.
- Reorder the content. Try moving examples, context and input into a different order and compare.
For recent or obscure facts, enable Grounding with Google Search. For counting and arithmetic, enable code execution rather than relying on the model's mental maths.
A Gemini prompting checklist
- The task is stated in one specific sentence.
- Constraints and output format are explicit.
- Two or three examples are included, formatted identically.
- Needed context is pasted in, with an instruction to stay within it.
- Long material comes first; the question comes last.
- One delimiter style is used throughout.
- Verbosity is requested explicitly if you want more than a direct answer.
For ready-made prompts that suit Gemini's strengths, browse Gemini prompts.
FAQ
How do you write a good prompt for Gemini?
State the task specifically, add constraints and an output format, include a few consistently formatted examples, and paste in any context the model needs. For long inputs, put the material first and the question last. Google's documentation recommends iterating from there.
Should I use examples in Gemini prompts?
Yes. Google's prompt design guide recommends always including few-shot examples. Use a few, not many, and keep their formatting identical, because inconsistent examples lead to inconsistent output and too many can make the model overfit.
Does Gemini prefer XML tags or Markdown?
Google's Gemini 3 guidance accepts either. What matters is consistency: choose XML-style tags or Markdown headings and use one format throughout the prompt.
Should I tell Gemini to think step by step?
Usually not. Google says Gemini 2.5 and 3 already think internally, so asking for written reasoning is generally unnecessary. For a hard reasoning problem, "Think very hard before answering" can help, at the cost of extra thinking tokens.
How is prompting Gemini different from prompting ChatGPT or Claude?
The core advice is the same across all three vendors. The differences are in emphasis: Google stresses few-shot examples and direct, concise default answers. Our ChatGPT vs Claude vs Gemini comparison sets the guidance side by side.
Prompts that put this into practice
Research Paper and Report Summary Prompt
Summarizes a paper or report for a named reader: bottom line, method, key findings with exact figures, limits of the evidence, and what it means for them.
# Role
You are a careful analyst who summarizes research for people who will not read the original. Accuracy to the document matters more than fluency.
# What…Source-Bound Literature Review Prompt
Turns the papers, abstracts and notes you paste in into an evidence table, themes and a synthesized draft, with every citation traceable to a source you supplied.
# Role
You are a research assistant drafting a literature review. You work only from the material I supply. You do not cite, quote or describe any publication f…Editing and Proofreading Prompt
Edits a draft at the level you choose, protects the author's voice, and returns a change log plus queries instead of silent rewrites.
# Role
You are a copy editor working on someone else's writing. Your job is to make the draft cleaner and clearer while it still sounds like the person who wrot…Keep reading
Guide
Claude Prompting Best Practices: What Anthropic Recommends
Anthropic's own guidance for prompting Claude, in one page: be explicit, give reasons, use examples, separate instructions from material, and handle long documents well.
Guide
OpenAI Prompting Best Practices: The Official Rules Explained
OpenAI's own prompting guidance in one page: the eight rules from its help article, how to structure longer prompts, key settings, and what changes for reasoning models.
Guide
ChatGPT vs Claude vs Gemini: How Prompting Differs
How OpenAI, Anthropic and Google each say to prompt their models, side by side: where the advice agrees, where it differs, and one prompt adapted for all three.
Sources and references
- Prompt design strategies — Google