What unit cost is
Unit cost is what it costs you to produce one unit of your product or provide one unit of your service: the total cost for a period divided by the units you produced in that same period. It includes your fixed costs (rent, supervisor’s salary, maintenance) and your variable costs (raw materials, packaging, labor paid by the piece). In Spain it is called coste unitario; it is the same concept.
Knowing it tells you how much you earn or lose on each sale and the lowest price you can charge without losing money. If you are going to use it to set a selling price, also add operating expenses (administration and sales) allocated per unit. The calculator on this page does both calculations and suggests a price for the margin you choose.
Unit cost formula
The basic formula is:
Unit cost = (fixed costs + variable costs) ÷ units produced
In abbreviations: CU = (CF + CV) ÷ Q. All amounts must be from the same period: if you use one month’s rent, use that month’s production.
If you also want the price to cover administration and sales expenses (GAV), use this variation:
Total unit cost = (CF + CV + GAV) ÷ Q
The first formula gives the production unit cost, which is used to determine the cost of what you make. The second gives the full cost that the price must recover before leaving you a profit.
How to use the calculator
- Enter your fixed costs for the period.
- Choose whether you have your variable costs as a total for the period or per unit, and enter the amount.
- Enter the units produced in the same period: pieces, dishes, or billable hours.
- If you wish, add the operating expenses you will allocate and your target margin on the price.
The result shows fixed cost per unit, variable cost per unit, unit cost, the suggested price before IVA with its equivalent markup, the price including IVA at 16% if you charge IVA, and a table showing your unit cost at half, 1.5 times, and 2 times your volume. Everything is calculated in your browser; we do not save what you enter.
Example 1: manufacturing workshop
A fictional workshop makes wooden chairs. In one month it has these costs:
- Fixed costs: rent $20,000, supervisor’s salary $25,000, utilities and maintenance $5,000. Total: $50,000.
- Variable costs per chair: wood $180, hardware and varnish $50, piecework labor $120. Total: $350 per chair.
If it produces 1,000 chairs in the month:
- Fixed cost per unit: $50,000 ÷ 1,000 = $50
- Variable cost per unit: $350
- Unit cost: $50 + $350 = $400
If it produces 2,000 chairs with the same rent and the same staff, fixed costs do not change, but they are spread across twice as many pieces:
- Fixed cost per unit: $50,000 ÷ 2,000 = $25
- Unit cost: $25 + $350 = $375
| Chairs per month | Fixed cost per unit | Variable cost per unit | Unit cost |
|---|---|---|---|
| 500 | $100.00 | $350.00 | $450.00 |
| 1,000 | $50.00 | $350.00 | $400.00 |
| 1,500 | $33.33 | $350.00 | $383.33 |
| 2,000 | $25.00 | $350.00 | $375.00 |
This is the spreading of fixed costs: producing more lowers unit cost, but by less and less, because the $350 in variable costs is not spread out. And there is a limit: beyond a certain volume you will need another machine, another shift, or a larger warehouse, and fixed costs will rise. If your volume cannot grow, the way forward is to reduce the costs themselves; here are strategies to reduce costs in a company.
Example 2: restaurant (cost per dish)
In a restaurant, unit cost is calculated per dish, using a standard recipe: the list of ingredients and quantities for one serving, with their purchase costs. A fictional small restaurant calculates its order of green enchiladas:
| Ingredient per serving | Cost |
|---|---|
| Tortillas | $6.00 |
| Shredded chicken | $22.00 |
| Green salsa | $8.00 |
| Cream and cheese | $12.00 |
| Rice and beans | $9.00 |
| Ingredients subtotal | $57.00 |
The restaurant estimates that it loses 5% of what it buys to waste (trimmings, spoilage, and oversized servings), so the dish’s variable cost is $57.00 × 1.05 = $59.85.
Its fixed costs for the month are $90,000 (rent, kitchen and dining room salaries, electricity, and other utilities), and it sells 3,000 dishes per month. Each dish is allocated $90,000 ÷ 3,000 = $30.00 in fixed costs, and the order’s unit cost comes to $59.85 + $30.00 = $89.85. If the restaurant seeks a 40% margin on the price, the suggested price before IVA is $89.85 ÷ (1 − 0.40) = $149.75.
If it had set the price using only the cost of ingredients ($57.00), it would have left out more than one third of its actual cost.
Example 3: services (cost per billable hour)
For services, the unit is usually a billable hour. A fictional four-person design firm has monthly fixed costs of $150,000: salaries $120,000, rent $18,000, software $6,000, and other expenses $6,000. It has almost no variable costs.
Each person works about 160 hours per month, but not all of those hours can be billed: internal meetings, sales, administration, and idle time take up a portion. The firm estimates 120 billable hours per person, 480 in total.
- Cost per billable hour: $150,000 ÷ 480 = $312.50
- If it divided by the 640 hours worked, it would get $234.38 per hour and unknowingly undercharge.
- With a 40% margin on the price, the suggested rate before IVA is $312.50 ÷ 0.60 = $520.83 per hour.
To turn an hourly rate into a project proposal or a monthly retainer, see the guide to setting prices for services.
Fixed cost per unit, variable cost per unit, and direct cost
Fixed cost per unit. This is the portion of fixed costs assigned to each unit: fixed costs for the period ÷ units produced. Total fixed cost does not change with volume in the short term, but the amount per unit does: it falls when you produce more and rises when you produce less. In the workshop example, it went from $50 to $25 per chair.
Variable cost per unit. This is the cost of each additional unit: raw materials, packaging, sales commissions, and labor paid by the piece. It usually stays steady per unit; the total is what grows with volume.
Direct cost per unit. This is a cost you can attribute to a specific unit without allocating anything: the wood for a chair, the ingredients for a dish, or a designer’s hours assigned to a project. Direct and variable are not synonyms: the fixed salary of a worker dedicated to a single production line is a direct cost of that line, but it does not change if the line produces one more piece. The counterpart to direct costs is indirect costs, such as rent or supervision, which are allocated using some criterion (units, machine hours, square meters).
Variable cost per unit is also used to calculate the contribution margin (price − variable cost per unit), which is the basis for the break-even point: how many units you must sell to cover your fixed costs.
Unit cost, unit price, and unit value
All three are expressed per unit, but they measure different things:
| Concept | What it is | Workshop example |
|---|---|---|
| Unit cost | What it costs you to produce one unit | $400 per chair |
| Unit price | What you charge for one unit | $571.43 per chair before IVA, with a 30% margin on the price |
| Unit value | The amount per unit at which something is recorded or valued: the value of each unit on an invoice, the cost at which each inventory item is valued, or the value per square meter in an appraisal | The value of each chair on the sales invoice |
The difference between unit price and unit cost is your profit per unit: in the example, $571.43 − $400.00 = $171.43 per chair.
Unit price in construction (APU)
In construction, “unit price” has a technical meaning: it is the amount paid for each unit of a construction work item, such as a square meter of wall, a cubic meter of concrete, or an installed piece. It is documented in a unit price analysis (APU), which breaks down the item’s direct costs (materials, labor, machinery, and equipment) and adds a share of indirect costs, financing, profit, and additional charges. It is the same logic as this page, applied item by item.
Elements of production cost
The production cost of a product consists of three elements:
- Direct raw materials: the materials that become part of the product and can be measured per unit, such as the wood for the chair or the ingredients for the dish.
- Direct labor: the work of those who transform the raw materials, such as the carpenter or the cook, whether paid by the piece or for time that can be assigned to the product.
- Indirect manufacturing costs: everything else involved in production that cannot be assigned to a specific unit: plant rent, supervision, maintenance, machinery depreciation, plant energy, and auxiliary materials.
The sum of direct raw materials and direct labor is called prime cost; the sum of direct labor and indirect costs is called conversion cost. Administration and sales expenses are not part of production cost: they are treated as period expenses, although when setting a price it makes sense to allocate them, as the calculator’s GAV variation does.
In your financial statements, your accountant determines which items are added to inventory and how cost of goods sold is calculated under the accounting standards your company applies. This calculator is for making pricing decisions, not for valuing inventories.
From unit cost to selling price
Unit cost is the floor: below it, you lose money on every sale. To arrive at a price, you add your target margin, and there are two ways to express it that should not be confused:
- Margin on price: profit as a percentage of the price. Price = cost ÷ (1 − margin).
- Markup or margin on cost: profit as a percentage of cost. Price = cost × (1 + markup).
With a cost of $400 and a 30% margin on the price, the price is $571.43; the equivalent markup is 0.30 ÷ 0.70 = 42.86%. If instead you add 30% to the cost, you charge $520 and your actual margin is 23.08%, not 30%. The calculator shows both figures. To try several margins on a cost you already know, use the margin and selling price calculator, and review the concept of margin on price in the glossary.
IVA comes last. The calculator works with amounts before IVA. If your business charges IVA, the tax is passed on to the customer explicitly and separately (Ley del IVA, article 1), so it is added to the suggested price, not to the cost. At the general rate of 16%, the chair priced at $571.43 is charged at $662.86. Whether the IVA you pay your suppliers should be included in or excluded from your cost depends on your tax situation; review it with your accountant before entering your costs.
Common mistakes when calculating unit cost
- Forgetting waste. Material that is cut away, spoils, or is wasted also has to be paid for. Add it to variable cost, as the restaurant did with its 5%.
- Failing to allocate rent and other fixed costs. Calculating with raw materials alone gives a cost that looks profitable but is not.
- Mixing amounts with IVA and without IVA. If some costs include IVA and others do not, the result cannot be compared with a price before IVA. Enter everything using the same approach.
- Dividing by capacity instead of actual production. If your plant can make 2,000 pieces but made 1,000 this month, the fixed cost is allocated across 1,000. For services, divide by billable hours, not hours worked.
- Using an atypical month. A peak season or an extraordinary purchase distorts the average. Use several months or a representative period.
- Leaving out scattered expenses. Software, travel expenses, courier services, and small purchases paid with personal cards and reimbursed weeks later often do not make it fully into the accounting records, leaving your fixed costs below what you actually spend.
That last error is a data issue, not a formula issue. With Clara’s expense management, company expenses are paid with corporate cards, and each expense is classified and kept with its receipt on a single platform, so the fixed cost figure you enter in the calculator starts with what was actually spent.
Sources
- Ley del Impuesto al Valor Agregado, Cámara de Diputados: article 1, the explicit and separate passing on of the tax and the general rate of 16%.
- Formulas for unit cost, fixed and variable cost per unit, margin, and markup: cost accounting arithmetic; they do not come from a tax provision.
This content is informational and does not constitute tax, accounting, or legal advice. The examples use fictional businesses and figures. Values verified as of November 23, 2026. Before setting prices or valuing inventories with these calculations, consult your accountant.