The accounting equation is the foundation for the double entry accounting system where debits must equal credits. Before we look at accounting entries we need to understand the accounting equation.