Trial Balance Calculator and Debit-Credit Checker

A trial balance proves one thing: that every debit posted to your ledger has a matching credit. Enter your account balances by group and this calculator totals both columns, reports the out-of-balance difference, and runs the two diagnostics experienced bookkeepers reach for first — the divide-by-nine test that exposes transposed digits, and the halving test that finds an account posted to the wrong column. It also carries adjusting entries through to adjusted totals.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Asset accounts (debit balances)Sum of cash, receivables, inventory, prepaid items and property at cost — before contra accounts.709300 $
Expense accounts (debit balances)Sum of cost of sales and every operating, interest and tax expense account.918600 $
Other debit balancesDividends declared, owner drawings, treasury stock and contra-revenue accounts such as sales returns.24000 $
Liability accounts (credit balances)Payables, accrued liabilities, unearned revenue, notes and loans payable.214500 $
Capital and beginning retained earningsCommon stock, additional paid-in capital and the retained earnings balance before this period's closing entries.310000 $
Revenue accounts (credit balances)Sales, service revenue, interest and other income accounts.1032300 $
Contra-asset and other credit balancesAccumulated depreciation and the allowance for credit losses — asset-related accounts that carry credit balances.96000 $
Adjusting entry debitsTotal of the debit side of your period-end adjustments: depreciation, accruals, prepaid expiry, bad debt.0 $
Adjusting entry creditsTotal of the credit side of the same adjustments. It must equal the debit side exactly.0 $

It returns

  • Out-of-balance difference — Total debits less total credits. Zero is the only acceptable answer before you close.
  • Total debits
  • Total credits
  • Difference ÷ 9 (transposition test) — Shown only when the difference divides exactly by nine, which points to swapped digits or a slid decimal.
  • Wrong-column candidate (difference ÷ 2) — The account balance to hunt for if one item was posted to the wrong side.
  • Adjusted trial balance debits
  • Adjusted trial balance credits
  • Net income implied by these balances — Revenue less expenses, before adjusting entries.

The formula

DrCr=0
|D|9suspect transposition or slide
|D|2=candidate wrong-column balance

In plain text: Σ Debits − Σ Credits = 0 when the ledger is in balance

  • Σ DrSum of every account carrying a debit balance: assets, expenses, dividends, contra-revenue ($)
  • Σ CrSum of every account carrying a credit balance: liabilities, equity, revenue, contra-assets ($)
  • DOut-of-balance difference; zero proves the postings, not the classifications ($)

The trial balance is an internal arithmetic proof, not a financial statement. It is not required by GAAP or IFRS and it is never published.

Updated Category Statement Preparation & Reconciliation Verified against published test cases Reading time 11 min

What a trial balance proves, and what it cannot

A trial balance is a list of every account in your general ledger with its closing balance placed in a debit or a credit column, footed. Because double-entry bookkeeping records each transaction with equal debits and credits, the two column totals must agree. If they do not, at least one posting is wrong in a way arithmetic can see.

That is the whole claim, and it is narrower than most people assume. A trial balance proves that the mechanics of posting held. It says nothing about whether the amounts were right, whether they went to the correct accounts, or whether anything was recorded at all.

It is also not a financial statement. Neither US GAAP nor IFRS requires one and no external reader ever sees it. It exists because it is cheap and it catches the most common bookkeeping failure — a one-sided or mis-keyed posting — before that failure reaches a balance sheet.

Why each account sits in the column it does

Which column an account belongs in is not a convention you memorise — it follows from the accounting equation. Assets sit on the left of Assets = Liabilities + Equity, so asset accounts increase with debits and carry debit balances. Liabilities and equity sit on the right, so they increase with credits.

Revenue and expenses inherit their sides from equity. Revenue increases equity, so revenue accounts carry credit balances; expenses and dividends reduce it, so they carry debit balances. That is why the debit column contains two very different kinds of thing — the assets you own and the costs you incurred. Reconstruct that logic and you never need a mnemonic; the accounting equation calculator works the same relationship from the other direction.

Contra accounts are where most beginners lose the thread. Accumulated depreciation relates to an asset but carries a credit balance because it accumulates the reduction, and so does the allowance for credit losses. Treasury stock and sales returns work the other way. In every case the contra account sits opposite the account it modifies, and putting it on its parent's natural side reliably creates a difference of exactly twice the amount involved.

One more detail decides whether your trial balance foots. In an unadjusted or adjusted trial balance, retained earnings carries the beginning balance, because the closing entries have not run and this period's profit still sits in the revenue and expense accounts. Only in a post-closing trial balance does it show the ending figure, and there the revenue, expense and dividend accounts have gone. Use the retained earnings calculator to prove the roll-forward between the two.

Worked example: a $1,652,800 trial balance that is $900 short

A bookkeeper foots the December ledger of a small contractor and gets these group totals.

  1. Add the debit column. Assets $709,300 + expenses $918,600 + dividends declared $24,000 = $1,651,900.
  2. Add the credit column. Liabilities $214,500 + capital and beginning retained earnings $310,000 + revenue $1,032,300 + accumulated depreciation and allowance $96,000 = $1,652,800.
  3. Take the difference. $1,651,900 − $1,652,800 = −$900. Debits are $900 short.
  4. Run the nine test. $900 ÷ 9 = $100 exactly. An exact quotient is the fingerprint of transposed digits, because swapping two adjacent digits always changes a number by a multiple of nine.
  5. Run the halving test. $900 ÷ 2 = $450. If an account with a $450 balance existed, a wrong-column posting would explain it. None does, so the transposition is the better lead.
  6. Hunt the transposition. The accounts receivable subledger shows a customer invoice of $8,730, and the ledger posting reads $7,830. The 8 and the 7 were swapped. $8,730 − $7,830 = $900.
  7. Correct and re-foot. Assets become $710,200, the debit column becomes $1,652,800, and both columns now agree.

With the ledger proved, the same figures give the period result: revenue $1,032,300 − expenses $918,600 = $113,700 of net income before adjusting entries. Test the balance sheet side too: net assets of $710,200 − $96,000 = $614,200, against liabilities $214,500 plus opening equity $310,000 plus $113,700 of profit less $24,000 of dividends = $614,200.

How to read the difference: the nine test and the halving test

An out-of-balance difference is not random. Its arithmetic shape tells you which kind of keying error produced it, and checking the shape is far faster than re-reading the ledger.

Divisible by nine. Transpose two adjacent digits and the value changes by nine times their difference, scaled by a power of ten: 54 keyed as 45 changes the amount by 9, and 8,730 keyed as 7,830 changes it by 900. A decimal slide does the same — $540.00 keyed as $54.00 differs by $486, which is 9 × 54. An exact nine quotient tells you to look for a mis-keyed amount, not a mis-posted account.

Even, with a familiar half. Post a debit as a credit and you understate one column and overstate the other by the same figure, so the difference is exactly twice the amount. Half the difference is always a candidate balance to search for, and this is the standard cause when a contra account has been placed on its parent's side.

Equal to an account balance. A whole account omitted shifts the difference by exactly its balance. Count the rows against the chart of accounts before assuming a keying error.

What you must not do is post the difference to a suspense account and carry on. A suspense balance is acceptable only as a temporary marker in a working paper; every month it survives makes the underlying error harder to find.

Normal balance and trial balance column by account type

The side an account increases on is its normal balance, and that is the column it belongs in. Contra accounts always sit opposite the account they modify.
Account typeNormal balanceColumnTypical accounts
AssetDebitDebitCash, accounts receivable, inventory, equipment at cost
Contra-assetCreditCreditAccumulated depreciation, allowance for credit losses
LiabilityCreditCreditAccounts payable, accrued wages, unearned revenue, notes payable
Contributed capitalCreditCreditCommon stock, additional paid-in capital
Retained earningsCreditCreditBeginning balance in an unadjusted or adjusted trial balance
Contra-equityDebitDebitTreasury stock, dividends declared, owner drawings
RevenueCreditCreditSales, service revenue, interest income
Contra-revenueDebitDebitSales returns and allowances, sales discounts
ExpenseDebitDebitCost of sales, wages, rent, depreciation expense, income tax

A credit-balance account appearing in the debit column is the single most common cause of a difference that is exactly twice a familiar amount.

What the shape of the difference tells you

Test the difference before you re-read the ledger. Each pattern narrows the search to a different kind of mistake.
Pattern in the differenceMost likely causeWhat to search for
Divides exactly by 9 — e.g. $900 ÷ 9 = $100Two digits transposed, or a decimal slid one placeA posted amount whose digits match a source document in the wrong order
Even, and half is a recognisable balance — e.g. $6,400 → $3,200One account posted to the wrong column, often a contra accountAn account whose balance equals half the difference
Equals a single account balance exactlyAn account omitted from the trial balanceMissing rows against the chart of accounts
Round multiple of 10, 100 or 1,000A digit dropped or added while keyingAmounts an order of magnitude away from the source
A few centsRounding, or a figure entered to the wrong precisionRe-foot both columns at full precision
Difference equals the adjusting-entry gapAn adjusting journal entry posted one-sidedThe adjustment worksheet, not the ledger

Multiple simultaneous errors defeat all of these tests. Re-foot after each correction rather than seeking one explanation for the whole gap.

A balanced trial balance is not a correct trial balance

Five error classes pass this test untouched. Omission: a transaction never recorded leaves both columns short by the same amount. Commission: the right amount posted to the wrong account of the same type. Principle: an amount posted to the wrong type of account, such as capitalising a repair. Duplication: the same journal entry posted twice. Compensating errors: two mistakes of equal size on opposite sides. Catching these needs subsidiary ledger agreement, a bank reconciliation, and someone asking of each balance whether it is plausible.

Where the difference usually hides

  • A contra account on the wrong side. Accumulated depreciation or the allowance for credit losses placed in the debit column. Produces a difference of exactly twice the balance.
  • A one-sided adjusting entry. Depreciation debited with nothing credited. Check that your adjustment worksheet foots on its own before adding it to the ledger.
  • Ending retained earnings used in an unadjusted trial balance. Before closing, the account holds the beginning balance; using the ending figure double-counts this period's profit.
  • A subledger that disagrees with its control account. Foot the receivables and payables subledgers separately and tie each to the ledger.
  • An account listed twice, or a subtotal included with its components. Common when the trial balance is assembled by hand from several schedules.
  • A rounding difference from a spreadsheet. Displayed values agree while the underlying figures differ by fractions of a cent. Widen the precision before hunting further.

Where the trial balance sits in the close, and what to run next

A close runs in a fixed order and the trial balance appears twice in it. Post the period's transactions, foot an unadjusted trial balance, then post adjusting entries for depreciation, accruals, deferrals and credit losses. Footing again gives the adjusted trial balance, from which the statements are built. After closing entries transfer revenue, expenses and dividends into retained earnings, a post-closing trial balance confirms that only permanent accounts remain and still agree.

The adjusting entries are where most of the judgement lives, and each has its own arithmetic: depreciation from a depreciation schedule, the credit loss provision from an ageing analysis through the allowance for doubtful accounts calculator. Cash needs its own proof from a bank reconciliation, and inventory needs a physical count.

Once the adjusted trial balance foots, three checks are worth running before you sign off. Prove the balance sheet identity with the accounting equation. Prove the equity movement with the retained earnings roll-forward. And convert the accrual result into cash with the indirect-method operating cash flow calculator, because a profit that produces no cash is the most common sign of an accrual that should not have been recorded. Reading working capital off the same balances gives you a liquidity check at the same time.

Key terms

Normal balance
The side — debit or credit — on which an account increases, and therefore the column it occupies on a trial balance.
Contra account
An account that reduces the balance of a related account and carries the opposite normal balance, such as accumulated depreciation against equipment.
Transposition error
Two digits keyed in the wrong order. Always changes the amount by a multiple of nine, which is why the nine test works.
Suspense account
A temporary holding account for an unexplained difference. Acceptable inside a working paper, never in a published statement.
Post-closing trial balance
A trial balance drawn after closing entries. Contains only assets, liabilities and equity, with retained earnings at its ending balance.

Frequently asked questions

What does it mean if my difference is divisible by 9?

You almost certainly mis-keyed an amount rather than mis-posted an account. Swapping two adjacent digits changes a number by nine times the difference between those digits, scaled by a power of ten, and sliding a decimal point does the same. So $900, $450, $486 and $81 are all transposition signatures. Divide the difference by nine and use the quotient to narrow the search, then compare the suspect postings against their source documents digit by digit.

What is the difference between an unadjusted and an adjusted trial balance?

The adjusting entries. An unadjusted trial balance is footed after the period's routine transactions are posted but before depreciation, accruals, deferrals and estimated credit losses are recorded. The adjusted trial balance is the same list after those entries, and it is what the financial statements are built from. Both must foot; if the unadjusted version balances and the adjusted one does not, the fault is in an adjusting entry, not the ledger.

Which column does accumulated depreciation go in?

The credit column. Accumulated depreciation is a contra-asset: it relates to an asset but accumulates a reduction, so it increases with credits and carries a credit balance. The same applies to the allowance for credit losses. Placing either in the debit column creates a difference of exactly twice the account balance, which is why the halving test finds this mistake so reliably.

Can a trial balance balance and still be wrong?

Yes, and often is. Five error types leave the columns equal: a transaction omitted entirely, the right amount posted to the wrong account, an amount recorded in the wrong class of account, the same entry posted twice, and two errors of equal size on opposite sides. None of these disturbs the arithmetic. Finding them requires subledger agreement, a bank reconciliation, and a review of each balance for plausibility against prior periods.

Should I post the difference to a suspense account?

Only as a temporary marker in a working paper, and only if you are actively investigating. A suspense balance must never appear in a published balance sheet, and it must be cleared before you close the period, because the underlying error becomes exponentially harder to locate once another month of postings sits on top of it. If the difference is trivial in absolute terms, that is still not a reason to plug it — trivial differences are frequently two large errors that nearly cancel.

Do I use beginning or ending retained earnings on a trial balance?

Beginning, unless it is a post-closing trial balance. Before the closing entries run, this period's profit is still held in the revenue and expense accounts, so retained earnings carries last period's ending figure. Using the ending balance counts the profit twice and produces a difference equal to net income less dividends. On a post-closing trial balance the position reverses: retained earnings shows the ending balance and the revenue, expense and dividend accounts have gone.

My accounting software cannot go out of balance — do I still need this?

Yes, for a different purpose. Software that enforces double entry on every journal makes the arithmetic proof automatic, so the trial balance becomes a review document rather than an error detector: the one page where you see every balance at once and ask whether each is plausible. You still need the arithmetic check when you import balances, take over a set of books, convert software, or consolidate by hand.

References

  • Accounting Principles, 14th ed. — Wiley (Weygandt, Kimmel & Mitchell)
  • Intermediate Accounting, 18th ed. — Wiley (Kieso, Weygandt & Warfield)
  • ASC 250, Accounting Changes and Error Corrections — Financial Accounting Standards Board
  • Internal Control — Integrated Framework (2013) — Committee of Sponsoring Organizations of the Treadway Commission (COSO)