Sub topic 14
Checking that the statements balance
This chapter assumes you know the accounting equation and the six links from the earlier chapters: net income to retained earnings, net income to operating cash flow, the non-cash and working capital adjustments, capital expenditure, financing, and ending cash. Here you use the balance check to test all of them at once.
What the check proves
The balance sheet must satisfy one identity at every date:
Assets = Liabilities + Equity
Every transaction changes at least two accounts by equal amounts, so the identity holds if every transaction was recorded completely. In a set of linked statements, you build the closing balance sheet from three sources:
- The opening balance sheet.
- The income statement, through net income and retained earnings.
- The cash flow statement, through ending cash.
If any link is missing, entered twice, or has the wrong sign, the two sides of the closing balance sheet stop matching. The difference is the error signal.
Think of a model that balances as passing a smoke test. A balanced model can still be wrong, and an unbalanced model is always wrong.
The two checks to run
Run both checks every time.
- Balance sheet check. Total assets minus total liabilities and equity must be zero.
- Cash tie-out. Ending cash on the cash flow statement (opening cash plus operating, investing, and financing flows) must equal cash on the closing balance sheet.
Which check you can run depends on how the model is built:
- If you compute balance sheet cash from the cash flow statement, as in the worked example, the cash tie-out is true by construction. Only the balance sheet check can fail.
- If you enter closing balances independently, for example from published accounts, run both checks. A tie-out failure then points at the cash flow statement, and a balance failure points at the rest of the sheet.
A reusable check in code
The function below returns the difference and a pass/fail flag. It uses a small tolerance because floating-point sums rarely match exactly. This is the worked example from the previous chapter with the checks added.
def balance_check(assets, liabilities_and_equity, tol=0.005):
diff = assets - liabilities_and_equity
return diff, abs(diff) <= tol
def build_statements(depreciation_sign=+1):
opening = {"cash": 100, "ar": 40, "ppe": 200,
"ap": 30, "debt": 100, "stock": 150, "re": 60}
revenue, cash_opex, depreciation = 500, 380, 20
interest = opening["debt"] * 0.08
pretax = revenue - cash_opex - depreciation - interest
net_income = pretax * 0.75
capex, dividends, debt_repaid = 30, 19, 10
end_ar, end_ap = 50, 35
# depreciation_sign=-1 simulates the classic error of subtracting it
cfo = (net_income + depreciation_sign * depreciation
- (end_ar - opening["ar"]) + (end_ap - opening["ap"]))
cfi = -capex
cff = -debt_repaid - dividends
end_cash = opening["cash"] + cfo + cfi + cff
assets = end_cash + end_ar + (opening["ppe"] + capex - depreciation)
le = (end_ap + opening["debt"] - debt_repaid + opening["stock"]
+ opening["re"] + net_income - dividends)
return net_income, end_cash, assets, le
for sign in (+1, -1):
ni, cash, assets, le = build_statements(sign)
diff, ok = balance_check(assets, le)
print(f"sign={sign:+d} cash={cash} assets={assets} L+E={le} diff={diff} ok={ok}")With the correct sign, assets and liabilities plus equity are both 385 and the difference is 0. With the wrong sign, operating cash flow falls from 84 to 44, ending cash drops from 125 to 85, and assets become 345. The difference is -40, which is twice the 20 of depreciation. That pattern is the first diagnostic clue.
Reading the size of the difference
The size of the difference usually tells you where to look.
| Pattern in the difference | Likely cause |
|---|---|
| Exactly one item's amount | That item was left out of one statement, or entered in only one place |
| Exactly twice an item's amount | That item has the wrong sign |
| Half of the difference matches an item | A sign error, so look for an item of that size |
| Equals the change in one balance sheet line | That line's change never reached the cash flow statement |
| Equals net income or dividends | The retained earnings roll-forward is broken |
| Small, with odd decimals | Rounding, or a hard-coded number overwriting a formula |
The difference is signed, and the sign narrows the search:
- A positive difference means assets are too high or liabilities and equity are too low.
- A negative difference means the reverse.
- In the example above, cash was understated, so assets were too low and the difference is negative.
A diagnostic routine
Work from the statement with the most links outward, so you narrow the search quickly.
- Check the opening balance sheet first. If it does not balance, no later step can fix it.
- Check the retained earnings roll-forward. Opening retained earnings plus net income minus dividends must equal closing retained earnings.
- Check the PP&E roll-forward. Opening PP&E plus capex minus depreciation must equal closing PP&E.
- Check every non-cash balance sheet line. Each change in receivables, inventory, payables, and debt must appear exactly once in the cash flow statement, with the right sign.
- Check the cash tie-out. Compare ending cash with balance sheet cash.
What a passing check does not prove
A balance check cannot detect an error that changes both sides equally, or an error that is not in the linked accounts at all. These errors still pass:
- Revenue and receivables both overstated by the same amount. Net income rises, retained earnings rise, and receivables rise, so everything balances and everything is wrong.
- A reclassification between two lines on the same side, such as treating an operating outflow as investing. Total cash is unchanged.
- Two offsetting errors, such as a missing depreciation add-back and a missing depreciation deduction in PP&E.
- Wrong inputs, such as a tax rate or a growth rate that is unreasonable.
After the check passes, run a reasonableness review. Compare operating cash flow with net income, look at working capital as a share of revenue, and confirm that the tax rate and interest rate are sensible.
Never plug the balance
Some models close the gap with a "balancing" line, usually by forcing cash or retained earnings to equal whatever makes the sheet balance. This makes the check pass without fixing anything, and it hides the very error the check exists to find.
If you must keep a temporary placeholder while building a model, show the check row on its own line and make it visibly non-zero. Remove the placeholder before sharing the model.
Practical habits
- Put the check in its own row under the balance sheet, with conditional formatting that turns red when the absolute difference exceeds the tolerance.
- Use a tolerance of about 0.005 in the currency unit, not an exact comparison to zero.
- Run the check after every change to an input, not only at the end.
- Use round numbers while debugging. With simple inputs, the difference is easier to match to one item.
- Change one assumption at a time and watch whether the difference moves. A change that moves the difference points at the link that uses that assumption.
Exercise
A model's closing balance sheet shows total assets of 410 and total liabilities and equity of 400. Dividends of 5 were declared and paid. The retained earnings roll-forward shows opening retained earnings plus net income, with no dividend deduction. The cash flow statement does include the 5 outflow. Does this explain the difference of 10, and what is the corrected difference?
Show answer
Yes. The cash flow statement lowered cash by 5, but retained earnings were not reduced, so the model is internally inconsistent. Subtracting 5 from retained earnings lowers liabilities and equity to 395, which makes the difference 410 - 395 = 15, not zero. That shows the dividend link accounts for only part of the problem, so another error remains. Cash is already reduced by the dividend, so assets are not the side to change. The other error is 15 in size (assets too high or liabilities and equity too low), and the diagnostic routine says to check the PP&E roll-forward and the working capital lines next.
Exercise
A difference of -60 appears after a model adds back a 30 non-cash expense. What error is likely, and why?
Show answer
The 30 expense was probably subtracted from operating cash flow instead of added back. Operating cash flow is then understated by 60, which is twice the item, so cash and assets are 60 too low. The difference of -60 is exactly twice 30, which is the signature of a sign error.