Sub topic 8
Link 3: Working Capital Changes Become Cash Flow Items
This chapter covers how changes in working capital accounts on the balance sheet turn into line items in the cash flow statement. It assumes you know the three statements, can write spreadsheet formulas with cell references, and have met the retained earnings link and the depreciation add-back from earlier chapters.
Why this link exists
The income statement uses accrual accounting. Revenue is recorded when a sale is made, not when the customer pays. Expenses are recorded when they are incurred, not when the bill is paid. Net income therefore does not equal the cash a business collected and spent.
The gap between the two sits on the balance sheet, in the working capital accounts. The cash flow statement, built with the indirect method, starts at net income and corrects for that gap. Each correction is the period's change in one balance sheet account.
Working capital is the set of short-term operating assets and liabilities. The common ones are:
- Accounts receivable (AR): money customers owe you for sales already recorded as revenue.
- Inventory: goods held for sale, recorded at cost.
- Prepaid expenses: cash paid in advance for costs that will hit the income statement later.
- Accounts payable (AP): money you owe suppliers for purchases already recorded.
- Accrued expenses and deferred revenue: costs recorded but unpaid, and cash received before revenue is earned.
Cash and short-term debt are not part of operating working capital. Cash is the result the cash flow statement calculates, and debt belongs to financing.
The sign rule
Every working capital adjustment follows one rule, and it comes straight from the accounting equation.
- An increase in an operating asset uses cash, so it is subtracted in CFO.
- A decrease in an operating asset releases cash, so it is added in CFO.
- An increase in an operating liability provides cash, so it is added in CFO.
- A decrease in an operating liability uses cash, so it is subtracted in CFO.
| Account | Balance rises | Balance falls |
|---|---|---|
| Accounts receivable | Subtract (cash tied up) | Add (cash collected) |
| Inventory | Subtract | Add |
| Prepaid expenses | Subtract | Add |
| Accounts payable | Add (payment deferred) | Subtract (suppliers paid) |
| Accrued expenses | Add | Subtract |
| Deferred revenue | Add (cash received early) | Subtract |
The rule works because of the balance sheet identity. Assets equal liabilities plus equity. If cash is held constant, any rise in a non-cash asset must be matched by a fall in another asset or a rise in liabilities or equity. For an asset such as AR that rises while net income is unchanged, something else must give: cash. The sign rule records that cash effect.
A worked example
Take the opening balances from the model in the Topic Spine: AR of 50 and AP of 30. At the end of the period, AR is 60 and AP is 35. Revenue is 500 and net income is 60.
- AR rose by 10. Of the 500 of revenue, 10 was not collected. Subtract 10.
- AP rose by 5. Of the supplier costs, 5 was not paid. Add 5.
The net working capital effect is -10 + 5 = -5. Cash from operations is therefore:
CFO = 60 (net income) + 20 (depreciation) - 10 + 5 = 75
Net income of 60 overstates operating cash by nothing here, but the depreciation add-back lifts it by 20 and the working capital drag lowers it by 5. The result of 75 matches the model in the Topic Spine.
The calculation in code
The function below computes the working capital adjustment from two balance sheet snapshots. It classifies each account as an asset or a liability and applies the sign rule, so adding an account later does not require new sign logic.
# Working capital changes from two balance sheet snapshots.
opening = {"ar": 50, "inventory": 40, "prepaid": 5,
"ap": 30, "accrued": 12, "deferred_revenue": 8}
closing = {"ar": 60, "inventory": 38, "prepaid": 6,
"ap": 35, "accrued": 14, "deferred_revenue": 6}
ASSETS = {"ar", "inventory", "prepaid"}
LIABILITIES = {"ap", "accrued", "deferred_revenue"}
def cash_effect(name, begin, end):
"""Return the CFO adjustment for one working capital account."""
change = end - begin
if name in ASSETS:
return -change # asset up -> cash down
if name in LIABILITIES:
return change # liability up -> cash up
raise ValueError(f"Unclassified account: {name}")
adjustments = {name: cash_effect(name, opening[name], closing[name])
for name in opening}
for name, value in adjustments.items():
print(f"{name:18s}{value:+d}")
total = sum(adjustments.values())
print(f"{'total':18s}{total:+d}")Running it prints:
ar -10
inventory +2
prepaid -1
ap +5
accrued +2
deferred_revenue -2
total -4The ValueError is deliberate. A model that silently skips an unclassified account will fail the balance check later, far from the cause.
How the link works in a spreadsheet
In a spreadsheet, each working capital line on the cash flow statement refers to two cells on the balance sheet: the current period and the prior period. Use the same formula shape across the whole row so it can be copied right.
CF!C12 (Change in AR) = -(BS!C8 - BS!B8)
CF!C13 (Change in AP) = +(BS!C20 - BS!B20)Two habits keep this link reliable:
- Compute the change on the cash flow statement, not on the balance sheet. The balance sheet holds balances only.
- Write assets as the prior balance minus the current balance,
B8 - C8, and liabilities as the current minus the prior,C20 - B20. The sign is then built into the formula and you never have to remember to flip it.
Forecasting the balances that drive the link
In a forecast, the ending balances are not known. They come from drivers, which are assumptions tied to the income statement. The cash flow line is then calculated from the resulting balances.
| Account | Typical driver | Formula for ending balance |
|---|---|---|
| AR | Days sales outstanding (DSO) | Revenue × DSO / 365 |
| Inventory | Days inventory outstanding (DIO) | COGS × DIO / 365 |
| AP | Days payables outstanding (DPO) | COGS × DPO / 365 |
| Prepaids, accruals | Percent of revenue or opex | Revenue × percentage |
For example, with revenue of 600 and DSO of 36.5 days, ending AR is 600 × 36.5 / 365 = 60. If prior AR was 50, the cash flow line is -10.
def days_balance(flow, days, period_days=365):
"""Ending balance implied by a days-based driver."""
return flow * days / period_days
revenue, cogs = 600, 360
ar_end = days_balance(revenue, 36.5) # 60.0
inv_end = days_balance(cogs, 36.5) # 36.0
ap_end = days_balance(cogs, 30.4167) # about 30.0
ar_begin = 50
print(round(ar_end, 1), round(-(ar_end - ar_begin), 1)) # 60.0 -10.0Because the balances depend on revenue and COGS, faster growth raises working capital and lowers operating cash flow, even when net income rises. This is why a growing company can be profitable and still run short of cash.
Edge cases and common errors
- Reversed signs. The most frequent error is adding an increase in AR. The imbalance equals twice the size of that line, so a 10 error shows up as a 20 break.
- Using the wrong flow in a driver. AP is usually driven by COGS or purchases, not by revenue. Using revenue overstates AP when margins are thin.
- Including non-operating items. Interest payable and dividends payable are not operating working capital in most models. Put their changes with financing, or you will count them in the wrong section.
- Cash in working capital. Never include cash in the change calculation. Doing so makes ending cash depend on itself.
- Opening balance mismatch. The first forecast period must use the last actual balance sheet as its opening position. A hard-coded opening number that differs from the actual breaks the link silently.
- Non-cash changes in balances. If an acquisition adds AR or inventory, the balance change is not a cash event. A model with acquisitions must adjust for the acquired balances.
- Days calculation basis. Mixing 360 and 365 days between the driver and the check gives small, hard-to-trace differences. Choose one and state it.
Where this link fits
The working capital lines join the net income and depreciation add-back to form cash flow from operations. Together with the capital expenditure and PP&E link in the next chapter, and the financing lines after it, they let you compute ending cash. That cash returns to the balance sheet and closes the loop.
Exercise
A company's opening balances are AR 80, inventory 60, AP 50 and accrued expenses 10. Closing balances are AR 70, inventory 75, AP 58 and accrued expenses 9. Net income is 40 and depreciation is 15. Calculate the working capital adjustment and cash flow from operations.
Show answer
AR fell by 10, which adds 10. Inventory rose by 15, which subtracts 15. AP rose by 8, which adds 8. Accrued expenses fell by 1, which subtracts 1. The working capital adjustment is 10 - 15 + 8 - 1 = +2. CFO = 40 + 15 + 2 = 57.
Exercise
A modeler forecasts AR with DSO of 45 days on revenue of 730, with prior AR of 80. What is the ending AR, and what does the cash flow statement show for AR? Explain what happens to cash if the modeler adds the AR change instead of subtracting it.
Show answer
Ending AR = 730 × 45 / 365 = 90. AR rose by 10, so the cash flow line is -10. If the sign is flipped, CFO is overstated by 20 (+10 instead of -10), so ending cash is 20 too high and the balance sheet fails to balance by 20.