Circular reference
A circular reference arises when a spreadsheet formula depends, directly or through other cells, on its own result. In financial models it typically appears when interest depends on an average debt balance that itself depends on interest. It is removed by a different formula or solved by controlled iteration.
What it is
A circular reference is a loop in a calculation chain: cell A needs cell B, and cell B needs cell A, so neither can be computed first. A spreadsheet with iterative calculation switched off warns about the loop and points to the cells involved. With iteration switched on, the program recalculates the loop repeatedly until the values stop changing, or until a set number of passes.
The loop can be accidental, for example a total that includes itself, or intentional. The usual intentional case is interest. Interest expense depends on the average debt balance. The closing debt depends on cash available for repayment, which depends on profit, and profit depends on interest.
There are three ways to deal with a loop:
- Rewrite the formula so the loop disappears, for example by calculating interest on the opening balance.
- Solve the circularity algebraically, when the relationship is simple enough.
- Keep the loop with iteration switched on and add a circuit breaker, a switch that sets the loop to zero so that errors can be cleared.
The ICAEW Financial Modelling Code advises against intentional circularity. ICAEW guidance on reviewing spreadsheets notes that iterative calculation can mask accidental circularity.
Why it matters
A loop with iteration on can hide an error in the calculation chain, because the program no longer gives a warning. An error value can also enter the loop and stay there after the cause is fixed, so every output shows an error until the loop is reset.
A model with a loop is harder to review and harder to audit, since results depend on the number of passes.
Worked example
Illustrative numbers. Opening debt is 1,000 and the interest rate is 10 percent. Cash before interest is 250, and all cash left after interest repays debt.
- Interest on the opening balance: 1,000 times 10 percent = 100. Repayment is 250 minus 100 = 150, and no loop exists.
- Interest on the average balance: repayment is 250 minus interest, so closing debt is 1,000 minus that repayment. Interest is 10 percent of the average of opening and closing debt, which refers back to interest.
- Iteration: start with interest of 100. Closing debt is 850 and the average is 925, so interest is 92.5. The next pass gives closing debt of 842.5, an average of 921.25 and interest of about 92.1. The values settle near 92.1.
Who uses it
- FP&A analysts decide whether a planning model needs average-balance interest and add a circuit breaker if it does.
- Investment banking and private equity analysts handle loops in debt schedules of transaction models.
- Business controllers check that no loop is left on by accident before relying on a model.
- Corporate treasury analysts model interest on cash and debt that depend on each other.
Common confusions
- A circular reference is not the same as a model that is wrong. It is a structure that can give a stable and correct answer, but it is harder to check.
- A warning message is not always an error to switch off. Turning iteration on to remove the message can hide an accidental loop.
- A circular reference is not a dependency chain. A long chain that never returns to its start has no loop.
- Iteration is not the only fix. Opening-balance interest removes the loop entirely at a small cost in precision.