Sub topic 3
Why every transaction has two sides
This chapter assumes you know the accounting equation (Assets = Liabilities + Equity) and the five account types: assets, liabilities, equity, revenue and expenses. It also assumes basic arithmetic with money and a little Python for the optional code. By the end, you should be able to explain why every transaction touches at least two accounts and how that keeps the books in balance.
The idea in one sentence
A transaction is an exchange. Something comes in and something goes out, or something is earned and something is owed. Double-entry accounting records both parts of the exchange, so one transaction always changes at least two accounts.
Why the equation forces two sides
The accounting equation must hold after every transaction. If you changed only one account, the equation would usually break. Suppose the owner invests $1,000 cash and you record only "Cash +1,000". Assets now exceed Liabilities + Equity by $1,000. The missing half is the owner's claim on the business, which is an increase in equity.
Every transaction falls into one of a few patterns. Each pattern keeps the equation balanced:
| Pattern | Example | Effect on the equation |
|---|---|---|
| Asset up, equity up | Owner invests cash | Both sides rise by the same amount |
| Asset up, liability up | Borrow cash from a bank | Both sides rise by the same amount |
| Asset up, asset down | Buy equipment with cash | Left side changes shape, total unchanged |
| Asset down, liability down | Repay a loan | Both sides fall by the same amount |
| Asset up, revenue up | Earn fees in cash | Equity rises through revenue |
| Expense up, asset down | Pay rent in cash | Equity falls through expense |
Revenue and expenses are temporary accounts that feed into equity. That is why earning revenue counts as an equity increase and an expense counts as an equity decrease.
Following one transaction through both sides
Take a single event: the business borrows $2,000 from a bank.
- Identify what changed. The business has $2,000 more cash. It also owes the bank $2,000.
- Name the accounts. Cash is an asset. Bank Loan is a liability.
- Check the equation. Assets rise by $2,000. Liabilities rise by $2,000. Equity is unchanged. The equation holds.
Both effects are the same event described from two angles. Neither is optional.
From two effects to debits and credits
Double-entry bookkeeping gives each of the two effects a name. One part is recorded as a debit and the other as a credit. The rule that ties them together is simple: in every transaction, total debits equal total credits. Later chapters explain which account types increase with a debit and which with a credit. For now, treat "debit" and "credit" as labels for the two sides of the entry.
The balance rule is easy to check in code. Money should use Decimal, because floating-point numbers can introduce rounding errors.
from decimal import Decimal
def is_balanced(lines):
debits = sum(a for _, side, a in lines if side == "debit")
credits = sum(a for _, side, a in lines if side == "credit")
return debits == credits
loan = [
("Cash", "debit", Decimal("2000.00")),
("Bank Loan", "credit", Decimal("2000.00")),
]
one_sided = [("Cash", "debit", Decimal("2000.00"))]
print(is_balanced(loan)) # True
print(is_balanced(one_sided)) # FalseA one-sided entry fails the check. This is the practical benefit of two sides: the books carry a built-in test for some kinds of error.
Common errors
- Recording only one effect. Entering the cash received but forgetting the matching liability, revenue or equity change leaves the entry unbalanced.
- Using the same amount blindly. A transaction can touch more than two accounts, such as a sale with cash and a loan. The totals must match, but the lines need not pair one to one.
- Assuming balanced means correct. A balanced entry can still use the wrong accounts. Debiting Rent Expense instead of Utilities Expense keeps the totals equal and is still wrong.
Exercise
A business buys $800 of supplies and pays $300 in cash, with the remaining $500 owed to the supplier. Which accounts change, and does the equation still balance?
Show answer
Supplies (asset) rises by $800. Cash (asset) falls by $300. Accounts Payable (liability) rises by $500. Assets change by +800 - 300 = +500, and liabilities change by +500, so the equation balances. The entry has three lines but still two sides: the $800 for supplies on one side, and the $300 cash plus the $500 payable on the other.