Sub topic 12
Closing the loop: ending cash back to the balance sheet
This chapter assumes you can build the income statement, the operating section of the cash flow statement, and the non-cash balance sheet roll-forwards (retained earnings, PP&E, working capital, debt) from earlier chapters. It covers the last link in the model: ending cash from the cash flow statement becomes the cash line on the balance sheet.
Why this link comes last
Every other balance sheet line has its own schedule. Retained earnings rolls forward from net income and dividends. PP&E rolls forward from capex and depreciation. Debt rolls forward from borrowing and repayment. Cash is different because it has no schedule of its own. Its movement is the sum of everything the other schedules do, so you can only calculate it once they are all finished.
That is why the cash flow statement exists in a model. It collects the cash effect of each of the other lines and converts them into one number: the change in cash. Adding that change to opening cash gives ending cash, and ending cash is the value that goes on the balance sheet.
The reconciliation
The cash reconciliation has three steps:
- Sum the three cash flow sections: operating (CFO), investing (CFI), and financing (CFF).
- Add that net change to the opening cash balance, which is last period's balance sheet cash.
- Link the result into the balance sheet cash cell for the current period.
Net change in cash = CFO + CFI + CFF
Ending cash = Opening cash + Net change in cash
Balance sheet cash (this period) = Ending cash
Opening cash (next period) = Balance sheet cash (this period)The last line is what makes the model run across many periods. Each period's ending cash becomes the next period's opening cash, so the loop closes once per period and the chain continues.
Sign conventions
Most reconciliation errors are sign errors, so fix a convention and apply it everywhere. In the cash flow statement, a positive number means cash came in and a negative number means cash went out. That gives these rules:
| Item | Effect on cash flow statement |
|---|---|
| Increase in accounts receivable | Negative (cash tied up) |
| Increase in accounts payable | Positive (cash retained) |
| Depreciation | Positive add-back |
| Capex | Negative |
| New borrowing | Positive |
| Debt repayment | Negative |
| Dividends paid | Negative |
An increase in an asset uses cash. An increase in a liability or equity account provides cash. If you remember that one rule, you can derive every row in the table.
Why cash must not be a plug
A common beginner shortcut is to compute balance sheet cash as total liabilities and equity minus all non-cash assets. That forces the balance sheet to balance, and it hides every error in the model. If a dividend is missing from the cash flow statement, the plug still produces a balanced sheet, but with the wrong cash figure.
The correct design is to take cash from the cash flow statement and let the balance check test the result. The check then has a job. If the model does not balance, you know a link is broken, and the size of the difference helps you find it.
A plug is still useful as a test. Compute the plug in a separate cell that nothing depends on, and compare it to the linked cash. The two must match.
A runnable example
This script uses the same numbers as the one-period example in the plan. It builds the reconciliation, tests the linked cash against the plug, and then removes the dividend from the cash flow statement to show how an error appears.
def reconcile(opening_cash, ni, da, d_ar, d_ap, capex, debt_change, dividends):
cfo = ni + da - d_ar + d_ap
cfi = -capex
cff = debt_change - dividends
net_change = cfo + cfi + cff
return cfo, cfi, cff, opening_cash + net_change
# Opening balance sheet
opening = {"cash": 100, "ar": 50, "ppe": 200, "ap": 30,
"debt": 100, "common": 100, "re": 120}
# Income statement
revenue, cogs, opex, da = 500, 300, 100, 20
interest = opening["debt"] * 0.05
ebt = revenue - cogs - opex - da - interest
net_income = ebt * (1 - 0.20)
# Drivers
ar_end, ap_end = 60, 35
capex, debt_change, dividends = 30, -10, 20
def balance_sheet(cash_end, dividends_in_equity):
ppe_end = opening["ppe"] + capex - da
debt_end = opening["debt"] + debt_change
re_end = opening["re"] + net_income - dividends_in_equity
assets = cash_end + ar_end + ppe_end
liabilities_and_equity = ap_end + debt_end + opening["common"] + re_end
plug_cash = liabilities_and_equity - ar_end - ppe_end
return assets, liabilities_and_equity, plug_cash
# Correct model
_, _, _, cash_end = reconcile(opening["cash"], net_income, da,
ar_end - opening["ar"], ap_end - opening["ap"],
capex, debt_change, dividends)
a, le, plug = balance_sheet(cash_end, dividends)
print("Correct:", cash_end, a, le, "plug:", plug) # 115.0 385.0 385.0 plug: 115.0
# Broken model: dividend left out of the cash flow statement
_, _, _, bad_cash = reconcile(opening["cash"], net_income, da,
ar_end - opening["ar"], ap_end - opening["ap"],
capex, debt_change, 0)
a, le, plug = balance_sheet(bad_cash, dividends)
print("Broken: ", bad_cash, a, le, "difference:", a - le) # 135.0 405.0 385.0 difference: 20.0In the broken case, cash is overstated by 20, and the balance check shows a difference of exactly 20. The difference equals the omitted dividend. This is the usual pattern: a single missing or wrongly signed item produces a difference equal to that item, or twice that item for a sign error.
Building the cash cell in a spreadsheet
In a spreadsheet, three cells carry the loop for one period:
Net change in cashis the sum of the CFO, CFI, and CFF subtotals.Ending cashon the cash flow statement isOpening cash + Net change in cash.Cashon the balance sheet is a direct reference toEnding cash, with no arithmetic in it.
Keep the balance sheet cell as a pure reference. If you put arithmetic in it, adjustments become invisible to anyone auditing the cash flow statement. The opening cash cell on the cash flow statement should reference the previous period's balance sheet cash, not the previous period's cash flow statement cell. This keeps one source of truth, and it makes the first forecast period work naturally, because it points at the last historical balance sheet.
Edge cases
Minimum cash and revolvers. In a simple model, cash can turn negative if a period has heavy capex or dividends. Negative cash is not a formula error, but it is not realistic either. Many models add a revolving credit facility. The revolver draw is a financing flow that is calculated from the cash shortfall, so it depends on pre-revolver cash. This is one of the sources of circularity covered in the interest chapter.
Interest income on cash. If cash earns interest, interest income is part of net income. Net income feeds CFO, CFO feeds ending cash, and ending cash feeds interest income. That is a loop in the dependency graph. The standard remedy is to calculate interest on opening cash, which breaks the loop, or to use average balances with iterative calculation switched on and a circuit-breaker switch.
Items that skip the cash flow statement. Every balance sheet line that changes must appear in the cash flow statement, either directly or through a related income statement item. Typical omissions are other current assets, accrued liabilities, deferred taxes, and common stock issuance. If you add a new balance sheet line, add its cash flow row at the same time.
Cash-like items. If your balance sheet shows cash and short-term investments together, make sure the cash flow statement's opening and ending cash use the same definition. Otherwise the loop closes on a different number from the one the balance sheet shows.
Foreign exchange and restricted cash. Published statements often include an FX effect on cash and may reconcile cash plus restricted cash. A forecast model usually sets these to zero, but historical periods may need them for the reconciliation to match the reported figure.
Checks to add at this step
| Check | Formula idea | Expected |
|---|---|---|
| Cash link | Balance sheet cash minus cash flow ending cash | 0 |
| Opening link | Cash flow opening cash minus prior balance sheet cash | 0 |
| Balance | Total assets minus (liabilities plus equity) | 0 |
| Plug test | Plug cash minus linked cash | 0 |
Use a small tolerance such as 0.001 rather than testing for exact equality. Floating-point arithmetic and rounding in historical data can leave tiny residuals.
Exercise
A model shows a balance check of 40 in the first forecast period. The cash flow statement has a depreciation add-back of 20 and its balance sheet cash is linked correctly to ending cash. The PP&E roll-forward on the balance sheet is Opening PP&E + Capex + Depreciation, where depreciation is entered as a positive number. Which link is wrong, and why does the check show 40 instead of 20?
Show answer
The PP&E roll-forward is wrong. It should be Opening PP&E + Capex - Depreciation. Depreciation reduces PP&E on the balance sheet and is added back on the cash flow statement. By adding it, the balance sheet overstates PP&E by 20 (instead of reducing it by 20), a swing of 40 from the correct figure. Assets are 40 too high while liabilities and equity are correct, so the check shows 40, which is twice the item.
Exercise
Why is it a bad design to set balance sheet cash equal to total liabilities and equity minus all other assets, and what is the right way to use that calculation?
Show answer
As the model's cash formula it forces the balance sheet to balance no matter what, so errors in the cash flow statement or the other schedules are never detected, and the cash figure can be wrong. The correct design links cash from the cash flow statement's ending cash. The plug calculation can still be used in a separate, unreferenced cell as a test, and it must equal the linked cash.