Tutorials › VEE Economics › Deriving Marginal and Average Costs From Cost Functions

VEE Economics · Short-Run Production and Costs · Tutorial 244 of 998

Deriving Marginal and Average Costs From Cost Functions

Derive marginal, average fixed, average variable, and average total costs from a short-run cost function, then evaluate and interpret them at given output levels.

Intermediate 10 min read

What You'll Learn

  • Separate fixed cost from variable cost using the total-cost function.
  • Derive marginal cost as the derivative of total cost with respect to output.
  • Calculate average fixed, average variable, and average total cost at positive output.
  • Check the identity that average total cost equals average fixed cost plus average variable cost.
  • Distinguish a derivative from the cost change over a finite output interval.

Why Derive Cost Measures From a Cost Function?

A total-cost function describes how a firm’s production cost changes as output changes. Once the function is known, it can provide more than the total cost at a chosen output: it can also show the fixed and variable components, the cost per unit on average, and the additional cost associated with a small increase in output. These measures are related, but they answer different questions, so a reliable calculation begins by identifying the measure requested.

This tutorial treats a firm operating in the short run, with its fixed inputs held constant. The calculations are aligned with the SOA VEE Economics (Validation by Educational Experience) syllabus. Assume that output \(q\) is nonnegative and that the stated total-cost function is differentiable wherever marginal cost is calculated. If output is available only in discrete quantities, a finite change in cost is appropriate for comparing output levels; it is not automatically identical to the derivative.

Definition: Let \(C(q)\) denote total cost at output \(q\). Short-run fixed cost \(F\) does not vary with output over the relevant range. Variable cost is \(VC(q)=C(q)-F\), with \(VC(0)=0\) in the usual cost specification. For \(q>0\), average fixed cost is \(AFC(q)=F/q\), average variable cost is \(AVC(q)=VC(q)/q\), and average total cost is \(ATC(q)=C(q)/q\). If \(C\) is differentiable, marginal cost is \(MC(q)=dC(q)/dq\).

The units help keep the measures distinct. If \(C\) is measured in dollars and \(q\) in units of output, total cost is in dollars, while marginal and average costs are in dollars per unit of output. A fixed cost is not the same as average fixed cost: \(F\) is a total dollar amount, whereas \(AFC\) divides that amount by output.

Separating the Components

For a short-run total-cost function, fixed cost is the part that remains when output is zero. In the standard form \(C(q)=F+VC(q)\), setting \(q=0\) gives \(C(0)=F\), because variable cost is zero at zero output. Subtracting this amount from total cost at any output isolates variable cost:

$$ F=C(0), \qquad VC(q)=C(q)-C(0). $$

This separation is important before calculating averages. The average variable cost numerator is \(VC(q)\), not total cost; the average total cost numerator is the full \(C(q)\). Average measures are undefined at \(q=0\), because division by zero is not defined.

Worked Example: Extracting Fixed and Variable Cost

A small packaging firm has short-run total cost \(C(q)=900+12q+0.4q^2\), where cost is in dollars and output \(q\) is measured in packages. Find fixed cost, variable cost, total cost at \(q=10\), and all four cost measures at that output.

Method. Read the output-independent term as fixed cost, subtract it to obtain variable cost, and differentiate the total-cost function for marginal cost. A common mistake is to include the fixed-cost term in the variable-cost calculation.

Fixed and variable cost. At zero output, \(C(0)=900\), so \(F=\$900\). Therefore, \(VC(q)=C(q)-900=12q+0.4q^2\).

Total and variable cost at \(q=10\). The variable cost is \(VC(10)=12(10)+0.4(10^2)=120+40=\$160\). Thus total cost is \(C(10)=900+160=\$1{,}060\).

Marginal cost. Differentiation gives \(MC(q)=12+0.8q\), so \(MC(10)=12+0.8(10)=\$20\) per package.

Average costs. \(AFC(10)=900/10=\$90.00\) per package; \(AVC(10)=160/10=\$16.00\) per package; and \(ATC(10)=1{,}060/10=\$106.00\) per package. The check \(90+16=106\) confirms that \(ATC=AFC+AVC\).

Check. Fixed cost plus variable cost is \(900+160=1{,}060\), matching the direct total-cost calculation. The derivative is evaluated at \(q=10\), giving \(20\), rather than being confused with either average cost.

Marginal Cost as a Derivative

Marginal cost measures the rate at which total cost changes with output at a particular output level. For a differentiable cost function, it is the derivative of total cost with respect to \(q\). If the cost function is written as \(C(q)=F+VC(q)\), the fixed component contributes zero to the derivative because it does not change when output changes.

$$ MC(q)=\frac{dC(q)}{dq} =\frac{d}{dq}\bigl(F+VC(q)\bigr) =\frac{dVC(q)}{dq}. $$

The derivative can be understood through a small output change. For a change from \(q\) to \(q+\Delta q\), the average cost change per added unit is \([C(q+\Delta q)-C(q)]/\Delta q\). As \(\Delta q\) approaches zero, this ratio approaches the derivative, when that derivative exists. This is why marginal cost is a local rate of change, rather than the cost of all units already produced.

$$ MC(q)=\lim_{\Delta q\to 0} \frac{C(q+\Delta q)-C(q)}{\Delta q}. $$

For a polynomial such as \(C(q)=F+aq+bq^2+cq^3\), where the coefficients and units are consistent, differentiation gives \(MC(q)=a+2bq+3cq^2\). The constant fixed-cost term disappears, the linear term becomes a constant, and each power is differentiated using the power rule. This formula applies to the stated differentiable function; it does not turn a discrete one-unit cost difference into an exact derivative.

Justification: The derivative definition is the limit of the change in total cost divided by the corresponding change in output. Because \(F\) is constant, its change between any two output levels is \(F-F=0\). Hence it contributes nothing to the ratio, and the derivative of total cost equals the derivative of variable cost.

Calculating Average Cost Measures

At positive output, each average-cost measure divides its corresponding total cost by output. The following identity follows directly from the definitions:

$$ ATC(q)=\frac{C(q)}{q} =\frac{F+VC(q)}{q} =\frac{F}{q}+\frac{VC(q)}{q} =AFC(q)+AVC(q), \qquad q>0. $$

This is an accounting identity, not an approximation. It is a useful check on calculations: if the stated average fixed and average variable costs do not sum to average total cost, at least one input or division is wrong. It does not say that marginal cost equals any of these averages; marginal cost is obtained by differentiation, not division of total cost by output.

Worked Example: Polynomial Cost and Average Measures

A workshop’s short-run cost function is \(C(q)=640+8q+\frac{1}{2}q^2+\frac{1}{24}q^3\), with costs in dollars and output in finished kits. Calculate fixed cost, variable cost, total cost, marginal cost, and average fixed, variable, and total cost at \(q=6\).

Method. Identify \(F\) from the constant term, substitute \(q=6\) into the variable-cost expression, and differentiate the full function before evaluating marginal cost. A common mistake is to evaluate a term incorrectly or to use total cost, rather than variable cost, in \(AVC\).

Fixed and variable cost. \(F=C(0)=\$640\). Thus \(VC(q)=8q+\frac{1}{2}q^2+\frac{1}{24}q^3\). At \(q=6\), \(VC(6)=8(6)+\frac{1}{2}(6^2)+\frac{1}{24}(6^3)=48+18+9=\$75\). So \(C(6)=640+75=\$715\).

Marginal cost. Differentiating term by term, \(MC(q)=8+q+\frac{1}{8}q^2\). At \(q=6\), \(MC(6)=8+6+\frac{36}{8}=8+6+4.5=\$18.50\) per kit.

Average costs. \(AFC(6)=640/6=\$106.67\) per kit, \(AVC(6)=75/6=\$12.50\) per kit, and \(ATC(6)=715/6=\$119.17\) per kit, each rounded to the nearest cent. The check is \(106.67+12.50=119.17\).

Check. The fixed and variable components sum to the total, \(640+75=715\). The marginal-cost calculation uses \(8+6+4.5=18.5\); it is not the average variable cost of \(12.50\), nor is it calculated by dividing total cost by six.

Derivative Versus a Finite Output Change

A derivative describes a rate of change at an output level. If a problem instead asks for the increase in cost when output rises by a specified amount, calculate the difference in total cost at the two endpoints. For a one-unit increase, that difference is \(C(q+1)-C(q)\). It can be close to the marginal cost at \(q\), but the two quantities need not be equal.

Worked Example: Marginal Cost and the Next-Unit Cost Difference

A hypothetical component producer has total cost \(C(q)=500+20q+0.3q^2+0.02q^3\), measured in dollars, with \(q\) in batches. Find marginal cost at \(q=5\), the exact increase in total cost from 5 to 6 batches, and the average cost measures at \(q=5\).

Method. Differentiate for the marginal cost at five batches, but evaluate the function at both endpoints to find the finite cost increase. A common mistake is to treat the derivative at five as exactly the cost of producing the sixth batch.

Marginal cost at five. Differentiation gives \(MC(q)=20+0.6q+0.06q^2\). Therefore, \(MC(5)=20+0.6(5)+0.06(25)=20+3+1.5=\$24.50\) per batch.

Finite increase. At five batches, \(C(5)=500+20(5)+0.3(25)+0.02(125)=500+100+7.5+2.5=\$610\). At six batches, \(C(6)=500+20(6)+0.3(36)+0.02(216)=500+120+10.8+4.32=\$635.12\). The increase from 5 to 6 is \(635.12-610=\$25.12\). This finite increase is not the derivative value \(\$24.50\) at five.

Average costs at five. Fixed cost is \(\$500\), and variable cost is \(610-500=\$110\). Hence \(AFC(5)=500/5=\$100.00\), \(AVC(5)=110/5=\$22.00\), and \(ATC(5)=610/5=\$122.00\) per batch. The identity check is \(100+22=122\).

Check. The finite increase is verified directly from endpoint costs, and the average-cost identity holds. The figures differ because one is a finite change over a full batch and the other is a derivative at the starting output.

Common Calculation Traps

These measures are straightforward once each is matched to its definition. In an exam-style calculation, the main risk is applying the right arithmetic to the wrong quantity.

  • Including fixed cost in variable cost. If \(C(q)=F+VC(q)\), use \(VC(q)=C(q)-F\). Dividing total cost by output gives \(ATC\), not \(AVC\).
  • Dividing to find marginal cost. \(C(q)/q\) is average total cost. Marginal cost comes from \(dC/dq\) when the function is differentiable.
  • Failing to differentiate every term correctly. For example, the derivative of \(0.1q^2\) is \(0.2q\), and the derivative of \(0.01q^3\) is \(0.03q^2\). Then substitute the specified output into the derivative.
  • Calling a finite change the derivative. If the requested quantity is the extra total cost over a stated output interval, calculate the endpoint difference. Use a derivative for the instantaneous marginal cost in a differentiable model.
  • Calculating an average at zero output. \(AFC\), \(AVC\), and \(ATC\) require division by \(q\), so they are undefined at \(q=0\).

For instance, if \(C(q)=1{,}200+15q+0.1q^2+0.01q^3\), the incorrect calculation \(MC(10)=28\) does not follow from differentiation. The derivative is \(15+0.2q+0.03q^2\), so \(MC(10)=15+2+3=\$20\) per unit. The correction comes from differentiating first and then substituting the output.

Key takeaway: From a short-run cost function, identify fixed cost at zero output, subtract it to obtain variable cost, differentiate total cost for marginal cost, and divide the appropriate cost total by positive output for each average. Check that \(ATC=AFC+AVC\).

Check Your Understanding

For each problem, distinguish derivatives from averages and use dollars per unit for marginal and average costs.

  1. A cost function is \(C(q)=300+9q+q^2\). At \(q=4\), find fixed cost, variable cost, total cost, marginal cost, and all three average costs. (Answer: \(F=\$300\), \(VC=\$52\), \(C=\$352\), \(MC=\$17.00\) per unit, \(AFC=\$75.00\), \(AVC=\$13.00\), \(ATC=\$88.00\) per unit.)
  2. A firm has \(C(q)=480+6q+\frac{1}{2}q^2\). At \(q=8\), calculate \(VC\), \(C\), \(MC\), \(AFC\), \(AVC\), and \(ATC\). (Answer: \(VC=\$80\), \(C=\$560\), \(MC=\$14.00\) per unit, \(AFC=\$60.00\), \(AVC=\$10.00\), and \(ATC=\$70.00\) per unit.)
  3. A cost function is \(C(q)=700+10q+\frac{1}{3}q^2\). Evaluate all cost measures at \(q=6\), rounding averages to the nearest cent. (Answer: \(F=\$700\), \(VC=\$72\), \(C=\$772\), \(MC=\$14.00\) per unit, \(AFC=\$116.67\), \(AVC=\$12.00\), and \(ATC=\$128.67\) per unit.)
  4. A producer has \(C(q)=250+5q+0.2q^2+0.01q^3\). At \(q=10\), find marginal cost and the three average costs. (Answer: \(F=\$250\), \(VC=\$80\), \(C=\$330\), \(MC=\$12.00\) per unit, \(AFC=\$25.00\), \(AVC=\$8.00\), and \(ATC=\$33.00\) per unit.)
  5. A workshop has \(C(q)=900+14q+0.25q^2\). Find \(MC\) and the three average costs at \(q=12\), then state whether those averages are defined at \(q=0\). (Answer: \(VC(12)=\$204\), \(C(12)=\$1{,}104\), \(MC(12)=\$20.00\) per unit, \(AFC=\$75.00\), \(AVC=\$17.00\), and \(ATC=\$92.00\) per unit; the averages are undefined at \(q=0\).)
Clinical Biostats