iLearnFintech Glossary Formulas Cases Sandboxes
Accounting/Cost accounting

Fixed and variable costs

6 min readCoreUpdated December 2026
In short

Some costs stay the same when activity changes (fixed costs), others move with it (variable costs). Knowing which is which is the starting point for pricing, budgeting and almost every business decision.

Know this first

What it is

Costs are sorted by how they react when activity, such as units sold, goes up or down:

  • Fixed costs stay the same within a normal range of activity: rent, insurance, management salaries.
  • Variable costs rise in step with activity: raw materials, packaging, card fees per sale.
  • Mixed costs have a fixed and a variable part: a phone contract with a monthly fee plus a price per minute.
  • Step costs are fixed up to a point and then jump: one more shift of staff when demand passes a level.

“Fixed” only holds within a relevant range. Double the output and you may need a bigger factory.

The intuition

A bakery pays the same rent whether it sells 100 loaves or 1,000. But every loaf needs flour. So the more it sells, the more the rent is shared out, and the lower the cost per loaf.

That is why average cost per unit is a dangerous number. It changes with volume, so it can't tell you what one extra unit really costs.

The math

\[\text{Total cost} = F + v \cdot Q\]
\[\text{Average cost} = \frac{F}{Q} + v\]
\[v = \frac{C_{\text{high}} - C_{\text{low}}}{Q_{\text{high}} - Q_{\text{low}}}\]

Where

\(F\)
Fixed costs per period
\(v\)
Variable cost per unit
\(Q\)
Units produced or sold

In words: The last line is the high-low method: compare the busiest and quietest periods to estimate the variable cost per unit. A regression over all periods does the same job better.

An example

A workshop's costs in its quietest and busiest months:

MonthUnitsTotal cost
Quietest1,000$25,000
Busiest3,000$45,000

Variable cost per unit = (45,000 − 25,000) / (3,000 − 1,000) = $10. Fixed costs = 25,000 − 10 × 1,000 = $15,000 a month. Average cost is $25 per unit at 1,000 units but only $15 at 3,000 units.

$0$15k$30k$45k$60k01,0002,0003,0004,000End of relevant range1,000 units: $25 each3,000 units: $15 eachFixed costs $15,000Variable: $10 a unitTotal costUnits a month
The workshop's costs: $15,000 a month fixed plus $10 a unit. Average cost falls from $25 to $15 a unit as volume rises. Above about 3,200 units a second shift would push fixed costs up.

In Python

With data for many months, a simple regression estimates fixed and variable costs better than the high-low method.

import numpy as np

units = np.array([1000, 1500, 2200, 2600, 3000])
cost  = np.array([25000, 30500, 36500, 41500, 45000])

v, F = np.polyfit(units, cost, 1)   # straight-line fit: cost = F + v * units
print(round(v, 2), round(F))         # variable cost per unit and fixed cost

In the real world

Airlines, 2020

In 2020 the number of air passengers fell 60%, from 4.5 billion to 1.8 billion. Airlines could park their planes, but aircraft leases, debt payments and much of their staff costs carried on. The airline association IATA reported net losses of $126 billion for the industry that year. High fixed costs turn a fall in sales into a much bigger fall in profit.

Think about it

Fernway's costs average $1,800 a bike: all its operating costs divided by 500,000 bikes. A retailer offers to buy 5,000 extra bikes at $1,500 each, made with spare factory capacity. A manager says no, because $1,500 is below cost. Is that right?

Show a model answer

Not necessarily. About $1,200 of each bike's cost is variable: parts and assembly. The fixed costs, like the factory and head office, are paid anyway. Each extra bike adds $1,500 − $1,200 = $300, so the order adds about $1.5 million of profit. Average cost includes fixed costs and misleads here. But check two things: the order must not take capacity from full-price sales, and other customers must not start asking for the same price.

Reading the result

Sort costs by how they behave, not by what the account is called.

Good signs

  • Costs classified by how they react to activity
  • Estimates based on many periods, not two
  • Knowing where the relevant range ends

Watch out

  • Assuming fixed costs stay fixed at any volume
  • Using average cost per unit for pricing decisions
  • Treating step costs as variable, or variable costs as fixed

Remember

  • Fixed costs stay the same; variable costs move with activity.
  • Average cost falls as volume rises, so it misleads.
  • “Fixed” only holds within the relevant range.

Check yourself

Question 1 of 2Which of these is usually a fixed cost for a shop?

Question 2 of 2Costs are $20,000 at 500 units and $30,000 at 1,000 units. What is the variable cost per unit?

Read more

  • Horngren, Datar & Rajan, Cost Accounting: A Managerial Emphasis: chapter on determining how costs behave

Spotted a mistake or have a wish?

Tell us in a line or two. The page name is sent along automatically.