Sub topic 4
Recording transactions in the general journal
This chapter assumes you know the accounting equation (assets = liabilities + equity), the five account types, and the debit/credit rules covered earlier. It shows how a transaction becomes a journal entry, the first step before posting.
What the general journal is
The general journal is the book of original entry. Each transaction is recorded there first, in date order, before any amount reaches a ledger account. Because the journal lists every transaction chronologically, it gives you one place to trace an amount back to its source.
Anatomy of a journal entry
Every entry has the same parts:
- The date.
- The accounts and amounts, with debited accounts listed first.
- Credited accounts listed after the debits and indented.
- A short memo describing the transaction.
Total debits must equal total credits in every entry. If they do not, the entry is wrong and must be fixed before you post it.
Analyzing a transaction
Use the same three questions every time:
- Which accounts are affected?
- What type is each account (asset, liability, equity, revenue, or expense)?
- Does each account increase or decrease, and so is it a debit or a credit?
Take the rent payment on January 15. Rent Expense is an expense, and expenses increase with debits. Cash is an asset, and a decrease in an asset is a credit. So debit Rent Expense 1,200 and credit Cash 1,200.
A worked example
Here are four January transactions for a small service business, written as journal entries.
Date Account Debit Credit
Jan 2 Cash 10,000
Owner's Capital 10,000
Owner invests cash
Jan 5 Supplies 800
Accounts Payable 800
Buy supplies on credit
Jan 9 Cash 1,500
Accounts Receivable 2,500
Service Revenue 4,000
Services for cash and on account
Jan 15 Rent Expense 1,200
Cash 1,200
Pay rentThe January 9 entry has three lines. It is a compound entry: one transaction that affects more than two accounts. Debits (1,500 + 2,500) still equal the credit (4,000). A later chapter covers how to post these.
Checking balance in code
You can check the "debits equal credits" rule mechanically. This script rejects any unbalanced entry.
journal = [
("2026-01-02", "Owner invests cash",
[("Cash", "debit", 10000), ("Owner's Capital", "credit", 10000)]),
("2026-01-05", "Buy supplies on credit",
[("Supplies", "debit", 800), ("Accounts Payable", "credit", 800)]),
("2026-01-09", "Services for cash and on account",
[("Cash", "debit", 1500), ("Accounts Receivable", "debit", 2500),
("Service Revenue", "credit", 4000)]),
("2026-01-15", "Pay rent",
[("Rent Expense", "debit", 1200), ("Cash", "credit", 1200)]),
]
for date, memo, lines in journal:
debits = sum(a for _, side, a in lines if side == "debit")
credits = sum(a for _, side, a in lines if side == "credit")
status = "OK" if debits == credits else "UNBALANCED"
print(f"{date} {memo:<34} {debits:>6} {credits:>6} {status}")Common errors when journalizing
- Reversing the debit and credit. The entry still balances, so nothing flags it.
- Using the wrong account, such as Supplies instead of Supplies Expense.
- Recording the wrong amount on both sides.
- Omitting the entry entirely.
All four errors can pass the balance check. Only the first kind of mistake in your arithmetic, where the two sides differ, is caught at this stage.
Exercise
On March 3, a business buys equipment for 5,000, paying 2,000 in cash and owing the rest on account. Write the journal entry.
Show answer
Debit Equipment 5,000; credit Cash 2,000; credit Accounts Payable 3,000. It is a compound entry, and debits (5,000) equal credits (2,000 + 3,000).
Exercise
A bookkeeper records a 600 cash payment of utilities as Debit Cash 600, Credit Utilities Expense 600. Does the debit/credit balance check catch this error? Why or why not?
Show answer
No. Debits equal credits (600 each), so the entry balances. The debit and credit are reversed, which gives the wrong effect on both accounts. You find it only by reviewing the entry.