P

Plan And Solve: Definition and Examples

Prompting technique that asks the model to first devise a resolution plan before solving a problem, thereby improving its performance on complex reasoning tasks.

Full definition

Plan And Solve (PS) is a prompting strategy introduced by Wang et al. in 2023, designed to improve the ability of large language models to solve complex problems, especially in mathematics and logical reasoning. Instead of asking the model to solve a problem directly, it is explicitly asked to design an action plan before proceeding to execution.

This approach is inspired by the observation that methods like Chain of Thought (CoT) sometimes suffer from calculation errors, missing steps, or loss of coherence during reasoning. By forcing an explicit planning phase, Plan And Solve reduces these issues by structuring the model's thinking in two stages: first understand the problem and identify necessary steps, then execute each step in an orderly manner.

The improved variant, called PS+ (Plan And Solve Plus), adds additional instructions such as "extract variables and their values" or "compute intermediate results." These detailed guidelines guide the model further and significantly reduce reasoning errors.

Plan And Solve works in zero-shot mode, meaning it requires no prior examples in the prompt. Simply adding an instruction like "First devise a plan, then solve the problem step by step" yields significantly better results than a basic prompt.

Etymology

The term comes directly from the research paper "Plan-and-Solve Prompting" published by Lei Wang et al. in 2023. It literally describes the two phases of the method: plan then solve.

Concrete examples

Solving a complex math problem

Solve this problem. First, devise a plan by identifying the variables and necessary calculation steps. Then execute each step of the plan.

Problem: A store offers a 20% discount on an item priced at €85, then applies a 5.5% tax on the reduced price. What is the final price?

Analyzing a multi-factor business case

Before answering, design a structured plan to analyze this case. Identify the dimensions to examine, then address each dimension methodically.

Case: A B2B SaaS startup has a monthly churn rate of 8% despite an NPS of 45. What could be the causes and solutions?

Debugging a complex technical problem

First, develop a diagnostic plan by listing possible causes in order of likelihood. Then analyze each cause one by one, explaining how to verify it.

Problem: My Next.js application returns a 500 error only in production, never in local development.

Practical usage

To apply Plan And Solve, add an explicit instruction asking the model to plan before acting, for example: "First design a plan, then solve the problem step by step." For the PS+ variant, specify expected subtasks such as extracting key data, identifying relationships between variables, and checking each intermediate calculation. This technique is particularly effective for multi-step problems where the model might skip steps or lose the thread of reasoning.

Related concepts

Chain of ThoughtZero-Shot PromptingTree of ThoughtsStep-by-Step Reasoning

FAQ

What is the difference between Plan And Solve and Chain of Thought?
Chain of Thought asks the model to reason step by step, but without an explicit planning phase. Plan And Solve adds a preliminary step where the model must identify and structure its resolution plan before executing it. This reduces missed steps and reasoning errors sometimes observed with standard CoT.
Does Plan And Solve require examples in the prompt?
No, that is one of its main advantages. Plan And Solve works in zero-shot mode: simply add a planning instruction to the prompt, without providing any resolution examples. This makes it easier to implement than few-shot approaches that require building relevant examples.
In which cases is Plan And Solve most useful?
This technique excels on multi-step problems such as math problems, complex data analysis, logical reasoning, and project planning. It is less necessary for simple or straightforward tasks like translation, short summarization, or classification, where a basic prompt usually suffices.

See also

How to use this prompt

  1. Copy the prompt with the button above.
  2. Paste it into ChatGPT, Claude or your favorite AI assistant.
  3. Replace the bracketed variables with your details, then refine the result.

About Prompt Guide

Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.

More definitions

Get new prompts every week

Join our newsletter.