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
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.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Fixed cost FC, in dollars: enter 0 or more.
- Linear coefficient b ($ per unit): enter 0 or more.
- Quadratic coefficient c ($ per unit²): enter 0 or more.
- Output q (units): enter 0 or more.
- 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
| Symbol | Meaning | Unit |
|---|---|---|
| Fixed cost FC | $ | |
| Linear coefficient b | $ per unit | |
| Quadratic coefficient c | $ per unit² | |
| Output q | units | |
| Variable cost | $ | |
| Total 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 |
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.