Sub topic 5
What Debit and Credit Actually Mean
This chapter assumes you know the accounting equation (Assets = Liabilities + Equity), the five account types, and the idea that every transaction has two sides. It also assumes you have seen a T-account, a ledger account drawn as a "T" with a left column and a right column. You do not need to run the Python examples, but you should be able to read them.
The core definition
A debit is an entry on the left side of an account. A credit is an entry on the right side of an account. That is the whole definition. The words say nothing about whether the entry is good or bad, and they do not mean "increase" or "decrease" by themselves.
The abbreviations come from the bookkeeping tradition. Dr stands for debit and Cr stands for credit. You will see them in journal entries, ledgers and accounting software.
Cash
Debit (Dr) | Credit (Cr)
-----------+-------------
left side | right sideBecause "left" and "right" are only positions, the effect of a debit depends on which account you are looking at. A debit to Cash increases Cash. A debit to Service Revenue decreases Service Revenue. The same word produces opposite results because the accounts belong to different types.
Why the confusion happens
Most people meet the words in everyday life first. A bank statement says your account was "credited" when money arrives, and "debited" when money leaves. In that setting, credit feels like "good" and debit feels like "bad".
That usage is correct, but it describes the bank's books, not yours. Your deposit is a liability for the bank, because the bank owes you the money. A liability increases with a credit. So the bank credits your account. On your own books, the same deposit is a debit to your Cash account, an asset.
The sections below separate three ideas that people often mix up:
- Debit and credit name a side (left or right).
- Increase and decrease name a direction of change.
- Good and bad are not part of the vocabulary at all.
Why the left and right sides exist
Double-entry accounting records each transaction in at least two accounts. For the books to stay in balance, the total recorded on the left must equal the total recorded on the right. The two sides are the mechanism that enforces this.
Think of each transaction as a small equation. You put the amounts on the left, you put the amounts on the right, and the totals must match. If they do not, the entry is wrong and the books would no longer satisfy the accounting equation.
This is why the sides need names. Accountants needed short, unambiguous words for "the left side of the entry" and "the right side of the entry". Debit and credit fill that role. They work like "left" and "right" with a fixed convention: debit always goes left, credit always goes right.
How a side maps to an increase or decrease
A side does not tell you the direction of change until you know the account's type. Each account type has a normal balance, the side on which it usually grows. The rule is:
- Asset and expense accounts have a debit normal balance. A debit increases them. A credit decreases them.
- Liability, equity and revenue accounts have a credit normal balance. A credit increases them. A debit decreases them.
The following table shows the effect of each side on each type.
| Account type | Normal balance | Debit effect | Credit effect |
|---|---|---|---|
| Asset | Debit | Increase | Decrease |
| Expense | Debit | Increase | Decrease |
| Liability | Credit | Decrease | Increase |
| Equity | Credit | Decrease | Increase |
| Revenue | Credit | Decrease | Increase |
This chapter only needs the idea behind the table. The next chapters cover normal balances and the increase and decrease rules in detail. What matters here is that the table is a lookup from (account type, side) to direction. The side alone is not enough.
Seeing the meaning in a transaction
Take the first transaction from the running example: the owner invests $1,000 cash in the business.
Dr Cash 1,000
Cr Owner Capital 1,000Read it by position. Cash is on the left, so it receives a debit. Owner Capital is on the right, so it receives a credit. Nothing in the words "debit" or "credit" tells you that Cash grew. You know Cash grew because Cash is an asset and a debit increases assets. You know Owner Capital grew because it is equity and a credit increases equity.
Check the equation. Assets rose by 1,000 and equity rose by 1,000, so Assets = Liabilities + Equity still holds.
Now take the third transaction: the business pays $300 rent in cash.
Dr Rent Expense 300
Cr Cash 300Here the credit decreases Cash, because Cash is an asset. The same word, credit, increased Owner Capital in the first entry and decreased Cash in this one. The side stayed constant while the effect changed with the account type.
Indentation is a convention
In a written journal entry, the debit line sits at the left margin and the credit line is indented. This is only a visual cue. The label "Dr" or "Cr" and the column in which the amount appears carry the real meaning. Do not rely on indentation alone when you read entries from someone else.
Modelling the meaning in code
The Python function below captures the idea that a side only becomes an increase or decrease once the account type is known. It measures the change in the account's balance in its normal direction.
from decimal import Decimal
DEBIT_NORMAL = {"asset", "expense"}
def balance_change(account_type, side, amount):
"""Change in an account's balance, measured in its normal-balance direction."""
if side not in ("debit", "credit"):
raise ValueError("side must be 'debit' or 'credit'")
normal = "debit" if account_type in DEBIT_NORMAL else "credit"
return amount if side == normal else -amount
print(balance_change("asset", "debit", Decimal("500"))) # 500
print(balance_change("revenue", "debit", Decimal("100"))) # -100The first call prints 500. A debit to an asset is on the asset's normal side, so the balance grows. The second call prints -100. A debit to revenue is on the opposite of revenue's normal side, so the balance shrinks.
Notice what the function does not do. It never treats "debit" as a number to add or "credit" as a number to subtract. The side is an input, and the account type decides the sign. Money amounts use Decimal because binary floating-point numbers cannot represent many decimal fractions exactly, and small rounding errors would break the equality checks that double-entry depends on.
The equality that the sides enforce
A journal entry is valid only when total debits equal total credits. This is the practical payoff of having two named sides.
from decimal import Decimal
def is_balanced(lines):
debits = sum(a for _, side, a in lines if side == "debit")
credits = sum(a for _, side, a in lines if side == "credit")
return debits == credits
entry = [
("Cash", "debit", Decimal("500.00")),
("Service Revenue", "credit", Decimal("500.00")),
]
print(is_balanced(entry)) # TrueThis prints True. If you changed the credit to Decimal("450.00"), it would print False, and the entry should be rejected before it is saved.
The check says nothing about whether you chose the right accounts. An entry that debits Rent Expense and credits Service Revenue for the same amount would also balance, but it would describe the wrong event. Balance is necessary for a valid entry, not sufficient.
Edge cases and gotchas
Debit is not always "increase"
The shortcut "debit means increase" works for assets and expenses only. Applying it to revenue or liabilities gives wrong answers. If a student records a customer payment as a debit to Service Revenue because "debit means increase", revenue falls instead of rising.
Credit is not "money received" or "good"
A credit to Cash means Cash went down. A credit to Service Revenue means revenue went up, which is usually welcome. Both are credits. Treat the word as a position, and judge the effect from the account type.
An account can have a balance on its non-normal side
An account normally has a balance on its normal side, but it can land on the other one. If you debit Cash for 100 and then credit it for 150, Cash has a credit balance of 50. That is an overdrawn position, and it signals either a real overdraft or a recording error. The sides are still just left and right. The unusual balance is information to investigate, not a violation of the rules.
One entry can have more than two lines
Double-entry means both sides are recorded and equal. It does not limit an entry to one debit and one credit. A sale that includes cash and a receivable might debit two accounts and credit one. The total on the left still equals the total on the right.
Account type matters more than account name
An account called "Deposits" could be an asset (money you put in a bank) or a liability (money customers placed with you). The name does not tell you which side increases it. Classify the account first, then apply the rule.
Putting it together
The meaning of debit and credit comes down to three statements:
- Debit means left. Credit means right.
- The effect on a balance depends on the account type, through its normal balance.
- Every entry must have equal total debits and total credits.
The diagram below shows how a side and an account type combine to give a direction.
Exercises
Exercise
A bank sends you a notice saying "we have credited your account with $200". On the bank's books, is this a debit or a credit to your account, and why does the same deposit appear as a debit to Cash on your own books?
Show answer
On the bank's books it is a credit to your account. Your account is a liability for the bank, because the bank owes you the money, and a credit increases a liability. On your books the deposit is an asset (Cash), and a debit increases an asset, so you debit Cash. The same event is viewed from two different sets of books, and the account types differ.
Exercise
Using the balancechange function, what does balancechange("liability", "credit", Decimal("250")) return, and what does balance_change("expense", "credit", Decimal("40")) return? Explain each result in terms of normal balances.
Show answer
The first call returns 250. Liability is not in DEBITNORMAL, so its normal side is credit, and the credit matches it, so the balance increases by 250. The second call returns -40. Expense is in DEBITNORMAL, so its normal side is debit, and a credit is the opposite side, so the balance decreases by 40.
Exercise
A journal entry debits Cash 800 and credits Service Revenue 600. Is it valid? What do you need to change, and does fixing the totals prove the entry is correct?
Show answer
It is not valid, because total debits (800) do not equal total credits (600). Either the revenue credit should be 800, or the cash debit should be 600, depending on the real transaction. Fixing the totals makes the entry balanced, but it does not prove it is correct. You must still confirm that the accounts and amount match what actually happened.