What a circular reference is and why Excel warns you
A circular reference happens when a formula refers back to its own cell, either directly or through a chain of other cells. For example, if cell A1 contains the formula =A1+5, that is a direct circular reference — the cell is trying to calculate itself. If A1 contains =B1, B1 contains =C1, and C1 contains =A1, that is an indirect circular reference — the cells point to each other in a loop.
Excel cannot calculate a circular reference because there is no starting point. The formula would need to know its own answer before it can produce an answer. When you create one, Excel shows a warning dialog and will not let the formula calculate normally. Instead, the cell displays 0 or the last value it held before the circular reference was introduced.
Circular references are almost always mistakes. They happen when you copy a formula to the wrong place, when you edit a formula and accidentally point it back to itself, or when you are building a complex spreadsheet and lose track of which cells feed into which. Occasionally someone creates a circular reference on purpose to model a repeating calculation, but that requires turning on iterative calculation in Excel settings, and it is rarely the right solution.
Key Takeaways
- Excel shows a warning dialog when you create a circular reference and displays the cell location in the message.
- Use the Circular Reference tool in the Formulas tab to see a list of all cells involved in the loop.
- Trace Precedents and Trace Dependents show you which cells feed into a formula and which cells depend on it, helping you spot where the loop closes.
- Most circular references are fixed by changing the formula to point to a different cell or by moving the formula to a cell that is not part of the loop.
Finding the circular reference using Excel's built-in tools
When you first create a circular reference, Excel displays a dialog box that says "Circular Reference" and lists one or more cell addresses. Write down or screenshot these cell addresses — they are the ones involved in the loop. Click OK to close the dialog.
Next, go to the Formulas tab on the ribbon. In the Formula Auditing group, you will see a button called Circular References (in some versions it may say "Error Checking" with a dropdown arrow). Click it. Excel will show you a list of all cells that contain circular references. If there is only one, it will jump directly to that cell and select it. If there are multiple, you can click each one in the list to navigate to it.
Once you are at a cell with a circular reference, look at the formula bar at the top of the screen. The formula bar shows the exact formula in that cell. Read it carefully — does it refer to its own cell address? Does it refer to another cell that might point back to this one?
Using Trace Precedents to see what feeds into a formula
Trace Precedents shows you which cells a formula depends on. This helps you understand the path the formula is following and spot where it loops back. Click on the cell with the circular reference, then go to the Formulas tab and click Trace Precedents. Excel draws blue arrows from the current cell to every cell it references.
If you see an arrow pointing back to the cell you started from, that is your circular reference. If the arrows point to other cells, click on one of those cells and click Trace Precedents again. Keep following the chain until you find a cell that points back to where you started. That is the break point — the formula in that cell is the one causing the loop.
To clear the arrows and start over, go to the Formulas tab and click Remove Arrows (or Clear All Arrows, depending on your Excel version).
Using Trace Dependents to see what depends on a cell
Trace Dependents works in the opposite direction. It shows you which cells contain formulas that reference the current cell. This is useful if you want to understand the full impact of a cell or if you are trying to work backward from a cell you know is part of the loop.
Click on a cell and go to the Formulas tab, then click Trace Dependents. Excel draws blue arrows from the current cell to every cell that references it. If one of those arrows points back to the cell you started from (either directly or after following a chain), you have found the circular reference.
Like Trace Precedents, you can click on the cells the arrows point to and trace their dependents as well, building a map of the entire chain. Remove the arrows when you are done by clicking Remove Arrows.
Fixing the circular reference
Once you have found the cell causing the loop, you need to change its formula so it no longer points back to itself or to a cell that points back to it. The fix depends on what the formula is supposed to do.
If the formula is in the wrong cell, cut it (Ctrl+X) and paste it into the correct cell. If the formula is pointing to the wrong cell reference, click in the formula bar and edit the cell address it refers to. If the formula should not reference a particular cell at all, delete that reference from the formula.
After you make the change, press Enter. If the circular reference is gone, Excel will not show a warning and the cell will display the calculated result instead of 0. If a warning still appears, you have not yet broken the loop — go back to the Circular References tool and check the remaining cells.
Preventing circular references in the future
The easiest way to avoid circular references is to think about the direction of your formulas before you write them. Decide which cells will contain raw data and which will contain calculations. Formulas should generally flow in one direction — from data cells toward summary cells, not back toward data cells.
When you copy a formula from one cell to another, check that the cell references update the way you expect. If you copy a formula down a column and it suddenly refers to a cell above it or to itself, that is a sign something went wrong. Use the Trace Precedents tool to verify the formula is pointing where you intended.
If you are working on a large spreadsheet with many formulas, periodically run the Circular References tool even if you have not seen a warning. Sometimes a circular reference can be created by editing a formula and then saved without triggering the warning dialog, especially if you close and reopen the file.
When iterative calculation is intentional (and when to avoid it)
Excel has a setting called Enable Iterative Calculation that allows circular references to calculate by repeating the formula a set number of times until the result stabilizes. This is found in File > Options > Formulas (or Excel > Preferences > Formulas on Mac). You can set the maximum number of iterations and the maximum change allowed between iterations.
This setting is rarely needed for everyday spreadsheets. It is sometimes used in financial modeling or engineering calculations where a circular dependency is intentional and the repeated calculation converges to a stable answer. If you turn this on, you are telling Excel to ignore circular references, which makes them much harder to spot if they are accidental. Leave this setting off unless you have a specific reason to turn it on, and document why you did so in a comment or note on the spreadsheet.
Frequently Asked Questions
Does a circular reference always show a warning?
Most of the time, yes. Excel displays a warning dialog when you first create a circular reference. However, if you close the file without saving after creating one, or if you create one by editing a formula and then immediately close the file, the warning may not appear the next time you open it. Use the Circular References tool to check.
What does it mean if I see a circular reference but the cell shows a number instead of 0?
The cell is displaying the last value it calculated before the circular reference was introduced. This value is not being updated. Once you fix the circular reference, the cell will recalculate and show the correct result based on the new formula.
Can I have a circular reference that involves more than two cells?
Yes. A circular reference can involve any number of cells in a chain. For example, A1 might reference B1, B1 might reference C1, and C1 might reference A1. The Trace Precedents and Trace Dependents tools will show you the entire chain, not just the first link.
If I undo the change that created the circular reference, will it go away?
Yes. Press Ctrl+Z to undo the last action. If that was the action that created the circular reference, the warning will disappear and the cell will return to its previous formula. You can undo multiple times to go back further if needed.
What if the Circular References tool does not find anything but I still see a warning?
Close the file without saving and reopen it. Sometimes Excel's circular reference detection needs a fresh start. If the warning reappears, the circular reference is real. If it does not, the reference was resolved when you closed the file.