Trial balance: how to prepare one and find why it doesn't tally, today and with an AI agent

Short answer: A trial balance lists every ledger's closing balance in a debit or a credit column, and the two totals should agree. If they don't, test the difference: half of it may be an amount posted on the wrong side, and a difference that divides by 9 suggests swapped digits. A balanced trial balance can still hide omissions, wrong accounts and errors of principle.

In Tally or QuickBooks a trial balance always totals, because the software won't save a voucher whose debits and credits differ. The differences that survive are the ones software can't stop: books kept in Excel, opening balances typed in by hand, and entries that balance but go to the wrong ledger.

Here is the method from a recent short tutorial, the Tally version of the problem from a second one, a table of the errors a trial balance does and doesn't show, a worked example, and how an AI agent would run the same checks from the exports.

The tutorial this is based on

TRIAL BALANCE: Explained in (Almost) 2 Minutes! by Accounting Stuff, published 8 February 2026. A short explainer that lists the accounts, totals the columns and finds why one trial balance is out by 7,200: a 1,900 customer receipt posted as a 9,100 credit to interest expense. That entry was itself one-sided, which can only happen in manual or Excel books, since accounting software won't save an unbalanced voucher. We add the classic tests, the suspense account, and Tally's "Difference in opening balances" from SMART Accounting RSNR's Hindi video (here).

How do you prepare a trial balance and find a difference?

  1. List every ledger account with its closing balance, grouped by type: assets, liabilities, capital, income and expenses. In TallyPrime it's Display More Reports > Trial Balance. In Excel, list the ledgers once with SORT and UNIQUE, and add up each one's debits and credits with SUMIFS.
  2. Put each balance in the debit column (assets, expenses, drawings) or the credit column (liabilities, capital, income), and total both. The tutorial's totals are 1,211,900 debit and 1,219,100 credit: out by 7,200.
  3. Test the difference. If it equals one balance, look for a ledger left off the list. Halve it, and look for a posting of that amount on the wrong side. If it divides by 9, look for swapped digits (1,900 as 9,100) or a slipped decimal point.
  4. Scan for balances on the wrong side. In the tutorial, interest expense shows a credit balance of 5,500, which an expense shouldn't have.
  5. Open that ledger and read the entries. The tutorial finds a 9,100 credit on 15 March that was really a 1,900 customer receipt: the wrong account and the digits swapped. 9,100 less 1,900 is the whole 7,200, and 7,200 is 800 times 9.
  6. Correct it with entries, not by overwriting. The tutorial reverses the wrong posting (debit interest 9,100, credit cash 1,900) and posts the right one (debit cash, credit receivables 1,900). Both columns then total 1,213,600.
  7. If you can't find a difference by the deadline, park it in a suspense account, keep looking, and clear it with a journal when you find the cause.
  8. In TallyPrime the totals always agree, but a "Difference in opening balances" line appears when the openings don't net to nil. In SMART Accounting RSNR's video, last year's balance sheet goes beside the trial balance and each ledger's opening balance and its debit or credit sign is corrected. Any ledger never created, such as furniture, is created, and last year's closing stock goes in as the opening stock.
  9. Look for the usual causes: openings typed in before last year's books were final, and a figure keyed wrong, such as 65,414 against 70,414 on the balance sheet in that video. Then check that the difference line has gone.

Trial balance errors: what it shows and what it can't

Errors a trial balance shows and errors it hides
ErrorExampleDoes the trial balance show it?
One-sided or unequal postingCash debited ₹5,000 and nothing creditedYes, out by the amount
Posting on the wrong sideAn ₹8,500 debit posted as a creditYes, out by twice the amount
Swapped digits or a slipped decimal in one posting₹1,900 posted as ₹9,100Yes, and the difference divides by 9
Totalling or carry-forward error in a ledgerA ledger page added up wrongYes, out by the error
Balance left off the list, or in the wrong columnA debtor's balance listed as a creditYes: out by the balance, or twice it
Error of omissionA purchase bill never enteredNo
Error of commissionA receipt posted to the wrong customerNo
Error of principleA laptop debited to office expensesNo
Compensating errorsSales over-credited by ₹1,000 and wages over-debited by ₹1,000No
Complete reversal, or the wrong amount on both sidesDebit and credit swapped, or ₹4,500 entered as ₹5,400 on bothNo

A worked example: out by ₹17,000

A made-up Nagpur trading firm keeps its books in Excel. At 31 October its trial balance shows debits of ₹46,55,400 and credits of ₹46,72,400: out by ₹17,000. No single balance is ₹17,000, and ₹17,000 doesn't divide by 9 (its digits add up to 8). Half of it is ₹8,500.

The October electricity bill was ₹8,500. In the electricity ledger it was posted on the credit side instead of the debit side, so the ledger shows ₹85,000 instead of ₹1,02,000, and the debit column is short by twice the bill. Correcting the posting puts both columns at ₹46,72,400.

The trial balance now agrees, but a ₹62,000 laptop is still in office expenses. That's an error of principle, and no total will show it. It needs a journal, debit computers and credit office expenses, and then depreciation on the computer.

Where it usually goes wrong

How an AI agent does it

An AI agent here is an assistant each person on the team gets, used from Slack, WhatsApp or a web app. It has its own files, spreadsheets and a browser. It reads exports from Tally (Excel or XML), QuickBooks Online, Xero or Zoho Books, and writes working files in Excel. This section describes how it would run the checks. It asks before it changes, posts or sends anything, and every step is logged.

What you give it

What it does

  1. Rebuilds the trial balance from the ledger export and compares it with the report, ledger by ledger, so a totalling error or a missing ledger shows up.
  2. If the totals differ, runs the standard tests (a balance equal to the difference, half the difference on the wrong side, a difference that divides by 9) and lists the postings that fit each one.
  3. Lists balances on the unusual side: expenses in credit, debtors in credit, creditors in debit, negative cash or stock.
  4. Compares each ledger's opening balance with last year's signed balance sheet and lists every mismatch behind Tally's difference in opening balances, with its sign.
  5. Compares the month with last month, and flags ledgers that moved far more than usual or appear for the first time.
  6. Reads narrations for likely misposting, such as a customer's name in an interest or expense ledger, or an asset purchase in an expense ledger.
  7. Drafts the correcting journals and opening balance corrections as an import-ready Excel or XML file, each with its reason.

What it hands back

What it leaves to you

Today vs with an AI agent

Trial balance: today vs with an AI agent
StepTodayWith an AI agent
Gathering the inputsExport the trial balance, and find last year's balance sheet and the ledgers.You give it the trial balance, the ledger export and last year's signed balance sheet.
The workingTotal the columns, then scan the ledgers by eye for the difference.Rebuilds the trial balance from the ledgers and runs the difference tests on every posting.
The cross-checksOpenings ticked against last year's balance sheet, line by line.Compares every opening balance with last year's balance sheet and every ledger with last month.
ExceptionsWrong-side balances get found if someone looks for them.Lists wrong-side balances, odd movements and narrations that don't match the ledger.
The outputA corrected trial balance, with journals typed in by hand.A workbook, an exceptions list and draft journals in an import-ready file.
The reviewA senior re-checks the corrections.A senior reviews each proposed correction and its reason before import.
Who signs offThe accountant closing the books.The same accountant. The agent posts nothing.

What you still check

Questions accountants ask

What is a trial balance?

A list of every ledger account's balance at a date, in a debit column and a credit column. The two totals should agree. It is the starting point for the balance sheet and the profit and loss account.

Why does a trial balance not tally?

Usually a one-sided or unequal posting, an amount on the wrong side, swapped digits, a totalling error in a ledger, or a balance left off the list. In accounting software, which won't save an unbalanced voucher, the usual cause is the opening balances.

If a trial balance does not tally, where is the difference transferred?

To a suspense account, for the time being, so the accounts can be drafted. It is cleared with journals once the errors are found, and it shouldn't remain in the final accounts.

How do you make a trial balance format in Excel with formulas?

List the ledgers once with SORT and UNIQUE, total each ledger's debits and credits from the ledger sheet with SUMIFS, and show the net in the debit or the credit column. Add a check cell that takes total credits from total debits; it should read 0.

What is the difference between a trial balance and a balance sheet?

A trial balance is an internal list of every ledger, income and expenses included. A balance sheet is a financial statement of assets, liabilities and equity at a date, in a set format, such as Schedule III for companies.

What is the difference between a trial balance and a general ledger?

The general ledger holds every entry in every account. The trial balance is a one-line summary of each account's balance.

Hand this job to an agent

Bring one of your own files to a 30-minute call and watch an agent do this job.

Book a 30-min demo