Trial balance is prepared to ensure the arithmetic accuracy of the debit and credit ledger balance in the books of accounts and to provide information for the preparation of the final accounts.
We know, preparing a trial balance for a company serves to detect any mathematical errors that have occurred in the double-entry system. If the total debits equal the total credits, the trial balance is considered to be balanced, and there should be no mathematical errors in the ledgers.