Sub topic 5
Build a Simple Category Set
Assume you know how to read a bank statement, use simple arithmetic, and record transactions with a consistent amount sign. This chapter focuses on choosing categories that make your records useful without making them difficult to maintain.
Why categories matter
A category is a label that groups similar transactions. Categories turn a long transaction list into a summary you can understand. For example, instead of reviewing ten separate grocery purchases, you can ask how much you spent on Groceries during the month.
A useful category set helps you answer questions such as:
- How much did I spend on housing?
- Which flexible costs changed this month?
- Did I spend more on dining than planned?
- Which expenses happen only a few times each year?
Categories are analytical tools, not moral judgments. A category should describe where money went clearly enough to support a decision.
Design rules for stable categories
Use a small set of categories first. Add a category only when the new detail will change what you do. If you create a separate category for every merchant, your summaries become noisy and inconsistent.
Use categories based on the purpose of the transaction, not the payment method. A credit card payment is a payment between your own accounts, not a new spending category. The original restaurant purchase belongs in Dining.
Keep category levels consistent. Do not mix broad categories with very narrow ones in the same list:
| Consistent category set | Inconsistent category set |
|---|---|
| Housing, Groceries, Dining | Housing, Coffee, Supermarket |
| Transportation, Health, Utilities | Transportation, Electricity |
| Personal, Entertainment, Savings | Personal, Streaming Service |
Use names that you will remember and apply the same way each month. Dining and Restaurants may describe the same spending, so choose one. If you change a name, update older records or document the change so monthly comparisons remain meaningful.
Separate income, spending, and transfers
Keep income categories separate from expense categories. Common income categories include Paycheck, Freelance, Interest, and Other income.
Use expense categories for money that leaves your financial position. Common categories include:
- Housing
- Utilities
- Groceries
- Dining
- Transportation
- Health
- Insurance
- Debt payments
- Personal
- Entertainment
- Gifts and donations
- Fees
- Taxes
Mark transfers between your own accounts as Transfer and exclude them from income and spending totals. Otherwise, moving money from checking to savings could look like spending, and moving it back could look like income.
Refunds need a consistent rule. You can record a refund as a negative expense in its original category, such as Groceries, or as separate income. The first approach usually gives a clearer view of the category's net cost.
Use a category decision process
When a transaction is unclear, apply the same questions in order:
- Is it income, spending, or a transfer?
- What was the main purpose of the transaction?
- Is there an existing category that fits?
- Would a new category change a future decision?
- If the transaction has several purposes, should you split it?
For a supermarket transaction containing groceries, cleaning supplies, and a birthday card, splitting may be worthwhile only if those amounts matter to your planning. Otherwise, use Groceries and accept the small imperfection.
The following model shows how a transaction moves into a stable category.
Apply categories consistently in code
A category mapping can make repeated descriptions easier to classify. The mapping below is intentionally small. Unrecognized descriptions go to Review instead of being silently assigned to a misleading category.
from collections import defaultdict
from decimal import Decimal
transactions = [
("Paycheck", Decimal("2500.00")),
("Rent", Decimal("-1200.00")),
("Grocery store", Decimal("-86.40")),
("Coffee shop", Decimal("-4.75")),
("Electric bill", Decimal("-92.10")),
]
category_by_description = {
"Paycheck": "Paycheck",
"Rent": "Housing",
"Grocery store": "Groceries",
"Coffee shop": "Dining",
"Electric bill": "Utilities",
}
totals = defaultdict(Decimal)
for description, amount in transactions:
category = category_by_description.get(description, "Review")
totals[category] += amount
for category, amount in sorted(totals.items()):
print(f"{category}: {amount}")Review the Review category regularly. It is a queue for decisions, not a permanent category. Once you identify a repeated pattern, either map it to an existing category or deliberately add a new one.
Exercise
You notice separate categories for Coffee, Restaurants, Takeout, and Delivery. What test should you apply before keeping all four?
Show answer
Ask whether each category leads to a different planning decision. If they do not, combine them under a stable category such as Dining. Split them only when the extra detail changes an action or reveals a meaningful pattern.