Estimating Cost Behavior With Data
Use past records, the high-low method and simple regression to find how much of a cost is fixed and how much varies with activity.
Key takeaways
- A mixed cost has a fixed part and a variable part. We write it as total cost = fixed cost + (rate × activity).
- The high-low method uses just two data points. It is fast but can mislead if either point is unusual.
- A scatter plot of the data should always come first. It shows the shape and any odd points.
- Regression fits a line through all the points. R² tells you how much of the cost movement the activity explains.
- An estimate only holds inside the range of activity you observed. Stretching it far beyond is a guess.
Rosa runs a small delivery van business. Her bills for the van are different every month. Some of that is rent on the parking spot and insurance, which she pays no matter what. Some is gas and tires, which go up when she drives more. Next month she wants to take on a big contract that adds a lot of miles. What will it cost?
To answer, she needs to know how the van's costs behave. Which part stays put? Which part grows with every mile? Nobody sends her a bill with those two parts labeled. She has to dig them out of her own past records. This lesson shows three ways to do it, from a quick estimate to a method that tells you how much to trust the answer.
The shape of a mixed cost
Some costs are simple. Rent is fixed: it stays the same across many levels of activity. Gas is variable: it rises in step with miles driven. Many real costs are mixed, meaning they have both. A phone plan with a monthly fee plus a charge per extra gigabyte is mixed. So is the van.
We describe a mixed cost with a straight line:
Estimating cost behavior means finding the two unknowns a and b.
Here Y is total cost, X is the cost driver (the activity that causes the variable part, such as miles), a is the fixed cost, and b is the variable cost per unit of driver. The job is to estimate a and b from data. The same line shows up again in cost-volume-profit analysis, where it drives break-even planning.
Choosing the driver matters most. Miles drive fuel. Hours drive labor. Number of orders drives order-handling costs. A bad driver gives a bad line, however good the math.
The data
Rosa pulls six months of records:
| Month | Miles | Van cost ($) |
|---|---|---|
| January | 1,000 | 2,000 |
| February | 2,000 | 2,400 |
| March | 1,500 | 2,200 |
| April | 3,000 | 3,100 |
| May | 2,500 | 2,700 |
| June | 3,500 | 3,500 |
Step one: look at it
Before any arithmetic, plot the points with miles across the bottom and cost up the side. This scatter plot is the cheapest check you have. It shows whether a straight line makes sense, and it exposes strange points, such as a month with a big repair bill that has nothing to do with driving.
The points climb in a nearly straight path, so a line is a sensible model. Now we fit one two ways.
Method 1: the high-low method
Take the month with the highest activity and the month with the lowest. Use only those two.
High: 3,500 miles, cost $3,500
Low: 1,000 miles, cost $2,000
Variable rate b = (3,500 − 2,000) ÷ (3,500 − 1,000)
= 1,500 ÷ 2,500 = $0.60 per mile
Fixed cost a = 3,500 − (0.60 × 3,500) = 3,500 − 2,100 = $1,400
(check with the low point: 2,000 − 0.60 × 1,000 = 1,400 ✓) So the high-low line is cost = 1,400 + 0.60 × miles. For 2,800 miles it predicts 1,400 + 0.60 × 2,800 = 1,400 + 1,680 = $3,080.
The idea is that the extra miles between low and high added $1,500 of cost, so each extra mile costs $0.60. The method needs no computer. Its weakness is plain: it ignores four of the six months. If June had a one-time breakdown, the entire answer shifts.
Method 2: regression
Regression finds the line that sits closest to all the points. Specifically, it picks the line that makes the sum of the squared gaps between each real point and the line as small as possible. This is called least squares. In practice you use a spreadsheet function, but it helps to see the arithmetic once.
With miles in thousands, the average mile figure is 13.5 ÷ 6 = 2.25, and the average cost is 15,900 ÷ 6 = $2,650.
Slope b = Σ(x − 2.25)(y − 2,650) ÷ Σ(x − 2.25)²
= 2,625 ÷ 4.375 = 600 per thousand miles = $0.60 per mile
Fixed cost a = 2,650 − 600 × 2.25 = 2,650 − 1,350 = $1,300 The regression line is cost = 1,300 + 0.60 × miles. For 2,800 miles it predicts 1,300 + 1,680 = $2,980. The variable rate agrees with high-low, but the fixed cost is $100 lower, and the predictions differ by $100 too. The regression line used all six months, so it is the better guide here.
How good is the line?
The gaps between the real costs and the line are called residuals. Here the line misses four of the six months by $100 and hits two exactly. Listing them:
Jan: line 1,300 + 600 = 1,900 actual 2,000 gap +100
Feb: line 1,300 + 1,200 = 2,500 actual 2,400 gap −100
Mar: line 1,300 + 900 = 2,200 actual 2,200 gap 0
Apr: line 1,300 + 1,800 = 3,100 actual 3,100 gap 0
May: line 1,300 + 1,500 = 2,800 actual 2,700 gap −100
Jun: line 1,300 + 2,100 = 3,400 actual 3,500 gap +100 The R² ("R squared") number tells you how much of the up-and-down in cost is explained by the driver. It runs from 0 to 1.
Total variation = Σ(y − 2,650)² = 1,615,000
Unexplained = Σ(gaps)² = 40,000
R² = 1 − 40,000 ÷ 1,615,000 ≈ 0.975 About 97.5% of the movement in van cost is explained by miles. That is strong. A low R², such as 0.30, would mean miles are a poor driver, and you should look for another.
Using the answer: Rosa's big contract
Now Rosa can answer her first question. The new contract adds 1,200 miles a month on top of a typical month of 2,000 miles, so she expects about 3,200 miles. That is inside the range she has seen (1,000 to 3,500), so the line is on safe ground.
Predicted cost = 1,300 + 0.60 × 3,200 = 1,300 + 1,920 = $3,220
Cost of the contract alone (extra miles only) = 0.60 × 1,200 = $720 Look closely at the second line. The extra cost of the contract is only the variable part, $720. The $1,300 of fixed cost is already being paid. If the contract pays Rosa $1,000 a month, it adds $280 of profit, even though the full-cost view (which spreads fixed cost over every mile) might make it look like a loser. This is why the split between fixed and variable matters so much to decisions. Where the extra miles would force a second van, the fixed part would grow too, and the decision would change.
What regression output looks like
Spreadsheets and statistics programs print a small table. You do not need to compute it by hand, but you should know what to look for.
- Intercept: the fixed cost, a. For Rosa, $1,300.
- Coefficient on the driver: the variable rate, b. For Rosa, $0.60 per mile.
- R²: the share of movement explained. For Rosa, about 0.975.
- Standard error and p-value of b: measures of how certain the rate is. A small p-value suggests the link is not just luck. With only six data points, though, even a good-looking result deserves caution. More months give a firmer line.
Be wary of a negative fixed cost. If a regression says a is −$400, that does not mean the company is paid to exist. It usually means the line is being stretched back to zero activity, far outside the data. Report the line only for the relevant range.
Other ways to learn a cost's behavior
Data is not the only source. An account analysis has a person look at each cost and label it fixed or variable by judgment. An engineering estimate studies the work itself, such as how many minutes of labor and how many ounces of material one unit needs. These need no history, so they suit a brand-new product. Use them as a check on the data methods. If regression says that a cost with no connection to driving rose with miles, ask why.
Sometimes one driver is not enough. Multiple regression uses several drivers at once, such as miles and the number of stops. It fits better when two things really matter, but it is easy to overdo. Add a driver only if it makes business sense, not because it nudges R² up.
The learning curve
Some costs fall as workers repeat a task. This is the learning curve. In the common "cumulative average" version, each time the total output doubles, the average time per unit falls by a fixed percent. For an 80% curve, suppose the first unit takes 100 hours.
1 unit: average 100 hours total 100
2 units: average 80 hours total 160
4 units: average 64 hours total 256 So units three and four together took 96 hours, or 48 each, much less than the first. If you ignore learning and assume the first unit's 100 hours for each later unit, you will overprice early orders. Whether a real process follows an 80% curve, or any curve, has to be tested with data. Learning also fades once the work becomes routine.
A common mistake: going too far
A line fit to 1,000 to 3,500 miles tells you about that range, which accountants call the relevant range. Nothing in the data says what happens at 10,000 miles. At that point Rosa might need a second van, which adds a new chunk of fixed cost, or a second driver. Extending the line there produces a number that looks exact and means little.
Three other traps are worth checking:
- Outliers. One bad month, such as a major repair, can tilt a line. Find out why it happened. If it is a one-off, you may leave it out and say so.
- Wrong driver. A good R² on the wrong driver proves nothing. Cost and miles may both rise with the season for some other reason.
- Stale data. Prices change. If fuel costs jumped halfway through your records, the line blends two worlds. Adjust for price changes, or use a recent window.
Always say how you got the estimate when you pass it on. Whether you used last year's data, a regression, or a judgment call, the reader should be able to see it. The estimate then feeds the plans in master budgets and in capacity cost decisions, where being roughly right about fixed and variable parts changes real choices.
Words to know
Mixed cost a cost with both a fixed part and a part that changes with activity.
Cost driver the activity that causes a variable cost to rise or fall.
Scatter plot a chart that marks each period as one point, with activity across and cost up.
High-low method estimating fixed and variable parts from only the highest and lowest activity points.
Regression a way to fit the line that best matches all the data points.
R² a number from 0 to 1 showing how much of the cost movement the driver explains.
Relevant range the span of activity over which an estimated cost line can be trusted.
Learning curve the pattern in which average time per unit falls as total output doubles.
Check yourself
- In the formula Y = a + bX, what do a and b stand for?
- Using the high-low method, a store has 400 hours at cost $5,000 and 900 hours at cost $8,000, as its lowest and highest months. What are the rate and the fixed cost?
- Using your answer to question 2, what cost do you predict for 700 hours?
- A regression has R² of 0.20. What does that suggest about the chosen driver?
- Under an 80% cumulative average learning curve, if the first unit takes 50 hours, what is the total time for 4 units?
- Explain why you should draw a scatter plot before running a regression.
Show the answers
- a is the fixed cost and b is the variable cost per unit of the driver.
- Rate = (8,000 − 5,000) ÷ (900 − 400) = 3,000 ÷ 500 = $6 per hour; fixed = 8,000 − 6 × 900 = 8,000 − 5,400 = $2,600.
- 2,600 + 6 × 700 = 2,600 + 4,200 = $6,800.
- The driver explains only 20% of the cost movement, so it is probably a poor driver and another should be tried.
- Two doublings give an average of 50 × 0.8 × 0.8 = 32 hours, so the total is 4 × 32 = 128 hours.
- The plot shows whether a straight line fits and reveals odd points that could distort the regression, which a single R² value would hide.