Sub topic 1
The Accounting Equation: The Identity Behind Every Link
Prerequisites
This chapter assumes you can do the following:
- Name the main balance sheet and income statement items: assets, liabilities, equity, revenue, and expense.
- Read a simple balance sheet and income statement.
- Do spreadsheet-style arithmetic and read short Python.
You do not need double-entry bookkeeping. The chapter introduces the part you need.
The identity
Every link between the three statements rests on one equation:
Assets = Liabilities + Equity
- Assets are resources the company controls, such as cash, receivables, and equipment.
- Liabilities are claims by outsiders, such as payables and debt.
- Equity is the owners' claim. It is what remains of the assets after the liabilities are subtracted.
The equation is an identity. It holds by how the terms are defined, so it is not a target the company tries to hit. Equity is the residual, which means the right-hand side always adds up to the left. Every asset was paid for by someone, either a creditor or an owner.
The equation matters for linking statements because every figure in the income statement and cash flow statement is a change in one of its terms. If you record a change on only one side of the equation, the balance sheet stops balancing. That failure is how linking errors show up later in this tutorial.
Equity has parts
Equity is not a single number. Two parts matter here:
- Contributed capital (the "stock" line in the later worked example) is money owners put in directly, such as a share issue.
- Retained earnings is the profit the company has earned and kept, accumulated over its life.
Retained earnings changes in two ways:
- Net income raises it.
- Dividends lower it.
Revenue and expenses are temporary equity accounts. Revenue increases equity and expenses decrease it. The income statement is a detailed breakdown of one period's change in retained earnings, before dividends. This is the first link, and the next chapters cover it fully.
Every transaction keeps the equation balanced
Double-entry bookkeeping means each transaction changes at least two accounts, and the changes offset each other. There are only a few shapes of offset:
| Transaction | Assets | Liabilities | Equity |
|---|---|---|---|
| Borrow 50 in cash | Cash +50 | Debt +50 | none |
| Sell 20 on credit | Receivables +20 | none | Retained earnings +20 |
| Pay a dividend of 10 | Cash -10 | none | Retained earnings -10 |
| Buy equipment for 30 cash | Cash -30, PP&E +30 | none | none |
| Record 20 of depreciation | PP&E -20 | none | Retained earnings -20 |
| Pay 15 of payables in cash | Cash -15 | Payables -15 | none |
Three patterns appear in the table:
- Some transactions swap one asset for another, so total assets do not change.
- Some change assets and liabilities together.
- Some change assets and equity together. These are the ones that run through the income statement.
The sale and the depreciation rows both change equity without touching cash directly. That is the source of the gap between profit and cash covered in the next chapter.
Checking the identity in code
The following program holds the opening balance sheet used in the worked example later in the tutorial. It applies transactions only if the equation still holds afterwards.
ASSETS = {"cash", "ar", "ppe"}
opening = {"cash": 100, "ar": 40, "ppe": 200,
"ap": 30, "debt": 100, "stock": 150, "re": 60}
def totals(b):
assets = sum(v for k, v in b.items() if k in ASSETS)
claims = sum(v for k, v in b.items() if k not in ASSETS)
return assets, claims
def post(b, **changes):
"""Apply one transaction; reject it if the equation would break."""
new = dict(b)
for account, delta in changes.items():
new[account] += delta
assets, claims = totals(new)
if assets != claims:
raise ValueError(f"Unbalanced: assets {assets}, claims {claims}")
return new
b = opening
b = post(b, cash=50, debt=50) # borrow 50
b = post(b, ar=20, re=20) # sell 20 on credit
b = post(b, cash=-10, re=-10) # pay a dividend of 10
b = post(b, cash=-30, ppe=30) # buy equipment for 30 cash
b = post(b, ppe=-20, re=-20) # record 20 of depreciation
print(totals(b)) # (380, 380)
try:
post(b, cash=-10) # one-sided entry
except ValueError as err:
print(err) # Unbalanced: assets 370, claims 380The one-sided entry fails the check. A cash payment with no matching change on the other side is the kind of mistake the balance check catches. In a real model, it usually means a link is missing.
Edge cases and gotchas
- Balancing does not mean correct. The equation holds even if you post to the wrong accounts, as long as both sides move equally. Classifying equipment as an expense, for example, balances but misstates profit and assets. The balance check finds only one-sided errors.
- Offsetting errors hide. Two mistakes of equal size on opposite sides cancel in the check. A balanced model is necessary, not sufficient.
- Negative equity is legal. If liabilities exceed assets, the identity still holds and equity is negative. Heavy buybacks or accumulated losses can cause this. It does not signal a broken model.
- Equity is a residual, not a cash pile. Retained earnings is a claim on assets in general. It is not a stock of cash set aside. A profitable company can have large retained earnings and little cash.
- Contra and valuation accounts follow the same rule. Accumulated depreciation sits on the asset side with a negative sign, so it reduces total assets. The identity is unchanged.
- Sign conventions differ. In bookkeeping, debits and credits are the conventions for which side an entry goes on. In a model, it is simpler to treat each account as a signed number, as the code above does.
How this connects to the next chapters
The equation tells you what a link must do. Each later link takes a change in one statement and posts the matching change elsewhere:
- Net income and dividends move retained earnings (Link 1).
- The cash flow statement explains the change in the cash line of the balance sheet (Link 6).
- All other balance sheet changes, such as receivables and PP&E, appear as cash flow items that sum to that cash change.
Because the equation is an identity, if every non-cash account is explained and equity is explained, cash is determined. The cash flow statement is therefore not an independent source of information. It is the balance sheet's cash change, itemised.
Exercise
A company pays 15 of its accounts payable in cash. Which accounts change, and what happens to total assets and to equity?
Show answer
Cash falls by 15 (an asset) and accounts payable falls by 15 (a liability). Total assets fall by 15, and total liabilities fall by 15, so the equation still balances. Equity does not change, because no revenue or expense was recorded. The expense was recorded earlier, when the payable was created.
Exercise
In the Python example, a post of cash=-10 alone raises "Unbalanced: assets 370, claims 380". What single additional change would make that entry valid if it were a dividend?
Show answer
re=-10, a 10 reduction in retained earnings. The call would be post(b, cash=-10, re=-10), which lowers assets and equity by 10 each.