Sub topic 6
T-accounts: a visual model of an account
This chapter assumes you know the accounting equation, the five account types (assets, liabilities, equity, revenue, expenses), and the debit and credit rules for normal balances. It uses whole-dollar amounts.
What a T-account is
A T-account is a simplified drawing of a ledger account. The account name sits on top of a "T". Debits go on the left of the vertical line. Credits go on the right.
T-accounts are a thinking and teaching tool. They let you see how each transaction changes an account before you worry about the formal ledger format, which a later chapter covers.
Drawing and using a T-account
Take the January 15 journal entry: debit Rent Expense 1,200 and credit Cash 1,200. Cash already has two debits from earlier entries, an owner investment of 10,000 and 1,500 of service revenue received in cash.
Journal entry (January 15): Debit Rent Expense 1,200; Credit Cash 1,200
Cash Rent Expense
------------------------- -------------------------
10,000 | 1,200 | 1,200 |
1,500 | | |
------------------------- -------------------------
Bal 10,300 (debit) Bal 1,200 (debit)Cash is an asset, so its normal balance is a debit. The 10,000 and 1,500 sit on the left. The 1,200 payment sits on the right. The balance is the larger side minus the smaller side: 11,500 − 1,200 = 10,300. The balance is a debit because the debit side is larger.
Rent Expense is an expense, so its normal balance is also a debit. The one debit of 1,200 is the whole balance.
The steps for any entry
- Read the journal entry and note each account and its side.
- Find or draw a T-account for each account.
- Write the amount on the left for a debit, or on the right for a credit.
- Total each side and subtract the smaller from the larger to get the balance.
- Put the balance on the side with the larger total.
Checking the whole set
Each account's balance is the larger side minus the smaller. If you add up all the debit balances and all the credit balances, the two totals must match. The script below posts four balanced entries to per-account debit and credit lists. It then derives each balance and checks that the totals agree at 14,800 on each side.
from collections import defaultdict
# Each journal entry: (date, memo, [(account, side, amount_in_whole_dollars), ...])
journal = [
("2026-01-02", "Owner invests cash",
[("Cash", "debit", 10000), ("Owner's Capital", "credit", 10000)]),
("2026-01-05", "Buy supplies on credit",
[("Supplies", "debit", 800), ("Accounts Payable", "credit", 800)]),
("2026-01-09", "Services for cash and on account",
[("Cash", "debit", 1500), ("Accounts Receivable", "debit", 2500),
("Service Revenue", "credit", 4000)]),
("2026-01-15", "Pay rent",
[("Rent Expense", "debit", 1200), ("Cash", "credit", 1200)]),
]
# Post: copy each line to the debit or credit side of its ledger account.
ledger = defaultdict(lambda: {"debit": [], "credit": []})
for date, memo, lines in journal:
total_debits = sum(a for _, side, a in lines if side == "debit")
total_credits = sum(a for _, side, a in lines if side == "credit")
assert total_debits == total_credits, f"Unbalanced entry on {date}: {memo}"
for account, side, amount in lines:
ledger[account][side].append(amount)
# Balance each account and build the trial balance.
debit_column = credit_column = 0
for account, sides in ledger.items():
net = sum(sides["debit"]) - sum(sides["credit"])
if net >= 0:
debit_column += net
print(f"{account:<22}{net:>8}{'':>8}")
else:
credit_column += -net
print(f"{account:<22}{'':>8}{-net:>8}")
print(f"{'Totals':<22}{debit_column:>8}{credit_column:>8}")
assert debit_column == credit_columnEach account's two lists play the role of the left and right sides of a T-account. The net line is the same subtraction you do by hand.
Common mistakes
- Treating "debit" as "decrease". A debit increases assets and expenses but decreases liabilities, equity, and revenue.
- Putting the balance on the wrong side. The balance goes on the side with the larger total, not automatically on the debit side.
- Writing a running total inside the T-account. Keep individual amounts in the columns and compute the balance once at the end.
Exercise
Cash has debits of 5,000 and 2,000 and a credit of 3,500. Rent Expense has a debit of 900 and a credit of 100 from a correction. What are the two balances and their sides?
Show answer
Cash: debits total 7,000 and credits total 3,500, so the balance is 3,500 on the debit side. Rent Expense: debits 900 minus credits 100 gives a balance of 800 on the debit side. Both match their normal balance side, which is the debit side for an asset and an expense.