Skip to content
Tutorials Center
My learning

Topics

Lesson 12 of 37 ยท Double-Entry Bookkeeping

T-Accounts

Learn to draw T-accounts, post debits and credits, and calculate the balance of an account, using a worked cash account and runnable code.

Before you learn the formal journal and ledger, it helps to have a simple picture of an account. Accountants use the T-account, a sketch shaped like the letter T. It is not a formal record, but it is the clearest way to see how debits and credits build up the balance of an account.

Drawing a T-account

The name of the account goes on top. The vertical line splits the left (debit) side from the right (credit) side.

Text
            Cash
   Debit (Dr)  |  Credit (Cr)
   ------------+-------------
     5,000     |    1,800
       450     |      300

Each amount you record is placed on one side. To find the balance, total each side and subtract the smaller from the larger. The balance sits on the side of the larger total.

For the cash account above: debits 5,000 + 450 = 5,450; credits 1,800 + 300 = 2,100. Balance = 5,450 - 2,100 = 3,350 debit.

Anatomy of a T-account

Name on top For example Cash
Debits left
Credits right

The balance is the difference of the totals.

1 / 2

Posting a transaction to T-accounts

Take a transaction: the owner invests $5,000, and the business buys equipment for $1,800 cash.

Transaction Debit Credit
Owner invests $5,000 Cash 5,000 Capital 5,000
Buy equipment $1,800 Equipment 1,800 Cash 1,800

Now draw three T-accounts. Cash: debit 5,000 on the left, credit 1,800 on the right, balance 3,200 debit. Capital: credit 5,000, balance 5,000 credit. Equipment: debit 1,800, balance 1,800 debit.

Check: debit balances 3,200 + 1,800 = 5,000, credit balance 5,000. The books balance.

Balances and normal balances

An account's balance is usually on its normal side.

  • An asset or expense account normally has a debit balance.
  • A liability, capital or revenue account normally has a credit balance.

If an account has a balance on the opposite side, check it. A debit balance on a revenue account, for example, usually signals a mistake (or a refunded customer).

Building a T-account in code

The stand-in below draws a T-account from a list of entries and finds the balance. It is a helper for learning, not a real accounting program.

Python A T-account drawn in text

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Several accounts together

Here is a slightly larger example. Zara's shop records five entries. We post them to a dictionary of accounts and print each balance, noting its side.

Python Post entries to many T-accounts

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Both totals are 10,100, which previews the trial balance in Trial Balance.

Tips for using T-accounts

  1. Write the account name first, then decide the side.
  2. Always write the amount only once per side per transaction line.
  3. Label each amount with a note (such as the date or number) so you can trace it.
  4. Draw one T-account per account, not per transaction.

When you meet a complex entry, sketch T-accounts for the accounts involved. Seeing the "left and right" often makes the correct debit and credit obvious.

From T-accounts to the ledger

A T-account is a teaching tool. The real thing is called the ledger account, which has extra columns for the date, description and a running balance. You will learn the ledger layout in Posting to the Ledger. The logic is identical: debit left, credit right.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. A cash T-account has debits 5,000 and 450 and credits 1,800 and 300. What is the balance?

    Debits total 5,450, credits total 2,100. The difference is 3,350 on the debit side.
  2. 2. On which side of a T-account do you record a credit?

    Credits go on the right, debits on the left.
  3. 3. An owner invests $5,000 cash. Which T-account entries are correct?

    Cash (asset) increases with a debit; Capital (equity) increases with a credit.
  4. 4. Which balance would normally be a credit?

    Liabilities such as accounts payable normally have credit balances.

Summary

  • A T-account has debits on the left and credits on the right under the account name.
  • The balance is the difference between the two totals, on the side of the larger total.
  • Assets and expenses normally show debit balances; liabilities, capital and revenue normally show credit balances.
  • T-accounts are a sketch of the ledger, which you will learn in Chapter 4.

Next: A Worked Double-Entry Example