Cost Per Unit Calculator
Divide a total cost by the number of units produced to get your cost per unit.
Last updated · View algorithm, constants and default inputs (JSON)
About this calculator
Cost per unit is the simplest unit-economics measure: total spend divided by output. It is the starting point for pricing, margin and make-or-buy decisions.
Worked example
calculated with the default values below
Total cost 500 $ · Number of units 40 units Cost per unit 12.5000 $
General background references
Disclaimer
These calculators give estimates for general information only. They are not financial, tax or investment advice and do not take your personal circumstances into account. Before borrowing, investing or filing, confirm the numbers with a qualified adviser in your jurisdiction.
Implementation source
This record describes the implementation used by this page. It is not independent validation. External references, when available, support only the stated formula or definition; estimates and custom rules retain their own assumptions.
Formula and variables
CPU = TC ÷ Q
- TC
- Total cost
- Q
- Number of units
Cost per unit = total cost ÷ positive quantity. A zero or invalid quantity is an input error.
Frequently asked questions
What happens if the quantity is zero?
A unit cost requires a positive quantity. The calculator shows an input error for zero or negative quantities instead of reporting a zero cost per unit.