A circular reference in Excel is a formula that refers back to its own cell, either directly or through a chain of other formulas, creating a loop that Excel cannot resolve on its own. For example, typing =A1+1 into cell A1 is a direct circular reference, while =B1 in A1 and =A1 in B1 is an indirect one.
What Happens When Excel Detects a Circular Reference
When you enter a circular reference, Excel immediately shows a warning dialog: “Careful, we found one or more circular references in your workbook.” This appears only once per session; if you dismiss it, Excel won’t warn you again unless you reopen the file or press F9 to recalculate. The status bar at the bottom left then displays “Circular References” with the address of the first offending cell (e.g., “Circular References: A1”). If multiple circular references exist, only the first one is shown; you can find all of them via Formulas > Error Checking > Circular References, which lists each one.
Excel does not automatically calculate a circular reference. Instead, it uses the result from the previous iteration (or 0 if there is none) and recalculates up to 100 times by default, or until the change between iterations is less than 0.001. This behavior is controlled by the Iterative Calculation setting (File > Options > Formulas > Calculation options). If you enable iterative calculation, you can set the Maximum Iterations and Maximum Change values. With iteration on, Excel will loop through the references until it converges or hits the iteration limit—useful for certain engineering or financial models that intentionally rely on circular logic, like a loan payment that depends on interest which depends on the payment.
Why Circular References Are Usually a Mistake
Most circular references are the result of a typo or a logic error. For instance, you might accidentally include the cell you’re typing in as part of a SUM range: if you put =SUM(A1:A10) in cell A5, that’s circular because A5 is inside the range. Another common case is when a formula pulls from a cell that, further down the line, pulls back from the original cell—this often happens when building complex models with interdependent inputs. In such cases, the circular reference is unintended and can cause incorrect results, because Excel may return a value that hasn’t converged, or it may show 0 if iteration is off.
Even when iteration is on, circular references can be dangerous: they may produce a result that looks plausible but is wrong, and they slow down calculation because Excel must iterate. For these reasons, Excel’s default is to warn you and to treat the circular reference as an error (the cell may show 0 or the last calculated value).
How to Find and Fix a Circular Reference
To locate a circular reference, use the status bar indicator or the Formulas tab. Click Formulas > Error Checking > Circular References—a dropdown lists all cells involved in a circular loop. Selecting one takes you to that cell. Then trace the precedents (Formulas > Trace Precedents) to see which cells feed into it. The fix depends on the cause:
- Typo or wrong range: Correct the formula so it doesn’t include its own cell. For example, change
=SUM(A1:A10)in A5 to=SUM(A1:A4,A6:A10). - Indirect loop: Break the chain by changing one of the formulas so it no longer depends on the loop. For instance, if A1 depends on B1 and B1 depends on A1, you might change B1 to use a fixed value or a different source.
- Intentional circularity: If you really need the loop (e.g., for a recursive calculation), enable iterative calculation and set a sensible maximum iterations (e.g., 100) and maximum change (e.g., 0.001). But be aware that this can mask errors.
Real-World Example: A Loan Payment Calculation
A classic intentional circular reference occurs when calculating a loan payment where the interest rate depends on the loan amount, which itself depends on the payment. Suppose you have a cell B2 for the principal, B3 for the annual interest rate, and B4 for the number of months. You want to compute the monthly payment in B5 using the PMT function: =PMT(B3/12, B4, -B2). If the interest rate in B3 is itself a formula that references B5 (e.g., =B5*0.01 to model a rate that depends on the payment), you have a circular reference. With iteration on, Excel will converge to a payment where the rate and payment are consistent. Without it, you’ll get a warning and likely a 0 or an error.
To see this in action, set B2=10000, B4=60, and B3 initially to 5%. In B5, enter =PMT(B3/12, B4, -B2). Then change B3 to =B5*0.001 (a made-up dependency). With iteration off, Excel will show a warning and B5 may show 0. Turn on iteration (File > Options > Formulas, check “Enable iterative calculation”), and Excel will recalculate until the payment stabilizes—in this case, roughly $189 per month, because the rate becomes about 0.19% per month. This illustrates how iteration can solve a circular dependency, but also why you must be careful: the result is only as good as your model’s logic.
Circular References vs. Other Excel Errors
Circular references are distinct from other errors like #REF! (invalid cell reference), #VALUE! (wrong data type), or #DIV/0! (division by zero). While those errors are immediate and specific, a circular reference is a structural issue: the formula is syntactically valid but logically looped. Excel flags it as an error, but it doesn’t automatically show an error value in the cell—it may just show 0 or the last calculated number. That makes it harder to spot, which is why the status bar indicator is so important. Also, unlike #REF! which appears when you delete a cell, a circular reference can exist without any visible error until you recalculate.
Another key difference: Excel’s error checking (the green triangle) does not always flag a circular reference unless you have “Formulas referring to empty cells” or similar options enabled. The dedicated Circular References dropdown is the reliable way to find them.
How to Avoid Circular References in Complex Models
Prevention is better than cure. Here are practical strategies:
- Plan your formula dependencies: Before building a model, sketch which cells depend on which. Ensure there are no loops.
- Use named ranges: Named ranges make it easier to see what a formula refers to, reducing accidental self-references.
- Break loops with a “seed” value: If you need a circular calculation, put an initial guess in a separate cell and then use iterative calculation, or use a formula that avoids the loop (e.g., solve algebraically). For instance, instead of having B3 depend on B5, derive B3 from other inputs.
- Check the status bar regularly: After any change, glance at the bottom-left. If “Circular References” appears, address it immediately.
- Use Excel’s auditing tools: Trace Precedents and Trace Dependents (Formulas tab) can visually show arrows connecting cells, making loops obvious.
Frequently Asked Questions
Can a circular reference ever be useful? Yes, in rare cases like the loan example above, where a value depends on itself through a converging formula. With iterative calculation enabled, Excel can solve such equations. However, it’s risky because convergence isn’t guaranteed, and if the loop doesn’t converge, you’ll get misleading results. Most professionals prefer to avoid them and use algebraic solutions instead.
Why does Excel show 0 for a circular reference? When iteration is off, Excel calculates the formula once using 0 for the circular cell, which often results in 0 or an error. For example, =A1+1 in A1 becomes 0+1=1, but after that, Excel stops recalculating because it detects the loop. The displayed value reflects the last calculation, which may be 0 if the formula depends on the circular cell producing 0.
How do I turn off the circular reference warning? You can’t turn off the warning entirely, but you can avoid it by fixing the circular reference or by enabling iterative calculation. If you enable iteration, Excel will not show the warning for future circular references (it assumes you intend them). To re-enable warnings, disable iterative calculation again.
Does a circular reference slow down my workbook? Yes, if iteration is on, Excel recalculates the loop up to 100 times per calculation cycle, which can significantly slow down large workbooks. Even with iteration off, the presence of a circular reference can cause Excel to recalculate more often because it tries to resolve the loop. It’s best to eliminate them for performance.
Can I have a circular reference in a different sheet or workbook? Yes, circular references can span multiple sheets or even multiple workbooks. For example, if Sheet1!A1 references Sheet2!B1, and Sheet2!B1 references Sheet1!A1, that’s a circular reference. Excel’s status bar will show the first cell, and the Circular References dropdown will list all involved cells across sheets.
What is the difference between a circular reference and a recursive function? A recursive function in programming calls itself with a changing parameter until a base case is met. In Excel, there is no built-in recursive function; a circular reference is a formula that depends on its own result, which is not the same as recursion. However, with iterative calculation, Excel can mimic some recursive behavior, but it’s limited and not a substitute for proper programming.
Related
- Edit Conditional Formatting Rule: How To
- Do Java Enums Have Values? Explained
- How to Use count() in Python (with Examples)
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Monthly Budget Tracker Template for Google Sheets?A monthly budget tracker template for Google Sheets can be built from a transaction log, a monthly category…
- Excel Data Analysis: What It Can Do and Where It Falls ShortYes—Excel is a capable tool for data analysis, especially when you need to organize, clean, summarize, visualize, or…
- Outlook: How to Stop Emails From Being Archived by AccidentTo keep messages in your Inbox, turn off AutoArchive in classic Outlook, remove Archive from Outlook on the…
- Excel: How to Shade Every Other RowTo shade every other row in Microsoft Excel, select the range, then choose Home > Conditional Formatting >…
- Google Sheets Duplicate Formula: Find or Flag RepeatsTo find duplicate values in Google Sheets, use =COUNTIF($A$2:$A$100,A2)>1 in a helper column, assuming the values are in…
- Creating a Brochure in Word: A Practical GuideTo create a brochure in Microsoft Word, start with File > New and search for a brochure template,…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.