Sub topic 2
Double-entry bookkeeping: debits and credits
This chapter assumes you know the accounting equation (assets = liabilities + equity), the five account types (assets, liabilities, equity, revenue, expenses), and basic currency arithmetic. It explains the rule that every journal entry follows and the debit and credit convention that makes the rule work. Later chapters build on it for normal balances, journal entries, and posting.
The core idea: every transaction has two sides
Double-entry bookkeeping records each transaction in at least two accounts. One side of the entry is a debit and the other is a credit. The total of the debits must equal the total of the credits.
The reason is the accounting equation. Every transaction changes the business in a way that keeps the equation in balance. If you buy supplies for cash, one asset rises and another falls by the same amount. If you buy supplies on credit, assets rise and liabilities rise by the same amount. The entry shows both changes, so the books stay in balance.
Two terms need exact definitions:
- A debit is an entry on the left side of an account.
- A credit is an entry on the right side of an account.
Debit and credit do not mean "increase" or "decrease", and they do not mean "good" or "bad". Whether a debit increases or decreases an account depends on the account's type. Many errors come from treating "credit" as "money coming in". A credit to Cash is a decrease in cash.
Abbreviations: Dr means debit and Cr means credit. Journals traditionally write the debit line first and indent the credit line.
Why left and right?
The convention comes from the accounting equation laid out as two sides:
- Assets sit on the left.
- Liabilities and equity sit on the right.
Accounts on the left side of the equation increase with a debit. Accounts on the right side increase with a credit. Revenue and expenses are temporary parts of equity, so their rules follow from how they affect equity:
- Revenue increases equity, so it increases with a credit.
- Expenses decrease equity, so they increase with a debit.
- Owner withdrawals (drawings) decrease equity, so they increase with a debit.
The rules in one table
| Account type | Increase with | Decrease with |
|---|---|---|
| Asset | Debit | Credit |
| Liability | Credit | Debit |
| Equity (capital) | Credit | Debit |
| Revenue | Credit | Debit |
| Expense | Debit | Credit |
| Owner withdrawals | Debit | Credit |
You can derive this table from the equation. Expand it to include the temporary accounts:
Assets + Expenses + Withdrawals = Liabilities + Capital + Revenue
Everything on the left increases with a debit. Everything on the right increases with a credit. If you remember this expanded form, you can rebuild the table whenever you need it.
Worked example: four transactions
The following transactions come from the running example used in this tutorial. For each one, identify the accounts, classify them, decide whether each increases or decreases, and then apply the table.
January 2: The owner invests 10,000 in the business.
- Cash is an asset and increases, so debit Cash 10,000.
- Owner's Capital is equity and increases, so credit Owner's Capital 10,000.
January 5: The business buys supplies on credit for 800.
- Supplies is an asset and increases, so debit Supplies 800.
- Accounts Payable is a liability and increases, so credit Accounts Payable 800.
January 9: The business performs services for 4,000. The customer pays 1,500 in cash and owes 2,500.
- Cash is an asset and increases, so debit Cash 1,500.
- Accounts Receivable is an asset and increases, so debit Accounts Receivable 2,500.
- Service Revenue is revenue and increases, so credit Service Revenue 4,000.
January 15: The business pays 1,200 of rent.
- Rent Expense is an expense and increases, so debit Rent Expense 1,200.
- Cash is an asset and decreases, so credit Cash 1,200.
Written as journal entries:
Jan 2 Dr Cash 10,000
Cr Owner's Capital 10,000
Jan 5 Dr Supplies 800
Cr Accounts Payable 800
Jan 9 Dr Cash 1,500
Dr Accounts Receivable 2,500
Cr Service Revenue 4,000
Jan 15 Dr Rent Expense 1,200
Cr Cash 1,200The January 9 entry has three lines. This is a compound entry, which has more than two accounts. The rule still holds: debits of 1,500 + 2,500 equal the credit of 4,000.
Checking that an entry balances
Total debits must equal total credits in every entry, not just across the whole journal. Checking each entry as you write it catches mistakes at the source. A short script makes the rule concrete:
entries = [
("Owner invests cash", [("Cash", "debit", 10000), ("Owner's Capital", "credit", 10000)]),
("Buy supplies on credit", [("Supplies", "debit", 800), ("Accounts Payable", "credit", 800)]),
("Services for cash and on account",
[("Cash", "debit", 1500), ("Accounts Receivable", "debit", 2500), ("Service Revenue", "credit", 4000)]),
("Pay rent", [("Rent Expense", "debit", 1200), ("Cash", "credit", 1200)]),
]
for memo, lines in entries:
debits = sum(amount for _, side, amount in lines if side == "debit")
credits = sum(amount for _, side, amount in lines if side == "credit")
status = "balanced" if debits == credits else "UNBALANCED"
print(f"{memo:<35} Dr {debits:>6} Cr {credits:>6} {status}")Every line prints "balanced". Change any amount and the line flips to "UNBALANCED".
How the equation stays in balance
Take the January 15 rent payment. Cash falls by 1,200, so assets fall by 1,200. Rent expense rises by 1,200, which reduces equity by 1,200 once expenses are closed into capital. Both sides of the equation fall by 1,200, so it still balances.
The January 9 entry works the same way. Assets rise by 4,000 (1,500 cash and 2,500 receivable). Revenue rises by 4,000, which raises equity by 4,000. Both sides rise by the same amount.
Common mistakes
- Reading "debit" as "decrease". A debit increases assets and expenses. It decreases liabilities, equity, and revenue.
- Reading "credit" as "good". Crediting Cash lowers cash. Crediting Service Revenue is an increase in income.
- Debiting revenue when earning it. Revenue earned is a credit. A debit to revenue is rare and usually records a reduction such as a refund or a sales return.
- Putting only one side down. A one-sided entry cannot balance. Always write at least one debit and one credit.
- Reversing the accounts. Debiting Cash 1,200 and crediting Rent Expense 1,200 balances perfectly but records the opposite of what happened. Balance does not prove correctness. This matters when you read about trial balance limits in a later chapter.
A quick procedure for any transaction
- Name every account the transaction touches.
- Classify each account as an asset, liability, equity, revenue, or expense.
- Decide whether each account increases or decreases.
- Use the table to turn each increase or decrease into a debit or credit.
- Confirm total debits equal total credits.
Where this leads
Debits and credits are the vocabulary of the journal and the ledger. In the next chapters, you will see which side each account type normally carries (its normal balance), how an entry is recorded in the general journal, and how each line is copied to its account in the general ledger. The same convention drives all of them: left is debit and right is credit.
Exercise
A company pays 600 cash to settle part of an existing Accounts Payable balance. Which account is debited, which is credited, and why does the entry balance?
Show answer
Debit Accounts Payable 600 and credit Cash 600. Accounts Payable is a liability, and a payment decreases a liability, so it takes a debit. Cash is an asset, and paying cash decreases it, so it takes a credit. Total debits of 600 equal total credits of 600. Assets fall by 600 and liabilities fall by 600, so the accounting equation stays in balance.
Exercise
On January 20 a customer pays 2,500 on the account that was recorded as Accounts Receivable on January 9. Write the entry and say what happens to total assets.
Show answer
Debit Cash 2,500 and credit Accounts Receivable 2,500. Cash is an asset that increases, so it takes a debit. Accounts Receivable is an asset that decreases, so it takes a credit. Total assets do not change, because one asset rises by 2,500 and another falls by 2,500. No revenue is recorded, because it was already recorded on January 9.
Exercise
A bookkeeper records a 300 utility bill paid in cash as Debit Cash 300 and Credit Utilities Expense 300. Does the entry balance? Is it correct? What should it have been?
Show answer
The entry balances, because debits and credits are both 300. It is not correct, because both sides are reversed. Cash is an asset and decreases when paid, so it should be credited. Utilities Expense is an expense and increases, so it should be debited. The correct entry is Debit Utilities Expense 300 and Credit Cash 300.