Sub topic 10
Checking Your Work with a Trial Balance
This chapter assumes you can write a balanced journal entry, know the normal balance of each of the five account types, and can post entries to T-accounts. It also assumes you can read short Python programs. Here you will learn how to build a trial balance, what it proves, and what it cannot detect.
What a trial balance is
A trial balance is a list of every ledger account with its ending balance, arranged in two columns: debit balances on the left and credit balances on the right. You prepare it at a chosen date, such as the end of a month. The two columns are then totaled.
The check works because of double-entry bookkeeping. Every journal entry has equal debits and credits. If every entry was posted correctly to the ledger, the sum of all debit balances must equal the sum of all credit balances. If the two totals differ, something went wrong between the journal and the ledger, or in the balance calculations.
A trial balance is an internal working paper. It is not one of the financial statements, but you use it to build them. The income statement and balance sheet are drawn from it once it balances.
Building a trial balance step by step
- Post all journal entries to the ledger.
- Find the ending balance of each account. Subtract the smaller side from the larger side.
- Place each balance in the column of the side that is larger. A cash account with 1,500 of debits and 300 of credits has a 1,200 debit balance.
- Leave out accounts with a zero balance, or list them with zero. Both are acceptable.
- Total each column and compare the totals.
Notice that you place a balance by which side is larger, not by what the account's normal balance is. Most accounts end up in the column of their normal balance. An account that ends on the opposite side, such as an overdrawn bank account, goes in the other column.
A worked example
Use the three transactions from earlier in this tutorial. The owner invests $1,000 cash, the business earns $500 of service revenue in cash, and the business pays $300 rent in cash.
1) Dr Cash 1,000
Cr Owner Capital 1,000
2) Dr Cash 500
Cr Service Revenue 500
3) Dr Rent Expense 300
Cr Cash 300Posting these gives the following ledger totals.
| Account | Total debits | Total credits | Ending balance |
|---|---|---|---|
| Cash | 1,500 | 300 | 1,200 Dr |
| Owner Capital | 0 | 1,000 | 1,000 Cr |
| Service Revenue | 0 | 500 | 500 Cr |
| Rent Expense | 300 | 0 | 300 Dr |
The trial balance lists those ending balances in two columns.
| Account | Debit | Credit |
|---|---|---|
| Cash | 1,200 | |
| Rent Expense | 300 | |
| Owner Capital | 1,000 | |
| Service Revenue | 500 | |
| Total | 1,500 | 1,500 |
Both columns total 1,500, so the trial balance balances.
You can also see the accounting equation at work. Assets of 1,200 equal equity. Equity is owner capital of 1,000 plus revenue of 500 minus expenses of 300, which is 1,200. The trial balance is a check on the equation in an expanded form.
Computing a trial balance in code
The same procedure is short in Python. This program nets each account's debits and credits, then totals the debit balances and the credit balances. It uses Decimal because floating-point numbers can introduce rounding errors with money.
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
total_debits = sum(b for b in net.values() if b > 0)
total_credits = -sum(b for b in net.values() if b < 0)
print(net["Cash"], total_debits, total_credits) # 1200 1500 1500The sign of each net balance decides the column, which matches the rule that the larger side determines placement. A positive net goes to the debit column and a negative net goes to the credit column.
The diagram shows the flow from entries to the check.
What a balanced trial balance proves
A balanced trial balance gives you one narrow assurance: the total of the debit balances equals the total of the credit balances. That means the mechanics of posting were consistent. No entry was posted with only one side, and no side was posted with a different amount than the other.
It is still useful. Most arithmetic slips and one-sided postings show up immediately, and you catch them before building financial statements.
What a balanced trial balance does not prove
Many errors leave the totals equal. A balanced trial balance does not mean the books are correct. The common undetected errors are these.
- Omitted transaction. If you never record an entry, neither side is posted, so the totals still match.
- Wrong account, same type or side. You debit Rent Expense when you should have debited Utilities Expense. Both are debits, so the totals do not change.
- Wrong account, different type. You credit Service Revenue when the cash was actually a customer deposit, which is a liability. The debits still equal the credits.
- Equal and offsetting errors. A debit overstated by 100 in one account and another debit understated by 100 cancel out.
- Wrong amount recorded on both sides. You record 450 instead of 540 on both the debit and the credit. The entry balances but the amount is wrong.
- Reversed entry. You debit what should be credited and credit what should be debited, using the correct amounts. The totals still match, but both accounts are wrong.
- Duplicate entry. Posting a balanced entry twice keeps the totals equal.
What a trial balance that does not balance tells you
When the totals differ, the size of the difference points to the likely cause. Work through these checks in order, from the cheapest to the most laborious.
- Recompute the totals. Add each column again. Many differences come from simple addition errors.
- Check the difference against 2. If the difference is exactly twice the amount of some entry, you may have posted a balance to the wrong column. For example, a 150 credit balance listed as a debit changes the difference by 300.
- Check divisibility by 9. If the difference is divisible by 9, you may have transposed two digits, such as writing 540 as 450. The difference of 90 is divisible by 9. A slide, such as writing 1,200 as 120 or 12,000, also gives a difference divisible by 9.
- Look for a one-sided posting. If the difference equals a single amount, search the ledger for a posting with no matching entry on the other side.
- Check the balances. Verify each account's balance, and verify that each was placed in the correct column.
- Trace postings back to the journal. Tick each journal line against its ledger posting.
The table summarizes the pattern.
| Symptom | Likely cause |
|---|---|
| Difference equals one transaction amount | One side of an entry was not posted, or was posted twice |
| Difference is twice an amount | A balance was placed in the wrong column |
| Difference divisible by 9 | Transposition or slide error in digits |
| Difference is a round number such as 100 or 1,000 | Addition error in a column total |
These are heuristics, not guarantees. They give you a place to start looking.
Detecting an unbalanced entry in code
Software can stop the most basic error before it reaches the ledger. This function checks that an entry's debits equal its credits.
from decimal import Decimal
def is_balanced(lines):
debits = sum(a for _, side, a in lines if side == "debit")
credits = sum(a for _, side, a in lines if side == "credit")
return debits == credits
entry = [
("Cash", "debit", Decimal("500.00")),
("Service Revenue", "credit", Decimal("500.00")),
]
print(is_balanced(entry)) # TrueChecking each entry at the moment it is created is stronger than checking only at the trial balance. It catches a bad entry at the source, instead of leaving you to find it in a long list of accounts.
Timing and the adjusted trial balance
You may prepare more than one trial balance in a period.
- An unadjusted trial balance is prepared from the ledger before period-end adjustments, such as accruals and depreciation.
- An adjusted trial balance is prepared after you record those adjustments. It is the basis for the financial statements.
Each version should balance. If the unadjusted one balances and the adjusted one does not, the error is in one of the adjusting entries.
Practical guidance
- Include every account that has a balance, including contra accounts such as Accumulated Depreciation. A contra account has the opposite normal balance of its related account, so it sits in the column of its own normal side.
- Keep the account order consistent. A common order is assets, liabilities, equity, revenue, then expenses. A consistent order makes errors easier to see.
- Do not force the totals to match. If you cannot find a difference, do not post it to a "suspense" or "miscellaneous" account unless your organization has a policy for it. Doing so hides the error.
- Treat a balanced result as a prompt to review the other risks, such as omitted transactions, not as a conclusion.
Exercises
Exercise
A trial balance has debit total 8,450 and credit total 8,540. What kind of error does the difference suggest, and what should you check first?
Show answer
The difference is 90, which is divisible by 9. This suggests a transposition of two digits, such as 540 recorded as 450 or the reverse, in a posting or a balance. Check postings and balances for amounts whose digits could have been swapped, starting with amounts of 450 and 540.
Exercise
A trial balance balances, but the bookkeeper recorded a $200 purchase of office supplies as a debit to Rent Expense instead of Supplies. Why did the trial balance not reveal this, and what kind of error is it?
Show answer
Rent Expense and Supplies are both debit-normal accounts, so the debit of 200 still equals the credit of 200 to Cash. The totals match. This is an error of wrong account, and a trial balance cannot detect it. Correct it with an entry that debits Supplies 200 and credits Rent Expense 200.
Exercise
After posting, you have these ending balances: Cash 2,000 Dr, Accounts Payable 700 Cr, Owner Capital 1,000 Cr, Service Revenue 900 Cr, Utilities Expense 600 Dr. Build the trial balance and state whether it balances.
Show answer
Debit column: Cash 2,000 plus Utilities Expense 600 gives 2,600. Credit column: Accounts Payable 700 plus Owner Capital 1,000 plus Service Revenue 900 gives 2,600. Both totals are 2,600, so it balances.