Skip to content

Goal Seek function in Excel

Goal Seek back-solves the input a formula needs to hit a target. Two worked examples: a mortgage term for a target payment and a loan margin for a target DSCR.

Tutorial · 4 minute read · Updated 28 October 2026

Goal Seek tutorial workbook

Excel binary workbook (.xlsb). The housing mortgage and term loan examples from this tutorial, set up for Goal Seek.

Goal Seek finds break-even points and answers tailored what-if questions in Excel. This tutorial applies it to two loan decisions.

When you know the result you want from a formula but not the input that produces it, Goal Seek back-solves the problem. It changes one input cell until the formula that depends on it returns the result you asked for.

How to use Goal Seek

Goal Seek needs a working base model: inputs and formulas already set up in the worksheet. Open it from the Data tab, under What-If Analysis. It asks for three things:

  • Set cell: the output cell
  • To value: the value you want the output cell to reach
  • By changing cell: the input cell Goal Seek may change

The set cell must contain a formula. The by changing cell must contain a value, not a formula. Select the set cell, type the target in To value, then select the by changing cell and click OK.

Excel then recalculates and offers the result. Accept it to write the solved value into the worksheet, or cancel to return the worksheet to how it was.

Learn this in a room

Best Practice Project Finance Modelling

Build and sensitise robust cashflow models from scratch, faster in Excel. Hands-on, practitioner-led, in person or online. See dates and book your place.

Iterations in Goal Seek

Goal Seek works by numerical iteration, so it does not always find the exact answer. It may stop when it is close enough, or fail to find the answer you want.

Goal Seek example 1: a mortgage term

Figure 1 shows the inputs for the monthly payment on a typical housing mortgage.

The inputs for the monthly payment on a housing mortgage: loan amount, interest rate and loan term
Figure 1: Goal Seek example 1, a housing mortgage.

The calculated monthly payment is A$4,182.20. You are the mortgage analyst at a bank, and your client wants to pay A$4,000 a month instead.

How does the loan term change if the monthly payment is A$4,000?

  • Add a cell E10 and label it Delta
  • In E10, enter a formula for the difference between the target payment and the calculated payment (A$4,000 − A$4,182.20 = −A$182.20)
  • Open Goal Seek from What-If Analysis on the Data tab
  • Set cell: E10
  • To value: 0
  • By changing cell: C7, the loan term
  • Goal Seek solves C7 at 240 months
The Goal Seek dialog box set to bring the delta cell to zero by changing the loan term in cell C7
Figure 2: Solving for the loan term at the new monthly payment.

You can solve for the loan amount (C5) instead of the term to hit the same target.

Goal Seek example 2: term loan pricing

Now you are the analyst at a bank pricing a term loan. The calculation tab derives the repayments and the debt service coverage ratio (DSCR). The calculated average DSCR is 1.96x and the target is 2.00x.

The inputs for a term loan, including the facility limit, interest margin and repayment terms used to derive the average DSCR
Figure 3: Goal Seek example 2, a term loan.

What interest margin gives an average DSCR of 2.00x?

  • Add a cell E26 and label it Delta
  • In E26, enter a formula for the difference between the target average DSCR and the calculated one (2.00x − 1.96x = 0.04x)
  • Open Goal Seek from What-If Analysis on the Data tab
  • Set cell: E26
  • To value: 0
  • By changing cell: C22, the interest margin
  • Goal Seek solves C22 at 2.49% a year

To reach an average DSCR of 2.00x, the loan needs an interest margin of 2.49% a year.

The Goal Seek dialog box set to bring the DSCR delta cell to zero by changing the interest margin in cell C22
Figure 4: Solving for the interest margin that gives the target average DSCR.

The same steps can change the facility limit (C14) instead:

  • Set cell: the delta cell
  • To value: 0
  • By changing cell: C14, the facility limit
  • Goal Seek solves C14 at A$319.20 million

Goal Seek questions

What is Goal Seek used for?

Finding the input that makes a formula return a target, without trying values by hand. Common uses are break-even analysis and solving for a loan term, interest margin or facility limit that meets a target payment or ratio.

Why does the set cell need to contain a formula?

Goal Seek changes an input until a formula that depends on it returns your target. If the set cell holds no formula driven by the by changing cell, there is nothing to solve.

Why doesn’t Goal Seek always find an exact answer?

It works by numerical iteration, not algebra. It usually stops when it is close enough, but sometimes it does not reach the value you want.

What is the difference between Goal Seek and a data table?

Goal Seek solves one input for one target output. A data table shows how an output changes across a range of inputs at once, which is better when you want the full sensitivity, not one solved answer.

Learn financial modelling in a room

Hands-on courses in person and online, taught to more than 20,000 people on one modelling standard.

Best Practice Project Finance Modelling

Build and sensitise robust cashflow models from scratch, faster in Excel. Hands-on, practitioner-led, in person or online. See dates and book your place.

View full course details: Best Practice Project Finance Modelling

Advanced Project Finance Modelling

Debt sizing, covenant monitoring, DSRAs and integrated three-way statements. Hands-on, practitioner-led training, in person or online. See dates and book.

View full course details: Advanced Project Finance Modelling

Financial Model Review

Error classes, testing technique and where AI-assisted financial model review earns its place. 1-day course from our award-winning Model Audit team.

View full course details: Financial Model Review

Browse all training courses

More on this topic

Tutorials

Using a Goal Seek macro to find the maximum debt limit

Use Goal Seek to find the largest debt a CFADS profile can support at a target DSCR, then record it as a VBA macro that runs at the click of a button.

Average DSCR in financial modelling

Average the period DSCRs or divide total CFADS by total debt service: why the two methods can give very different average DSCRs, and which to report.

Services

Financial Model Audit

An independent opinion on the model behind your transaction, with a red flag report on any show-stopper issues in under 5 working days.

Financial Model Development

Project finance models built from first principles for your transaction, structured for lenders to follow and handed over with the logic explained.

Learn to build these models yourself

We run public and in-house courses across the full financial modelling curriculum.