Sub topic 5
Build a Simple Category Set
This chapter assumes you can already record a transaction with a date, description, and signed amount, and that you know the difference between income, spending, and net cash flow. Here you will design the categories that turn a pile of transactions into something you can read.
Why categories matter
A transaction list tells you what happened. Categories tell you where your money goes. Without them, a month of 80 transactions is hard to interpret. With them, you can see that Dining took 9% of your income and Housing took 40%.
A category is a label you attach to each transaction so you can group and total transactions that serve the same purpose. The label should answer one question: "What was this money for?"
Categories feed directly into later chapters. The monthly summary totals by category, the budget comparison measures each category against a plan, and trend analysis follows categories over time. If your categories are unstable, all of those steps give unreliable answers.
Principles for a good category set
A useful set is small, stable, and mutually exclusive.
- Small. Aim for 10 to 20 spending categories. Fewer than 8 hides useful detail. More than 25 makes you hesitate on every transaction, and the small totals become noise.
- Stable. Keep the same names and meanings from month to month. If you rename or split a category mid-year, past totals no longer compare with current ones.
- Mutually exclusive. Each transaction gets exactly one category. If two categories could both fit, you will assign similar purchases inconsistently.
- Based on decisions. Create a category when you might act on its total. If you would never change your behavior based on "Parking," fold it into "Transportation."
A starting set
The table below is a reasonable starting point for one person or household. Adjust it to your life.
| Category | Typical contents |
|---|---|
| Income | Paychecks, freelance payments, interest |
| Housing | Rent or mortgage, renters insurance, repairs |
| Utilities | Electric, gas, water, internet, phone |
| Groceries | Food bought to cook at home |
| Dining | Restaurants, coffee shops, takeout, delivery |
| Transportation | Fuel, transit, parking, car maintenance, car insurance |
| Health | Insurance premiums, copays, prescriptions |
| Insurance | Life or other insurance not covered elsewhere |
| Debt payments | Loan and credit card payments (see below) |
| Subscriptions | Streaming, software, memberships |
| Shopping | Clothing, household goods, electronics |
| Entertainment | Events, hobbies, games, travel activities |
| Gifts and giving | Presents, donations |
| Savings | Transfers to savings or investment accounts |
| Other | A temporary holding place, reviewed monthly |
Keep "Other" small. If it grows past about 5% of your spending, you are using it to avoid decisions, and you should look inside it for a missing category.
Separate categories from accounts and tags
Beginners often mix up three different ideas.
- An account is where the money sits, such as checking or a credit card.
- A category is what the money was for.
- A tag is an optional extra label, such as "Vacation 2026" or "Tax deductible," that cuts across categories.
Keep these in separate fields. A grocery purchase made on a credit card has the account "Visa," the category "Groceries," and no tag. Putting "Visa" in the category column would make your Groceries total wrong.
If your tool supports tags, use them sparingly for questions that cross categories, such as "How much did the trip cost in total?" If it does not, a single extra column in a spreadsheet works.
Handle the tricky cases
Most category problems come from a few recurring situations.
Transfers are not spending
Moving $500 from checking to savings is not income and not spending. It changes where your money sits, not how much you have. If you count the outgoing side as spending, your net cash flow looks worse than it is. If you count the incoming side as income, it looks better.
There are two common ways to handle transfers:
- Give transfers their own category, such as "Transfer," and exclude it from income and spending totals.
- Record savings contributions in a "Savings" category and report them separately, so you can include them in your savings rate.
Pick one approach and apply it everywhere. The choice matters most when you track more than one account, because a transfer appears twice: once leaving one account and once entering the other. Both entries must be excluded together.
Credit card payments are not new spending
When you buy groceries with a credit card, record the purchase in "Groceries" on the date you made it. When you later pay the card bill from checking, that payment is a transfer to settle a debt you already counted. If you categorize both, you count the same money twice.
The rule: categorize card purchases individually, and treat the bill payment as a transfer.
Loan payments differ slightly. A mortgage or car loan payment is part interest (a real cost) and part principal (repayment of what you borrowed). Many people record the whole payment under "Debt payments" or "Housing" for simplicity. That is acceptable if you do it consistently, and you can split the interest out later if you want a more precise picture.
Refunds and reimbursements
A refund is the reverse of a purchase. Record it in the same category as the original purchase, with the opposite sign. A $40 return of clothing becomes +40.00 in "Shopping," which reduces your Shopping total. Do not record it as income, or you will overstate both income and spending.
Reimbursements work the same way. If you pay $120 for a team dinner and your employer repays you, the reimbursement offsets the Dining expense.
Split transactions
One receipt can span several categories. A $95 trip to a big-box store might include $60 of food and $35 of household goods. If the difference matters to you, record two lines that sum to the bank's single charge. If it does not, assign the whole amount to the category that dominates. Splitting everything is rarely worth the effort. Split only when the amounts are large or the categories are ones you actively manage.
Make categorization consistent with rules
Consistency matters more than precision. If you label the same coffee shop "Dining" in October and "Entertainment" in November, both totals are wrong.
A rule is a stored instruction that maps a pattern in the description to a category. For example, any description containing "SHELL" becomes "Transportation." Many apps do this automatically, and you can do the same in a script with a lookup table.
from decimal import Decimal
RULES = {
"paycheck": "Income",
"rent": "Housing",
"grocery": "Groceries",
"coffee": "Dining",
"electric": "Utilities",
"shell": "Transportation",
}
def categorize(description: str) -> str:
text = description.lower()
for keyword, category in RULES.items():
if keyword in text:
return category
return "Other"
transactions = [
("2026-10-01", "Paycheck", Decimal("2500.00")),
("2026-10-02", "Rent", Decimal("-1200.00")),
("2026-10-04", "Grocery store", Decimal("-86.40")),
("2026-10-09", "Coffee shop", Decimal("-4.75")),
("2026-10-12", "SHELL 4471", Decimal("-41.20")),
("2026-10-13", "Mystery charge", Decimal("-19.99")),
]
for date, description, amount in transactions:
print(f"{date} {categorize(description):<15} {amount:>9} {description}")The last transaction lands in "Other" because no rule matches it. That is the intended behavior: unknown items stay visible so you can review them, then add a rule once you know what they are.
Rules are checked in order, and the first match wins. A keyword like "shell" could also match "seashell gifts," so keep keywords specific and review what lands in each category when you add a rule.
Review and evolve the set
Your categories are not permanent, but changes should be deliberate.
- Check "Other" monthly. Reassign its contents and add rules for repeat items.
- Merge categories you never use. A category with a total under 1% of spending for six months can usually be absorbed into a neighbor.
- Split a category only when you need to. If "Shopping" is your largest category and you cannot tell why, split out the part you want to examine.
- Change at the start of a period. Apply a new structure from the first day of a month or year, and if you can, recategorize older data so history stays comparable.
The diagram shows this loop.
Common mistakes
- Too many categories. You spend more time deciding than learning. Merge until each category earns its place.
- Categories by store. "Target" or "Amazon" says where you shopped, not what you bought. Categorize by purpose.
- Counting transfers and card payments. This inflates both income and spending. Check that your spending total equals purchases, not purchases plus bill payments.
- Renaming mid-year. Totals before and after the change no longer match.
- Using "Miscellaneous" as a habit. If it grows, you stop learning where the money goes.
Summary of the working model
Every transaction gets one category that describes its purpose. Accounts and tags live in separate fields. Transfers and card bill payments are excluded from spending. Refunds reduce the original category. Rules provide consistency, and "Other" is a short review queue. Keep the set between 10 and 20 spending categories and change it only on purpose.
Exercise
Your checking account shows a $640 payment to a credit card. The card statement shows $400 of groceries, $150 of dining, and $90 of shopping. How should you record these in your spending categories, and what happens to your totals if you also categorize the $640 payment as "Shopping"?
Show answer
Record the three purchases individually: $400 in Groceries, $150 in Dining, and $90 in Shopping, each on its purchase date. Treat the $640 checking payment as a transfer that settles the card balance, and exclude it from spending. If you also put the $640 in Shopping, you count the same $640 twice, so total spending rises by $640 and Shopping is overstated by $640, which makes net cash flow look $640 worse than it is.
Exercise
A rule maps any description containing "air" to "Transportation" for airfare. What problem can this cause, and how would you fix it?
Show answer
The keyword "air" matches many unrelated descriptions, such as "Fairway Market" or "Hair salon," so they would be assigned to Transportation incorrectly. Make the keyword more specific, for example "airlines" or the names of the carriers you use, and place more specific rules before general ones because the first match wins. Then review what each rule catches after adding it.
Exercise
You return a $40 shirt you bought last month. In which category do you record the refund, and with what sign?
Show answer
Record it in Shopping, the same category as the original purchase, as +40.00. This reduces the Shopping total instead of inflating income.