Sub topic 10
Checking your work with a trial balance
This chapter assumes you can write a balanced journal entry, know each account type's normal balance, and can post entries to T-accounts. Here you will use a trial balance to check the ledger. You will also learn what that check can and cannot prove.
What a trial balance is
A trial balance is a list of every ledger account with its ending balance, placed in a debit column or a credit column. You prepare it after posting. If every entry was balanced and every posting was copied correctly, the two column totals are equal.
The check works because each journal entry has equal debits and credits. Posting moves those amounts into accounts without changing either total. So the sum of all debit balances must equal the sum of all credit balances.
Building one step by step
Use the three entries from the earlier chapter: the owner invests $1,000, the business earns $500 of service revenue in cash, and it pays $300 rent in cash.
- Post each entry to the ledger.
- Find each account's net balance: total debits minus total credits.
- Put a positive net balance in the debit column and a negative one in the credit column.
- Add each column and compare the totals.
| Account | Debit | Credit |
|---|---|---|
| Cash | 1,200 | |
| Rent Expense | 300 | |
| Owner Capital | 1,000 | |
| Service Revenue | 500 | |
| **Total** | **1,500** | **1,500** |
Cash is 1,000 + 500 − 300 = 1,200. Both columns total 1,500, so the ledger passes the check.
Doing it in code
This script posts the entries and builds the trial balance. It uses Decimal so money amounts stay exact.
from decimal import Decimal
from collections import defaultdict
entries = [
[("Cash", "debit", Decimal("1000")), ("Owner Capital", "credit", Decimal("1000"))],
[("Cash", "debit", Decimal("500")), ("Service Revenue", "credit", Decimal("500"))],
[("Rent Expense", "debit", Decimal("300")), ("Cash", "credit", Decimal("300"))],
]
# Net balance per account: debits positive, credits negative.
net = defaultdict(lambda: Decimal("0"))
for entry in entries:
for account, side, amount in entry:
net[account] += amount if side == "debit" else -amount
debit_col = {a: b for a, b in net.items() if b > 0}
credit_col = {a: -b for a, b in net.items() if b < 0}
total_debits = sum(debit_col.values())
total_credits = sum(credit_col.values())
for account, balance in debit_col.items():
print(f"{account:<16}{balance:>8}")
for account, balance in credit_col.items():
print(f"{account:<16}{'':>8}{balance:>8}")
print(f"{'Total':<16}{total_debits:>8}{total_credits:>8}")
print("Balanced:", total_debits == total_credits)The output ends with totals of 1500 and 1500 and Balanced: True.
What a balanced trial balance does not prove
Equal totals show that debits equal credits. They do not show that the books are right. Some errors leave the totals equal:
- Omitted transaction. If you skip an entry entirely, both sides are missing equally.
- Wrong account, right side. Debiting Rent Expense instead of Utilities Expense still balances.
- Reversed entry. Debiting and crediting the right accounts in the wrong direction keeps the totals equal.
- Offsetting errors. A $100 overstatement of one debit and a $100 overstatement of one credit cancel out.
- Wrong amount on both sides. Recording $450 instead of $540 on both lines balances perfectly.
Finding the cause when it does not balance
Work from the cheapest check to the most expensive one.
- Recompute both column totals.
- Compute the difference between the totals.
- If the difference is divisible by 9, suspect a transposition such as 540 recorded as 450, or a slipped decimal place.
- If the difference equals one amount, look for a posting that was left out or that landed on the wrong side. If it equals twice an amount, look for a balance placed in the wrong column.
- Check that each journal entry balanced before posting.
- Re-add each account's balance.
Exercise
A trial balance shows total debits of 8,420 and total credits of 8,240. What kind of error does the difference of 180 suggest, and what is a likely cause?
Show answer
The difference of 180 is divisible by 9, which suggests a transposition error, where two digits were swapped. For example, 840 may have been copied as 480 in one posting. Compare the postings against the journal to find the swapped amount.
Exercise
A bookkeeper debits Rent Expense 300 and credits Utilities Payable 300 when the payment should have credited Cash 300. Will the trial balance still balance, and why?
Show answer
Yes. The entry has equal debits and credits, so the totals still match. The error is in the account choice, which a trial balance cannot detect.