Sub topic 9
Forecasting operating expenses
This chapter assumes you can read a basic income statement, build a revenue forecast from growth rates or price and volume drivers, and write simple Python or spreadsheet formulas. You should also know the fixed, variable and semi-variable cost vocabulary from the previous chapters. Here you will forecast the operating expenses (opex) line that sits between gross profit and operating income.
What belongs in operating expenses
Operating expenses are the costs of running the business that are not part of cost of goods sold (COGS). Typical groups are:
- Selling and marketing: advertising, commissions, sales salaries.
- Research and development: engineering salaries, tools, contractors.
- General and administrative (G&A): finance and legal staff, rent, insurance, software subscriptions.
Treat the split between COGS and opex as a policy question. A support team may sit in COGS at one company and in opex at another. Before you forecast, confirm which costs the historical gross margin already includes. If you move a cost from one group to the other, restate the history too, or your ratios will not be comparable across years.
Depreciation and amortization may or may not be inside opex in your source statements. If your model later reports EBITDA, keep them separate. If it reports operating income, they must be included somewhere. Check this before you build anything.
Choosing a driver for each line
The most common mistake is forecasting total opex as one percentage of revenue. That treats every cost as fully variable, and few operating costs behave that way. Pick the driver that actually causes each line to change.
| Cost line | Typical behavior | Reasonable driver |
|---|---|---|
| Sales commissions | Variable | Percent of revenue |
| Marketing programs | Discretionary, often set as a budget | Percent of revenue, or a fixed budget by year |
| Salaries and benefits | Step-fixed | Headcount times cost per head |
| Rent | Fixed, changes at lease events | Prior year times escalator, plus step for new space |
| Insurance, audit, licenses | Fixed | Prior year times inflation |
| Cloud hosting or payment fees | Semi-variable | Fixed base plus rate per unit of usage |
The diagram shows how these drivers combine into total opex and then into operating income.
Fixed costs: base plus escalator
For a fixed cost, start from the last historical year and apply a growth rate that reflects contracts or inflation:
cost_t = cost_(t-1) × (1 + escalator)The escalator is usually a lease clause, a price-increase letter, or an inflation assumption. It is not a revenue growth rate. If revenue grows 12% and your rent grows 12%, the model is saying you rent more space every time you sell more, which is rarely the plan.
A fixed cost is fixed only within a range of activity. When you plan to open a second office, add a separate step to the forecast in the year it happens. Do not bend the escalator to absorb it, because that hides a decision inside a rate.
Variable costs: percent of revenue
Variable costs scale with sales. Estimate the percentage from history:
variable_pct = variable cost / revenueCalculate it for several years, not one. If commissions were 5.8%, 6.1% and 6.0% of revenue, 6.0% is a defensible assumption. If they were 4%, 6% and 8%, the cost is not stable. Find out why, such as a plan change or a mix shift, before you pick a number.
Marketing is a judgment case. Some companies set it as a percentage of revenue, which makes spend follow sales. Others set a dollar budget, which makes it fixed. Choose the one that matches how management decides, and label it in your assumptions.
Headcount-driven costs
For most service and software businesses, people are the largest opex item. Forecasting them as a percentage of revenue breaks the link to what actually happens: hiring decisions come first, and salary cost follows.
Use this structure:
people cost = headcount × salary per head × (1 + benefits load)
salary per head grows by a merit-increase assumption each yearThe benefits load covers payroll taxes, health insurance and similar costs. It is often 15% to 30% on top of base salary. Take it from history rather than guessing.
The following script forecasts three opex groups for three years: people, rent and two revenue-linked lines.
years = [2025, 2026, 2027]
revenue = [5_000_000.0, 5_500_000.0, 5_940_000.0]
headcount = [10, 12, 12]
base_salary = 90_000.0
salary_growth = 0.04
benefits_load = 0.20
rent = 80_000.0
rent_growth = 0.03
commission_pct = 0.06
marketing_pct = 0.05
for i, year in enumerate(years):
cost_per_head = base_salary * (1 + salary_growth) ** i * (1 + benefits_load)
people = headcount[i] * cost_per_head
rent_cost = rent * (1 + rent_growth) ** i
commissions = revenue[i] * commission_pct
marketing = revenue[i] * marketing_pct
total_opex = people + rent_cost + commissions + marketing
print(year, round(people), round(rent_cost), round(commissions),
round(marketing), round(total_opex),
round(total_opex / revenue[i], 3))The results are:
| Year | People | Rent | Commissions | Marketing | Total opex | Opex % of revenue |
|---|---|---|---|---|---|---|
| 2025 | 1,080,000 | 80,000 | 300,000 | 250,000 | 1,710,000 | 34.2% |
| 2026 | 1,347,840 | 82,400 | 330,000 | 275,000 | 2,035,240 | 37.0% |
| 2027 | 1,401,754 | 84,872 | 356,400 | 297,000 | 2,140,026 | 36.0% |
The opex ratio jumps in 2026 because two hires and a merit increase arrive while revenue grows only 10%. In 2027 headcount is flat, so the ratio falls. A single percentage of revenue cannot produce this pattern, and that pattern is what you want to explain to a reader.
Step costs and capacity
Some costs are fixed until a threshold, then jump. Supervisors, support seats, warehouse space and software license tiers behave this way. Model them with a ratio and rounding up:
import math
def supervisors_needed(headcount, span=8):
return math.ceil(headcount / span)
for hc in [8, 9, 16, 17]:
print(hc, supervisors_needed(hc))The output is 8 1, 9 2, 16 2 and 17 3. One extra employee at 9 or 17 adds a whole supervisor. This is why a smooth percentage understates cost near a threshold and overstates it just after.
In a spreadsheet, the equivalent is =ROUNDUP(headcount / span, 0).
Why splitting fixed and variable matters
Suppose opex was 1,700,000 on revenue of 5,000,000, and you want to know what happens if revenue falls 10%. A percent-of-revenue shortcut and a fixed-plus-variable split give different answers:
base_revenue = 5_000_000.0
new_revenue = 4_500_000.0
fixed = 1_000_000.0
variable_pct = 0.14
base_opex = fixed + base_revenue * variable_pct
ratio = base_opex / base_revenue
naive = new_revenue * ratio
split = fixed + new_revenue * variable_pct
print(round(naive), round(split), round(split - naive))The output is 1530000 1630000 100000. The shortcut assumes costs fall in step with sales and understates opex by 100,000. Operating income in the downside case is therefore overstated by the same amount. This effect is operating leverage: fixed costs make profit move by more than revenue does, in both directions.
Connecting opex to the rest of the model
Opex enters the model at one place: operating income equals gross profit minus total opex. Keep these habits so that connection stays clean:
- Put every assumption (escalators, percentages, headcount, salary growth) on an inputs sheet or block, not inside formulas.
- Forecast each opex line separately, then sum. Do not forecast the total and allocate it.
- Show opex as a percentage of revenue as an output, not an input. It is a useful check on your drivers.
- Keep the sign convention consistent. Either costs are positive numbers subtracted from profit, or negative numbers added. Do not mix them.
Common errors
- Growing every line at the revenue growth rate. This makes fixed costs behave like variable costs and hides operating leverage.
- Using one year's percentage. A single unusual year, such as a one-time marketing launch, sets a bad assumption for every future year.
- Including one-time items in the base. Restructuring charges, legal settlements and impairment write-downs do not recur. Remove them from the base year, and add them back as explicit lines if you expect more.
- Ignoring timing of hires. Full-year cost for people who join in the fourth quarter overstates the year, then understates the one after.
- Forgetting that discretionary costs are decisions. If marketing is a budget, the forecast should show the budget, not a ratio that happens to give the same number.
- Letting opex shrink to zero growth in the outer years. When an assumption is a flat percentage of revenue and revenue growth fades, opex growth fades with it. Check that headcount and salary growth still produce plausible costs.
Checking the result
Before moving on, run three quick tests on the opex forecast:
- Opex as a percentage of revenue should move for a reason you can name, such as a hiring step or a lease change.
- Cost per head should grow at about the salary growth rate, plus any benefits change.
- Dollar opex should not fall in a year when headcount, rent and volume all rise.
Exercise
A firm has fixed opex of 400,000 and variable opex of 12% of revenue. Revenue in 2025 is 2,000,000. In 2026 revenue grows 10%, and the fixed base grows 3%. What is total opex in 2026, and what is opex as a percentage of revenue in 2025 and 2026?
Show answer
2025 opex = 400,000 + 0.12 × 2,000,000 = 640,000, which is 32.0% of revenue. 2026 revenue = 2,200,000. 2026 fixed = 400,000 × 1.03 = 412,000. 2026 variable = 0.12 × 2,200,000 = 264,000. Total 2026 opex = 676,000, which is about 30.7% of revenue. The ratio falls because fixed costs grow slower than revenue.
Exercise
A support team needs one team lead for every 6 agents, and a lead costs 70,000 per year. The team has 12 agents now and plans to hire 1 more. How does the lead cost change, and why does a percent-of-headcount estimate get it wrong?
Show answer
With 12 agents, 12 / 6 = 2 leads, costing 140,000. With 13 agents, ceil(13 / 6) = 3 leads, costing 210,000. The cost rises by 70,000 for one hire. A percent-of-headcount estimate would add only about 1/12 of 140,000, roughly 11,667, so it understates the step.