Sub topic 7
Posting Journal Entries to Ledger Accounts
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 also assumes you can write a balanced journal entry. Here you will learn the mechanics of posting: copying each line of a journal entry into the correct ledger account.
What posting is and why it exists
The general journal records transactions in date order. Each entry lists the accounts affected, the debit and credit amounts, and a short memo. That order suits an audit trail. It does not tell you how much cash you have, because the Cash lines are scattered across many entries.
The general ledger groups the same information by account. Posting is the step that transfers each debit and credit from the journal to the matching ledger account. After posting, every account holds all of its own activity in one place, and you can calculate its balance.
Posting changes where the information sits, not what it says. Each journal line is copied once, with the same amount and on the same side. Nothing is added, netted, or reinterpreted.
The rules of the copy
For each journal line, follow these steps:
- Find the ledger account named on the line.
- Copy the amount to the same side of that account: a debit line goes to the debit (left) side, and a credit line goes to the credit (right) side.
- Record the date, so the ledger shows when the activity happened.
- Record a cross-reference to the journal page or entry, so you can trace the amount back to its source.
Post every line of every entry, in journal order. If you follow this, total debits posted always equal total credits posted, because each journal entry was balanced before you began.
A worked example in T-accounts
A T-account is a simplified ledger account shaped like the letter T. The left side is for debits and the right side is for credits. Use these four entries from January:
| Date | Memo | Debit | Credit |
|---|---|---|---|
| Jan 2 | Owner invests cash | Cash 10,000 | Owner's Capital 10,000 |
| Jan 5 | Buy supplies on credit | Supplies 800 | Accounts Payable 800 |
| Jan 9 | Services for cash and on account | Cash 1,500; Accounts Receivable 2,500 | Service Revenue 4,000 |
| Jan 15 | Pay rent | Rent Expense 1,200 | Cash 1,200 |
Posting these entries to Cash gives three lines. The Jan 2 entry puts 10,000 on the debit side. The Jan 9 entry puts 1,500 on the debit side. The Jan 15 entry puts 1,200 on the credit side.
Journal entry (January 15): Debit Rent Expense 1,200; Credit Cash 1,200
Cash Rent Expense
------------------------- -------------------------
10,000 | 1,200 | 1,200 |
1,500 | | |
------------------------- -------------------------
Bal 10,300 (debit) Bal 1,200 (debit)The Cash balance is the larger side minus the smaller side: 11,500 − 1,200 = 10,300. Because the larger side is the debit side, the balance is a debit. Rent Expense has only one line, so its balance is 1,200 on the debit side.
Cash is an asset, so a debit balance is its normal balance. If Cash ever showed a credit balance, you would suspect an overdraft or a posting error.
How data flows from journal to ledger
Posting the same work in code
The script below does what a bookkeeper does by hand. It checks that each entry balances, copies every line to the debit or credit list of its account, and then computes each balance. It finishes with a trial balance check.
from collections import defaultdict
# Each journal entry: (date, memo, [(account, side, amount_in_whole_dollars), ...])
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)]),
]
# Post: copy each line to the debit or credit side of its ledger account.
ledger = defaultdict(lambda: {"debit": [], "credit": []})
for date, memo, lines in journal:
total_debits = sum(a for _, side, a in lines if side == "debit")
total_credits = sum(a for _, side, a in lines if side == "credit")
assert total_debits == total_credits, f"Unbalanced entry on {date}: {memo}"
for account, side, amount in lines:
ledger[account][side].append(amount)
# Balance each account and build the trial balance.
debit_column = credit_column = 0
for account, sides in ledger.items():
net = sum(sides["debit"]) - sum(sides["credit"])
if net >= 0:
debit_column += net
print(f"{account:<22}{net:>8}{'':>8}")
else:
credit_column += -net
print(f"{account:<22}{'':>8}{-net:>8}")
print(f"{'Totals':<22}{debit_column:>8}{credit_column:>8}")
assert debit_column == credit_columnRunning it prints one row per account and a totals row of 14,800 in each column. Notice the two places where the script protects the books. The first assert rejects an unbalanced entry before any line is posted. The last assert checks that the posted result still balances.
The same data after posting
This table shows each ledger account after all four entries are posted.
| Account | Debits posted | Credits posted | Balance |
|---|---|---|---|
| Cash | 11,500 | 1,200 | 10,300 debit |
| Accounts Receivable | 2,500 | 0 | 2,500 debit |
| Supplies | 800 | 0 | 800 debit |
| Rent Expense | 1,200 | 0 | 1,200 debit |
| Accounts Payable | 0 | 800 | 800 credit |
| Owner's Capital | 0 | 10,000 | 10,000 credit |
| Service Revenue | 0 | 4,000 | 4,000 credit |
Debit balances add up to 14,800 (10,300 + 2,500 + 800 + 1,200). Credit balances add up to 14,800 (800 + 10,000 + 4,000).
Common mistakes when posting
- Posting to the wrong side. A debit line copied to the credit side reverses the effect of the transaction. The trial balance will usually be off by twice the amount.
- Skipping a line. Leaving out one half of an entry makes the totals differ by that amount.
- Posting a line twice. The same amount appears twice on one side, which also unbalances the totals.
- Posting to the wrong account. If you debit Supplies instead of Rent Expense, both accounts are wrong, but the totals still agree. The trial balance does not reveal this error.
- Transposing digits. Copying 1,200 as 2,100 leaves a difference divisible by 9. A difference like that is a clue to look for a transposition.
- Forgetting to mark progress. If you do not mark journal lines as posted, you may skip an entry or post it a second time. Marking each line as you go prevents both.
Edge cases to watch
- Accounts with an unusual balance. Revenue normally has a credit balance and expenses a debit balance. A revenue account with a debit balance suggests a refund exceeding sales, or a posting error. Investigate before moving on.
- Entries with more than two lines. Post each line separately, to its own account. The count of lines does not change the rule that debits equal credits.
- Entries dated out of order. Journal order is usually date order. If an entry is added late, the ledger lines for that account will need to appear in date order, or you will need the posting reference to sort them out.
- Rounding. Whole-dollar examples avoid the issue. With cents, store amounts as integers in cents, or use a decimal type, so that totals compare exactly.
Exercises
Exercise
On March 3 a business pays 600 cash for insurance and records Debit Prepaid Insurance 600, Credit Cash 600. Cash had a debit balance of 4,000 before this entry. Show how you post it to the T-accounts, and give the new Cash balance.
Show answer
Post 600 to the debit side of Prepaid Insurance. Post 600 to the credit side of Cash. Cash now has 4,000 on the debit side and 600 on the credit side, so its balance is 4,000 − 600 = 3,400 debit. Prepaid Insurance has a balance of 600 debit.
Exercise
A bookkeeper posts a 900 debit to Utilities Expense correctly but posts the 900 credit to Accounts Payable on the debit side. By how much will the trial balance totals differ, and which column is larger?
Show answer
The credit of 900 was moved to the debit side. Total debits increase by 900 and total credits decrease by 900, so the debit column exceeds the credit column by 1,800.
Exercise
A 250 debit that belongs in Office Supplies was posted to Rent Expense, and the credit to Cash was posted correctly. Does the trial balance show the error? Explain.
Show answer
No. Total debits still equal total credits, because the amount went to the correct side and only the wrong account received it. Rent Expense is overstated by 250 and Office Supplies is understated by 250. You would find it by reviewing the accounts or by tracing the posting back to the journal.