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 from the earlier chapters. It also assumes you can read short Python scripts. Here you will see why a single recorded fact is never enough in double-entry accounting, and why the equation forces every transaction to be recorded twice. The names "debit" and "credit" come later. For now the two sides are described by their effects.
The principle
Double-entry accounting records each transaction in at least two places. Every transaction is an exchange: the business receives something and gives, owes, or earns something in return. Recording only one half would leave the books describing an exchange that never finished.
Suppose a business pays $300 rent in cash. If you record only "cash fell by $300", the books show the business lost money without saying why. If you record only "rent cost $300", they show a cost without saying how it was paid. The full story is the pair: cash went down and a rent expense was incurred.
Luca Pacioli described this method in print in 1494. It has lasted because the two-sided record is self-checking, as the next section shows.
Why the equation forces two sides
The accounting equation must hold after every transaction:
Assets = Liabilities + Equity
If one transaction changed only one number, the equation would break. A change to assets alone makes the left side differ from the right. To keep the equation true, each transaction must either:
- change both sides of the equation by the same amount, or
- change two items on the same side by equal and opposite amounts.
This is the double-entry principle. The "two sides" are the two parts of the exchange that together leave the equation intact. They are not the left and right of the equation itself.
The common patterns
Almost every ordinary transaction fits one of these patterns. Amounts are in dollars.
| Example transaction | Assets | Liabilities | Equity |
|---|---|---|---|
| Owner invests $1,000 cash | +1,000 | no change | +1,000 |
| Borrow $2,000 from a bank | +2,000 | +2,000 | no change |
| Repay $400 of the loan | -400 | -400 | no change |
| Buy $300 of supplies for cash | +300 and -300 | no change | no change |
| Receive a $300 rent bill, unpaid | no change | +300 | -300 |
Check each row. Whenever assets change, liabilities plus equity change by the same net amount. In the fourth row both changes are inside assets and cancel out. In the last row the change is entirely on the right side: a liability goes up and equity goes down.
Revenue and expenses belong to equity. Earning revenue increases equity, and incurring an expense decreases it. That is why "pay $300 rent in cash" reduces assets and equity together.
A worked example
Take the three transactions that run through this tutorial:
- The owner invests $1,000 cash.
- The business earns $500 of service revenue in cash.
- The business pays $300 rent in cash.
The table shows the running totals after each one.
| After transaction | Assets (cash) | Liabilities | Equity | Equation holds? |
|---|---|---|---|---|
| Start | 0 | 0 | 0 | Yes |
| 1. Owner invests | 1,000 | 0 | 1,000 | Yes |
| 2. Revenue earned | 1,500 | 0 | 1,500 | Yes |
| 3. Rent paid | 1,200 | 0 | 1,200 | Yes |
Each transaction touched two things, cash and equity, by the same amount. The equation held after every step, not only at the end.
Checking the principle in code
The script below applies the three transactions and tests the equation after each one. It then applies a deliberately one-sided entry to show what a missing second half does. It uses Decimal because floating-point numbers can introduce rounding errors with money.
from decimal import Decimal
state = {"assets": Decimal("0"), "liabilities": Decimal("0"), "equity": Decimal("0")}
def holds(s):
return s["assets"] == s["liabilities"] + s["equity"]
def apply(name, effects):
for category, change in effects:
state[category] += change
print(f"{name:30} A={state['assets']:>5} L={state['liabilities']:>3} "
f"E={state['equity']:>5} balanced={holds(state)}")
apply("Owner invests cash",
[("assets", Decimal("1000")), ("equity", Decimal("1000"))])
apply("Earn service revenue in cash",
[("assets", Decimal("500")), ("equity", Decimal("500"))])
apply("Pay rent in cash",
[("assets", Decimal("-300")), ("equity", Decimal("-300"))])
# One-sided entry: the cash is recorded, but the other half is forgotten.
apply("Bad entry: cash only",
[("assets", Decimal("200"))])The first three lines print balanced=True. The last prints balanced=False, because assets rose by 200 and nothing on the right side did. This is the failure the principle protects against: an incomplete record shows up as an imbalance.
What "two sides" does and does not mean
Two groups, not always two lines
Some transactions involve more than two accounts. Suppose the business buys equipment for $2,000, pays $500 in cash, and owes the remaining $1,500 to the seller. The effects are:
- Equipment (an asset) increases by $2,000.
- Cash (an asset) decreases by $500.
- Accounts payable (a liability) increases by $1,500.
That is three lines, yet the two sides still exist. The side that received value totals $2,000. The side that gave value or created an obligation totals $500 + $1,500 = $2,000. This is called a compound entry. The rule is that the totals of the two sides match, not that there are exactly two lines.
Not every event is a transaction
Many events change nothing in the equation yet, so they get no entry. Examples are placing an order for goods not yet delivered, signing an agreement to be paid later for work not yet done, or hiring an employee who has not yet worked. Each is a promise about the future. An entry is recorded when value actually moves, such as when goods arrive or work is done and a right to payment or an obligation to pay exists.
Equal totals are necessary, not sufficient
A two-sided entry with equal totals keeps the equation balanced. It does not prove you chose the right accounts or the right amount. If you record a $300 rent payment as a $300 equipment purchase, both sides are still equal. The equation holds, but the books are wrong. The trial balance chapter returns to what balance can and cannot prove.
The two sides are not "good" and "bad"
Neither half is the favorable one. A loan brings in cash and creates debt in the same moment. Both parts are required for the record to make sense.
Connecting to the next steps
You now have the reason for the structure: every transaction has two parts of equal total, so the equation never breaks. The next chapters give those two parts a visual format and names:
- T-accounts show an account as a left side and a right side.
- Debit and credit are the names of those left and right sides.
- Normal balances and the increase and decrease rules say which side grows which account type.
Until then, keep thinking of each transaction as "what came in, and what went out or is owed".
Exercises
Exercise
A business borrows $5,000 from a bank, receiving cash. Which parts of the accounting equation change, and by how much? Does the equation still hold?
Show answer
Assets (cash) increase by $5,000 and liabilities (a bank loan payable) increase by $5,000. Equity does not change. Before: A = L + E. After: (A + 5,000) = (L + 5,000) + E, so the equation still holds.
Exercise
A business buys a $1,200 computer. It pays $200 in cash and owes the remaining $1,000 to the seller. Describe the effects, identify the two sides, and state whether the totals match.
Show answer
The computer (an asset) increases by $1,200. Cash (an asset) decreases by $200. Accounts payable (a liability) increases by $1,000. Side one is the value received, $1,200. Side two is the value given or owed, $200 + $1,000 = $1,200. The totals match. Net assets rise by $1,000 and liabilities rise by $1,000, so the equation holds.
Exercise
A clerk records the payment of $300 rent by reducing cash by $300 and increasing equipment by $300. Is the equation still balanced? Is the record correct?
Show answer
The equation is balanced, because assets move by +300 and -300 and net to zero. The record is not correct. Rent is an expense, so equity should decrease by $300 along with cash. Equal totals do not guarantee the right accounts were used.