Sub topic 11
Calculating Account Balances
After you post journal entries, each ledger account holds a list of debit amounts and a list of credit amounts. The account balance is the single figure that summarizes them. This chapter shows how to calculate it, how to read it, and how to spot balances that look wrong.
This chapter assumes you know the accounting equation, the five account types (assets, liabilities, equity, revenue, expenses), and the debit/credit rules for each. It also assumes you can post an entry to a T-account.
What a balance is
An account balance is the difference between the total debits and the total credits posted to the account. The sign of that difference tells you which side the account ends on.
- If total debits exceed total credits, the account has a debit balance.
- If total credits exceed total debits, the account has a credit balance.
- If the two totals are equal, the balance is zero.
The formula is the same for every account. Only the interpretation changes with the account's normal balance, which is the side that increases the account.
| Account type | Normal balance | Balance formula | Typical example |
|---|---|---|---|
| Asset | Debit | Debits - Credits | Cash, Supplies |
| Expense | Debit | Debits - Credits | Rent Expense |
| Liability | Credit | Credits - Debits | Accounts Payable |
| Equity (capital) | Credit | Credits - Debits | Owner's Capital |
| Revenue | Credit | Credits - Debits | Service Revenue |
Use the formula that matches the normal balance. The result is then positive when the account is behaving normally.
The calculation procedure
- Add up every amount on the debit side. This total is the debit footing.
- Add up every amount on the credit side. This total is the credit footing.
- Subtract the smaller total from the larger.
- Write the result on the side with the larger total.
"Footing" means totaling a column of figures. Accountants often write the footings in small pencil figures under the last entry. This lets them check the arithmetic later without disturbing the account.
Worked example: the Cash and Rent Expense accounts
Take the January entries from the running example. Cash received 10,000 from the owner on January 2 and 1,500 from cash services on January 9. Cash paid 1,200 for rent on January 15.
Cash Rent Expense
------------------------- -------------------------
10,000 | 1,200 | 1,200 |
1,500 | | |
------------------------- -------------------------
Debit footing 11,500 Debit footing 1,200
Credit footing 1,200 Credit footing 0
Bal 10,300 (debit) Bal 1,200 (debit)For Cash, the debit footing is 10,000 + 1,500 = 11,500 and the credit footing is 1,200. The difference is 11,500 - 1,200 = 10,300, so the balance is 10,300 on the debit side. Cash is an asset, so a debit balance is normal.
Rent Expense has one debit of 1,200 and no credits. The balance is 1,200 debit.
The other accounts work the same way:
| Account | Total debits | Total credits | Balance |
|---|---|---|---|
| Cash | 11,500 | 1,200 | 10,300 Dr |
| Accounts Receivable | 2,500 | 0 | 2,500 Dr |
| Supplies | 800 | 0 | 800 Dr |
| Rent Expense | 1,200 | 0 | 1,200 Dr |
| Accounts Payable | 0 | 800 | 800 Cr |
| Owner's Capital | 0 | 10,000 | 10,000 Cr |
| Service Revenue | 0 | 4,000 | 4,000 Cr |
The debit balances add up to 10,300 + 2,500 + 800 + 1,200 = 14,800. The credit balances add up to 800 + 10,000 + 4,000 = 14,800. The two sides match, which is what the trial balance will confirm in the next chapter.
Doing it in code
The script below computes balances from per-account debit and credit lists. It reports each balance relative to the account's normal side and flags any account that ends on the wrong side.
NORMAL_SIDE = {
"Cash": "debit",
"Accounts Receivable": "debit",
"Supplies": "debit",
"Rent Expense": "debit",
"Accounts Payable": "credit",
"Owner's Capital": "credit",
"Service Revenue": "credit",
}
postings = {
"Cash": {"debit": [10000, 1500], "credit": [1200]},
"Accounts Receivable": {"debit": [2500], "credit": []},
"Supplies": {"debit": [800], "credit": []},
"Rent Expense": {"debit": [1200], "credit": []},
"Accounts Payable": {"debit": [], "credit": [800]},
"Owner's Capital": {"debit": [], "credit": [10000]},
"Service Revenue": {"debit": [], "credit": [4000]},
}
def balance(account, sides):
"""Return (amount, side, is_normal) for one ledger account."""
debits = sum(sides["debit"])
credits = sum(sides["credit"])
if debits >= credits:
amount, side = debits - credits, "debit"
else:
amount, side = credits - debits, "credit"
is_normal = amount == 0 or side == NORMAL_SIDE[account]
return amount, side, is_normal
for account, sides in postings.items():
amount, side, is_normal = balance(account, sides)
flag = "" if is_normal else " <-- abnormal balance, investigate"
print(f"{account:<22}{amount:>8} {side}{flag}")The function keeps whole-dollar integers for clarity. In real systems, store amounts as integer cents or use decimal.Decimal. Binary floating point cannot represent most cent values exactly, and the rounding drift will eventually break your balance checks.
Reading the result
A balance has three parts: an amount, a side, and a comparison with the normal balance. Always check the third part.
A zero balance is not an error. A newly opened account has a zero balance, and so does one that has been fully paid down, such as Accounts Payable after the last supplier invoice is settled. A zero-balance account is normally left out of the trial balance or shown as a dash.
Abnormal balances
An abnormal balance sits on the opposite side from the account's normal balance. It is not automatically an error, but it always needs an explanation.
- Legitimate cases. Cash can have a credit balance when the bank account is overdrawn. Accounts Receivable can have a credit balance when a customer overpays. Accounts Payable can have a debit balance when you overpay a supplier.
- Likely mistakes. A credit balance in Rent Expense or a debit balance in Service Revenue usually means an entry was posted to the wrong side or a refund was recorded carelessly.
Look at the particular account before deciding. A debit balance in Owner's Capital might be a temporary effect of drawings recorded in the wrong account.
Contra accounts
A contra account is paired with another account and carries the opposite normal balance. Accumulated Depreciation is a contra-asset, so its normal balance is a credit even though it sits among the assets. Owner's Drawings is a contra-equity account with a normal debit balance. When you calculate these balances, use the formula for their own normal side, not for the parent account. Otherwise the script above would flag them as abnormal.
Common mistakes when calculating balances
- Dropping a posted amount. Footing a column and skipping one line is the most common arithmetic slip. Recount the number of postings in the account against the journal.
- Subtracting in the wrong direction. If you always compute debits minus credits, a credit-normal account will show a negative number. Decide the side from which total is larger, then report an unsigned amount with its side.
- Netting accounts together. Never combine Accounts Receivable and Accounts Payable into one figure. Each account keeps its own balance, even when the same customer or supplier appears in both.
- Calculating before posting is complete. A balance is only correct if every journal entry for the period has been posted. Check the last posted reference against the journal first.
- Confusing balance with activity. The balance of Cash is the running result of all postings. The change during a period is a separate figure.
A balance that is arithmetically correct can still be wrong if an earlier posting was wrong. Calculating balances checks your arithmetic. It does not check whether each amount went to the right account.
Exercise
Accounts Payable has these postings: credits of 800 and 1,350, and debits of 500 and 300. (a) What is the balance, and on which side? (b) Is it normal? (c) After a further debit of 1,500, what is the balance, and is it normal?
Show answer
(a) Credit footing = 800 + 1,350 = 2,150. Debit footing = 500 + 300 = 800. The balance is 2,150 - 800 = 1,350 credit. (b) Accounts Payable is a liability with a normal credit balance, so this is normal. (c) Debit footing becomes 800 + 1,500 = 2,300. Credits 2,150 are now smaller, so the balance is 2,300 - 2,150 = 150 on the debit side. That is abnormal. It means the business has overpaid its suppliers by 150, or a payment was posted incorrectly, and it needs investigation.
Exercise
A ledger has these final balances: Cash 6,200 Dr, Equipment 9,000 Dr, Notes Payable 5,000 Cr, Owner's Capital 8,000 Cr, Service Revenue 4,500 Cr, Wages Expense 2,300 Dr. Do total debits equal total credits?
Show answer
Debits: 6,200 + 9,000 + 2,300 = 17,500. Credits: 5,000 + 8,000 + 4,500 = 17,500. The totals are equal.