Sub topic 4
Recording transactions in the general journal
The general journal is where every transaction is first written down as a journal entry. Nothing reaches the ledger until it has been journalized. This chapter covers what a journal entry contains, how to analyze a transaction into one, and what makes an entry valid. Posting to the ledger comes in later chapters.
This chapter assumes you know the accounting equation, the five account types (assets, liabilities, equity, revenue, expenses), and the debit and credit rules with normal balances from the previous chapters.
Why a journal exists
The journal is a chronological record, often called the book of original entry. Each transaction appears once, in date order, with both of its sides together. That gives you three things the ledger cannot:
- A complete picture of each transaction. The debits and credits that belong together sit on adjacent lines. In the ledger they are split across different accounts.
- An audit trail. If a ledger balance looks wrong, you trace it back to the dated entry that produced it, and from there to the source document.
- A place to catch errors early. Checking that one entry balances is much easier than finding an imbalance across hundreds of ledger accounts.
The ledger answers "what is the balance of Cash?" The journal answers "what happened, and when?"
Source documents
Every entry should rest on evidence. Typical source documents are invoices, receipts, bank deposit slips, cheque stubs, contracts and payroll records. The entry records what the document proves. If you cannot point to a source, you probably should not be recording the transaction.
Analyzing a transaction
Before writing anything, answer four questions:
- Which accounts are affected? Pick them from the chart of accounts, not from memory.
- What type is each account (asset, liability, equity, revenue, expense)?
- Does each account increase or decrease?
- Given the debit and credit rules, which side does each change go on?
Take the January 5 purchase of supplies on credit for 800.
- Supplies is an asset, and it increases. Assets increase with a debit.
- Accounts Payable is a liability, and it increases. Liabilities increase with a credit.
The entry is Debit Supplies 800 and Credit Accounts Payable 800.
The parts of a journal entry
A complete entry has these elements:
| Element | Purpose |
|---|---|
| Date | When the transaction occurred. Entries are in date order. |
| Account titles | Exact names from the chart of accounts. |
| Debit amounts | Written in the debit column. |
| Credit amounts | Written in the credit column. |
| Explanation (memo) | One line saying what the transaction was. |
| Posting reference | Left blank at journalizing time. You fill it in during posting. |
The standard layout has five columns: Date, Account Titles and Explanation, Post. Ref., Debit, Credit. Here are the four January transactions from this tutorial's running example.
| Date | Account Titles and Explanation | Post. Ref. | 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 rent |
The Post. Ref. column is empty because nothing has been posted yet.
Layout conventions
Conventions make entries readable and make mistakes easier to see:
- Debit accounts come first, at the left margin. Credit accounts come after, indented.
- The date goes on the first line of the entry. In some formats the year goes at the top of the page and the month is repeated only when it changes.
- The explanation goes on its own line, indented further than the credit accounts, and is brief.
- Currency signs are usually omitted in the columns, except on the first entry of a page and on totals.
- Leave a blank line, or a thin rule, between entries so the boundaries are clear.
Rules for a valid entry
An entry is valid only if it meets all of these conditions:
- Total debits equal total credits.
- At least two accounts are involved. One account alone cannot balance.
- Each line has an amount on one side only. A single line is never both a debit and a credit.
- Every account named exists in the chart of accounts.
- Amounts are positive. A decrease is expressed by choosing the opposite side, not by writing a negative number.
Rule 5 is a common error for people who move from spreadsheets to accounting. The sign of an amount never carries the direction. The column does.
A journal entry as data
The following program models entries and enforces rules 1, 2, 3 and 5. Amounts are in whole dollars, as in the tutorial's other examples. You can run it as shown.
from dataclasses import dataclass
@dataclass
class Line:
account: str
debit: int = 0
credit: int = 0
@dataclass
class Entry:
date: str
memo: str
lines: list
def validate(self):
if len(self.lines) < 2:
raise ValueError(f"{self.date}: an entry needs at least two lines")
for line in self.lines:
if line.debit < 0 or line.credit < 0:
raise ValueError(f"{self.date}: negative amount on {line.account}")
if (line.debit > 0) == (line.credit > 0):
raise ValueError(
f"{self.date}: {line.account} must have exactly one of debit or credit"
)
debits = sum(line.debit for line in self.lines)
credits = sum(line.credit for line in self.lines)
if debits != credits:
raise ValueError(f"{self.date}: debits {debits} != credits {credits}")
def show(self):
first = True
for line in sorted(self.lines, key=lambda l: l.debit == 0):
name = line.account if line.debit else " " + line.account
debit = f"{line.debit:,}" if line.debit else ""
credit = f"{line.credit:,}" if line.credit else ""
date = self.date if first else ""
print(f"{date:<12}{name:<26}{debit:>8}{credit:>8}")
first = False
print(f"{'':<12}{' ' + self.memo:<26}")
good = Entry(
"2026-01-09",
"Services for cash and on account",
[Line("Cash", debit=1500), Line("Accounts Receivable", debit=2500),
Line("Service Revenue", credit=4000)],
)
good.validate()
good.show()
bad = Entry(
"2026-01-15",
"Pay rent (typo)",
[Line("Rent Expense", debit=1200), Line("Cash", credit=1020)],
)
try:
bad.validate()
except ValueError as error:
print("Rejected:", error)The first entry prints in journal layout. The second is rejected with debits 1200 != credits 1020. Real accounting software performs the same check before it accepts an entry.
Common errors when journalizing
- Wrong direction. Debiting Accounts Payable when you owe more, because "payable sounds like a cost". Start from the account type and the rule, not from the word.
- Wrong account. Using Supplies Expense when the supplies are still on hand and belong in the Supplies asset account. The entry balances, so nothing flags it.
- Transposed digits. Writing 1,520 on one side and 1,250 on the other. An unbalanced entry like this is the easy kind to find.
- Recording one side only. The entry is incomplete and the books go out of balance.
- Vague or missing explanations. Months later nobody can tell what "Misc adjustment" was.
The first two errors in this list are the important ones to remember. An entry that balances can still be wrong, so the journal check proves arithmetic, not accuracy.
Journal and ledger together
Journalizing and posting are separate steps. Journalizing is done transaction by transaction, as events happen. Posting copies each line to its ledger account, often in a batch at the end of a day or period. Because the journal has already confirmed that each entry balances, the ledger inherits balanced input. That is why a later trial balance that fails points to a posting or arithmetic mistake rather than to the original entries.
Exercise
On March 3, a business buys equipment for 6,000. It pays 2,000 in cash and owes the rest to the supplier on account. Write the journal entry (accounts, sides, amounts) and state whether it is valid.
Show answer
Debit Equipment 6,000; Credit Cash 2,000; Credit Accounts Payable 4,000. Equipment is an asset that increases, so it is debited. Cash is an asset that decreases, so it is credited. Accounts Payable is a liability that increases, so it is credited for the unpaid 4,000. Total debits (6,000) equal total credits (2,000 + 4,000 = 6,000), there are three lines, each on one side only, so the entry is valid. It has more than two lines, which makes it a compound entry.
Exercise
A clerk records "Debit Cash 900; Credit Service Revenue 90" for a 900 cash sale. Does the entry pass the validity rules? What would the problem be?
Show answer
It fails rule 1: debits (900) do not equal credits (90). The clerk left off a zero. The fix is to credit Service Revenue 900.