Why cost behaviour is the first thing managers need to understand
Ask a production manager what next month will cost and you will often get a guess based on last month. That works until volume changes. If the plant runs 20% more hours, does the energy bill rise by 20%? By nothing? Somewhere in between? The honest answer depends on how each cost behaves, and that is the starting point of managerial and cost accounting.
This free first lesson is for students of managerial accounting, for people preparing for professional accounting exams, and for anyone in a small business who has to budget a cost that is neither fully fixed nor fully variable. In the lab above you work for Lakeside Coffee Roasters, a fictional roastery. You have six months of machine hours and the total cost of running the roaster (energy and maintenance). Your task is to split that mixed cost into a fixed monthly part and a variable cost per machine hour with the high-low method, and then use the result to predict July.
Every later topic in the course builds on this split. Contribution margin, break-even, overhead rates, relevant-cost decisions and standard costs all assume that you know which part of a cost moves with activity and which part does not. The guide below explains the method, shows the full calculation with Lakeside’s numbers, points out the trap that catches many students and shows how to build the model in Excel so it updates itself.
The core concept: fixed, variable and mixed costs
Costs behave in three basic ways. A variable cost rises in direct proportion to activity: the green coffee beans used per kilogram roasted, or packaging per bag. Double the output and the cost doubles. A fixed cost stays the same in total within a normal range of activity: the lease on the roastery, insurance, a supervisor’s salary. A mixed cost (also called semi-variable) has both: a fixed base that is paid even at low activity, plus a part that rises with activity.
Utility bills, maintenance and machine running costs are typical mixed costs. Lakeside’s roaster has a fixed element (a standing charge, routine servicing, a base level of energy just to keep the equipment ready) and a variable element (the energy and wear for each hour it actually roasts). The accounting records do not show the two parts separately; they show one total per month. To plan, you have to estimate them.
The model behind every mixed cost is a straight line: total cost = fixed cost + variable rate × activity. In algebra you may know it as y = a + bx, where a is the intercept (the fixed cost) and b is the slope (the variable cost per unit of activity). The high-low method is the simplest way to estimate a and b: it draws the line through two observed points, the month with the highest activity and the month with the lowest activity.
Why those two? Between the highest and the lowest activity, the fixed cost does not change, so any change in total cost must come from the variable part. Dividing the change in cost by the change in activity gives the variable rate. Once you know the rate, you subtract the variable part from either total to get the fixed cost. The two points give the same fixed cost, which is a useful check.
Worked example: Lakeside Coffee Roasters, January to June
These are the six months from the lab. Machine hours are the activity driver; total cost is the roaster’s energy and maintenance cost in dollars. The last two columns show the estimate the finished model produces for each month and how far the actual figure is from it.
| Month | Machine hours (B) | Actual cost (C) | High-low estimate | Actual − estimate |
|---|---|---|---|---|
| Jan | 1,200 | $9,400 | $9,375 | +25 |
| Feb | 1,450 | $10,350 | $10,500 | -150 |
| Mar | 1,800 | $12,900 | $12,075 | +825 |
| Apr | 1,050 | $8,700 | $8,700 | +0 |
| May | 1,600 | $11,050 | $11,175 | -125 |
| Jun | 1,950 | $12,750 | $12,750 | +0 |
Step 1: find the high and low points by activity. The highest activity is June with 1,950 hours; the lowest is April with 1,050 hours. In Excel, =MAX(B4:B9) and =MIN(B4:B9) find them without you scanning the list.
Step 2: look up the cost of those two months. June cost $12,750 and April cost $8,700. Note that you do not want the highest cost; you want the cost that belongs to the highest hours. =INDEX(C4:C9,MATCH(F4,B4:B9,0)) does exactly that: MATCH finds the row in which 1,950 hours appears, and INDEX returns the cost from the same row.
Step 3: variable cost per hour. Change in cost ÷ change in activity = (12,750 − 8,700) ÷ (1,950 − 1,050) = 4,050 ÷ 900 = $4.50 per machine hour. In Excel: =(F6-F7)/(F4-F5). The brackets matter; without them Excel would divide F7 by F4 first.
Step 4: fixed cost per month. Take the total at the high point and remove the variable part: 12,750 − 4.50 × 1,950 = 12,750 − 8,775 = $3,975. Check at the low point: 8,700 − 4.50 × 1,050 = 8,700 − 4,725 = $3,975. Same answer, so the arithmetic is right. In Excel: =F6-F8*F4.
Step 5: predict July. With 1,700 planned machine hours, the forecast is 3,975 + 4.50 × 1,700 = 3,975 + 7,650 = $11,625. In Excel: =F9+F8*F11. Because the cost has a fixed base and a part per hour, it is a mixed cost, which is the one-word answer the lab expects in F14.
| Cell | Formula | Result | Meaning |
|---|---|---|---|
| F4 | =MAX(B4:B9) | 1,950 | Highest activity (June) |
| F5 | =MIN(B4:B9) | 1,050 | Lowest activity (April) |
| F6 | =INDEX(C4:C9,MATCH(F4,B4:B9,0)) | $12,750 | Cost in the highest-activity month |
| F7 | =INDEX(C4:C9,MATCH(F5,B4:B9,0)) | $8,700 | Cost in the lowest-activity month |
| F8 | =(F6-F7)/(F4-F5) | $4.50 | Variable cost per machine hour: 4,050 ÷ 900 |
| F9 | =F6-F8*F4 | $3,975 | Fixed cost per month: 12,750 − 4.50 × 1,950 |
| F12 | =F9+F8*F11 | $11,625 | Predicted cost for 1,700 hours in July |
| F14 | (text) | Mixed | A fixed base plus a part per hour |
The scatter chart shows how well the line fits. Four months sit close to it; the differences for January, February and May are between $25 and $150. March is the exception: $825 above the line. The lab tells you why: March had a one-off repair. That is information a planner wants to know, because a repair is not part of normal cost behaviour and should not drive the forecast.
The trap: choose the points by activity, not by cost
The most common mistake with the high-low method is picking the two months with the highest and lowest cost. In Lakeside’s data the most expensive month is March ($12,900), not June. If you use March and April, you get a variable rate of (12,900 − 8,700) ÷ (1,800 − 1,050) = 4,200 ÷ 750 = $5.60 and a fixed cost of 12,900 − 5.60 × 1,800 = $2,820. Both are distorted by the repair, and the July forecast rises to $12,340, more than $700 too high.
| Method | Points used | Variable rate | Fixed cost | July forecast |
|---|---|---|---|---|
| High-low by activity (correct) | Apr 1,050 h / Jun 1,950 h | $4.50 | $3,975 | $11,625 |
| High-low by cost (wrong) | Apr $8,700 / Mar $12,900 | $5.60 | $2,820 | $12,340 |
| Regression, all six months | SLOPE / INTERCEPT | ≈ $4.89 | ≈ $3,489 | ≈ $11,795 |
The table also shows a third route: least-squares regression, which uses all six months instead of two. Excel calculates it with =SLOPE(C4:C9,B4:B9) for the variable rate and =INTERCEPT(C4:C9,B4:B9) for the fixed cost, here about $4.89 and $3,489. Regression is usually more reliable because it does not rest on two months that may be unusual, but it is still pulled upward by the March repair. That is why accountants look at a scatter chart before they trust any line: an outlier with a known cause can be removed before the estimate, whichever method you use.
How to build the high-low model in Excel, step by step
- Enter the data in three columns: month in A, machine hours in B, total cost in C. In the lab the data sits in A4:C9 with headers in row 3. Type numbers without currency symbols and format them afterwards (Home > Number Format > Currency or Ctrl+Shift+4).
- Insert a quick scatter chart to look at the data first: select B3:C9, then Insert > Charts > Scatter. Look for a roughly straight pattern and for points far from it. Here March stands out.
- In F4 type
=MAX(B4:B9)and in F5=MIN(B4:B9). These are the high and low activity levels. - In F6 type
=INDEX(C4:C9,MATCH(F4,B4:B9,0)). The 0 at the end of MATCH means exact match, which is what you want. In Excel 365 or 2021 and later you can use=XLOOKUP(F4,B4:B9,C4:C9)instead. - In F7 type the same lookup for the low point:
=INDEX(C4:C9,MATCH(F5,B4:B9,0)). - In F8 calculate the variable rate:
=(F6-F7)/(F4-F5). Format it with two decimals. - In F9 calculate the fixed cost:
=F6-F8*F4. In a spare cell, check it with=F7-F8*F5; both must show $3,975. - Type the planned hours for July in F11 (1,700) and the forecast in F12:
=F9+F8*F11. - Optional check: in a spare cell type
=SLOPE(C4:C9,B4:B9)and=INTERCEPT(C4:C9,B4:B9)to compare with regression. In the scatter chart, right-click a data point > Add Trendline > Linear, and tick Display Equation on chart to see the same line drawn. - Press Ctrl+` to show all formulas and confirm that nothing is typed by hand except the data and the planned hours. Change one month’s hours and watch the whole model update.

Common mistakes and how to spot them
- Choosing the highest and lowest cost instead of activity.
=MAX(C4:C9)returns March’s $12,900, the repair month. The lab flags this. Spot it by asking: is the month I picked really the busiest one? - Missing brackets in the rate.
=F6-F7/F4-F5divides first and gives nonsense. Write=(F6-F7)/(F4-F5). - Mixing up the points. Using the high cost with the low hours gives a negative or absurd rate. Keep each cost with its own hours, which INDEX/MATCH does for you.
- Fixed cost that differs at the two points. If
=F6-F8*F4and=F7-F8*F5do not agree, one of the cells refers to the wrong value. - Forecasting far outside the data. The line is only valid within the relevant range, here roughly 1,050 to 1,950 hours. A forecast for 4,000 hours might need a second roaster and a new fixed cost.
- Ignoring outliers. A repair, a price change or a strike month can distort both high-low and regression. Look at the scatter chart and the notes before you trust the line.
- Treating the fixed cost as untouchable. Fixed means fixed within a range and a period, not forever. Contracts, prices and capacity change.
Quick reference: functions and shortcuts used
| Function / shortcut | Syntax or keys | Use in this lesson |
|---|---|---|
| MAX / MIN | =MAX(B4:B9) | Find the highest and lowest activity |
| INDEX + MATCH | =INDEX(C4:C9,MATCH(F4,B4:B9,0)) | Return the cost that belongs to those hours |
| XLOOKUP | =XLOOKUP(F4,B4:B9,C4:C9) | Same lookup in Excel 365 / 2021 and later |
| SLOPE / INTERCEPT | =SLOPE(C4:C9,B4:B9), =INTERCEPT(C4:C9,B4:B9) | Regression check using all months |
| RSQ | =RSQ(C4:C9,B4:B9) | How well hours explain cost (0 to 1) |
| FORECAST.LINEAR | =FORECAST.LINEAR(F11,C4:C9,B4:B9) | Regression forecast for planned hours |
| Absolute reference | F4 key toggles $B$4:$B$9 | Lock ranges before copying |
| Insert scatter chart | Insert > Charts > Scatter | See the cost line and outliers |
| Show formulas | Ctrl+` | Review the model cell by cell |
Real-world uses
- Budgeting utilities and maintenance. Split last year’s bills into fixed and variable parts, then budget each month from planned activity instead of copying last year.
- Flexible budgets. At month-end, compare actual cost with what the cost should have been at the actual activity: fixed cost + rate × actual hours. That is the basis of the variances you calculate later in the course.
- Pricing small orders. The variable rate tells you the extra cost of an additional hour of production, which is the floor for a special-order price.
- Shipping and delivery costs. A courier contract with a monthly fee plus a charge per parcel is a mixed cost with a known formula; historic data lets you check the invoice.
- Exam preparation. The high-low method is a standard topic in introductory managerial accounting courses and in professional accounting syllabi. Building it in Excel makes the logic stick.
What you will build in the rest of this course
This first lab is free. The seven further lessons are part of the paid course ($9.90, one-time). Each one is a graded Excel lab like this one, and together they cover the core of an introductory managerial accounting syllabus.
Contribution Margin and CVP Analysis. You turn cost behaviour into a contribution-margin income statement, calculate the contribution margin ratio and operating leverage, and test what a price cut really does to profit.
Break-Even, Margin of Safety and Target Profit. You find the break-even point in units and dollars, the margin of safety and the sales volume needed to reach an after-tax profit target, all from formulas you can reuse.
Job-Order Costing and Overhead Application. You apply overhead with a predetermined rate, cost three individual jobs and work out the under- or overapplied overhead at year-end.
Process Costing: Equivalent Units (Weighted Average). You compute equivalent units and the cost per equivalent unit, and split a month’s costs between finished output and ending work in process.
Activity-Based Costing vs Traditional Costing. You allocate the same overhead with one plant-wide rate and with activity rates, and see which product was mis-costed under the simple method.
Relevant Costs: Make-or-Buy and Special Orders. You decide whether to buy a component and whether to accept a discounted order, using only the costs that change, the practical use of the fixed/variable split you learned here.
Standard Costing: Price, Quantity, Rate and Efficiency Variances. You split material and labour cost overruns into price and usage effects and see where the money went.
The course ends with an exam and a certificate. If you are studying for a managerial accounting module, the labs give you worked practice with immediate feedback instead of multiple-choice questions.
Summary
Costs are fixed, variable or mixed. The high-low method splits a mixed cost by drawing a line through the months with the highest and lowest activity: variable rate = change in cost ÷ change in activity, fixed cost = total cost − rate × activity. For Lakeside Coffee Roasters that gives $4.50 per machine hour and $3,975 per month, and a July forecast of $11,625. Find the points with MAX, MIN and INDEX/MATCH so the model updates itself, and check the result with a scatter chart and SLOPE/INTERCEPT.
Now scroll back up and try it in the free lab. Find the high and low points, look up their costs, calculate the rate and the fixed cost, forecast July and name the cost behaviour. Then try the wrong way, with MAX on the cost column, and see how far the forecast moves.
Frequently asked questions
What is the high-low method in cost accounting?
It splits a mixed cost into a fixed and a variable part using the periods with the highest and lowest activity. Variable cost per unit = change in cost ÷ change in activity, and fixed cost = total cost − variable rate × activity.
Do you pick the highest cost or the highest activity in the high-low method?
Always the highest and lowest activity. The costs you use are the ones recorded in those two periods, even if another period had a higher or lower cost.
How do I do the high-low method in Excel?
Use =MAX and =MIN on the activity column, INDEX/MATCH or XLOOKUP to return the matching costs, then =(high cost−low cost)/(high activity−low activity) for the variable rate and =high cost−rate*high activity for the fixed cost.
What is a mixed cost?
A mixed or semi-variable cost has a fixed base that is paid regardless of activity plus a part that rises with activity. Utilities and machine maintenance are common examples.
Is regression better than the high-low method?
Usually yes, because regression uses every data point while high-low uses only two. In Excel, SLOPE and INTERCEPT give the regression estimates, but outliers should still be checked first.
Is this cost accounting lesson free?
Yes. The first lesson and its Excel lab are free. The other 19 lessons, the exam and the certificate are part of the paid course.
Keep going: Managerial & Cost Accounting
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time CHF 9.90.
- Contribution Margin and CVP Analysis
- Break-Even, Margin of Safety and Target Profit
- Job-Order Costing and Overhead Application
- Process Costing: Equivalent Units (Weighted Average)
- Activity-Based Costing vs Traditional Costing
- Relevant Costs: Make-or-Buy and Special Orders
- Standard Costing: Price, Quantity, Rate and Efficiency Variances
- Least-Squares Regression: Estimating Cost Behaviour from All the Data
- Multi-Product CVP: Sales Mix and the Weighted-Average Break-Even
- Absorption vs Variable Costing: Why Profit Moves with Inventory
- Process Costing with FIFO: Separating Last Month's Work from This Month's
- Overhead Variances: Spending, Efficiency, Budget and Volume
- Service Department Costs: Direct and Step-Down Allocation
- Joint Costs: Allocation at Split-Off and Sell-or-Process-Further
- Scarce Resources: Contribution per Bottleneck Hour and the Best Mix
- Learning Curves: Labour Hours and Cost for Repeat Orders
- Cost-Plus Pricing vs Target Costing: Closing the Cost Gap
- Cost of Quality: Prevention, Appraisal and Failure Costs
- Final Project: Product-Line Profitability and the Keep-or-Drop Decision