Sub topic 11
Circular References and Interest on Average Balances
This chapter assumes you can read the three statements, follow cell references in Excel, and already know how net income flows into retained earnings and cash. It covers why interest on average balances creates a circular reference, how that circularity can leave a model out of balance, and how to control it.
Why interest creates a loop
Interest expense reduces net income. Net income feeds cash flow, and cash flow sets the ending cash and debt balances. If interest is calculated on the average of opening and closing debt, interest depends on the closing balance. The closing balance depends on cash flow, which depends on net income, which depends on interest.
That is a circular reference: a cell whose value depends, through a chain of other cells, on itself.
Interest on the opening balance avoids the loop, because the opening balance is last period's closing figure and is already known. Average-balance interest is more accurate when debt changes during the year, so many models use it anyway.
Where circularity shows up
The loop appears in three common places:
- Term debt with a cash sweep. Excess cash repays debt, and the repayment depends on net income after interest.
- Revolver draws. The draw needed to hold minimum cash depends on cash flow after interest, and the draw changes interest.
- Interest income on cash. Interest earned on average cash depends on ending cash, which includes that interest.
How a circularity causes an imbalance
A circular model is not wrong by itself. It becomes a problem in three ways.
- Excel's iterative calculation is off. Excel shows a circular reference warning and may leave the cells in the loop at zero. The statements then disagree, and the balance check fails with no obvious arithmetic mistake.
- The loop has not converged. With iteration on, Excel stops after a set number of passes (100 by default) or when the change falls below a threshold (0.001 by default). If the loop is unstable, the statements hold values from different passes.
- An error is trapped in the loop. One
#REF!or#DIV/0!spreads through every cell in the loop. Fixing the source does not clear it, because each cell keeps feeding the error back to the others.
The first symptom is a balance check that changes each time you press F9 or edit an unrelated cell. A pure logic error, such as a flipped sign, gives the same difference every time. Instability points to circularity.
Controlling the loop
Turn iteration on deliberately
In Excel, go to File > Options > Formulas and tick Enable iterative calculation. Set Maximum Iterations to 100 and Maximum Change to 0.001. Excel stores this setting in the workbook session, not in the file alone, so a colleague who opens your model with another workbook already open may see a warning. Add a note on the cover sheet that the model needs iteration on.
Add a circuit breaker
A circuit breaker is a switch that cuts the loop so you can clear errors. Put a cell on an inputs sheet, for example Circ_Switch, where 1 means average balances and 0 means opening balances.
Average debt:
=AVERAGE(C20,D20)
Interest on average debt, with breaker:
=IF(Circ_Switch=1, AVERAGE(C20,D20), C20) * Interest_Rate
Interest expense on income statement (row 12):
=D25Here C20 is the opening debt balance and D20 is the closing balance for the current period. When Circ_Switch is 0, interest uses the opening balance only, so the loop breaks and any #REF! or #DIV/0! values clear. Set the switch back to 1 once the model is clean.
The usual recovery routine is:
- Set
Circ_Switchto 0. - Fix the source of the error and confirm that the balance check shows OK.
- Set
Circ_Switchback to 1. - Confirm that the balance check still shows OK after iteration settles.
Check that the loop converges
After you turn the switch on, press F9 several times and watch the balance difference. A stable model returns the same values each time. A model that still moves by more than your tolerance is not converging, and you should look for the cause before you trust any figure.
Common causes include:
- An interest rate entered as a whole number such as 5 instead of 5%, which makes interest enormous and the loop diverge.
- A cash sweep that can repay more debt than exists, so the balance goes negative and interest flips sign.
- A minimum cash formula with a
MAXorMINthat switches abruptly between two branches on each pass.
Seeing the effect with a small simulation
The Python below solves the same loop by repeated substitution, as Excel does. It shows why the loop converges when the interest rate is modest.
opening_debt = 1000.0
rate = 0.08
ebit = 300.0
tax_rate = 0.25
capex_and_other = 0.0
repayment_share = 1.0 # all after-tax cash flow repays debt
closing_debt = opening_debt # first guess
for i in range(1, 11):
interest = rate * (opening_debt + closing_debt) / 2
net_income = (ebit - interest) * (1 - tax_rate)
cash_for_debt = net_income * repayment_share - capex_and_other
new_closing = opening_debt - cash_for_debt
change = abs(new_closing - closing_debt)
closing_debt = new_closing
print(f"pass {i}: interest={interest:.4f} closing_debt={closing_debt:.4f} change={change:.6f}")
if change < 0.001:
breakEach pass changes the closing balance by a smaller amount. The change in each pass is roughly the previous change multiplied by rate * (1 - tax_rate) / 2, which is 0.03 here, so the loop settles in a few passes. This factor is far below 1 for realistic rates. A factor near or above 1 means the loop diverges, which usually points to an input error.
Imbalances that look like circularity but are not
Not every unstable check comes from the interest loop. Before you blame iteration, rule out these cases.
| Symptom | More likely cause | How to test |
|---|---|---|
| Same difference after every F9 | Logic error such as a sign flip or an omitted item | Set `Circ_Switch` to 0. If the difference stays the same, the loop is not the cause. |
| Difference appears only with the switch on | Loop not converging, or an iteration setting issue | Press F9 repeatedly and watch the difference |
| `#REF!` or `#DIV/0!` in many cells | Error trapped in the loop | Set the switch to 0 and trace the first error |
| Balance check correct but interest looks wrong | Interest rate input or the wrong balance referenced | Recompute one period by hand |
The switch test is the quickest way to split the problem. If the model balances with the switch at 0 and fails at 1, the cause lies in the circular logic. If it fails in both states, hunt for a normal linkage error using the earlier chapters.
Keeping the loop consistent across statements
For the balance sheet to balance, the same interest figure must flow to every place that uses it. Check these links:
- The income statement interest line pulls from the debt schedule, not from a second calculation.
- The cash flow statement starts from net income, so it picks up interest automatically. Do not add interest back and then subtract it again.
- The debt schedule's closing balance is the figure on the balance sheet, and the same cell drives the average.
- If interest is capitalized or paid in kind, the accrued amount must be added to debt and not only expensed.
A frequent error is to compute average interest on one sheet and use opening-balance interest on another. The statements then use different interest figures, and the difference equals the interest gap multiplied by one minus the tax rate, partly offset by the tax line.
When to avoid circularity
Some teams remove circularity altogether. Options include:
- Opening balance interest. Simple and stable, but it overstates interest when debt falls and understates it when debt rises.
- Algebraic solution. Solve for interest in closed form on paper and enter the result as a formula. This works for simple structures but is hard to maintain.
- Copy-paste macro. A macro pastes values into a helper row each pass. This avoids iteration settings but adds code that must be maintained and can go stale if no one runs it.
Use average balances with a circuit breaker when accuracy matters and reviewers know how to handle iteration. Use opening balances when the model will be shared widely or when debt moves little during a period.
Summary of the diagnostic path
- If the balance difference changes between recalculations, suspect circularity or non-convergence.
- Set the circuit breaker to 0. If the difference vanishes, the loop is the cause.
- Clear any trapped errors with the switch off, then turn it back on.
- Check that interest on every statement comes from one source.
- If the difference persists with the switch off, return to the first-period and error-signature methods from earlier chapters.
Exercise
A model balances when Circ_Switch is 0. When you set it to 1, the balance difference shows 0.00 on one recalculation, 3.41 on the next, and 0.87 on the next, with no other change. Name two likely causes and one test for each.
Show answer
Likely cause 1: the loop is not converging because of an input error such as an interest rate typed as 8 instead of 8%. Test: check the rate cell and press F9 repeatedly to see whether the values grow instead of shrinking. Likely cause 2: iteration is off or its limits are too low, so cells hold values from different passes. Test: confirm Enable iterative calculation is ticked, raise Maximum Iterations, and see whether the difference settles. A fixed logic error is ruled out because it would give the same difference every time.
Exercise
In the Python simulation, opening debt is 1000, the rate is 0.08, EBIT is 300, and the tax rate is 0.25. Roughly how much does the error in the closing debt balance shrink on each pass, and what would that mean if the factor were 1.2?
Show answer
The error shrinks by a factor of rate (1 - tax_rate) / 2 = 0.08 0.75 / 2 = 0.03 per pass. A factor of 1.2 would mean each pass moves the answer further from the solution, so the loop diverges. The cause is usually an input such as an interest rate far too high.