Sub topic 12
Closing the loop: ending cash back to the balance sheet
This chapter covers the last link in the three-statement model. Ending cash from the cash flow statement becomes the cash line on the balance sheet. It assumes you have built the income statement, the working capital, fixed asset and debt schedules, and the indirect-method cash flow statement from earlier chapters. You should also be comfortable with the sign rules for balance sheet changes.
Why cash is the last link
Every other balance sheet line has its own source. Receivables and payables come from the working capital schedule. Net PP&E comes from the fixed asset schedule. Debt comes from the debt schedule, and equity comes from the retained earnings roll-forward.
Cash is different. It has no schedule of its own. It is the result of everything else, collected on the cash flow statement:
Ending cash = Opening cash + CFO + CFI + CFFThe balance sheet then takes that number. If every other line is correct and cash is derived this way, the balance sheet balances. The cash flow statement is built so that every non-cash balance sheet movement has a matching cash effect, so assets and liabilities plus equity move by the same amount.
The flow of information
The diagram shows where each number comes from and where cash ends up.
Two things follow from this structure:
- Ending cash is an output of the cash flow statement, so it is never typed in or calculated from the balance sheet.
- Opening cash must equal the prior period's closing balance sheet cash. That is how periods chain together.
A worked one-period example
Take the opening balance sheet from the running model: cash 100, receivables 50, PP&E 200, payables 30, debt 120 and equity 200. Assets are 350 and liabilities plus equity are also 350.
The forecast assumptions are revenue 500, operating costs 380, depreciation 20, capex 30, dividends 20, debt repayment 10, a tax rate of 25%, an interest rate of 8%, closing receivables of 60 and closing payables of 35.
- Interest is 8% of opening debt: 9.6. Pre-tax profit is 500 − 380 − 20 − 9.6 = 90.4, and net income is 67.8.
- Cash from operations is 67.8 + 20 − 10 (receivables rose) + 5 (payables rose) = 82.8.
- Cash from investing is −30. Cash from financing is −10 − 20 = −30.
- Net change in cash is 22.8, so ending cash is 100 + 22.8 = 122.8.
- Total assets are 122.8 + 60 + 210 = 392.8. PP&E of 210 is 200 + 30 − 20.
- Liabilities are 35 + 110 = 145. Equity is 200 + 67.8 − 20 = 247.8. Together they come to 392.8.
Here it is as code, with a function that runs one period and a separate check function:
def run_period(opening, a, include_dividends_in_cash=True):
interest = a["interest_rate"] * opening["debt"]
pretax = a["revenue"] - a["operating_costs"] - a["depreciation"] - interest
net_income = pretax * (1 - a["tax_rate"])
cfo = (net_income + a["depreciation"]
- (a["ar_close"] - opening["ar"])
+ (a["ap_close"] - opening["ap"]))
cfi = -a["capex"]
cff = -a["debt_repayment"]
if include_dividends_in_cash:
cff -= a["dividends"]
cash_close = opening["cash"] + cfo + cfi + cff
return {
"cash": cash_close,
"ar": a["ar_close"],
"ppe": opening["ppe"] + a["capex"] - a["depreciation"],
"ap": a["ap_close"],
"debt": opening["debt"] - a["debt_repayment"],
"equity": opening["equity"] + net_income - a["dividends"],
}
def balance_difference(b):
assets = b["cash"] + b["ar"] + b["ppe"]
liabilities_and_equity = b["ap"] + b["debt"] + b["equity"]
return round(assets - liabilities_and_equity, 6) + 0.0
opening = {"cash": 100.0, "ar": 50.0, "ppe": 200.0,
"ap": 30.0, "debt": 120.0, "equity": 200.0}
assumptions = {"tax_rate": 0.25, "interest_rate": 0.08, "revenue": 500.0,
"operating_costs": 380.0, "depreciation": 20.0, "capex": 30.0,
"dividends": 20.0, "debt_repayment": 10.0,
"ar_close": 60.0, "ap_close": 35.0}
year1 = run_period(opening, assumptions)
print(round(year1["cash"], 2), balance_difference(year1))
broken = run_period(opening, assumptions, include_dividends_in_cash=False)
print(round(broken["cash"], 2), balance_difference(broken))The first line prints 122.8 0.0. The second run leaves dividends out of financing cash flow but still deducts them from equity. It prints 142.8 20.0. Cash is overstated by 20, and the balance sheet is out by exactly 20.
Chaining periods
In a multi-period model, each period's opening balance sheet is the prior period's closing balance sheet. The cash line is no exception:
assumptions_y2 = dict(assumptions, revenue=540.0, ar_close=65.0, ap_close=38.0)
year2 = run_period(year1, assumptions_y2)
print(round(year2["cash"], 2), balance_difference(year2))Year 2 starts from year1 directly. If you instead retyped year 1's cash as a constant, the model would still run, but it would silently disconnect from any later change to the year 1 assumptions.
A spreadsheet equivalent has three rules:
- Opening cash in column D is
=C_ending_cashon the cash flow statement, or equivalently the prior balance sheet cash cell. - Ending cash in column D is
=opening + CFO + CFI + CFF. - Balance sheet cash in column D points at that ending cash cell, with no arithmetic of its own.
Opening cash: which reference to use
Models differ on where opening cash on the cash flow statement comes from. Both of these are valid, and you should choose one and use it everywhere:
| Approach | Opening cash cell points to | Benefit | Risk |
|---|---|---|---|
| Prior balance sheet | Last period's balance sheet cash | Cash flow statement visibly ties to reported balances | If the balance sheet cash is wrong, the error carries forward |
| Prior cash flow statement | Last period's ending cash row | Keeps the statement self-contained | Can drift from the balance sheet if someone overwrites a cell |
For the first forecast period, opening cash must come from the last actual balance sheet. After that, the balance sheet check will catch any drift between the two.
Common ways to break the loop
Most failures at this step come from a few habits:
- Plugging cash. Setting cash to total liabilities plus equity minus other assets forces a balance every time. The check then proves nothing, because it cannot fail.
- Calculating cash from the balance sheet. The same problem in a quieter form. Cash must be derived from the cash flow statement only.
- Missing a flow. A balance sheet line changes, but no cash flow line reflects it. The imbalance equals the size of the missing flow, as with the dividend above.
- Wrong sign on a flow. An asset increase added to cash instead of subtracted gives an error of twice the change. This is a useful fingerprint.
- Using this period's debt balance for opening cash or interest inconsistently. If interest uses opening debt in the income statement but closing debt elsewhere, the statements disagree about the same quantity.
- Mixing up opening and closing. Opening cash taken from the wrong column shifts the whole series by one period.
Sanity checks beyond the balance
The balance check is necessary but not sufficient. A model can balance and still be wrong, for example if two errors offset or if both sides of a mistake use the same wrong number. Add a few more checks at this point:
- Ending cash on the cash flow statement equals balance sheet cash in every period. This is a separate check from the balance, and it catches a broken cash link directly.
- Net change in cash equals the change in balance sheet cash from one period to the next.
- Cash does not go negative without a financing source. If it does, the model needs a revolver, which a later chapter covers.
Exercise
In the worked example, suppose the analyst forgets to subtract capex in cash from investing (CFI is set to 0) but the PP&E schedule still adds capex of 30. By how much does the balance sheet fail to balance, and which side is larger?
Show answer
Cash is overstated by 30 because the capex outflow is missing, while PP&E is correctly 210. Assets are 422.8 and liabilities plus equity are still 392.8, so the balance sheet is out by 30 with assets larger. The error equals the missing flow, which points at the investing section.
Exercise
A model sets balance sheet cash to =Total liabilities and equity - Receivables - Net PP&E. Why does the balance check always show zero, and why is that a problem?
Show answer
Assets are then defined as total liabilities and equity by construction, so the check cannot fail. It is a problem because cash no longer reflects the cash flow statement. Errors in any schedule or sign are absorbed into cash, and the cash balance can be wrong with no warning. Cash should be computed as opening cash plus CFO, CFI and CFF, and only then compared against the other side.