Sub topic 7
Fixed, variable, and incremental costs
This chapter assumes you can compute marginal cost from a total-cost table and know the marginal rule: add a unit while marginal benefit is at least marginal cost. The Python examples need only lists, loops, and functions.
Earlier chapters treated "cost" as a single number. A real decision involves several kinds of cost, and they behave differently when you change the quantity. Sorting them correctly tells you which numbers belong in a marginal decision and which do not.
Three questions about any cost
Ask three questions about each cost:
- Does it change as output changes? If it does, it is a variable cost. If it stays put, it is a fixed cost.
- Does the decision in front of you change it? If it does, it is an incremental cost of that decision. If it does not, it is irrelevant to that decision.
- Can you still avoid it? A cost you can avoid by choosing differently still matters. A cost you have already committed to cannot be avoided, so it is sunk. The next chapter covers sunk costs in depth.
The labels describe a cost relative to a particular decision and time horizon. The same rent payment can be fixed this month and variable over a ten-year planning horizon.
Fixed and variable costs
A fixed cost (FC) does not change with the quantity produced within the period you are analyzing. Examples are rent, insurance, and a salaried manager. A variable cost (VC) rises as you produce more. Examples are ingredients, packaging, and hourly labor.
Total cost is the sum of the two:
TC(q) = FC + VC(q)
Fixed cost is what you pay at zero output, so FC = TC(0). In the cost table from earlier, total_cost = [100, 140, 185, 235, 295, 370], the first entry is the fixed cost of 100. Subtracting it gives variable cost at each quantity.
| Quantity | Total cost | Variable cost | Marginal cost |
|---|---|---|---|
| 0 | 100 | 0 | n/a |
| 1 | 140 | 40 | 40 |
| 2 | 185 | 85 | 45 |
| 3 | 235 | 135 | 50 |
| 4 | 295 | 195 | 60 |
| 5 | 370 | 270 | 75 |
Marginal cost is the same whether you compute it from total cost or from variable cost. The fixed 100 appears in both TC(q) and TC(q−1), so it cancels in the subtraction. This is the main reason fixed costs do not enter marginal decisions. They are in the totals, but they are not in the margin.
Average fixed, average variable, and average total cost
Dividing each cost by quantity gives three averages:
- Average fixed cost, AFC = FC / q, always falls as q grows, because the same 100 is spread over more units.
- Average variable cost, AVC = VC / q, is the variable cost per unit.
- Average total cost, ATC = TC / q, equals AFC + AVC.
total_cost = [100, 140, 185, 235, 295, 370] # index = quantity
fixed_cost = total_cost[0]
print("q MC AFC AVC ATC")
for q in range(1, len(total_cost)):
variable_cost = total_cost[q] - fixed_cost
mc = total_cost[q] - total_cost[q - 1]
afc = fixed_cost / q
avc = variable_cost / q
atc = total_cost[q] / q
print(f"{q} {mc:5.2f} {afc:6.2f} {avc:6.2f} {atc:6.2f}")The output is:
q MC AFC AVC ATC
1 40.00 100.00 40.00 140.00
2 45.00 50.00 42.50 92.50
3 50.00 33.33 45.00 78.33
4 60.00 25.00 48.75 73.75
5 75.00 20.00 54.00 74.00Three patterns show up in the output:
- AFC falls steadily, and it is the main reason ATC drops early. This is why large producers often have low average cost.
- AVC rises from the start, because marginal cost is above it at every quantity here.
- ATC falls until q = 4 and rises at q = 5. MC (75) passes ATC (73.75) between the fourth and fifth units, so the fifth unit pulls the average up.
None of these averages is the right number for deciding whether to produce one more unit. Only MC is.
Incremental cost: the cost of a decision
Incremental cost is the change in total cost caused by a specific decision. Marginal cost is the special case where the decision is "one more unit." Many real decisions are bigger: accept a bulk order, add a product line, open a second shift, or enter a new market. The incremental cost of such a decision is
incremental cost = TC(after the decision) − TC(before the decision)
You can also compute it by adding up the marginal costs of the units involved. This matches the subtraction exactly.
total_cost = [100, 140, 185, 235, 295, 370]
def incremental_cost(q_from, q_to):
"""Extra total cost of moving output from q_from to q_to."""
return total_cost[q_to] - total_cost[q_from]
marginal_cost = [total_cost[q] - total_cost[q - 1] for q in range(1, len(total_cost))]
# A buyer offers 52 per unit for 2 extra units while you already make 3.
extra_units = 2
revenue = 52 * extra_units
cost = incremental_cost(3, 3 + extra_units)
assert cost == sum(marginal_cost[3:5]) == 135
print(revenue, cost, revenue - cost) # 104 135 -31The order brings in 104 and adds 135 of cost, so accepting it makes you 31 worse off. You reject it. Notice what you did not need: the fixed cost, and the average cost. You compared only what changes.
An incremental analysis includes any cost the decision causes, even one that is not "per unit." If accepting the order also required a 20 delivery fee that you would not otherwise pay, that fee is an incremental cost of the order. It would not appear in a per-unit marginal cost. Likewise, a cost you pay regardless of the decision is excluded, even if it is a real cash cost.
When "fixed" costs are not fixed
Fixed costs are only fixed within a range and a time horizon. Two cases cause most confusion.
Step costs. A cost can stay constant across a range of output and then jump. One machine might handle up to 5 units. The sixth unit needs a second machine costing 80 per period. For decisions inside the 0 to 5 range, that 80 is irrelevant. For the decision "should I go from 5 to 6 units?", the 80 is an incremental cost of that decision, and the marginal cost of the sixth unit is the 80 plus the ordinary variable cost of making it. So the marginal cost can jump even when per-unit input costs are flat.
Time horizon. Over a long enough period, nearly every cost becomes variable. A factory lease is fixed this year. Whether to renew it is a decision, and the rent is an avoidable, incremental cost of renewing. This is why economists separate the short run, where some inputs cannot be changed, from the long run, where all of them can.
Avoidable fixed costs and the shutdown decision
Fixed costs matter in one decision: whether to operate at all. Compare two options.
- Produce: you earn revenue and pay both variable and fixed costs.
- Shut down: you earn nothing and pay only the fixed costs you cannot avoid.
If all fixed costs are unavoidable in the short run, the fixed cost is paid in both options. It cancels out, and the choice depends on whether revenue covers variable cost. If some fixed costs are avoidable (you could cancel the contract by shutting down), those costs belong in the comparison, because the decision changes them.
total_cost = [100, 140, 185, 235, 295, 370] # fixed cost of 100 is unavoidable
def profit(q, price):
return price * q - total_cost[q]
for price in (30, 55, 70):
best_q = max(range(len(total_cost)), key=lambda q: profit(q, price))
print(f"price {price}: produce {best_q}, profit {profit(best_q, price)}")The output is:
price 30: produce 0, profit -100
price 55: produce 3, profit -70
price 70: produce 4, profit -15At a price of 55 the firm loses 70 even at its best output. Shutting down would lose 100, the fixed cost. So the firm should keep producing: revenue of 165 covers the variable cost of 135 and contributes 30 toward the fixed cost, which shrinks the loss from 100 to 70. At a price of 30, no quantity covers its own variable cost, so producing nothing is best. The price in this example is a loss-making one, and the logic still holds: a loss does not by itself mean you should shut down.
Common errors in this area
- Allocating fixed cost per unit and calling it marginal. Quoting a unit cost of 78.33 at q = 3 mixes in 33.33 of fixed cost that the next unit will not cause. Using ATC to price a one-off extra order can make you reject profitable orders.
- Treating "fixed" as "irrelevant" in every case. Fixed costs are irrelevant to the output choice within the period. They are relevant to the shutdown, entry, expansion, and contract-renewal decisions that change them.
- Forgetting lump-sum incremental costs. A one-time setup, delivery fee, or new hire tied to the decision is part of its incremental cost, even though it is not a per-unit cost.
- Counting costs that would occur anyway. If a shared cost, such as the manager's salary, is paid whether or not you take the project, it is not incremental to the project. Only the part the project changes counts.
- Mixing horizons. Compare short-run decisions using short-run fixed costs and long-run decisions using long-run costs, not a blend.
Exercise
Using total_cost = [100, 140, 185, 235, 295, 370], find (a) the variable cost of producing 4 units, (b) the incremental cost of raising output from 2 to 4 units, and (c) whether a buyer who offers 50 per unit for those 2 extra units should be accepted.
Show answer
(a) VC(4) = 295 − 100 = 195. (b) Incremental cost = 295 − 185 = 110, which equals the marginal costs of the third and fourth units, 50 + 60. (c) Revenue is 2 × 50 = 100, which is less than 110, so the order loses 10 and should be declined. The fixed cost of 100 plays no role in the comparison.
Exercise
A bakery pays 300 per month rent and cannot leave its lease. Each loaf costs 2 in ingredients and labor. At the current price of 3 per loaf it can sell 200 loaves a month. It has a loss after rent. Should it keep baking? What changes if the landlord lets it cancel the lease for free and the bakery then pays no rent?
Show answer
Keep baking. Revenue is 200 × 3 = 600 and variable cost is 200 × 2 = 400, so baking contributes 200 toward the unavoidable 300 rent. Total profit is −100, but shutting down would lose 300. If the rent were avoidable by shutting down, it would become an incremental cost of staying open. Then the bakery compares +200 − 300 = −100 from operating against 0 from closing, and it should close.