Sub topic 7
Building a Cost Schedule Step by Step
This chapter assumes you know opportunity cost, can read a graph with quantity on the horizontal axis, and can use basic algebra. You also need the idea that a firm transforms inputs into output. We will use a discrete cost schedule, where output changes by one unit at a time.
A cost schedule lists a firm's costs at each output level. It helps connect the total cost function to marginal and average cost.
Start with the total cost function
Suppose the firm has a fixed cost of 20. Fixed cost is the cost that does not change with output in the short run. The firm's variable cost is:
TVC(q) = q³ - 6q² + 15q
Variable cost changes when the firm produces more. Total cost is:
TC(q) = TFC + TVC(q)
Therefore:
TC(q) = 20 + q³ - 6q² + 15q
At zero output, TVC(0) is zero, but total cost is still 20. The firm must pay its fixed cost even when it produces nothing.
Calculate each column
For each positive quantity q, calculate the following:
- Total cost: TC(q) = TFC + TVC(q)
- Marginal cost: MC(q) = TC(q) - TC(q - 1)
- Average fixed cost: AFC(q) = TFC / q
- Average variable cost: AVC(q) = TVC(q) / q
- Average total cost: ATC(q) = TC(q) / q
In this discrete schedule, marginal cost is the extra cost of moving from the previous output level to the current one. For example, MC at q = 3 is TC(3) - TC(2).
| Q | TC | MC | AFC | AVC | ATC |
|---|---|---|---|---|---|
| 1 | 30 | 10 | 20.0 | 10.0 | 30.0 |
| 2 | 34 | 4 | 10.0 | 7.0 | 17.0 |
| 3 | 38 | 4 | 6.7 | 6.0 | 12.7 |
| 4 | 48 | 10 | 5.0 | 7.0 | 12.0 |
| 5 | 70 | 22 | 4.0 | 10.0 | 14.0 |
Notice that AFC falls at every output level. The same fixed cost is spread across more units. AVC first falls and then rises. ATC includes both AFC and AVC, so it also tends to fall at first and rise later.
Build the schedule with Python
The following program calculates the schedule directly from the cost definitions.
FC = 20
def vc(q):
return q**3 - 6*q**2 + 15*q
print(' Q TC MC AFC AVC ATC')
for q in range(1, 9):
tc = FC + vc(q)
mc = tc - (FC + vc(q - 1))
print(f'{q:>3} {tc:>5} {mc:>5} {FC/q:>5.1f} {vc(q)/q:>5.1f} {tc/q:>5.1f}')The program calculates marginal cost by comparing two neighboring total costs. It does not divide by a quantity change because the quantity change is one unit. If the change were two units, the marginal cost per unit would be the cost change divided by two.
A continuous model uses a derivative instead. For the variable cost function above, the derivative is:
MC(q) = 3q² - 12q + 15
The discrete and continuous versions answer slightly different questions. The schedule reports the average extra cost over one whole unit. The derivative reports the instantaneous extra cost at a particular quantity.
Read the schedule as a decision tool
The schedule shows where cost begins to increase quickly. In the example, marginal cost is low at q = 2 and q = 3, then rises at q = 4 and beyond. This pattern often reflects diminishing marginal returns: when some inputs are fixed, additional variable inputs eventually add less output. Producing another unit then requires more input, so its marginal cost rises.
The schedule also lets you locate the minimum of ATC. Here, ATC is lowest near q = 4 among the listed integer quantities. A fine grid can estimate the minimum more precisely:
FC = 20
def vc(q):
return q**3 - 6*q**2 + 15*q
def atc(q):
return (FC + vc(q)) / q
def mc(q):
return 3*q**2 - 12*q + 15
qs = [i / 100 for i in range(1, 1001)]
q_star = min(qs, key=atc)
print(q_star, round(atc(q_star), 2), round(mc(q_star), 2))At the minimum of a smooth ATC curve, MC and ATC are approximately equal. Rounding and the use of a grid explain small differences in the output.
Exercise
If fixed cost rises from 20 to 30 while variable cost stays unchanged, which entries in the cost schedule change?
Show answer
TC, AFC, and ATC change; MC and AVC stay unchanged.