Home / Guides / How to Use Goal Seek in Excel

How to Use Goal Seek in Excel

Financial Modeling · Updated June 2026

To use Goal Seek in Excel, go to Data, What-If Analysis, Goal Seek, then set the cell you want to control (Set cell), the target number (To value), and the input Excel should change (By changing cell). Excel works backward and adjusts the input until the output hits your target. It is the fastest way to answer questions like what price gives a 20% margin or what units break even.

What Goal Seek solves

Goal Seek answers reverse questions. Normally a model flows forward: you set inputs and read an output. Goal Seek flips that. You name the output you want, and Excel finds the single input that produces it.

It only ever changes one input cell, and that cell must be a hardcoded value, not a formula. The target cell, by contrast, must be a formula that ultimately depends on the input you are changing. If there is no formula link between them, Goal Seek cannot solve.

Common uses in finance: solving for the revenue that hits a target profit, the discount rate that makes NPV equal zero (a manual IRR), the price that delivers a desired gross margin, or the units that reach break-even.

Run Goal Seek: a break-even example

Say B1 holds units sold (currently 1,000), B2 is price per unit ($50), B3 is variable cost per unit ($30), B4 is fixed costs ($25,000), and B5 calculates profit as =B1*(B2-B3)-B4. Right now profit is negative. You want the units that make profit exactly zero.

  1. Click the Data tab, then What-If Analysis, then Goal Seek.
  2. In Set cell, enter B5 (the profit formula you want to control).
  3. In To value, type 0 (your break-even target). Always type a number here, never a cell reference.
  4. In By changing cell, enter B1 (units sold, the input Excel may adjust).
  5. Click OK. Excel iterates and lands on 1,250 units, the point where profit is zero.
  6. Read the result, then click OK to keep the new input or Cancel to restore the original 1,000.

Read the result and decide whether to keep it

When Goal Seek finishes it shows a dialog reporting whether it found a solution and what the current value is. Critically, it has already written the solved value into your input cell. Clicking OK keeps that change; clicking Cancel reverts it.

Because Goal Seek overwrites your input in place, copy the original value somewhere first if you might want it back, or plan to Cancel after noting the answer. For repeatable analysis, record the solved input next to your model rather than leaving the model in its solved state.

Fix common Goal Seek failures

Goal Seek reports when it cannot find a solution. The fixes are usually simple.

Do it in one click

Formula Trace

Goal Seek only works when the target cell genuinely depends on the input you are changing. ModelMint's Formula Trace maps the dependency chain from your output back to its drivers, so before you run Goal Seek you can confirm the Set cell really flows from the By changing cell.

Get ModelMint See how it works

FAQ

Can Goal Seek change more than one cell at a time?

No. Goal Seek changes exactly one input cell to hit one target. If you need to solve for several inputs at once, or with constraints, use Solver (an Excel add-in under Data, Solver), which handles multiple variables and bounds.

Does Goal Seek permanently change my model?

It writes the solved value into your input cell immediately. If you click OK in the final dialog, that value stays; if you click Cancel, Excel restores the original. Save a copy of the original input first if you want to be safe.

Why does Goal Seek give a slightly wrong answer?

It stops when it gets within a set tolerance rather than landing exactly. Increase precision under File, Options, Formulas by raising Maximum Iterations (for example to 1000) and lowering Maximum Change (for example to 0.0000001).