Sub topic 12
Proving the ledger with a trial balance
This chapter assumes you can already post journal entries to T-accounts and calculate each account's balance as the larger side minus the smaller side. You should also know the normal balance of each account type: assets and expenses are normally debits, and liabilities, equity and revenue are normally credits.
What a trial balance is
A trial balance is a list of every general ledger account with its balance, split into a debit column and a credit column. You prepare it at a stated date, after posting is finished. Its job is to test one rule of double-entry bookkeeping: every entry has equal debits and credits, so after correct posting the ledger's total debit balances equal its total credit balances.
The trial balance is a check, not a financial statement. It gives you no profit figure and no picture of financial position. It tells you whether the arithmetic of the ledger is internally consistent. You then use the adjusted version of the same list to build the statements.
Preparing a trial balance
Follow these steps:
- Write the heading: company name, "Trial Balance", and the date (for example, "January 31, 2026"). The date matters because the balances are only true at that moment.
- List every ledger account in chart-of-accounts order: assets, liabilities, equity, revenue, expenses.
- For each account, enter its balance in the column of the side that is larger. A normal balance goes in its usual column.
- Add each column.
- Compare the two totals.
Using the ledger from the earlier chapters of this tutorial:
| Account | Debit | Credit |
|---|---|---|
| Cash | 10,300 | |
| Accounts Receivable | 2,500 | |
| Supplies | 800 | |
| Accounts Payable | 800 | |
| Owner's Capital | 10,000 | |
| Service Revenue | 4,000 | |
| Rent Expense | 1,200 | |
| **Totals** | **14,800** | **14,800** |
Cash is 10,000 + 1,500 debits minus 1,200 credit, which gives 10,300. The debit column is 10,300 + 2,500 + 800 + 1,200 = 14,800. The credit column is 800 + 10,000 + 4,000 = 14,800. The two totals agree, so the ledger is in balance.
A few conventions apply:
- Accounts with a zero balance may be left off or listed with a dash. Listing them does not change the totals.
- Place a balance where it actually falls, not where it "should" fall. A contra account such as Accumulated Depreciation has a credit balance even though it sits among the assets. An owner's drawings account has a debit balance even though it sits among equity.
- An account with a balance on its abnormal side (for example, Cash with a credit balance) is a warning. It may be a real overdraft, or it may be a posting mistake.
Doing it in code
The script below builds a trial balance from per-account debit and credit lists, which is the same structure as T-accounts. It then reports whether the totals match and, if they don't, the size of the difference. The second run deliberately posts a Cash debit of 1,500 as 1,050.
def trial_balance(ledger):
"""ledger maps account -> (list_of_debits, list_of_credits)."""
debit_total = credit_total = 0
print(f"{'Account':<22}{'Debit':>8}{'Credit':>8}")
for account, (debits, credits) in ledger.items():
net = sum(debits) - sum(credits)
if net >= 0:
debit_total += net
print(f"{account:<22}{net:>8}{'':>8}")
else:
credit_total += -net
print(f"{account:<22}{'':>8}{-net:>8}")
print(f"{'Totals':<22}{debit_total:>8}{credit_total:>8}")
difference = debit_total - credit_total
if difference == 0:
print("In balance.\n")
else:
print(f"Out of balance by {abs(difference)}; "
f"divisible by 9: {difference % 9 == 0}\n")
return difference
correct = {
"Cash": ([10000, 1500], [1200]),
"Accounts Receivable": ([2500], []),
"Supplies": ([800], []),
"Accounts Payable": ([], [800]),
"Owner's Capital": ([], [10000]),
"Service Revenue": ([], [4000]),
"Rent Expense": ([1200], []),
}
trial_balance(correct)
# Transposition error: 1,500 posted as 1,050
broken = dict(correct)
broken["Cash"] = ([10000, 1050], [1200])
trial_balance(broken)The first run prints totals of 14,800 and 14,800. The second prints 14,350 and 14,800 and reports a difference of 450, which is divisible by 9 (450 = 9 × 50).
What a balanced trial balance proves
If the totals are equal, you know that the sum of debit balances equals the sum of credit balances. You can also reasonably infer that no single-sided posting occurred and that the balances were calculated without a sum error that would unbalance the columns.
You do not know that every transaction was recorded, that every amount is right, or that every amount went to the right account. The test only detects errors that break the equality of debits and credits.
Errors the trial balance detects and misses
| Error | Example | Detected? |
|---|---|---|
| Only one side of an entry posted | Debit to Rent Expense posted, credit to Cash forgotten | Yes |
| Wrong amount on one side only | Debit posted as 1,050, credit as 1,500 | Yes |
| Transposed digits in one posting | 1,500 posted as 1,050 | Yes |
| Balance calculated wrongly | Adding a column incorrectly | Yes |
| Balance placed in the wrong column | A debit balance entered under Credit | Yes |
| Entry never journalized or never posted at all | Whole rent payment omitted | No |
| Entry posted twice (both sides) | Rent debit and credit each posted twice | No |
| Right amounts, wrong account | Debit to Supplies instead of Rent Expense | No |
| Entry posted to the wrong side on both lines | Cash debited and Rent Expense credited | No |
| Error of principle | Equipment purchase debited to Repair Expense | No |
| Offsetting errors | A debit overstated by 100 and another debit understated by 100 | No |
Errors that keep debits equal to credits slip through. That includes any mistake made consistently on both halves of an entry, and any pair of mistakes that cancel.
Searching for a difference
When the totals disagree, work from cheap checks to expensive ones. Examine the size of the difference first, because it points at likely causes:
- Re-add both columns. Many differences are addition errors.
- Divide the difference by 9. If it divides evenly, suspect a transposition (450 from 1,500 vs. 1,050) or a slide (a misplaced decimal or zero). Check the amounts in the ledger against the journal.
- Halve the difference. If half the difference matches an account balance, you may have put a balance in the wrong column. An amount posted to the wrong side of an account produces a difference of twice that amount.
- Look for an amount equal to the difference. That is the signature of a posting or balance that was left out on one side.
- Retrace the work. Recompute each account balance, then check that each journal line was posted once, to the right account and side, using the posting references.
Using the trial balance in the accounting cycle
The trial balance taken before adjustments is the unadjusted trial balance. After adjusting entries are journalized and posted, you prepare an adjusted trial balance, which feeds the financial statements. Both are prepared the same way. The only difference is that the adjusted one includes the adjusting entries.
Once you find an error, you do not erase it from the ledger. You correct it with a correcting entry, which the next chapters cover.
Exercise
A company's trial balance shows debit totals of 52,640 and credit totals of 52,460. (a) What is the difference, and what error type does it suggest? (b) Separately, a clerk debited Office Supplies instead of Repair Expense for 300 of repair costs. Would the trial balance show this error?
Show answer
(a) The difference is 180. It is divisible by 9 (180 = 9 × 20), which suggests a transposition such as 52,640 versus 52,460, or a transposed amount posted to an account. Check the ledger postings against the journal for such a pair of numbers. (b) No. Both the debit and credit amounts are correct, so debits still equal credits. The error sits in the account choice and is an error that the trial balance cannot detect. It would be found by reviewing the entry, and corrected with a correcting entry.
Exercise
A ledger has these balances: Cash 4,000 Dr; Accounts Receivable 1,500 Dr; Equipment 6,000 Dr; Accounts Payable 2,000 Cr; Owner's Capital 8,000 Cr; Service Revenue 3,000 Cr; Wages Expense 1,500 Dr. Prepare the totals of a trial balance and state whether it balances.
Show answer
Debit column: 4,000 + 1,500 + 6,000 + 1,500 = 13,000. Credit column: 2,000 + 8,000 + 3,000 = 13,000. The totals are equal, so the trial balance balances.