What is circular dependency in Google Sheets for beginners?

On this page
- Why Google Sheets cannot finish the calculation
- Three shapes a circular dependency can take
- How to find the cell that causes the loop
- Common causes and how to fix each one
- When a circular reference is on purpose
- How to keep loops from forming
- A quick check before you move on
- Action steps
- Frequently asked questions
- Why does Google Sheets say circular dependency detected?
- Can I ignore a circular dependency in Google Sheets?
- Does Excel have circular reference problems too?
- How do I find a circular dependency in a long chain of formulas?
Readers often ask what is circular dependency in Google Sheets for beginners, and the short answer is this: a formula is waiting on its own result. Sheets cannot calculate cell A until it knows cell B, and it cannot know B until it has A. So the calculation stops and you see a Circular dependency detected message. The fix is usually one cell reference, and you can find it in a few minutes.
Why Google Sheets cannot finish the calculation
Every formula needs its inputs to be final before it can return a value. Sheets works through your cells in the order of what depends on what. A circular dependency breaks that order, because the chain of inputs loops back to where it started. With no safe starting point, Sheets flags the cell instead of guessing.
Ben Collins' guide to formula parse errors describes it as a cell trying to be both an input and an output. In his example, a SUM in cell A4 adds A1 through A4, so it includes itself. He files that case under the #REF! error.
Three shapes a circular dependency can take
The Google Docs Editors Community lists three patterns: a cell that refers to itself, two cells that refer to each other, and a chain of references that loops back. Here is what each one looks like in practice.
- Self-reference:
=SUM(A1:A4)typed into cell A4. - Two cells pointing at each other: B1 holds
=C1*2and C1 holds=B1+1. - A longer chain: A1 reads B1, B1 reads C1, and C1 reads A1.
The chain is the hardest to spot, because no single formula looks wrong. Each one reads fine on its own. The loop only appears when you follow the references from cell to cell.
How to find the cell that causes the loop
Start with the cell that shows the message. Click it, read the formula, and check whether any range covers the cell itself. If the formula looks clean, click each referenced cell in turn and repeat the check. Sheets colors the ranges inside a formula while you edit it, so you can see what it reads. For a long formula, try the peel-the-onion method that Ben Collins describes. Remove outer functions one at a time until the error disappears. Then add them back one by one.
In A4 (circular): =SUM(A1:A4)
In A4 (fixed): =SUM(A1:A3)
Excel users have a shortcut here. Trace Dependents in Excel draws arrows between related cells, which makes a loop easy to see. Sheets does not draw those arrows, so you follow the references by hand. That sounds slow, but most loops involve only two or three cells.
Common causes and how to fix each one
Everyday sheets tend to hit the same five mistakes. The table shows each one with its fix. Scan the examples and compare them to your own formula.
| Cause | Example | Fix |
|---|---|---|
| Range includes its own cell | =SUM(A1:A4) in cell A4 | Shorten the range to =SUM(A1:A3) |
| Result feeds its own input | B2 holds =C2*0.1 and C2 holds =B2+50 | Keep inputs in one cell and results in another |
| Full column inside the same column | =SUM(A:A) in column A | Move the formula to another column |
| Array output overlaps its input | =ARRAYFORMULA(IF(ISBLANK(D3:D), A2:A, D3:D)) in column A | Place the formula in an empty column |
| Sheet name left out | =SUM(B2:B10) meant to read another tab | Add the tab, such as =SUM(Sales!B2:B10) |
The array formula row deserves a closer look. An ARRAYFORMULA spills its results down the column, so the cells it fills count as part of the formula. When its input range, A2:A here, covers those same cells, the formula ends up reading its own output. A Stack Overflow question shows this exact pattern, and moving the formula to an empty column breaks the loop. A missing tab name can cause the same problem, as Spreadsheet Point explains, because Sheets then reads the sheet that holds the formula.

When a circular reference is on purpose
Sometimes the loop is deliberate. In Corporate Finance Institute's article on imbalanced 3-statement models, circular references can be an intentional part of a model, such as those involving interest income or interest expense. The same article warns that unintended ones, caused by formula errors or wrong references, can lead to infinite calculation loops. So the real question is not whether a loop exists, but whether you meant it.
Sheets can handle intentional loops through iterative calculation. A MrExcel forum thread shows the message text: Circular dependency detected. To resolve with iterative calculation, see File > Settings. Open File, then Settings, and look for the calculation options there. Turning iteration on makes Sheets repeat the calculation instead of stopping.
Beginners who meet a circular dependency in Google Sheets should treat iteration as a last resort, not a switch to flip when the message is annoying. Iteration can hide accidental mistakes, so your totals may look fine while they are wrong. CFI also advises labeling intentional circularities clearly. A short note beside the cell, explaining why the loop exists, saves the next person time.
How to keep loops from forming
Keep inputs and results apart. Put rates, prices, and targets in their own labeled cells, and let formulas only read from them. When a result must change an input, type the new input by hand instead of linking it back. This habit removes the first two causes in the table above.
Circular dependency is one of several Google Sheets errors worth learning to read, and it is among the easier ones to fix. If you would rather describe the result than write the syntax, a formula generator can draft the formula for you. Just check that no range in the draft covers the cell where you paste it.
A quick check before you move on
Now you can answer what is circular dependency in Google Sheets for beginners in one line: a formula whose inputs lead back to itself. When the message appears, click the flagged cell, look for a range that covers it, and follow each reference until you find the loop. Then decide whether the loop is a mistake or intended. If it is a mistake, one corrected reference ends it.
Action steps
- Click the flagged cell: Open the cell that shows Circular dependency detected and read its formula.
- Check the ranges: Look for a range, such as A1:A4 in cell A4, that includes the cell itself.
- Follow the references: Click each referenced cell until you find the one that points back.
- Fix or separate: Shorten the range, or move inputs and results into separate cells.
- Decide on iteration: Turn on iterative calculation under File, then Settings, only for loops you meant to build.
Frequently asked questions
Why does Google Sheets say circular dependency detected?
A formula's inputs lead back to its own cell, either directly or through a chain of other cells. Sheets then has no starting point for the calculation, so it stops and shows the message.
Can I ignore a circular dependency in Google Sheets?
Not safely. The affected cell cannot return a reliable result until you remove the loop. If the loop is deliberate, iterative calculation under File, then Settings, lets Sheets repeat the calculation.
Does Excel have circular reference problems too?
Yes. Corporate Finance Institute notes that circular references appear in Excel models, and that Excel has an iterative calculation option for intentional ones. Trace Dependents helps you locate the loop.
How do I find a circular dependency in a long chain of formulas?
Click the flagged cell and follow each reference in turn. For a long formula, remove outer functions one at a time until the error disappears, then add them back to find the cause.