Sub topic 15
Worked example: one year, three statements
This chapter builds one year of statements for a small company, from the opening balance sheet to the closing one. It assumes you know the accounting equation, can read a simple income statement and balance sheet, and have seen the indirect method for operating cash flow. Each figure is computed once and then reused in the other statements.
The starting position and the year's activity
The opening balance sheet balances at 340.
| Assets | Amount | Liabilities and equity | Amount |
|---|---|---|---|
| Cash | 100 | Accounts payable | 30 |
| Accounts receivable | 40 | Debt | 100 |
| PP&E (net) | 200 | Common stock | 150 |
| Retained earnings | 60 | ||
| Total | 340 | Total | 340 |
During the year the company does the following:
- It earns revenue of 500, all billed on credit.
- It incurs cash operating expenses of 380 and depreciation of 20.
- It pays interest at 8% of opening debt. This is a simplification that avoids a circular calculation.
- It pays tax at 25% of pre-tax profit.
- It buys equipment for 30, repays 10 of debt, and pays dividends of 19.
- Receivables end the year at 50 and payables at 35.
Step 1: The income statement
Work down from revenue. Interest is 100 × 8% = 8.
| Line | Amount |
|---|---|
| Revenue | 500 |
| Cash operating expenses | (380) |
| Depreciation | (20) |
| Interest expense | (8) |
| Pre-tax profit | 92 |
| Tax at 25% | (23) |
| Net income | 69 |
Net income of 69 is the one figure that feeds two other places. It goes into retained earnings and into the first line of operating cash flow.
Step 2: The cash flow statement
Start with net income, add back depreciation, then adjust for the working capital changes.
| Operating activities | Amount |
|---|---|
| Net income | 69 |
| Add: depreciation (non-cash) | 20 |
| Increase in receivables (40 to 50) | (10) |
| Increase in payables (30 to 35) | 5 |
| **Cash flow from operations** | **84** |
Receivables rose, so 10 of revenue was earned but not yet collected. That reduces cash. Payables rose, so 5 of costs was incurred but not yet paid. That keeps cash in the business.
| Investing and financing | Amount |
|---|---|
| Capital expenditure | (30) |
| **Cash flow from investing** | **(30)** |
| Debt repaid | (10) |
| Dividends paid | (19) |
| **Cash flow from financing** | **(29)** |
The net change in cash is 84 − 30 − 29 = +25. Ending cash is 100 + 25 = 125.
Step 3: The closing balance sheet
Each closing balance comes from a roll-forward: opening balance, plus or minus the year's activity.
| Account | Roll-forward | Closing |
|---|---|---|
| Cash | 100 + 25 (cash flow statement) | 125 |
| Accounts receivable | Given | 50 |
| PP&E | 200 + 30 capex − 20 depreciation | 210 |
| Accounts payable | Given | 35 |
| Debt | 100 − 10 repaid | 90 |
| Common stock | No issuance | 150 |
| Retained earnings | 60 + 69 net income − 19 dividends | 110 |
Total assets are 125 + 50 + 210 = 385. Total liabilities and equity are 35 + 90 + 150 + 110 = 385. The statements balance.
Step 4: The same model in code
Writing the links as code makes them explicit and lets you test the balance check automatically.
# Opening balance sheet (balances: 340 = 30 + 100 + 150 + 60)
opening = {"cash": 100, "ar": 40, "ppe": 200,
"ap": 30, "debt": 100, "stock": 150, "re": 60}
# Income statement for the year
revenue, cash_opex, depreciation = 500, 380, 20
interest = opening["debt"] * 0.08 # simplification: interest on opening debt
pretax = revenue - cash_opex - depreciation - interest
tax = pretax * 0.25
net_income = pretax - tax # 69
# Other year activity
capex, dividends, debt_repaid = 30, 19, 10
end_ar, end_ap = 50, 35
# Cash flow statement (indirect method)
cfo = (net_income + depreciation
- (end_ar - opening["ar"]) # receivables up: cash tied up
+ (end_ap - opening["ap"])) # payables up: cash retained
cfi = -capex
cff = -debt_repaid - dividends
end_cash = opening["cash"] + cfo + cfi + cff
# Closing balance sheet
assets = end_cash + end_ar + (opening["ppe"] + capex - depreciation)
liabilities_and_equity = (end_ap + (opening["debt"] - debt_repaid)
+ opening["stock"]
+ (opening["re"] + net_income - dividends))
print(net_income, cfo, cfi, cff, end_cash) # 69.0 84.0 -30 -29 125.0
assert abs(assets - liabilities_and_equity) < 1e-9 # both are 385The code never plugs a number to force a balance. Cash is computed only from the cash flow statement, and retained earnings only from net income and dividends. The two totals match because every link is correct.
Step 5: Testing the model against typical errors
A balance check tells you that something is wrong, not what. Change one input at a time and see which side moves.
| Mistake | Effect on the check |
|---|---|
| Forget to add back depreciation (cash flow from operations 64) | Ending cash is 105, so assets are 365 against 385. Assets are short by 20. |
| Subtract the receivables increase twice | Cash is 10 too low, so assets are short by 10. |
| Leave dividends out of retained earnings | Retained earnings are 19 too high, so equity exceeds assets by 19. |
| Show capex as a positive investing flow | Cash is 60 too high, so assets exceed equity by 60. |
The size of the imbalance is a clue. A difference equal to a known item (20 of depreciation, 19 of dividends) points straight at that item. A difference of twice an item suggests a sign error, as in the capex case.
Exercise
Suppose receivables had ended the year at 60 instead of 50, with everything else unchanged. Recompute net income, cash flow from operations, ending cash, and whether the closing balance sheet still balances.
Show answer
Net income is unchanged at 69, because revenue is recorded on an accrual basis regardless of collection. Receivables now rise by 20, so cash flow from operations is 69 + 20 − 20 + 5 = 74. Net change in cash is 74 − 30 − 29 = 15, so ending cash is 115. Assets are 115 + 60 + 210 = 385. Liabilities and equity are still 385. The sheet balances: cash fell by 10 and receivables rose by 10, so total assets are unchanged.
Exercise
The company issues new common stock of 40 during the year, and nothing else changes. Which statement shows the 40, what is the new ending cash, and what is the new total of liabilities and equity?
Show answer
The 40 appears as an inflow in cash flow from financing, so financing becomes −29 + 40 = +11. Net change in cash is 84 − 30 + 11 = 65, so ending cash is 165. Common stock on the balance sheet rises to 190. Total assets are 165 + 50 + 210 = 425, and liabilities and equity are 35 + 90 + 190 + 110 = 425. The income statement is unaffected.