Sub topic 7
Building a cost schedule step by step
A cost schedule is a table that lists a firm's costs at each output level. This chapter builds one from a total cost function, one column at a time, and then checks it for errors. It assumes you know the definitions of fixed cost, variable cost, total cost, marginal cost, and the three average costs from the earlier chapters. It also assumes you can evaluate a simple polynomial.
The firm and its cost function
The chapter uses one firm throughout. Its fixed cost is 20 per period, and its variable cost for producing q units is:
VC(q) = q^3 - 6q^2 + 15qThe cubic term makes variable cost rise slowly at first and then quickly. Because of that, the firm's marginal cost falls at low output and rises at higher output.
Total cost is TC(q) = 20 + VC(q). Output comes in whole units here, so we compute the schedule for q = 0, 1, 2, ..., 8.
The order of the columns
Build the columns in this order, because each one depends on an earlier one.
- Compute
TFC. It is 20 at every output level, including zero. - Compute
TVCby pluggingqinto the variable cost function. - Compute
TC = TFC + TVC. - Compute
MCas the change inTCwhen output rises by one unit. - Compute
AFC,AVC, andATCby dividingTFC,TVC, andTCbyq.
Step 1 to 3: total costs
Start with the fixed and variable columns. At q = 0 the firm produces nothing, so TVC = 0 and TC = 20. The firm still owes its fixed cost.
For the other rows, evaluate the cubic:
q = 1: 1 - 6 + 15 = 10q = 2: 8 - 24 + 30 = 14q = 3: 27 - 54 + 45 = 18q = 4: 64 - 96 + 60 = 28q = 5: 125 - 150 + 75 = 50q = 6: 216 - 216 + 90 = 90q = 7: 343 - 294 + 105 = 154q = 8: 512 - 384 + 120 = 248
Adding 20 to each gives total cost: 20, 30, 34, 38, 48, 70, 110, 174, 268.
Step 4: marginal cost
Marginal cost is the change in total cost. Subtract the previous row from the current row. Using total cost, the first few values are:
MC(1) = 30 - 20 = 10MC(2) = 34 - 30 = 4MC(3) = 38 - 34 = 4MC(4) = 48 - 38 = 10
Marginal cost needs a previous row, so it has no value at q = 0. Subtracting total variable cost gives the same numbers, because fixed cost cancels out of any difference. This is why fixed cost never affects marginal cost.
Step 5: average costs
Divide each total by q. This is undefined at q = 0, so the average columns start at q = 1.
The completed schedule
| Q | TFC | TVC | TC | MC | AFC | AVC | ATC |
|---|---|---|---|---|---|---|---|
| 0 | 20 | 0 | 20 | n/a | n/a | n/a | n/a |
| 1 | 20 | 10 | 30 | 10 | 20.0 | 10.0 | 30.0 |
| 2 | 20 | 14 | 34 | 4 | 10.0 | 7.0 | 17.0 |
| 3 | 20 | 18 | 38 | 4 | 6.7 | 6.0 | 12.7 |
| 4 | 20 | 28 | 48 | 10 | 5.0 | 7.0 | 12.0 |
| 5 | 20 | 50 | 70 | 22 | 4.0 | 10.0 | 14.0 |
| 6 | 20 | 90 | 110 | 40 | 3.3 | 15.0 | 18.3 |
| 7 | 20 | 154 | 174 | 64 | 2.9 | 22.0 | 24.9 |
| 8 | 20 | 248 | 268 | 94 | 2.5 | 31.0 | 33.5 |
Letting Python build it
Doing nine rows by hand is fine once. For a different cost function, a short program is faster and less error-prone.
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 loop starts at q = 1. That avoids dividing by zero in the average columns, and vc(q - 1) supplies the previous row for marginal cost. The printed rows match the Q, TC, MC, AFC, AVC, and ATC columns of the table above.
Reading the schedule
Look at each column and ask what it tells you.
- MC falls, then rises. It drops from 10 to 4, stays at 4, and then climbs to 94. The early drop reflects workers becoming more productive as they share a fixed plant. The later rise is diminishing marginal returns, covered in the next chapter.
- AFC falls at every step. The fixed cost of 20 is spread over more units. AFC never rises and never reaches zero.
- AVC has a minimum at
q = 3. It falls to 6.0 and then rises. - ATC has a minimum near
q = 4. In the table, 12.0 atq = 4is the lowest value. ATC reaches its minimum later than AVC because falling AFC keeps pulling it down after AVC has started to rise. - MC is below AVC and ATC while they fall, and above them while they rise. At
q = 2, MC is 4 and AVC is 7. Atq = 5, MC is 22 and AVC is 10.
The last point is the pattern that a later chapter explains in full.
Checks that catch mistakes
Because the columns are linked, you can test a finished schedule with a few identities.
ATC = AFC + AVCin every row. Atq = 4, 5.0 + 7.0 = 12.0.TCat any row equalsTC(0)plus the sum ofMCup to that row. Atq = 4, 20 + 10 + 4 + 4 + 10 = 48.TC(0)equalsTFC.MCcomputed fromTCequalsMCcomputed fromTVC.
Discrete steps versus calculus
The schedule uses whole units, so marginal cost is a difference: TC(q) - TC(q-1). If output can be divided finely, marginal cost is the derivative of total cost. For this firm:
MC(q) = 3q^2 - 12q + 15The two versions differ slightly. At q = 2 the difference gives 4, but the derivative gives 3. The difference is the average slope over the interval from q = 1 to q = 2. The derivative is the slope at the point q = 2. Both are correct for their own definition, and they agree more closely as the step size shrinks.
Finding the minimum of ATC
A schedule only shows whole units, so the true minimum can fall between rows. The second program searches a fine grid of quantities from 0.01 to 10 for the lowest average total cost. It then prints marginal cost at that quantity.
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))It prints 3.72 11.89 11.88. The minimum of ATC is about 11.89 at a quantity near 3.72, which is lower than the 12.0 shown at q = 4 in the table. At that quantity MC is 11.88, almost equal to ATC. The two differ only because the grid step is 0.01 and not infinitely small. Average cost stops falling exactly where marginal cost reaches it.
The same method applies to AVC. Its minimum is at q = 3, where AVC is 6 and MC is 27 - 36 + 15 = 6. This is the lowest price at which the firm can cover its variable costs.
Common errors when building a schedule
| Error | Symptom | Fix |
|---|---|---|
| Dividing by zero at `q = 0` | Crash or `n/a` in averages | Start averages at `q = 1` |
| Treating `TC / q` as MC | MC column looks like ATC | Subtract successive TC values |
| Dropping fixed cost from TC | TC equals TVC at all outputs | Add TFC to every row |
| Letting MC depend on fixed cost | MC changes when FC changes | Remember FC cancels in differences |
| Rounding early | `ATC` is not `AFC + AVC` | Round only for display |
Exercises
Exercise
A firm has a fixed cost of 50 and total variable cost of 30 at q = 5 and 42 at q = 6. Find TC at q = 6, MC of the sixth unit, and ATC at q = 6.
Show answer
TC at q = 6 is 50 + 42 = 92. MC of the sixth unit is 42 - 30 = 12 (the same as the TC difference, 92 - 80 = 12). ATC at q = 6 is 92 / 6, about 15.3.
Exercise
Using the schedule in this chapter, a manager says that raising fixed cost from 20 to 30 would raise marginal cost at every output. Is she right? Which columns would change?
Show answer
She is wrong. Marginal cost is a difference of total costs, so the added 10 of fixed cost cancels and MC is unchanged. TC, AFC, and ATC would all rise. TVC and AVC would not change.
Exercise
Modify the first program so that FC is 40 and the loop runs to q = 8. At which q is ATC lowest, and is it still true that ATC = AFC + AVC in each row?
Show answer
With FC = 40, ATC at q = 4 is (40 + 28) / 4 = 17, and at q = 5 it is (40 + 50) / 5 = 18, so the lowest ATC among whole units is at q = 4. The identity still holds in every row, because ATC = (TFC + TVC) / q = AFC + AVC.