A trial balance can be used to detect any mathematical errors that have occurred in a double entry accounting 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.