Sub topic 5
Average Total Cost and Average Variable Cost
This chapter assumes you can solve linear equations, know the difference between fixed and variable costs, and have seen the total cost function $C(Q)$. The calculus appears only in short asides. The earlier chapters defined profit and marginal cost. This chapter adds the two average cost measures that tell you whether a firm is making or losing money, and which later chapters use for the shutdown rule.
Why averages matter
Marginal cost tells a firm how much to produce. It does not say whether the firm is better off producing at all. For that you compare price with a cost per unit, and the right per-unit cost depends on the question.
- Does producing earn a profit? Compare price with average total cost.
- Does producing beat shutting down this period? Compare price with average variable cost.
The cost pieces
Total cost splits into two parts:
$$TC(Q) = FC + VC(Q)$$
- Fixed cost (FC) is the cost that does not change with output. Rent on a lease is an example. In the short run the firm pays it whether it produces or not.
- Variable cost (VC) is the cost that rises with output, such as materials and hourly labour.
This chapter uses the cost function from the topic's code examples:
$$C(Q) = 50 + 20Q + Q^2$$
So $FC = 50$ and $VC(Q) = 20Q + Q^2$.
Definitions
Dividing each cost by output gives a per-unit measure.
| Measure | Formula | For $C = 50 + 20Q + Q^2$ |
|---|---|---|
| Average fixed cost (AFC) | $FC / Q$ | $50/Q$ |
| Average variable cost (AVC) | $VC / Q$ | $20 + Q$ |
| Average total cost (ATC) | $TC / Q = AFC + AVC$ | $50/Q + 20 + Q$ |
| Marginal cost (MC) | $dTC/dQ$ | $20 + 2Q$ |
ATC is also called average cost. Because $ATC = AFC + AVC$, the gap between ATC and AVC is exactly AFC. That gap shrinks as output grows, since the same fixed cost is spread over more units.
Computing the schedule
The code below tabulates all four measures for several output levels. It also finds the output where ATC is lowest.
f, c, d = 50, 20, 1 # C = f + c*Q + d*Q**2
def afc(q): return f / q
def avc(q): return c + d * q
def atc(q): return afc(q) + avc(q)
def mc(q): return c + 2 * d * q
print(" Q AFC AVC ATC MC")
for q in [1, 2, 5, 7, 8, 10, 15]:
print(f"{q:>3} {afc(q):>7.2f} {avc(q):>7.2f} {atc(q):>7.2f} {mc(q):>7.2f}")
q_min = (f / d) ** 0.5
print(round(q_min, 2), round(atc(q_min), 2), round(mc(q_min), 2))The table it prints is:
Q AFC AVC ATC MC
1 50.00 21.00 71.00 22.00
2 25.00 22.00 47.00 24.00
5 10.00 25.00 35.00 30.00
7 7.14 27.00 34.14 34.00
8 6.25 28.00 34.25 36.00
10 5.00 30.00 35.00 40.00
15 3.33 35.00 38.33 50.00The last line printed is 7.07 34.14 34.14. At $Q \approx 7.07$, ATC reaches its minimum of about 34.14, and MC equals ATC there.
Three patterns in the table recur in almost every cost problem:
- AFC falls steadily, so ATC falls at first even though AVC is rising.
- ATC is U-shaped. It falls while AFC's decline outweighs AVC's rise, then rises once AVC's rise dominates.
- MC is below ATC while ATC is falling, and above ATC while ATC is rising. Compare $Q = 7$ (MC 34, ATC 34.14) with $Q = 8$ (MC 36, ATC 34.25).
Why MC crosses the average at its minimum
Average cost behaves like any average. A new unit that costs less than the current average pulls the average down. A new unit that costs more pulls it up. The marginal unit is the new unit, so:
- If $MC < ATC$, ATC is falling.
- If $MC > ATC$, ATC is rising.
- If $MC = ATC$, ATC is at its minimum.
With calculus, the derivative of $ATC = TC/Q$ is
$$\frac{d\,ATC}{dQ} = \frac{MC - ATC}{Q}$$
This is zero exactly when $MC = ATC$. For our function, setting $50/Q = Q$ gives $Q = \sqrt{50} \approx 7.07$.
The same argument applies to AVC. MC crosses AVC at the minimum of AVC. Here AVC $= 20 + Q$ is lowest at $Q = 0$, where it equals 20, and MC also starts at 20. In many textbook cost curves AVC is U-shaped and the minimum sits at a positive output. With a quadratic cost function the minimum sits at zero.
Average cost and profit
ATC links profit to price. Total cost is $ATC \times Q$, and for a price-taking firm total revenue is $P \times Q$, so:
$$\pi = (P - ATC)\,Q$$
The sign of profit is the sign of $P - ATC$.
- If $P > ATC$, profit is positive.
- If $P = ATC$, profit is zero.
- If $P < ATC$, profit is negative.
Using the price-taker example from the topic ($P = 40$, $Q^* = 10$):
- $ATC(10) = 5 + 20 + 10 = 35$.
- $\pi = (40 - 35) \times 10 = 50$.
This matches the profit of 50 in the topic's third code example.
AVC and the short-run shutdown decision
In the short run, fixed cost is paid whether the firm produces or not. If the firm shuts down and produces nothing, its profit is $-FC$. Producing is better than shutting down when
$$\pi(Q^*) > -FC$$
Expand this using $\pi = TR - VC - FC$:
$$TR - VC - FC > -FC \;\Longleftrightarrow\; TR > VC \;\Longleftrightarrow\; P > AVC \quad (\text{for a price taker})$$
The fixed cost cancels from both sides. The firm should compare price with AVC, not ATC. This gives the shutdown rule:
- If $P \ge AVC$ at the chosen output, produce. Revenue covers all variable cost and contributes something toward fixed cost.
- If $P < AVC$, shut down. Every unit sold loses money on top of the fixed cost already owed.
The next code block applies the rule to three prices. For a price taker with this cost function, $Q^* = (P - c)/(2d)$ when that is positive.
f, c, d = 50, 20, 1
def decide(p):
q = max((p - c) / (2 * d), 0) # P = MC, floored at zero
if q == 0:
return q, -f, "shut down"
profit = p * q - (f + c * q + d * q**2)
if profit >= 0:
return q, profit, "produce at a profit"
return q, profit, "produce at a loss"
for p in [15, 25, 40]:
q, profit, action = decide(p)
print(f"P={p}: Q={q:.2f} profit={profit:.2f} {action}")It prints:
P=15: Q=0.00 profit=-50.00 shut down
P=25: Q=2.50 profit=-43.75 produce at a loss
P=40: Q=10.00 profit=50.00 produce at a profitThe case $P = 25$ is the one to study. ATC at $Q = 2.5$ is $20 + 20 + 2.5 = 42.5$, well above the price, so the firm loses 43.75. Shutting down would lose 50. Producing is better because $P = 25$ exceeds $AVC = 22.5$. The 6.25 gap per unit between price and AVC, times 2.5 units, recovers 6.25 of fixed cost.
The price below which the firm shuts down is the minimum of AVC, which is 20 here. At $P = 15$ the formula gives a negative quantity, so the firm produces nothing.
Fixed cost does not move the optimum
AFC is part of ATC but not of MC. Raising $FC$ from 50 to 80 shifts ATC up and lowers profit, but $MC = 20 + 2Q$ is unchanged. The profit-maximising output therefore stays at $Q^* = 10$ when $P = 40$. Only the shutdown decision and the level of profit change. At $FC = 80$, profit at $Q = 10$ becomes $50 - 30 = 20$.
In the short run fixed cost is also a sunk cost, meaning it cannot be recovered whatever the firm does. Sunk costs should not affect the output choice.
Link to economic profit
Economists include opportunity costs in cost. If the owner could earn 30 elsewhere for the same effort, that 30 belongs in $FC$. ATC then includes a normal return, so $P = ATC$ means the firm earns zero economic profit. The owner does only as well as the next best option. This is why break-even at the minimum of ATC matters later in the tutorial.
Common errors
- Using ATC where AVC is needed (shutdown), or AVC where ATC is needed (profit).
- Treating fixed cost as part of marginal cost. A fixed cost has zero marginal cost.
- Expecting MC to cross ATC at an arbitrary point. It crosses at the minimum of ATC.
- Applying the AVC rule in the long run. Over a long enough horizon every cost is variable, and the firm exits whenever $P < ATC$.
- Assuming the shutdown rule uses price for every firm. For a firm with market power, compare average revenue (which is price) with AVC. The condition is still $AR \ge AVC$.
Exercise
Using $C(Q) = 50 + 20Q + Q^2$, a price-taking firm faces $P = 30$. Find its profit-maximising output, ATC, AVC and profit. Should it produce or shut down in the short run? Explain.
Show answer
Set $P = MC$: $30 = 20 + 2Q$, so $Q^* = 5$. At $Q = 5$, $AVC = 20 + 5 = 25$ and $ATC = 50/5 + 25 = 35$. Profit is $(P - ATC)Q = (30 - 35) \times 5 = -25$. Check: revenue is 150 and total cost is $50 + 100 + 25 = 175$, so profit is $-25$. The firm makes a loss, but $P = 30 > AVC = 25$, and the loss of 25 is smaller than the shutdown loss of $FC = 50$. It should produce in the short run.
Exercise
At what output is ATC lowest for $C(Q) = 50 + 20Q + Q^2$, and what is MC there?
Show answer
ATC is lowest where $MC = ATC$. Setting $50/Q + 20 + Q = 20 + 2Q$ gives $50/Q = Q$, so $Q = \sqrt{50} \approx 7.07$. ATC and MC both equal about 34.14 there.