Circular References in a Debt Schedule: Interest on Cash and the Revolver
A model opens on a colleague’s laptop with a warning: “There are one or more circular references.” They click OK. The interest line shows zero. On the original builder’s machine it shows 20,833. Same file, same inputs, two answers, because one copy of Excel has iterative calculation switched on and the other does not.
Circularity in a financial model is often legitimate. Interest on average debt depends on the closing balance, the closing balance depends on how much the company borrows, and borrowing depends on cash flow after interest. This post explains where the loop comes from, how much it actually changes the numbers, and the four ways to handle it in Excel 2021 or 365, from avoiding it entirely to iterating safely.
Where the loop comes from
The common case is a revolver. Cash before financing comes out of the model. If it falls below the minimum, the revolver draws the difference. Interest on the revolver is part of the cash flow. If interest is calculated on the average of the opening and closing balance, the closing balance depends on interest and interest depends on the closing balance.
The same loop appears with interest income on cash, a cash sweep that repays debt from free cash flow, fees calculated on drawn amounts, and tax on interest. Each one is a cell that needs its own result before it can calculate.
How much it matters
Take an annual model. The revolver opens at 200,000, the year’s funding need before interest is 100,000, and the rate is 8%.
- Interest on the opening balance: 16,000. The revolver closes at 316,000.
- Interest on the average balance: 20,833. The revolver closes at 320,833.
The 4,833 difference is the interest on the year’s new borrowing, which the opening-balance method ignores. In an annual model with large movements, that is material.
Now take a monthly model with the same rate and a monthly draw of 8,333. The difference between the two methods is about 32 a month. The interest on one month’s draw, for half a month, is too small to justify a circular model.
So the first question is not how to handle circularity. It is whether the model needs it.
Option 1: interest on opening balances
For most monthly models, calculate interest on the opening balance of each period:
=OpeningDebt * Rate/12
There is no loop: opening balance is last period’s closing balance, already calculated. The error is half a period of interest on the period’s movement, small at monthly granularity. The free 5-Year Cash Flow Model uses this approach so it has no circular references at all.
This is the default to beat. Every other option adds complexity a reviewer has to understand.
Option 2: solve the loop algebraically
When the circularity is a single, simple relationship, solve it. With interest on the average balance:
Closing = (Opening * (1 + r/2) + Need) / (1 - r/2)
where r is the period rate and Need is the funding need before interest. For the annual example: (200,000 × 1.04 + 100,000) / 0.96 = 320,833, exactly what iteration produces. Interest is then the closing balance less opening less need.
This keeps the model non-circular and exact. It gets unwieldy when there are several loops (a revolver, a cash sweep and interest income together), and the formula needs a comment explaining where it came from.
Option 3: iterative calculation with a circuit breaker
When the loop is real and complex, let Excel iterate. File, Options, Formulas, Enable iterative calculation. Excel recalculates the loop until the change between passes is below the maximum change (0.001 by default) or it reaches the iteration limit (100 by default).
Never switch it on without a circuit breaker: an input cell, 1 or 0, that cuts the loop.
=IF(CircSwitch=1, Rate * AVERAGE(Opening, Closing), Rate * Opening)
With the switch at 0, interest uses the opening balance and the model is not circular. This matters for three reasons.
- Errors stick. If a #DIV/0! or #REF! gets into the loop, it feeds itself and stays even after the cause is fixed. Setting the switch to 0, recalculating and setting it back to 1 clears it.
- Auditing. With the switch off, Trace Precedents and Evaluate Formula work normally.
- Accidental circularity. With iteration on, Excel no longer warns about any circular reference, including the accidental ones. Turning the switch off and checking for warnings is the only way to find a new, unintended loop.
The live Playbook rules handle this the same way: one calculation direction per sheet prevents accidental loops, and a deliberate loop gets a switch and a note on the cover tab.
The setting that travels with Excel, not the file
Calculation mode and iterative calculation are application settings. Excel takes them from the first workbook opened in a session and applies them to every workbook open after it. If a colleague opens a workbook without iteration first and your model second, your model runs without iteration: the circular warning appears, the loop does not converge, and interest may show zero or a stale value.
Put the requirement on the cover tab in plain words: “This model uses iterative calculation. Open it first, or enable iteration under File, Options, Formulas.” Put a visible check next to the interest line that compares interest to rate times average balance and flags any difference. That check is what tells a reviewer the loop actually resolved on their machine.
Option 4: paste the loop away
Some banking models break the loop with a macro: calculate interest, paste it as a value, repeat until it stops changing. The model is never circular and always shows a converged number. It also goes stale the moment an input changes and nobody reruns the macro. Use it only where the model is run by one team with a defined process, and stamp the last run time beside the pasted values.
Which one to use
| Model | Recommendation |
|---|---|
| Monthly, one debt facility | Opening-balance interest |
| Annual, one revolver | Algebraic solve |
| Annual or quarterly, revolver plus sweep plus interest income | Iteration with a circuit breaker |
| Banking model with a defined run process | Iteration or a paste macro, documented |
Where it breaks
Iteration on with no switch. Every accidental circular reference added later is silently accepted.
Too few iterations. A loop with large movements may not converge within the default 100. Add a convergence check: interest calculated two ways, difference near zero.
Opening-balance interest in an annual model with big swings. The error is half a year of interest on the year’s movement. Either go to the algebraic solve or move the model to quarterly.
The loan schedule in the amortization post uses opening-balance interest for exactly this reason.
