Sub topic 8
Posting Compound Entries
This chapter assumes you know the accounting equation, the five account types, and the debit/credit rules for each type. It also assumes you can post a simple two-line entry to T-accounts. Here you will post journal entries that touch three or more accounts.
What a compound entry is
A simple journal entry has one debit line and one credit line. A compound entry has three or more lines. It still follows the same rule: total debits equal total credits.
A compound entry is one transaction recorded as one entry. You could split it into several simple entries, but that would repeat the date and memo and make the single event harder to read. The bookkeeper keeps the transaction together so that anyone reviewing the journal sees it as one event.
Compound entries come in three common shapes:
| Shape | Example | Lines |
|---|---|---|
| One debit, several credits | Sell equipment at a gain, or pay one invoice from two sources | 1 debit, 2 or more credits |
| Several debits, one credit | Buy equipment and supplies with one cash payment | 2 or more debits, 1 credit |
| Several debits and several credits | Services performed for part cash and part on account, with a deposit applied | Multiple on both sides |
The posting rule does not change
Posting a compound entry uses the same procedure as posting a simple one. Each line goes to its own account, on the side the line names, for the amount on that line. The number of lines changes only how many times you repeat the step.
For each line:
- Find the ledger account named on the line.
- Copy the date and amount to the debit or credit side, matching the side in the journal.
- Record the posting reference, so the journal line and the ledger line point to each other.
- Move on to the next line. Do not combine lines that go to the same account unless the entry shows them as one line.
Worked example
On January 9, a consulting business performs services for a client and bills 4,000 in total. The client pays 1,500 in cash right away and owes the remaining 2,500. This is the compound entry from the topic's running example:
Journal entry (January 9)
Debit Cash 1,500
Debit Accounts Receivable 2,500
Credit Service Revenue 4,000
Memo: Services for cash and on accountCheck the balance before posting: debits are 1,500 + 2,500 = 4,000, and credits are 4,000. The entry balances.
Now post each line. Assume Cash already holds a 10,000 debit from the owner's investment on January 2.
Cash Accounts Receivable Service Revenue
----------------------- ----------------------- -----------------------
10,000 | | | | 4,000
1,500 | | 2,500 | | |
----------------------- ----------------------- -----------------------
Bal 11,500 (debit) Bal 2,500 (debit) Bal 4,000 (credit)Cash and Accounts Receivable are assets, so a debit increases them. Service Revenue is revenue, so a credit increases it. One entry produced three postings, and each one is a single line on a single account.
Multiple lines to the same account
A compound entry can name the same account twice. Suppose a business pays a 3,000 invoice with 2,000 from its checking account and 1,000 from petty cash. Two different accounts are credited, so there are three lines in total:
Debit Accounts Payable 3,000
Credit Cash 2,000
Credit Petty Cash 1,000If a line names an account twice, for instance a debit and a credit both to Cash, post both lines. Do not net them in your head and post only the difference. Posting each line separately keeps the ledger traceable to the journal, and an auditor can match every journal line to a ledger line.
Check the entry before you post it
A compound entry gives more room for mistakes than a simple one. These checks catch most problems before they reach the ledger:
- Add all debit lines and all credit lines. The two totals must match.
- Confirm that each line names an existing account in the chart of accounts.
- Confirm that each line uses the correct side for the account type and the direction of change.
- Count the lines in the journal and count the postings you make. The two numbers must be equal.
The last check is the most useful for compound entries. A common error is to post two of three lines and stop. The ledger then holds a debit with no matching credit, and the trial balance is out of balance by the amount of the missing line.
Posting a compound entry in code
The script below follows the same logic as the topic's main example. It rejects an unbalanced entry before posting, then posts every line. It also counts postings so that you can compare the count to the number of journal lines.
from collections import defaultdict
entry = (
"2026-01-09",
"Services for cash and on account",
[
("Cash", "debit", 1500),
("Accounts Receivable", "debit", 2500),
("Service Revenue", "credit", 4000),
],
)
ledger = defaultdict(lambda: {"debit": [], "credit": []})
date, memo, lines = entry
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}"
postings = 0
for account, side, amount in lines:
ledger[account][side].append(amount)
postings += 1
assert postings == len(lines)
for account, sides in ledger.items():
net = sum(sides["debit"]) - sum(sides["credit"])
kind = "debit" if net >= 0 else "credit"
print(f"{account:<22}{abs(net):>8} ({kind})")Running it prints:
Cash 1500 (debit)
Accounts Receivable 2500 (debit)
Service Revenue 4000 (credit)Process flow
The diagram shows what happens to one compound entry as it moves from the journal into the ledger.
Common errors with compound entries
- Partial posting. You post some lines and forget the rest. The trial balance will not balance, so this error is detected.
- Wrong side on one line. A debit posted as a credit changes the total by twice the amount. The trial balance is out of balance by that difference.
- Netting lines. You combine two lines to the same account. The balance may be right, but the ledger no longer matches the journal line by line.
- Wrong account with the right amount. You debit Supplies instead of Equipment, for example. Debits still equal credits, so the trial balance does not detect this.
The last item is why the pre-posting checks matter. A balanced trial balance proves arithmetic, not account choice.
Exercises
Exercise
A company buys equipment for 6,000 and supplies for 500. It pays 2,000 in cash and promises to pay the rest later on account. Write the compound journal entry, and state how many ledger postings it produces.
Show answer
Debit Equipment 6,000; Debit Supplies 500; Credit Cash 2,000; Credit Accounts Payable 4,500. Debits total 6,500 and credits total 2,000 + 4,500 = 6,500, so the entry balances. It has four lines, so it produces four ledger postings, one per line.
Exercise
You post the January 9 entry (Debit Cash 1,500; Debit Accounts Receivable 2,500; Credit Service Revenue 4,000) but forget the Service Revenue line. By how much, and on which side, will the trial balance be out of balance?
Show answer
Debits will exceed credits by 4,000. The two debit lines were posted (1,500 + 2,500 = 4,000), but the 4,000 credit was not, so the debit column is larger by 4,000.
Exercise
A bookkeeper debits Supplies 800 instead of Equipment 800 in a balanced compound entry. Will the trial balance reveal the error? Explain.
Show answer
No. The debit and credit totals are still equal because only the account name is wrong. The trial balance checks that total debits equal total credits, so it cannot detect a debit posted to the wrong account of the same amount and side. A correcting entry is needed once the error is found.