Sub topic 6
Fixed, variable, and irregular expenses
This chapter assumes you already record transactions with a sign convention (income positive, spending negative) and assign each one to a category from a small, stable set. You should be comfortable with basic arithmetic and with reading a short Python script. Categories tell you what you bought. Expense types tell you how the cost behaves over time, and that determines what you can do about it.
Why classify by behavior
A category such as "Utilities" or "Groceries" describes the purpose of a payment. It says nothing about whether the amount repeats, whether you control it, or when it will arrive. Two questions matter when you plan and review:
- Will this cost happen again, and for about how much?
- Can I change it this month?
Sorting expenses into three types answers both questions. The types are fixed, variable, and irregular. Each type needs a different tracking habit, and each causes a different kind of mistake when you ignore it.
Fixed expenses
A fixed expense is a cost that repeats on a schedule with the same, or nearly the same, amount. Rent, a loan payment, an insurance premium paid monthly, a phone plan, and a streaming subscription are typical examples.
Fixed expenses have three useful properties:
- They are predictable, so you can list them once and check them each month.
- They are hard to change in the short term. You usually cannot renegotiate rent mid-lease.
- They create a floor under your spending. Whatever else happens, this amount leaves your account.
The total of your fixed expenses is a number worth knowing. If your fixed costs are 1,900 and your take-home income is 2,500 per month, only 600 is left for everything else. That ratio tells you how much flexibility you have before you track a single coffee.
Fixed does not mean unchanging
Fixed costs change in steps. Rent rises at renewal. An insurer reprices a policy. A streaming service raises its price by two dollars. Because the change is small and the payment is automatic, many people never notice it.
A simple check is to compare each fixed payment with last month's payment. Any difference deserves a look.
Variable expenses
A variable expense recurs, but the amount changes from one period to the next. Groceries, fuel, dining out, household supplies, and most electricity bills belong here.
Variable expenses split into two groups, and the split is useful:
- Discretionary: you decide how much to spend, such as dining out, hobbies, and entertainment.
- Non-discretionary but fluctuating: you need the thing, but the amount depends on usage or conditions, such as electricity, water, and fuel.
Most of the spending you can change quickly sits in the discretionary group. Utilities vary too, but a cooler winter or a hot summer moves them more than your habits do.
Averaging variable costs
Because a single month of a variable cost is noisy, use an average over several months as your planning figure. If your electric bill was 92.10, 78.40, 110.25, and 85.00 over four months, the average is 91.44. Use that figure when you plan, and watch for months that differ sharply from it.
Irregular expenses
An irregular expense does not occur every month. It may arrive once a year, every six months, or without warning. This type causes the most trouble in tracking, because a month with no such cost looks cheap and a month with one looks like a failure.
Irregular expenses fall into two subtypes:
- Predictable but infrequent: annual insurance premiums, vehicle registration, property tax, holiday gifts, a yearly software license.
- Unpredictable: a car repair, a medical bill, a replacement appliance.
The first subtype is a planning problem. You know the cost is coming, and you can estimate it. The second subtype is a reserve problem. You cannot know the item, but you can know that something will arrive over a year.
The averaging effect
Suppose you pay 600 for car insurance once a year. Your monthly records for eleven months show 0, and one month shows 600. The summary for that month shows spending that is 600 higher than normal, and the other months look 50 better than reality.
The fix is to convert the annual cost into a monthly share. Divide by twelve:
- Annual insurance of 600 becomes 50 per month.
- A 240 yearly software license becomes 20 per month.
- A 360 holiday gift budget becomes 30 per month.
Add these shares to get a single monthly figure for irregular costs. You can then set that money aside each month in a separate savings account or a named sub-account, and pay the bill from it when it arrives. The money you set aside is a transfer between your own accounts, so it is not spending. The bill itself is the spending, and it is recorded when you pay it.
Classifying in practice
Type and category are separate fields. "Utilities" can contain both a fixed internet plan and a variable electric bill. If you want to analyze behavior, add a type column to your records, or assign a type to each category.
The simplest approach is a lookup table that maps each category to a type. This works when each category behaves consistently. When it does not, split the category or tag the individual transaction.
| Category | Typical type | Reason |
|---|---|---|
| Housing (rent) | Fixed | Same amount each month |
| Insurance (monthly) | Fixed | Same premium each month |
| Groceries | Variable | Recurs, amount changes |
| Electricity | Variable | Recurs, depends on usage |
| Dining out | Variable | Recurs, discretionary |
| Annual insurance | Irregular | Once a year |
| Car repairs | Irregular | Unpredictable |
Edge cases
Some expenses do not fit cleanly. These are the common ones.
- A fixed cost billed in a non-monthly period. A quarterly 90 water bill that is always 90 is fixed in amount but irregular in timing. Treat it as irregular for cash planning and divide by three.
- A variable cost with a fixed minimum. A phone plan with a 40 base charge plus overage fees is mostly fixed. Keep it as fixed unless overages are large and frequent.
- A one-time purchase that becomes recurring. A gym joining fee is irregular. The monthly membership afterward is fixed.
- A category whose behavior changes. Groceries is variable for a household, but a fixed weekly meal-box subscription is fixed. Give them separate categories.
Totals by type in code
The following script adds a type to each category and totals spending by type. It uses Decimal so that cents add up exactly. Income rows are skipped, and the monthly share of irregular costs is shown separately.
import csv
from collections import defaultdict
from decimal import Decimal
from io import StringIO
data = """date,description,category,amount
2026-10-01,Paycheck,Income,2500.00
2026-10-02,Rent,Housing,-1200.00
2026-10-04,Grocery store,Groceries,-86.40
2026-10-09,Coffee shop,Dining,-4.75
2026-10-12,Car insurance (annual),Annual insurance,-600.00
2026-10-15,Paycheck,Income,2500.00
2026-10-17,Electric bill,Utilities,-92.10
"""
types = {
"Housing": "Fixed",
"Groceries": "Variable",
"Dining": "Variable",
"Utilities": "Variable",
"Annual insurance": "Irregular",
}
by_type = defaultdict(Decimal)
for row in csv.DictReader(StringIO(data)):
category = row["category"]
if category == "Income":
continue
by_type[types[category]] += -Decimal(row["amount"])
total = sum(by_type.values())
for expense_type, amount in sorted(by_type.items()):
print(f"{expense_type:<10} {amount:>8}")
print(f"{'Total':<10} {total:>8}")
irregular_share = (by_type["Irregular"] / 12).quantize(Decimal("0.01"))
print(f"Irregular, monthly share: {irregular_share}")The output shows that irregular spending is 600.00 for the month. Its monthly share is 50.00. If you judged October by the raw total of 1,983.25, you would conclude that the month was expensive. Replacing the 600.00 with the 50.00 share gives 1,433.25, which is closer to the true cost of living in a typical month.
Using the types
Once each expense has a type, three practical uses follow.
- Find your baseline. Add fixed expenses and the monthly shares of irregular expenses. This is the amount you must cover before any choice.
- Find where change is possible. The discretionary part of variable spending is where a decision this month changes the result this month.
- Avoid false alarms. Compare variable spending month to month, and compare irregular spending across a full year. A single large annual bill should not trigger a plan to cut dining out.
Common errors
- Treating a large irregular bill as a sign of overspending in that month.
- Never setting aside money for predictable annual costs, and then paying them from the general balance.
- Counting the set-aside transfer and the bill as two expenses.
- Using one month of a variable cost as the planning figure instead of an average.
- Forgetting that a fixed cost can change in steps at renewal.
- Classifying a whole category by its most common behavior when it holds mixed items.
Exercise
Your records show these yearly costs: car registration 120, annual insurance 600, a software license 240, and holiday gifts 360. What is the monthly set-aside for these irregular costs, and how should the set-aside and the bills be recorded?
Show answer
The total is 120 + 600 + 240 + 360 = 1,320. Divided by twelve, the monthly set-aside is 110. Record the monthly 110 as a transfer to a separate account, not as spending. Record each bill as spending in the month you pay it.
Exercise
A quarterly water bill is always 90. Is it fixed, variable, or irregular, and what monthly share should you plan for?
Show answer
The amount is fixed, but it does not occur every month, so treat it as irregular for cash planning. Divide by three to get a monthly share of 30.
Exercise
Over four months your grocery spending was 410, 385, 450, and 395. What planning figure should you use, and why not use last month's figure?
Show answer
The average is (410 + 385 + 450 + 395) / 4 = 410. Use 410 because a single month of a variable cost is noisy. Last month's 395 would understate the typical amount.