Skip to content
FiftyCalc Free calculators for all 50 states

Cost Function Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Enter fixed cost and the coefficients of the cost function, then the output level, to get total cost, average costs and marginal cost. Leave c at 0 for a straight-line cost.

Result

Sample figures

Total cost C(q)—

Marginal cost C'(q) ($ per unit) —

  • Variable cost ($)—
  • Average total cost ($ per unit)—
  • Average variable cost ($ per unit)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Cost Function Calculator

Fixed cost FC, in dollars: enter 0 or more. Prefilled example: 5,000.

Linear coefficient b ($ per unit): enter 0 or more. Prefilled example: 12.

Quadratic coefficient c ($ per unit²): enter 0 or more. Prefilled example: 0.01.

Output q (units): enter 0 or more. Prefilled example: 1,000.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Fixed cost FC, in dollars: enter 0 or more.
  2. Linear coefficient b ($ per unit): enter 0 or more.
  3. Quadratic coefficient c ($ per unit²): enter 0 or more.
  4. Output q (units): enter 0 or more.
  5. Read the result: Total cost C(q); the panel also shows Variable cost ($), Average total cost ($ per unit), Average variable cost ($ per unit) and Marginal cost C'(q) ($ per unit).

How this calculator works

A quadratic short-run cost function is C(q) = FC + b × q + c × q², where FC is the fixed cost and b × q + c × q² the variable cost. With c = 0 it is a straight line with a constant cost per unit.

Average total cost = C(q) ÷ q, average variable cost = variable cost ÷ q, and marginal cost is the derivative C'(q) = b + 2c × q, the cost of one more unit at that output.

The formula

  1. Vc=b×q+c×q2
  2. Tc=fc+Vc
Symbols used in the formula
SymbolMeaningUnit
fcFixed cost FC$
bLinear coefficient b$ per unit
cQuadratic coefficient c$ per unit²
qOutput qunits
VcVariable cost$
TcTotal cost C(q)$

Worked example

Fixed cost FC$5,000
Linear coefficient b ($ per unit)12
Quadratic coefficient c ($ per unit²)0.01
Output q (units)1,000
Variable cost ($)$22,000.00
Average total cost ($ per unit)$27.00
Average variable cost ($ per unit)$22.00
Marginal cost C'(q) ($ per unit)$32.00
  1. Vc=12×1,000+0.01×1,0002=22,000
  2. Tc=5,000+22,000=27,000

Total cost C(q) $27,000.00

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What does C(q) = 5,000 + 12q + 0.01q² give at q = 1,000?

Total cost $27,000.00, average total cost $27.00 per unit and marginal cost $32.00.

Where is average total cost lowest?

Where it equals marginal cost. For this function that is at q = √(FC ÷ c), about 707 units with the default numbers.

Related calculators