How to Fix Circular Reference Error in Excel & Google Sheets
Not a "#" error, but arguably the most disruptive warning in Excel โ here's how to trace it, understand it, and decide whether to fix it or embrace it.
Table of Contents
- 1. What a Circular Reference Actually Is
- 2. Direct vs Indirect Circular References
- 3. Interactive Demo: Trace the Loop
- 4. Finding the Exact Cell Causing It
- 5. Fixing Accidental Circular References
- 6. Intentional Circular References (Interest Models)
- 7. Enabling Iterative Calculation Safely
- 8. Hidden Circular References via Named Ranges
- 9. Google Sheets Differences
- 10. Best Practices
- 11. Frequently Asked Questions
1. What a Circular Reference Actually Is
A circular reference happens when a formula's calculation chain eventually loops back and depends on its own result. Excel's calculation engine works by building a dependency tree โ each formula waits for its inputs to be resolved before it can calculate. A circular reference breaks that model entirely: cell A depends on cell B, but cell B (directly or through a longer chain) depends back on cell A. There is no valid order in which to calculate them, because each one needs the other to finish first.
This is different from every "#" error on this site โ Excel doesn't return a value like #REF! or #NUM! in the cell. Instead, it shows a warning dialog the moment you create the loop, and displays a small circular arrow icon and a status bar warning until it's resolved.
2. Direct vs Indirect Circular References
Direct circular reference
The simplest form โ a cell's formula refers to itself:
Cell A1: =A1+10 โ Direct circular reference
Indirect circular reference
More common in real spreadsheets, and much harder to spot โ the loop passes through several other cells before returning to the original:
Cell A1: =B1*2
Cell B1: =C1+5
Cell C1: =A1-3 โ C1 depends on A1, which depends on B1, which depends on C1
Indirect loops like this are the ones that cause the most confusion, because the cell Excel highlights as "the" circular reference may not be the one where the actual logic mistake lives โ you often need to trace two or three cells backward to find where the loop was introduced.
3. Interactive Demo: Trace the Loop
Build a small dependency chain below and see whether it resolves or loops.
The default example (A1=B1*2, B1=C1+5, C1=10) resolves cleanly. Change C1 to "A1-3" to introduce a real loop and see it detected.
4. Finding the Exact Cell Causing It
- Go to the Formulas tab.
- Click the small dropdown arrow next to Error Checking in the Formula Auditing group.
- Hover over Circular References โ Excel lists every cell address currently involved in a loop.
- Click any listed cell address to jump directly to it.
- Use Trace Precedents and Trace Dependents (also in Formula Auditing) on that cell to visually map the arrows showing exactly which cells feed into it and which cells it feeds into โ the loop becomes visible as an arrow that eventually points back to your starting cell.
5. Fixing Accidental Circular References
The vast majority of circular references are simple mistakes, most commonly from one of these patterns:
- Summing a range that includes the total cell itself. If cell A11 is
=SUM(A1:A11)instead of=SUM(A1:A10), the total is including itself in its own sum. - Copy-pasting a formula down without adjusting a fixed anchor cell. A formula referencing an absolute cell that later becomes the formula's own location after copying.
- A percentage-of-total calculation that references the grand total cell, which itself sums the percentage row. Common in dashboard-style spreadsheets where a "% of total" row is accidentally included in the range that total sums.
The fix in all these cases is the same: correct the range or reference so it excludes the cell containing the formula itself.
6. Intentional Circular References (Interest Models)
Not every circular reference is a mistake. Certain financial models genuinely require a value to depend on itself โ the classic example is a loan schedule where interest expense depends on the average cash balance, but the cash balance itself depends on how much interest was paid. This is a legitimate "interest-on-interest" or "circularity switch" pattern used deliberately in corporate finance modeling, and it requires iterative calculation to resolve rather than being an error to eliminate.
7. Enabling Iterative Calculation Safely
If your circular reference is intentional:
- Go to File โ Options โ Formulas.
- Under Calculation options, check Enable iterative calculation.
- Set Maximum Iterations (default 100) and Maximum Change (default 0.001) โ Excel will recalculate the loop repeatedly until the change between iterations falls below this threshold, then stop.
Important caution: enabling this setting applies to the entire workbook, not just the intentional loop. Any accidental circular reference elsewhere in the same file will now silently "resolve" to some converged number instead of warning you โ which can hide a genuine mistake. Many experienced modelers add a dedicated "circularity switch" cell (a simple TRUE/FALSE toggle that breaks the loop with an IF statement) so the intentional circularity can be turned off instantly for auditing, without relying on the iterative calculation setting at all.
8. Hidden Circular References via Named Ranges
Circular references can hide inside named ranges, especially in large models where a name like TotalRevenue is used in dozens of formulas. If that name's underlying range definition is later edited to include a cell that itself uses TotalRevenue, the loop is easy to miss because nothing in the visible formula looks self-referential. Use Name Manager (Formulas tab) to review exactly what range each name points to whenever you're debugging an unexplained circular warning.
9. Google Sheets Differences
Google Sheets handles circular references similarly but with one key difference: it does not show an interruptive warning dialog by default. Instead, cells involved in the loop simply display a "Circular dependency detected" error text directly in the cell. Google Sheets also has its own iterative calculation setting under File โ Settings โ Calculation, functioning the same way as Excel's, with configurable max iterations and convergence threshold.
10. Best Practices
- Never enable iterative calculation as a default habit โ treat every circular reference warning as a bug first, and only classify it as intentional after specifically tracing the loop.
- For intentional circularity, build an explicit on/off switch cell rather than relying solely on the iterative calculation setting.
- Double-check SUM ranges whenever adding a new "total" row or column โ off-by-one range selection is the single most common accidental cause.
- Use Trace Precedents/Dependents regularly on any total or summary cell before finalizing a model, even if no warning has appeared yet.
11. Frequently Asked Questions
What is a circular reference error in Excel?
A circular reference occurs when a formula in a cell refers back to itself, either directly or through a chain of other cells, creating a loop that Excel cannot resolve to a single stable value without iterative calculation.
How do I find which cell is causing a circular reference?
Go to Formulas tab, click the dropdown arrow next to Error Checking, and select Circular References. Excel will list the exact cell address of the reference causing the loop, which you can click to navigate directly to it.
Should I enable iterative calculation to fix a circular reference?
Only if the circular reference is intentional, such as in interest-on-interest financial models or goal-seeking calculations. If the circular reference is accidental, enabling iterative calculation just masks the problem by producing a converged but likely incorrect number instead of fixing the actual formula mistake.
Why does Excel sometimes let me create a circular reference without warning?
If iterative calculation is already enabled in the workbook (from a previous intentional use), Excel will not show the warning dialog for new circular references either โ it will simply calculate them iteratively, which is why unexpected circular references can slip through unnoticed in workbooks that already use intentional circularity elsewhere.
Related Guides
- How to Fix #NUM! Error in Excel
- How to Fix #REF! Error in Excel
- Browse the Full 266+ Error Directory
Editorial Disclaimer: This guide is developed to the best of our domain knowledge and tested against Excel 2019+, Microsoft 365, and Google Sheets. Content is updated continuously as spreadsheet calculation engines evolve.