Sub topic 10
Totaling the Columns and Checking the Balance
This chapter assumes you can post journal entries to ledger accounts, calculate each account's ending balance, and know which accounts have normal debit balances and which have normal credit balances. Here you take the listed balances, total both columns, and test whether debits equal credits.
The check
Every journal entry has equal debits and credits. If every entry was posted correctly, the sum of all debit balances must equal the sum of all credit balances. The trial balance tests that. You add the debit column, add the credit column, and compare the two totals.
Follow these steps:
- Write each account's ending balance in its normal column. An account with a negative balance in a normal column (an overdrawn Cash account, for example) goes in the opposite column.
- Skip accounts with a zero balance, or list them with a dash.
- Add the debit column and write the total.
- Add the credit column and write the total.
- Compare the totals and write both on the same line, with a rule above them.
For Example Services Co., the finished trial balance looks like this:
Example Services Co.
Unadjusted Trial Balance
As of January 31
Account Debit Credit
Cash 10,700
Equipment 4,000
Accounts Payable 2,500
Owner's Capital 10,000
Service Revenue 3,000
Rent Expense 800
------ ------
Totals 15,500 15,500Debits are 10,700 + 4,000 + 800 = 15,500. Credits are 2,500 + 10,000 + 3,000 = 15,500. The totals agree.
Automating the check
The script below nets the debits and credits for each account, places each balance in a column, and compares the totals.
from collections import defaultdict
# Each line of a journal entry: (account, debit, credit)
lines = [
("Cash", 10000, 0),
("Owner's Capital", 0, 10000),
("Equipment", 4000, 0),
("Cash", 0, 1500),
("Accounts Payable", 0, 2500),
("Cash", 3000, 0),
("Service Revenue", 0, 3000),
("Rent Expense", 800, 0),
("Cash", 0, 800),
]
# Net balance per account: positive means debit, negative means credit
net = defaultdict(int)
for account, debit, credit in lines:
net[account] += debit - credit
debit_total = sum(b for b in net.values() if b > 0)
credit_total = -sum(b for b in net.values() if b < 0)
for account, balance in net.items():
dr = balance if balance > 0 else ""
cr = -balance if balance < 0 else ""
print(f"{account:<18}{dr!s:>8}{cr!s:>8}")
print(f"{'Totals':<18}{debit_total:>8}{credit_total:>8}")
print("Balanced" if debit_total == credit_total else "Out of balance")Cash nets to 10,000 − 1,500 + 3,000 − 800 = 10,700. The script prints totals of 15,500 and 15,500, then "Balanced".
Reading the result
If the totals are equal, the ledger is in balance. That is a good sign, but it does not prove the records are right. A later chapter covers errors that leave the totals equal.
If the totals differ, at least one error exists. Do not force the totals to agree by adding a plug figure to an account. Find the cause.
A quick clue from the difference
The size of the difference points to the likely cause. A difference divisible by 9 often means two digits were swapped (a transposition) or a decimal point was shifted (a slide).
def may_be_transposition_or_slide(difference):
# A transposed pair of digits or a shifted decimal point produces
# a difference that is evenly divisible by 9.
return difference != 0 and difference % 9 == 0
# Example: 540 recorded as 450 gives a difference of 90.
print(may_be_transposition_or_slide(90)) # True
print(may_be_transposition_or_slide(100)) # FalseA difference equal to a single transaction amount suggests that one side of an entry was never posted. Half of the difference suggests an amount was posted to the wrong column.
Exercise
A trial balance shows total debits of 24,750 and total credits of 24,570. What is the difference, and what does it suggest?
Show answer
The difference is 180. It is divisible by 9, so it suggests a transposition error, such as 24,750 versus 24,570 from swapping the digits 5 and 7 in one amount.
Exercise
Total debits are 9,200 and total credits are 8,400. The difference is 800, which matches the Rent Expense posting in the ledger. What is the most likely error?
Show answer
The credit side of the rent entry (the Cash credit of 800) was not posted, or was left out of the Cash balance. The trial balance is short on credits by exactly that amount.