Sub topic 9
How the Equation Leads to Debits and Credits
This chapter assumes you know the accounting equation (Assets = Liabilities + Equity), the expanded equation with revenues, expenses, and distributions, and how to analyze a transaction step by step. Here you will see why every transaction keeps the equation in balance, and how that fact produces the rules of debits and credits.
Why every transaction balances
Every transaction has two sides. When a business receives something, it also gives something up or takes on an obligation. The equation records both sides at once.
Consider four transactions from the earlier chapters:
- The owner invests cash. Assets rise and equity rises by the same amount.
- The business borrows from a bank. Assets rise and liabilities rise by the same amount.
- The business repays part of a loan. Assets fall and liabilities fall by the same amount.
- The business earns revenue in cash. Assets rise and equity rises by the same amount.
In each case, the change on the left side equals the change on the right side. Some transactions touch only one side, such as buying equipment with cash. One asset rises and another falls by the same amount. The equation still balances.
This is double-entry bookkeeping: every transaction is recorded in at least two places, and the total of the changes on one side always matches the total on the other.
A check in code
The following program applies the four transactions above and tests the equation after each one.
books = {'assets': 0, 'liabilities': 0, 'equity': 0}
def post(d_assets, d_liabilities, d_equity):
books['assets'] += d_assets
books['liabilities'] += d_liabilities
books['equity'] += d_equity
assert books['assets'] == books['liabilities'] + books['equity']
post(20000, 0, 20000) # owner invests 20,000 cash
post(5000, 5000, 0) # borrow 5,000 from the bank
post(-2000, -2000, 0) # repay 2,000 of the loan
post(4000, 0, 4000) # earn 4,000 of revenue in cash
print(books) # {'assets': 27000, 'liabilities': 3000, 'equity': 24000}If you changed one argument so the two sides moved by different amounts, the assert would fail. A real bookkeeping system enforces the same rule.
From signs to debits and credits
The code above tracks increases and decreases with plus and minus signs. Accountants use a different convention. They split every account into a left side and a right side.
- Debit means the left side of an account.
- Credit means the right side of an account.
The words do not mean "good" or "bad", and they do not mean "add" or "subtract". They only name the side.
The equation has assets on the left and liabilities plus equity on the right. The convention follows that layout:
- Asset accounts increase on the left (debit) and decrease on the right (credit).
- Liability and equity accounts increase on the right (credit) and decrease on the left (debit).
Total debits then equal total credits for every transaction. This is the same balance check as the equation, expressed in two columns.
The rules in a table
| Account type | Increase with | Decrease with | Normal balance |
|---|---|---|---|
| Asset | Debit | Credit | Debit |
| Liability | Credit | Debit | Credit |
| Equity (owner investment) | Credit | Debit | Credit |
| Revenue | Credit | Debit | Credit |
| Expense | Debit | Credit | Debit |
| Distribution | Debit | Credit | Debit |
The last three rows follow from the expanded equation. Revenues increase equity, so they behave like equity and increase with credits. Expenses and distributions decrease equity. Since a decrease in equity is a debit, an increase in an expense or distribution account is also a debit.
Worked example
The business earns 4,000 of revenue in cash. Cash is an asset, and it increases, so you debit Cash 4,000. Revenue is an equity-type account, and it increases, so you credit Revenue 4,000.
| Account | Debit | Credit |
|---|---|---|
| Cash | 4,000 | |
| Service revenue | 4,000 |
Debits total 4,000 and credits total 4,000. In equation terms, assets rose by 4,000 and equity rose by 4,000.
Now the business pays 1,500 of rent in cash. Rent expense increases, which reduces equity, so you debit Rent expense 1,500. Cash decreases, so you credit Cash 1,500. Again, debits equal credits, and assets and equity both fall by 1,500.
Common errors
- Treating debit as "decrease". A debit increases assets and expenses. It decreases liabilities, equity, and revenue.
- Reading the sign of the balance as good or bad. A credit balance in a liability account is normal.
- Forgetting the second side. An entry with only a debit cannot balance. Always ask which account takes the other side.
- Mixing up expense and revenue direction. Expenses reduce equity, but they are recorded with debits because a debit is how you reduce equity.
Exercise
Exercise
A business buys equipment for 6,000 and pays 2,000 in cash, borrowing the remaining 4,000 from the seller. Write the journal entry with debits and credits, and state the effect on the accounting equation.
Show answer
Debit Equipment 6,000. Credit Cash 2,000. Credit Loan payable 4,000. Total debits are 6,000 and total credits are 6,000. Equipment (an asset) rises by 6,000 and cash (an asset) falls by 2,000, so assets rise by a net 4,000. Liabilities rise by 4,000. Equity does not change. The equation balances: assets up 4,000 equals liabilities up 4,000.
Exercise
The owner withdraws 3,000 in cash for personal use. Which account is debited, which is credited, and what happens to the equation?
Show answer
Debit Owner distributions 3,000 and credit Cash 3,000. Distributions reduce equity, and a decrease in equity is a debit. Cash is an asset and falls, which is a credit. Assets fall by 3,000 and equity falls by 3,000, so the equation stays in balance.