Sub topic 2
The Accounting Equation as the Anchor
This chapter assumes you know the basic accounting vocabulary (asset, liability, equity, revenue, expense) and can write spreadsheet formulas with cell references. It also assumes you know what each of the three statements reports. Later chapters build each link in detail. This chapter covers the one rule that every link must respect.
The equation
The accounting equation is:
Assets = Liabilities + EquityAssets are what the company owns or is owed. Liabilities and equity are the claims on those assets. Liabilities are claims by lenders and suppliers. Equity is the claim by owners. Every asset was paid for by someone, so the two sides are always equal.
In a model, this equation does two jobs:
- It is the test that tells you whether the statements are linked correctly.
- It is a design constraint. Every forecast formula must change at least two balance sheet accounts, or the balance sheet and another statement, in offsetting ways.
Expanding equity
Equity is not one number. For forecasting, split it so you can see where the income statement connects:
Assets = Liabilities + Common stock + Opening retained earnings
+ Revenue - Expenses - DividendsRetained earnings at the end of a period equal the opening balance plus net income minus dividends. Net income is revenue minus expenses. So every revenue or expense line you forecast ends up in equity, and therefore must be matched by a change in an asset or a liability.
This is why the income statement cannot be forecast in isolation. A sale of 40 raises equity by 40. Something on the other side must also rise by 40: cash if the customer paid, or accounts receivable (AR) if the customer owes you.
Every transaction keeps the equation true
Double-entry bookkeeping means each transaction changes the equation in a way that preserves equality. There are only a few patterns:
| Pattern | Example | Assets | Liabilities | Equity |
|---|---|---|---|---|
| Asset swap | Buy equipment with cash | one up, one down | none | none |
| Both sides up | Borrow cash | up | up | none |
| Both sides down | Repay debt | down | down | none |
| Income | Credit sale | up | none | up |
| Expense | Depreciation | down | none | down |
| Distribution | Pay dividend | down | none | down |
Your forecast does not need to list individual transactions. Each forecast driver, such as growth in AR, capex, or debt repayment, is a bundle of these patterns. If you can say which pattern a driver follows, you know which two (or more) cells it must touch.
Seeing it in code
The script below starts from the opening balance sheet used in this tutorial's worked example. It applies several transactions and prints the gap (assets minus liabilities and equity) after each one. The last step records a credit sale on only one side, to show what an error looks like.
ASSETS = ("cash", "ar", "ppe")
LIABILITIES = ("ap", "debt")
EQUITY = ("common", "re")
def gap(b):
"""Assets minus (liabilities + equity). Zero means balanced."""
assets = sum(b[k] for k in ASSETS)
claims = sum(b[k] for k in LIABILITIES + EQUITY)
return assets - claims
def apply(b, changes):
new = dict(b)
for account, delta in changes.items():
new[account] += delta
return new
opening = {"cash": 100, "ar": 50, "ppe": 200, "ap": 30,
"debt": 100, "common": 100, "re": 120}
steps = [
("Borrow 20 cash", {"cash": +20, "debt": +20}),
("Buy equipment for 30", {"cash": -30, "ppe": +30}),
("Depreciation of 20", {"ppe": -20, "re": -20}),
("Dividend of 10", {"cash": -10, "re": -10}),
("Credit sale of 40", {"ar": +40, "re": +40}),
]
state = opening
print(f"{'Opening':<24} gap = {gap(state)}")
for label, changes in steps:
state = apply(state, changes)
print(f"{label:<24} gap = {gap(state)}")
# A one-sided entry: the sale raises AR but equity is forgotten.
broken = apply(state, {"ar": +40})
print(f"{'One-sided sale':<24} gap = {gap(broken)}")The gap is 0 after the opening balances and after every valid transaction. The one-sided entry produces a gap of 40, the exact size of the missing half. This is the most useful property of the check: the size of the gap points to the size of the mistake.
Where the equation sits in the model
The statements link through the equation like this:
Notice that cash is the only balance sheet account fed by the cash flow statement. Every other account is forecast from a driver on its own schedule. Cash is whatever is left after all other changes are accounted for. This is why the check works as a test. If cash is derived honestly, the equation holds only when every other change was recorded on both sides.
Common ways the anchor slips
Plugging cash
A model that sets cash equal to total liabilities and equity minus other assets will always balance. It also proves nothing. The check becomes a tautology, and any error hides inside the cash figure. Cash must come from the cash flow statement: opening cash plus operating, investing and financing flows.
An opening balance sheet that does not balance
If the starting balances are typed in and already differ, the gap carries through every period. A constant gap from the first forecast period usually means the opening data is wrong, not your formulas.
Sign errors on the cash flow statement
Increases in assets use cash, and increases in liabilities provide cash. Reversing one sign produces a gap of exactly twice that item. For example, an AR increase of 10 with the wrong sign gives a gap of 20.
One-sided entries
Each of these breaks the equation by the size of the missing side:
- Depreciation on the income statement without a reduction in PP&E.
- Capex in investing cash flow without an addition to PP&E.
- Dividends deducted from cash without a reduction in retained earnings.
- Debt repaid in financing cash flow without a reduction in the debt balance.
Non-cash transactions
Some events change the balance sheet without touching cash, such as issuing shares to acquire equipment. These still need both sides. They also need to be disclosed or handled consistently so they do not appear as phantom cash flows.
Rounding and tolerance
Floating-point arithmetic and rounded inputs can leave gaps like 0.0000001. Test against a small tolerance rather than exact zero, for example ABS(gap) < 0.001 in a spreadsheet or abs(gap) < 1e-9 in code. Do not widen the tolerance to hide real differences.
What a zero gap does not prove
A balanced model is necessary, not sufficient. These errors leave the equation intact:
- Two offsetting mistakes of equal size.
- A wrong assumption, such as an unrealistic growth rate, applied consistently on both sides.
- An entry posted to the wrong account on the same side, such as putting capex into AR instead of PP&E.
- A plugged cash balance, as described above.
Treat the balance check as a smoke alarm. A zero result means no obvious fire. It does not mean the building is correctly designed. Pair it with reasonableness checks: cash that does not go negative, margins in a plausible range, and PP&E that follows its roll-forward.
Practical rules for your model
- Put a balance check row at the bottom of the balance sheet for every period, and show it prominently.
- Compute it as total assets minus total liabilities and equity, not as a comparison of two rounded displays.
- Keep cash derived from the cash flow statement.
- For each new driver, write down the two or more accounts it changes before you write the formula.
- When you add a line, check the gap in the same sitting. A model checked after every addition has a single recent suspect when it breaks.
Exercise
A forecast period shows total assets of 410 and total liabilities plus equity of 400. The cash flow statement lists an increase in accounts payable of 5 as a deduction from operating cash flow, when it should be an addition. Does this single error explain the gap, and what would the gap be if you fixed it?
Show answer
A sign error on a cash flow item causes a gap of twice the item. Accounts payable rose by 5, so the correct entry adds 5 to cash, but the model subtracted 5. Cash is 10 too low, which would make assets smaller than liabilities plus equity, not larger. The observed gap is assets 10 too high, so this error does not explain it. Fixing the payable sign would raise cash by 10 and widen the gap to 20. The cause lies elsewhere, such as a one-sided entry that adds 10 to an asset without a matching claim. Check the sign of each item and whether each balance sheet change has a matching entry.