Sub topic 4
Goal Seek in Practice: Break-Even, Loan Terms, and Required Growth
This chapter applies Goal Seek to three common finance questions. It assumes you can write cell references and formulas, you know PMT, NPV and IRR, and you understand revenue, cost and profit. The Goal Seek dialog (set cell, to value, by changing cell) was covered in the previous chapter. Here the focus is on how to frame each question, what to check, and where the answers go wrong.
The pattern behind every use case
Every Goal Seek problem has the same three parts:
- An output formula that measures the thing you care about, such as operating profit or monthly payment.
- A target that you type as a number, such as 0 or 1,300.
- One input that is a typed constant, not a formula, which Goal Seek can overwrite.
Most failed runs come from framing the question badly, not from the tool. The following diagram shows the questions to answer before you open the dialog.
Use case 1: break-even volume
Break-even is the sales volume at which operating profit is zero. The model is small:
A1: Units sold B1: 1000
A2: Price per unit B2: 50
A3: Variable cost B3: 30
A4: Fixed costs B4: 15000
A5: Operating profit B5: =B1*(B2-B3)-B4At 1,000 units the profit is 1,000 × 20 − 15,000 = 5,000. To find the break-even, open Data > What-If Analysis > Goal Seek and enter:
- Set cell:
B5 - To value:
0 - By changing cell:
B1
Goal Seek converges on 750 units, because 750 × 20 = 15,000. Three details matter in practice:
B1must hold a typed number. If it held a formula, Goal Seek would stop with an error, because it cannot overwrite a formula.B5must depend onB1, directly or through other cells. If the chain is broken, the output never moves.- After the run,
B1contains 750 permanently. Your original 1,000 is gone unless you saved a copy or use Undo before doing anything else.
Because this model is linear, you can check the answer with =B4/(B2-B3), which returns 750. Writing such a check formula next to every Goal Seek result is a good habit. For a non-linear model that has no closed form, the check might be a data table or a manual recalculation.
Use case 2: loan terms
Loan questions combine PMT with a target. Set up the loan like this:
A1: Annual rate B1: 6%
A2: Years B2: 30
A3: Loan amount B3: 250000
A4: Monthly payment B4: =-PMT(B1/12,B2*12,B3)The minus sign in front of PMT matters. Excel's PMT returns a negative number for cash you pay out. If you leave the sign alone, you must type the target as −1300, and forgetting that is a frequent cause of "no solution" errors. With the minus sign, B4 shows about 1,498.88.
How much can I borrow?
Suppose the budget is 1,300 per month. Run Goal Seek with set cell B4, to value 1300, by changing cell B3. It returns a loan amount of about 216,829. Because this is a standard annuity, you can confirm it with =PV(B1/12,B2*12,-1300), which gives the same figure.
How long will repayment take?
Now keep the loan at 250,000 and fix the payment at 2,000. Change the term instead. It is easier to work in months, so add a months cell and rebuild the payment from it:
B2: 360 (term in months)
B4: =-PMT(B1/12,B2,B3)Goal Seek with B4 target 2000 by changing B2 returns about 196.66 months. A loan cannot have a fractional number of payments, so round up to 197 months and re-check the payment. You can confirm the raw figure with =NPER(B1/12,-2000,B3).
Verifying the loan result outside Excel
The same search can be repeated in Python with a root finder. This script solves the "how much can I borrow" case:
from scipy.optimize import brentq
monthly_rate = 0.06 / 12
months = 360
target_payment = 1300
def payment(principal):
return principal * monthly_rate / (1 - (1 + monthly_rate) ** -months)
principal = brentq(lambda p: payment(p) - target_payment, 1, 1_000_000)
print(round(principal))The output is about 216829, which agrees with Goal Seek. The function brentq needs a bracket, meaning two values where the difference changes sign. Goal Seek instead needs a starting guess. They are different ways of reaching the same root.
Use case 3: required growth rate
A growth question asks which annual rate turns today's revenue into a target. Build it as a forward model first:
A1: Revenue today B1: 1000000
A2: Growth rate B2: 5%
A3: Years B3: 5
A4: Revenue in year 5 B4: =B1*(1+B2)^B3At 5% growth, B4 is about 1,276,282. To reach 1,500,000, run Goal Seek with set cell B4, to value 1500000, by changing cell B2. The result is about 8.45%.
The closed-form check is =(1500000/B1)^(1/B3)-1, which also gives about 8.45%. Note that this is a compound annual growth rate. It tells you the constant rate needed, not what any individual year must achieve.
The same structure works for other rate questions. For example, Goal Seek can find the discount rate that makes NPV equal zero, which is the IRR. Use the IRR function when you can, since it is faster and live, but Goal Seek is a useful fallback for models where cash flows depend on the rate itself.
Setting up the run so it converges
Goal Seek is a numerical search, so a bad starting point can lead to a wrong answer or no answer. These habits help:
- Start close and in the right region. A growth rate of 5% is a sensible start. A starting value of 0 for a rate, or of 0 for a term in a PMT formula, can cause division by zero or a flat output.
- Keep the input within a valid range. A negative term or a rate below −100% breaks financial functions. Goal Seek has no bounds, so it may step into such values during the search.
- Type the target as a number. The "To value" box does not accept a cell reference. If your target lives in a cell (say, a budget in
D1), either type the number or add a difference cell=B4-D1and aim it at 0. The difference cell also keeps the target live when the budget changes. - Read the final dialog. It reports the target value and the current value. If they differ, Goal Seek stopped without solving the problem, and the input cell now holds its best attempt.
Reading and recording the answer
A solved number is only useful if others can see where it came from. After each run:
- Compare the result against an independent check (closed form, PMT/PV/NPER, or Python).
- Round the input to something meaningful, such as whole units for break-even or whole months for a loan, and confirm the output still meets the target.
- Record the answer next to the model, with the target and the date, for example "Break-even units: 750 (profit target 0)".
- Remember that the result is a snapshot. If price or cost changes, the solved input does not update, because Goal Seek wrote a constant into the cell. You must run it again.
If you must repeat a run often, a short macro can do it and report failure:
Sub SolveBreakEven()
Dim ok As Boolean
ok = Range("B5").GoalSeek(Goal:=0, ChangingCell:=Range("B1"))
If Not ok Then MsgBox "Goal Seek did not find a solution."
End SubRange.GoalSeek returns True or False, so the macro can detect a failure instead of leaving a half-solved model. Automation is covered in a later chapter.
Common errors at a glance
| Symptom | Likely cause | Fix |
|---|---|---|
| "Cell must contain a value" | The changing cell holds a formula | Replace it with a typed constant |
| Payment target never reached | PMT sign is negative and target is positive | Use `-PMT(...)` or target −1300 |
| Result is 196.66 months | Term is continuous in the search | Round up, then re-check the payment |
| Output does not move | Set cell does not depend on changing cell | Trace precedents and fix the link |
| Answer differs from check by a tiny amount | Tolerance of 0.001 | Tighten Maximum Change or round |
| Wrong rate found | Poor starting value, multiple roots | Restart nearer to a plausible rate |
Exercise
A company has revenue of 800,000 today and wants 1,200,000 in 4 years. Revenue in year 4 is calculated in B4 as =B1*(1+B2)^B3, with B1 = 800000, B2 = the growth rate, and B3 = 4. Which Goal Seek settings would you use, what is the approximate answer, and how would you check it without Goal Seek?
Show answer
Set cell B4, to value 1200000, by changing cell B2 (a typed starting value such as 5%). The answer is about 10.67% per year, since 1.5^(1/4) − 1 ≈ 0.1067. Check it with =(1200000/B1)^(1/B3)-1, which gives the same figure.