Sub topic 1
The accounting equation: Assets = Liabilities + Equity
Prerequisites
This chapter assumes you can do basic arithmetic with money amounts and that you know everyday transactions such as sales, purchases, loans and paying rent. The optional code uses plain Python. You do not need any accounting background.
The equation
Every business, from a one-person shop to a large company, can be described with one equation:
Assets = Liabilities + Equity
- Assets are things the business owns that have value, such as cash, equipment and money customers owe it.
- Liabilities are amounts the business owes to others, such as bank loans and unpaid bills.
- Equity is the owner's claim on the business. It is what remains of the assets after the liabilities are subtracted.
The right side of the equation says who has a claim on the assets. Creditors (people the business owes) have claims through liabilities. The owner has a claim through equity. The two sides must always be equal, because every asset is financed by someone, either a lender or the owner.
Rearranged, the equation shows equity as a leftover: Equity = Assets − Liabilities. If a business has $10,000 of assets and owes $4,000, the owner's equity is $6,000.
Why every transaction keeps it balanced
A transaction changes the equation, but it must change it so both sides stay equal. There are only a few ways this happens:
- An asset goes up and another asset goes down. Buying equipment with cash changes only the asset side.
- An asset goes up and a liability goes up. Borrowing from a bank adds cash and adds a loan.
- An asset goes up and equity goes up. The owner invests cash.
- An asset goes down and a liability goes down. Repaying a loan.
- Equity changes through earnings. Revenue raises equity and expenses lower it.
Notice that each change touches at least two items. This is the seed of double-entry bookkeeping, which later chapters develop.
A worked example
Start with a new business and apply three transactions. The table tracks each item after each step.
| Step | Transaction | Assets | Liabilities | Equity |
|---|---|---|---|---|
| 1 | Owner invests $1,000 cash | 1,000 | 0 | 1,000 |
| 2 | Business borrows $400 from a bank | 1,400 | 400 | 1,000 |
| 3 | Business buys $300 of equipment with cash | 1,400 | 400 | 1,000 |
In step 3, cash falls by $300 and equipment rises by $300. Total assets stay at $1,400 because only the mix of assets changed. After every step, Assets equal Liabilities plus Equity.
Checking the equation in code
This optional script applies the three steps and checks the equation after each one. It uses Decimal, which avoids the rounding errors of floating-point numbers when handling money.
from decimal import Decimal
state = {"assets": Decimal("0"), "liabilities": Decimal("0"), "equity": Decimal("0")}
def apply(description, d_assets, d_liabilities, d_equity):
state["assets"] += Decimal(d_assets)
state["liabilities"] += Decimal(d_liabilities)
state["equity"] += Decimal(d_equity)
balanced = state["assets"] == state["liabilities"] + state["equity"]
print(f"{description}: {state} balanced={balanced}")
apply("Owner invests 1000", "1000", "0", "1000")
apply("Borrow 400", "400", "400", "0")
apply("Buy equipment for 300 cash", "0", "0", "0") # cash -300, equipment +300Each line prints balanced=True. The last call passes zeros because the two asset changes cancel out.
Common errors
- Treating equity as cash. Equity is a claim on all assets, not a pile of money. A business can have large equity and little cash.
- Forgetting that earnings change equity. Revenue and expenses are not outside the equation. They are temporary changes to equity.
- Changing only one side. If you record a loan as a new asset but not as a new liability, the equation breaks. That is the signal that something is missing.
Exercise
A business has assets of $8,000 and liabilities of $3,000. It then pays $1,000 of a bank loan with cash. What are its assets, liabilities and equity afterward?
Show answer
Equity starts at 8,000 − 3,000 = 5,000. Paying the loan lowers cash (an asset) by 1,000 and lowers liabilities by 1,000. Assets are now 7,000, liabilities are 2,000, and equity is still 5,000. Check: 7,000 = 2,000 + 5,000.
Exercise
The owner withdraws no money, but the business earns $500 of service revenue in cash. Which parts of the equation change, and by how much?
Show answer
Assets (cash) increase by 500 and equity increases by 500, because revenue raises equity. Liabilities do not change. Both sides grow by the same amount, so the equation stays balanced.