Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 5

Double-Entry Bookkeeping: Debits and Credits

Recommended resources

Hello! In our last lesson, you built a professional, travel-specific Chart of Accounts, which acts as the structured "filing system" for our client, "Sunshine Getaways." We now have the categories for every financial event.

Today, we delve into the core logic that governs how money moves between those categories. We'll explore the mechanics of double-entry bookkeeping, a system that has been the bedrock of accounting for over 500 years for a simple reason: it is robust, self-auditing, and elegant. Given your background in building systems, you can think of this lesson as learning the fundamental algorithm that ensures data integrity within the financial database.

By the end of this lesson, you will be able to explain how every transaction is recorded using debits and credits, ensuring the accounting equation always remains in balance.

Why Not Just Use Plus and Minus?

Before diving into accounting terminology, it's worth asking why we need a special system at all. Why not just have a list of accounts and add or subtract money? As a developer, you know that simple systems often break in complex ways. A transaction might fail halfway, corrupting data and leaving an untraceable mess.

The "Existential Bytes" blog, written from a software developer's perspective, provides an excellent introduction to why this naive approach fails and how double-entry bookkeeping provides a robust solution.

Double-Entry Bookkeeping from an Engineers Perspective

This article frames the accounting problem in a way you'll find familiar, discussing the pitfalls of a simple balance table and introducing double-entry as a superior system for ensuring data integrity.

Please read the first two sections, The Naive Approach to Tracking Money and Enter Double-Entry Bookkeeping. Pay attention to the problems the author identifies (bugs, race conditions, partial updates) and how the core idea of double-entry is presented as the solution.

As the article states, the core idea is that every transaction involves at least two accounts and affects them with equal and opposite entries. These entries are called debits and credits.


Deconstructing Debits and Credits

The words "debit" and "credit" are perhaps the most confusing for newcomers. It's crucial to discard any everyday association you have with them, like from your bank statement. In accounting, they are purely directional terms.

To get a clear and concise explanation, let's watch a short video from the "Accounting Stuff" channel.

ACCOUNTING BASICS: Debits and Credits Explained

This video does an excellent job of demystifying debits and credits, framing them as a reflection of the flow of "economic benefit."

First, watch the section that clears up common misconceptions, comparing debits and credits to heads and tails on a coin. Next, watch the crucial explanation of the flow of economic benefit. This is the key insight: Credits are the SOURCE of the economic benefit. Debits are the DESTINATION of the economic benefit. Pay close attention as the video explains this from this section.

So, for every transaction, we ask two questions:

  1. Where did the economic value come from? (This will be the Credit).
  2. Where did the economic value go to? (This will be the Debit).

Let's take a simple example: You pay your $50 internet bill in cash.

  • Source: The value came from your Cash account. So, we credit Cash.
  • Destination: The value went to pay for an Internet Expense. So, we debit Internet Expense.

The Rules of the Game: DEALER

How does this source/destination logic map to the account types we created in our Chart of Accounts (Assets, Liabilities, Equity, Revenue, Expenses)? There is a set of rules that governs this, and thankfully, a very handy mnemonic to remember it: DEALER.

Let's return to the "Accounting Stuff" video to see how the accounting equation is expanded to reveal this rule.

ACCOUNTING BASICS: Debits and Credits Explained

This part of the video expands the basic accounting equation to logically derive the DEALER mnemonic, which is the most practical tool you'll use for day-to-day bookkeeping.

Watch from this section, where the host breaks down the Equity component and rearranges the equation to group all the "debit" accounts on one side and "credit" accounts on the other.

The expanded equation is:
Dividends + Expenses + Assets = Liabilities + Equity + Revenue

This gives us the simple rules for increasing or decreasing any account:

  • DEA Accounts (Dividends, Expenses, Assets):
    • Increase with a Debit.
    • Decrease with a Credit.
  • LER Accounts (Liabilities, Equity, Revenue):
    • Increase with a Credit.
    • Decrease with a Debit.

This is the fundamental logic of double-entry bookkeeping. The image below provides a clean summary of these rules.

This table clearly shows how Debits and Credits affect each of the five main account types. Note that "Income/Revenue" and "Equity/Capital" increase with credits, while "Assets" and "Expenses" increase with debits.

This table clearly shows how Debits and Credits affect each of the five main account types. Note that "Income/Revenue" and "Equity/Capital" increase with credits, while "Assets" and "Expenses" increase with debits.


Putting It All Together: The Journal Entry

The formal record of a transaction, showing the debits and credits, is called a journal entry. Every single financial event—a sale, a purchase, a payment—is recorded as a journal entry. In a journal entry, the total debits must always equal the total credits.

The resource from Tripgain, a travel tech company, explains this well.

Journal Entry In Corporate Travel Accounting | Tripgain Glossary

This article defines what a journal entry is and provides specific examples from the travel industry.

Read the section What is a Journal Entry? to get the formal definition. Then, look at the first example, Flight Booking Expense. Let's analyze it using our DEALER rules: "...debit to the Travel Expenses account...": This makes sense. Travel Expenses is an Expense account (part of DEA), and it is increasing, so we debit it. "...credit to the Company’s Credit Card account.": This also makes sense. The Credit Card account is a liability (money you owe the credit card company). It is a Liability account (part of LER), and its balance is increasing, so we credit it. Debit: Travel Expenses $500 Credit: Credit Card Payable $500 The equation is balanced. Your Actionable Task: Practice Makes Perfect Now it's time to solidify your understanding. The best way to learn this is to work through some examples. The following video presents five common transaction scenarios and asks you to determine the correct debit and credit entries. This is your main task for the lesson. For each of the five questions, pause the video and try to solve it yourself using the DEALER mnemonic before the presenter explains the answer.

Let's analyze it using our DEALER rules:

  • "...debit to the Travel Expenses account...": This makes sense. Travel Expenses is an Expense account (part of DEA), and it is increasing, so we debit it.
  • "...credit to the Company’s Credit Card account.": This also makes sense. The Credit Card account is a liability (money you owe the credit card company). It is a Liability account (part of LER), and its balance is increasing, so we credit it.

Debit: Travel Expenses $500
Credit: Credit Card Payable $500

The equation is balanced.


Your Actionable Task: Practice Makes Perfect

Now it's time to solidify your understanding. The best way to learn this is to work through some examples. The following video presents five common transaction scenarios and asks you to determine the correct debit and credit entries.

This is your main task for the lesson. For each of the five questions, pause the video and try to solve it yourself using the DEALER mnemonic before the presenter explains the answer.

5 Debit and Credit Practice Questions & Solutions

This video provides an excellent interactive quiz to test your understanding of debits and credits in different business scenarios.

Watch the entire video. The presenter will walk you through five practice questions. After he poses each question, pause and decide: Which two (or more) accounts are affected? What type is each account (Asset, Liability, Equity, Revenue, or Expense)? Are they increasing or decreasing? Based on the DEALER rule, should the account be debited or credited? Then, play the video to see if you got it right. Don't worry if you make mistakes; this is a core concept that takes a little practice to become second nature.


Conclusion

Today you've learned the logical engine of bookkeeping. You now understand that the double-entry system isn't arbitrary but a robust method for maintaining a balanced and auditable set of books. By treating debits and credits as directional flows and applying the DEALER mnemonic, you can correctly analyze any transaction.

Key Takeaways:

  • Double-entry bookkeeping ensures the accounting equation remains balanced by recording every transaction with equal debits and credits.
  • Debits and credits are not "good" or "bad"; they represent the destination (Debit) and source (Credit) of economic value.
  • The DEALER mnemonic is your guide: Dividends, Expenses, and Assets increase with debits. Liabilities, Equity, and Revenue increase with credits.
  • A journal entry is the formal record of a transaction, capturing the date, accounts, and debit/credit amounts.

In our next and final lesson of this module, we will put this theory into practice. You will take a simple transaction and record your very first journal entry in the digital ledger you built for "Sunshine Getaways."