Double entry accounting is based on the fact that every financial transaction affects in at least two different accounts. In the double entry system, transactions are recorded in terms of debits and credits. Since a debit in one account will be offset by a credit in another account, the sum of all debits must therefore be exactly equal to the sum of all credits.