# Cost Function Calculator

URL: https://speedycalculator.com/calculators/finance/cost-function/
Last updated: 2026-10-25

> The cost function calculator builds a linear cost function C(Q) = FC + VC × Q from fixed and variable costs – or from two known output and cost points – and gives total, variable and average cost at any quantity.

## Inputs

- I know
- Fixed cost
- Variable cost per unit
- Quantity 1
- Total cost at quantity 1
- Quantity 2
- Total cost at quantity 2
- Quantity to evaluate

## Results

- Variable cost per unit
- Fixed cost
- Total variable cost
- Total cost C(Q)
- Average cost per unit

## Formula

```
C(Q) = FC + VC × Q
From two points: VC = (C₂ − C₁) ÷ (Q₂ − Q₁); FC = C₁ − VC × Q₁
Average cost = C(Q) ÷ Q
```

## Explanation

A cost function links the quantity produced with the total cost. The linear form splits costs into a fixed part that does not change with output and a variable part that rises with each unit – a good approximation over normal output ranges.

### How to use the Cost Function Calculator

- **I know**
- **Fixed cost**
- **Variable cost per unit**
- **Quantity 1**
- **Total cost at quantity 1**
- **Quantity 2**
- **Total cost at quantity 2**
- **Quantity to evaluate**

Results update as you type, and every field accepts the units shown in its menu.

### How it works

Choose whether you know the fixed and variable costs or two cost points, then enter the quantity to evaluate.

### Tips

- Use figures for the same period (a month, a quarter or a year) for every input so ratios compare like with like.
- Track the metric over time – the trend usually tells you more than a single value.
- Compare your result with industry benchmarks, which vary a lot between sectors.
- Treat the result as a starting point for a decision, then check the assumptions behind each input.

### Common mistakes to avoid

- Mixing monthly and yearly numbers in the same calculation.
- Using revenue where the formula needs profit (or the other way round).
- Forgetting hidden costs such as taxes, fees, overheads or your own time.

### Inputs explained

FieldWhat to enterI knowChoose one: Fixed cost and variable cost per unit, Total cost at two quantitiesFixed costAmount in your currencyVariable cost per unitAmount in your currencyQuantity 1A numberTotal cost at quantity 1Amount in your currencyQuantity 2A numberTotal cost at quantity 2Amount in your currencyQuantity to evaluateA number

### What each result means

- **Total variable cost** = [Variable cost per unit]×[Quantity to evaluate]
- **Total cost C(Q)** = [Fixed cost] + [Variable cost per unit]×[Quantity to evaluate]
- **Average cost per unit** = [Total cost C(Q)]÷[Quantity to evaluate]

### Example values

How the main result changes when **Fixed cost** changes and everything else stays at the example values above:

Fixed costTotal cost C(Q)2,5005,5003,7506,7505,0008,0006,2509,2507,50010,50010,00013,000

## Worked example

Inputs — I know: Fixed cost and variable cost per unit; Fixed cost: $5,000; Variable cost per unit: $12; Quantity 1: 100; Total cost at quantity 1: $6,200; Quantity 2: 400; Total cost at quantity 2: $9,800; Quantity to evaluate: 250.

Results — Variable cost per unit = $12.00; Fixed cost = $5,000.00; Total variable cost = $3,000.00; **Total cost C(Q) = $8,000.00**; Average cost per unit = $32.00.

## FAQ

**What is a cost function?**
An equation that gives total cost for any output level, such as C(Q) = 5,000 + 12Q.

**How do I find the cost function from data?**
Use two output levels and their costs: the slope is the variable cost.

**Is the cost function always linear?**
No – real costs can curve, but a straight line works over normal ranges.

**What formula does the Cost Function Calculator use?**
C(Q) = FC + VC × Q.

