Goal Seek: Find Required Input for Desired Output (Backwards Calculation)

Goal Seek in Excel tutorial showing what-if analysis target values changing cells and business assumptions
Use Excel Goal Seek to work backward from a target result and find the required input value. This tutorial explains how to set a target cell, choose the changing cell, run Goal Seek, and apply it to practical examples such as sales targets, loan payments, profit goals, and pricing analysis. Ideal for Excel users, analysts, finance teams, students, and professionals who want a simple way to perform what-if analysis without complex formulas.

Most Excel formulas work forwards: you supply the inputs and the formula calculates the output. Goal Seek reverses this completely. You specify the output you want — a target profit, a break-even unit count, a specific loan payment — and Goal Seek works backwards to find the single input value that produces it. It is built into every version of Excel, requires no formulas beyond the ones already in your model, and runs in under a second on most problems. This guide covers the Goal Seek dialog in full, six practical backwards-calculation scenarios across finance, sales, and operations, every important limitation, and all common troubleshooting steps.

Goal Seek vs Solver — When to Use Each

Goal Seek and Solver both find input values that produce a desired output. They target completely different problem types, however, and choosing the wrong tool means either getting an error or not finding the true optimum. Understanding the distinction takes under a minute and prevents significant frustration.

Goal Seek vs Solver — key differences: Feature Goal Seek Solver -------------------------------------------------------------------- Number of variable cells 1 only Up to 200 Number of constraints None Up to 100 Objective options Hit exact target Max / Min / Target Integer / binary variables No Yes Access Data > What-If Data > Analyse Setup time Under 30 seconds 2–10 minutes Use when 1 unknown, 1 target Multiple unknowns or constraints Rule of thumb: "What price makes profit = £50k?" → Goal Seek (one unknown) "What mix of products maximises profit given resource limits?" → Solver

The Goal Seek Dialog — Three Fields

Goal Seek has exactly three fields. Filling them correctly is the entire setup process — there are no options, no method choices, and no additional settings. The dialog opens via Data > What-If Analysis > Goal Seek and closes in under 30 seconds from open to result.

1.
Set cell — the formula cell containing the output you want to control. It must contain a formula, not a constant. This is the cell whose value you want to reach.
2.
To value — the exact target value you want the Set cell to reach. Type the number directly — for example, 0 for break-even, 50000 for a £50k profit target, or 500 for a specific payment amount.
3.
By changing cell — the single input cell Goal Seek is allowed to modify. It must contain a constant (a plain number), not a formula. Goal Seek changes only this one cell.
The "Set cell" must contain a formula. If the Set cell contains a constant rather than a formula, Goal Seek simply writes the target value directly into that cell and reports "solution found" — which is technically correct but completely useless. Always verify that the Set cell references the Changing cell somewhere in its formula chain before running Goal Seek.

Example 1: Break-Even Analysis — Units Required to Cover Fixed Costs

A business has fixed monthly costs of £12,000 and earns a contribution margin of £8 per unit sold. The break-even point is the number of units where total profit equals exactly zero. Instead of rearranging the break-even formula manually, Goal Seek finds the answer directly from the model. Set cell B5 (profit formula) to 0, changing cell B2 (units sold). Goal Seek calculates 1,500 units in under one second — immediately visible in B2 without writing any algebra.

Input
Value
Units Sold (B2)
1,500 ← Goal Seek result
Price per Unit
£20
Variable Cost per Unit
£12
Fixed Costs
£12,000
Profit (B5) = B2*(20-12)-12000
£0 ← target
Goal Seek dialog settings: Set cell: B5 (=B2*(20-12)-12000) To value: 0 By changing: B2 Result: B2 = 1500 units (break-even point) Verify: 1500 × (£20 - £12) - £12,000 = £12,000 - £12,000 = £0 ✓

Example 2: Loan Payment Backwards — Required Principal for a Target Payment

The PMT function calculates a monthly payment given principal, rate, and term. Goal Seek inverts this: given a maximum affordable monthly payment, it finds the maximum loan amount you can borrow. This is the exact calculation a mortgage broker performs to determine borrowing capacity. Set cell B5 (PMT formula) to the target payment, changing cell B2 (loan principal). Goal Seek finds the answer without rearranging the PMT formula — which has no simple algebraic inverse.

Maximum borrowing for a £1,200/month budget: Setup: B2: [loan amount — the changing cell, start with any value e.g. 200000] B3: 4.5% (annual interest rate) B4: 25 (loan term in years) B5: =PMT(B3/12, B4*12, -B2) ← monthly payment formula Goal Seek dialog: Set cell: B5 To value: 1200 By changing: B2 Result: B2 = £222,577 (maximum loan for £1,200/month at 4.5% over 25 years) Verify: =PMT(4.5%/12, 25*12, -222577) = £1,200.00 ✓
Why Goal Seek is needed here: The PMT function has no algebraic inverse that can be typed in a cell. Rearranging PMT to solve for the principal requires calculus-level manipulation. Goal Seek finds the result numerically in under one second regardless of mathematical complexity.

Example 3: Sales Target — Required Revenue to Hit a Profit Margin

A business model calculates net profit margin as a percentage of revenue. Operating costs are partly fixed and partly variable, so the margin formula is non-linear relative to revenue. The question is: what revenue level produces exactly a 15% net margin? Goal Seek solves this in one step — set the margin formula cell to 0.15, changing the revenue cell. The result accounts for all cost structures in the model without any simplifying assumptions.

Revenue required for 15% net margin: Setup: B2: [Revenue — changing cell] B3: =B2 * 0.35 (variable costs = 35% of revenue) B4: 45000 (fixed overhead) B5: =B2 - B3 - B4 (net profit) B6: =B5 / B2 (net margin %) Goal Seek dialog: Set cell: B6 (=B5/B2) To value: 0.15 By changing: B2 Result: B2 = £90,000 (revenue needed for 15% net margin) Verify: Revenue £90k - Variable £31.5k - Fixed £45k = £13.5k = 15% ✓

Example 4: Interest Rate — What Rate Makes an Investment Hit a Target Value

The FV (future value) function calculates how much an investment grows to at a given rate. Goal Seek inverts this: given a target final value, it finds the required annual return rate. This is useful for investment planning, pension modelling, and savings goal calculations where you know the destination and need to discover the required rate of return to get there. The approach works for any compound interest or annuity model without needing to solve exponential equations manually.

Required rate to reach £500,000 in 20 years: Setup: B2: [Annual rate — changing cell, start with 0.05] B3: 20 (years) B4: 100000 (initial lump sum) B5: 500 (monthly contribution) B6: =FV(B2/12, B3*12, -B5, -B4) ← future value formula Goal Seek dialog: Set cell: B6 To value: 500000 By changing: B2 Result: B2 = 6.2% annual rate required (to grow £100k + £500/month contributions to £500k in 20 years)

Example 5: Price Optimisation — Unit Price for a Target Gross Profit

A product manager needs to set the selling price to achieve a specific gross profit amount, given fixed unit costs and a known sales volume forecast. The gross profit formula contains the price as a simple multiplier, but using Goal Seek is faster than mental arithmetic and eliminates rounding errors. Furthermore, the same approach works for more complex pricing models where discounts, tiered costs, or rebates make manual calculation error-prone.

Price needed for £35,000 gross profit on 5,000 units: Setup: B2: [Unit price — changing cell] B3: 5000 (units forecast) B4: 8.50 (unit cost) B5: =B3*(B2-B4) ← gross profit formula Goal Seek dialog: Set cell: B5 To value: 35000 By changing: B2 Result: B2 = £15.50 per unit Verify: 5,000 × (£15.50 - £8.50) = 5,000 × £7.00 = £35,000 ✓

Example 6: Headcount Planning — Staff Required to Meet a Service Level

A call centre model calculates average wait time as a function of call volume, average handle time, and number of agents. The wait time formula is non-linear — reducing agents from 12 to 11 increases wait time by more than reducing from 13 to 12, because the relationship follows an Erlang-C curve shape. Goal Seek navigates this non-linearity automatically. Set the wait time formula cell to the target (e.g. 60 seconds), changing the agent count cell, and Goal Seek finds the minimum staffing needed to meet the service level target.

Minimum agents for 60-second average wait time: Setup: B2: [Agent count — changing cell, start with 10] B3: 120 (calls per hour) B4: 4 (average handle time, minutes) B5: =((B3/60*B4)^B2/FACT(B2)) / (SUM(...Erlang series...)) * ... [simplified: use an Erlang-C lookup table model with B2 as input] B5: =ErlangWait(B2, B3, B4) ← wait time in seconds Goal Seek dialog: Set cell: B5 To value: 60 By changing: B2 Result: B2 = 9 agents (minimum staff for ≤60s average wait at this call volume) Note: Goal Seek accepts fractional results — round up to the nearest integer since you cannot employ a fraction of a staff member.
Rounding non-integer results: Goal Seek returns the mathematically exact solution — often a decimal. For headcount, machine count, or any other integer-constrained problem, always round up the result (ROUNDUP, not ROUND) to ensure the target is met. Rounding down would produce a result that misses the target.

Troubleshooting Goal Seek

All three issues below are straightforward to diagnose. Each has a specific fix that takes under two minutes to identify and apply.

Goal Seek reports "may not have found a solution"

This warning appears when Goal Seek's iteration process approaches but does not reach the target value within its maximum iteration count. Two things cause this. First, the target value may be genuinely unreachable — for example, asking for a negative revenue or a profit margin above 100%. Check whether the target is mathematically possible given the model's constraints. Second, the model may require more iterations than Goal Seek's default of 100. Go to File > Options > Formulas and increase "Maximum Iterations" to 1,000. Also reduce "Maximum Change" from 0.001 to 0.0001 for more precise convergence on targets requiring many decimal places of accuracy.

Goal Seek finds the wrong answer — a result that does not satisfy the target

This happens when the relationship between the changing cell and the Set cell is not monotonic — the output goes up and then back down (or vice versa) as the input increases, creating multiple possible solutions. Goal Seek uses a gradient-based search that finds the nearest local solution from the starting value, not necessarily the global solution. Fix this by starting from a different value in the changing cell before running Goal Seek — manually type a value closer to the expected answer range, then run Goal Seek again. The starting value in the changing cell determines which solution Goal Seek converges on when multiple solutions exist.

Goal Seek changes the wrong cell — the Set cell value changes but the Changing cell does not update

This means the Set cell formula does not reference the Changing cell — either directly or through a chain of intermediate formulas. Goal Seek can only affect the Set cell's value by modifying the Changing cell. If there is no formula connection between them, changing the Changing cell has no effect on the Set cell and Goal Seek cannot make progress. Use Formulas > Trace Precedents on the Set cell to confirm a visible arrow chain leads back to the Changing cell. If no chain exists, the model structure needs to be corrected before Goal Seek will work.

Frequently Asked Questions

  • How do I use Goal Seek in Excel?+
    Go to Data > What-If Analysis > Goal Seek. In the dialog, set three values: Set cell (the formula cell containing your output), To value (the target number you want to reach), and By changing cell (the single input cell Goal Seek can modify). Click OK. Goal Seek iterates through input values until it finds one that produces the target output, then writes that value into the Changing cell. The result appears immediately — press OK to keep it or Cancel to restore the original value.
  • What is the difference between Goal Seek and Solver in Excel?+
    Goal Seek changes exactly one cell to reach one specific target value — it has no constraints and cannot maximise or minimise. Solver changes up to 200 cells simultaneously, can maximise or minimise the objective instead of hitting a fixed target, and supports any number of constraints on the variable and other cells. Use Goal Seek for simple backwards calculations with one unknown. Use Solver for optimisation problems with multiple decision variables, resource constraints, or integer requirements. Solver requires enabling as an Add-in; Goal Seek is always available with no setup.
  • Can Goal Seek handle non-linear formulas?+
    Yes. Goal Seek works on any formula regardless of whether the relationship between input and output is linear or non-linear. It uses an iterative numerical approach rather than algebraic manipulation, so it finds the answer for polynomial, exponential, logarithmic, and trigonometric relationships without needing an analytical inverse formula. The only limitation is that the relationship must be continuous and the target must be mathematically reachable. For relationships with multiple solutions (non-monotonic curves), Goal Seek finds the solution nearest to the starting value in the changing cell.
  • How do I perform multiple Goal Seek calculations at once?+
    Goal Seek itself processes only one calculation per run — it cannot iterate across multiple target scenarios simultaneously. For multiple scenarios, use Data Tables (Data > What-If Analysis > Data Table) instead: a one-variable data table shows the output for a range of input values and is much faster than running Goal Seek repeatedly. Alternatively, use VBA to automate multiple Goal Seek calls in sequence. A simple loop can run Goal Seek for each row in a scenario table and write the results to adjacent cells, effectively replicating Goal Seek across many targets at once.