Sub topic 7
How costs behave: fixed, variable and semi-variable
This chapter assumes you can read an income statement, work with percentages, and run short Python snippets or write equivalent spreadsheet formulas. It also assumes you have already seen how revenue is forecast from price and volume. Here you learn how to choose the right driver for each cost line so that costs respond to the forecast the way they do in the business.
Why cost behavior comes before cost forecasting
A common first attempt is to forecast every cost as a fixed percentage of revenue. This works only if every cost rises and falls in proportion to sales. In most businesses that is false. Rent does not change when you sell 10% more units, and sales commissions do.
If you model rent as a percentage of revenue, the forecast shows rent growing with sales. Operating margin then looks flat when it should expand. If you model commissions as a flat dollar amount, a downside scenario shows commissions that never fall. Choosing the wrong behavior distorts the margin path, and every later result inherits the error.
Cost behavior describes how a cost's total changes when its activity driver changes. The driver is usually units sold, but it can be orders shipped, headcount, or machine hours.
The three behaviors
Fixed costs do not change in total as the driver changes within a normal range. Examples are office rent, salaried management, insurance and software licenses sold per site. Fixed per period does not mean constant forever. Rent escalates at renewal, and salaries rise with raises.
Variable costs change in total in proportion to the driver. Examples are raw materials, payment processing fees, sales commissions and freight per shipment. The cost per unit stays constant, while the total moves with volume.
Semi-variable costs (also called mixed costs) have a fixed component and a variable component. A utility bill with a base charge plus usage is the standard example. A sales team with base salary plus commission is another. The total is:
total cost = fixed amount + (variable rate × driver)
| Behavior | Total cost when volume rises | Cost per unit when volume rises | Typical forecast driver |
|---|---|---|---|
| Fixed | Stays the same | Falls | Dollar amount plus an inflation or escalation rate |
| Variable | Rises proportionally | Stays the same | Rate per unit, or percentage of revenue |
| Semi-variable | Rises, but less than proportionally | Falls, but not to zero | Fixed amount plus a rate per unit |
The "cost per unit" column explains operating leverage. When fixed costs are spread over more units, margin improves without any change in price or variable cost.
The relevant range and step costs
Fixed and variable labels hold only inside a relevant range, the span of volume where the business has actually operated and where the cost structure stays the same. Outside that range, costs change shape.
A step cost is fixed over a band of volume and then jumps. Suppose one supervisor, at 60,000 per year, can oversee 5,000 units. At 4,800 units you need one supervisor. At 5,200 units you need two, and the cost doubles.
import math
def supervision_cost(units, units_per_supervisor=5_000, salary=60_000.0):
supervisors = math.ceil(units / units_per_supervisor)
return supervisors * salary
for units in [4_800, 5_000, 5_200, 9_900, 10_100]:
print(units, supervision_cost(units))This prints 60000 for 4,800 and 5,000 units, then 120000 for 5,200 and 9,900 units, then 180000 for 10,100 units.
You have two ways to model this. If the forecast is for one plan with large volume changes, model the steps explicitly as above. If the steps are small relative to total cost, approximate them as a semi-variable line. Do not use a pure fixed cost across a volume range that crosses a step.
Estimating the split from history
Most ledgers do not label costs as fixed or variable, so you estimate the split from past data. The simplest method is the high-low method. Take the period with the highest volume and the period with the lowest volume. The change in cost divided by the change in volume gives the variable rate. The fixed part is what remains.
observations = [
(1_000, 25_000.0),
(1_500, 31_000.0),
(800, 22_600.0),
(1_200, 27_400.0),
]
low = min(observations, key=lambda o: o[0])
high = max(observations, key=lambda o: o[0])
variable_per_unit = (high[1] - low[1]) / (high[0] - low[0])
fixed = high[1] - variable_per_unit * high[0]
print(variable_per_unit, fixed) # 12.0 13000.0The result is a variable rate of 12 per unit and a fixed amount of 13,000. The check on the other points works: at 1,000 units, 13,000 + 12 × 1,000 = 25,000.
The sample data above fits exactly, which real data never does. Two points can be unrepresentative, because an unusual month at either extreme skews the estimate. When you have 12 or more observations, fit a line through all of them. In a spreadsheet, =SLOPE(costs, units) gives the variable rate and =INTERCEPT(costs, units) gives the fixed part. Plot the points as well. A cloud that bends or jumps tells you the relationship is not a single straight line.
Forecasting a semi-variable cost forward
Once you have the split, forecast each part with its own assumption. The fixed part grows with inflation or planned contracts. The variable rate grows with input prices. Volume comes from your revenue forecast.
base_fixed = 13_000.0
base_variable_rate = 12.0
fixed_growth = 0.03
rate_growth = 0.02
years = [2026, 2027, 2028]
units = [1_100, 1_250, 1_400]
fixed = base_fixed
rate = base_variable_rate
for year, u in zip(years, units):
fixed *= 1 + fixed_growth
rate *= 1 + rate_growth
total = fixed + rate * u
print(year, round(total), round(total / u, 2))The output is:
2026 26854 24.41
2027 29398 23.52
2028 32034 22.88Total cost rises each year, yet cost per unit falls from 24.41 to 22.88. Volume grows 27% over the horizon, the fixed part is spread across more units, and the 2% yearly rate increase does not offset that. A forecast that instead held cost per unit at 24.41 would overstate 2028 cost by about 2,100.
Applying this to COGS and operating expenses
The next two chapters build forecasts for COGS and operating expenses. The behavior classification feeds each one.
- COGS is mostly variable. Materials, direct labor on hourly rates, and freight are variable. Factory rent, depreciation on production equipment and salaried plant staff are fixed. This is why gross margin is not constant in reality, and why the forecast examples in this tutorial let gross margin rise slowly over time.
- Operating expenses are usually semi-variable overall. In the three-year forecast function from earlier in this tutorial, opex is a growing fixed base plus a percentage of revenue. That is the semi-variable form, with revenue as the driver in place of units.
Using revenue as the driver for the variable part is convenient. Be aware that it also makes variable cost rise when you raise prices, even though raising prices does not make the underlying work more expensive. If price changes are a major part of your forecast, tie the variable cost to units rather than revenue.
Common errors
- Treating all costs as percentage of revenue. This hides operating leverage and understates profit growth in an upside case. It also understates losses in a downside case.
- Never escalating fixed costs. Fixed does not mean frozen. Leaving rent and salaries flat across five years while revenue grows produces margins that are too good.
- Extrapolating outside the relevant range. A fixed cost estimated from 800 to 1,500 units may not hold at 5,000 units. Check for capacity limits, new sites, and extra shifts.
- Classifying by account name. "Marketing" can be fixed (brand campaigns) or variable (affiliate payouts). Classify by observed behavior.
- Fitting the split on too few points. The high-low method with two noisy points can yield a negative fixed cost, which is a signal to use more data.
- Ignoring discretionary fixed costs. Some costs are fixed only because management chooses a level. A downside scenario may reasonably cut them, but doing so should be a stated decision.
Summary of working rules
- Classify each cost line as fixed, variable or semi-variable before choosing a driver.
- Estimate the split from history using a regression line when you have enough data, and the high-low method as a quick check.
- Forecast fixed amounts with escalation and variable rates with their own growth.
- Watch for step costs and stay inside the relevant range.
- Compare the forecast cost per unit with history. A sharp unexplained change is a prompt to recheck the structure.
Exercise
A company paid 40,000 in total cost at 2,000 units (its lowest month) and 52,000 at 3,000 units (its highest month). Use the high-low method to find the variable rate per unit and the fixed cost. Then forecast total cost at 3,500 units, assuming the range still holds, and give the cost per unit at that volume.
Show answer
Variable rate = (52,000 − 40,000) / (3,000 − 2,000) = 12 per unit. Fixed cost = 52,000 − 12 × 3,000 = 16,000. At 3,500 units, total cost = 16,000 + 12 × 3,500 = 58,000. Cost per unit = 58,000 / 3,500 ≈ 16.57. This is below the 17.33 per unit at 3,000 units because the fixed 16,000 is spread across more units.
Exercise
A warehouse needs one manager at 70,000 per year for every 20,000 units shipped. Forecast units are 18,000, 21,000 and 39,000 for three years. Compute the manager cost each year, then explain why modeling this cost as 3.5 per unit would be misleading.
Show answer
Managers needed are ceil(18,000/20,000) = 1, ceil(21,000/20,000) = 2 and ceil(39,000/20,000) = 2. Costs are 70,000, 140,000 and 140,000. A rate of 3.5 per unit (70,000 / 20,000) gives 63,000, 73,500 and 136,500. That understates year 2 by 66,500, because the second manager is hired as soon as volume passes 20,000. It overstates nothing in year 1 only by coincidence of rounding: the true step cost is 70,000 against 63,000. The step pattern, not the average rate, determines the cost.