Skip to content
Clara
  • Pay

    • Corporate cardRules for every card, before spending
    • TravelPayA virtual card for each booking
    • Clara BlackLounge access and protection when traveling
    • Clara Fleet CardOne monthly CFDI for your fleet
    • Accounts payableMultiple suppliers, one payment batch

    Get paid and close

    • CollectionsSAT invoices and automatic payment reminders
    • Spend managementPolicies and receipts for every expense
    • Accounting closeYour fields, with data ready for your ERP

    Platforms

    • Clara FleetConnect vehicles, drivers and spending
    • Tax intelligenceUnderstand your taxes before month-end
    • Recupera FacturasFrom a WhatsApp photo to your CFDI
    • Clara MarketNewCompare options with one application
    • Clara RouterBetaOne endpoint for your AI providers
    Clara GlobalOperate in other countries on the same platform.Discover Clara Global

    Across the platform

    • Clara IntelligenceChat with your financial data
    • IntegrationsNative connections to SAP, NetSuite and more
    • MobileApprove expenses and capture receipts from your phone
    • SecurityBank-grade protection on every transaction
    • APIAPI, MCP and developer docs
  • By company size

    • Startups
    • Small business
    • Mid-sized companies
    • Enterprise

    By industry

    • Advertising and Marketing
    • Retail
    • Construction
    • Travel
    • Transport and logistics

    By role

    • For accountants
    • Benefits and Flexible Compensation
    ““If before we invested 1 week in finding pending invoices, now it takes us no more than 1 day.”Lottus“The only responsibility of those who travel is to request the invoice; the accounting team can automatically track where, when and how much the expense was for. We have completely eliminated expense verification.”Monific“I remember that when Clara arrived it was super easy. In less than 24 hours I could have my card and the employees' cards too, which allows us to keep operating immediately and with total normality.”RunaMore stories

    Why Clara

    • Switch to Clara
  • Learn

    • Blog
    • Reports and intelligence
    • AI Monitor
    • Fuel monitor
    • Events and webinars
    • Tools

    Company

    • About
    • Newsroom
    • Product releases
    • Careers (opens in a new tab)
    • Partners
    • Contact
    • Help (opens in a new tab)
    Clara MCPConnect Clara with Claude, ChatGPT, and other compatible AI.Discover Clara MCP
  • Pricing
    • México
    • Colombia
    • Brasil
    • Global
  • Customer login
See the demo (opens in a new tab)Sign up

Pay

  • Corporate cardRules for every card, before spending
  • TravelPayA virtual card for each booking
  • Clara BlackLounge access and protection when traveling
  • Clara Fleet CardOne monthly CFDI for your fleet
  • Accounts payableMultiple suppliers, one payment batch

Get paid and close

  • CollectionsSAT invoices and automatic payment reminders
  • Spend managementPolicies and receipts for every expense
  • Accounting closeYour fields, with data ready for your ERP

Platforms

  • Clara FleetConnect vehicles, drivers and spending
  • Tax intelligenceUnderstand your taxes before month-end
  • Recupera FacturasFrom a WhatsApp photo to your CFDI
  • Clara MarketNewCompare options with one application
  • Clara RouterBetaOne endpoint for your AI providers

Across the platform

  • Clara IntelligenceChat with your financial data
  • IntegrationsNative connections to SAP, NetSuite and more
  • MobileApprove expenses and capture receipts from your phone
  • SecurityBank-grade protection on every transaction
  • APIAPI, MCP and developer docs
Clara GlobalOperate in other countries on the same platform.Discover Clara Global

By company size

  • Startups
  • Small business
  • Mid-sized companies
  • Enterprise

By industry

  • Advertising and Marketing
  • Retail
  • Construction
  • Travel
  • Transport and logistics

By role

  • For accountants
  • Benefits and Flexible Compensation

Why Clara

  • Switch to Clara
““If before we invested 1 week in finding pending invoices, now it takes us no more than 1 day.”Lottus“The only responsibility of those who travel is to request the invoice; the accounting team can automatically track where, when and how much the expense was for. We have completely eliminated expense verification.”Monific“I remember that when Clara arrived it was super easy. In less than 24 hours I could have my card and the employees' cards too, which allows us to keep operating immediately and with total normality.”RunaMore stories

Learn

  • Blog
  • Reports and intelligence
  • AI Monitor
  • Fuel monitor
  • Events and webinars
  • Tools

Company

  • About
  • Newsroom
  • Product releases
  • Careers (opens in a new tab)
  • Partners
  • Contact
  • Help (opens in a new tab)
Clara MCPConnect Clara with Claude, ChatGPT, and other compatible AI.Discover Clara MCP
Pricing
Customer login
  • México
  • Colombia
  • Brasil
  • Global
See the demo (opens in a new tab)Sign up
Tax IntelligenceTax Intelligence
FeaturesPricingSecurityTax glossaryToolsArticles
Sign up (opens in a new tab)
On this page
FeaturesPricingSecurityTax glossaryToolsArticlesSign up (opens in a new tab)

Unit cost: what it is, formula, and calculator with examples in pesos

Reviewed by Aranza Bracho·November 23, 2026

Calculate the unit cost of your product or service, its fixed and variable portions, and the selling price for your target margin.

Start now
$
$
$
Fixed cost per unit$50.00
Variable cost per unit$350.00
Unit cost$400.00
Suggested price before IVA$571.43
Profit per unit$171.43
Equivalent markup on cost42.86%
Price with 16% IVA (if you charge IVA)$662.86
UnitsFixed cost per unitUnit costSuggested price before IVA
500$100.00$450.00$642.86
1,000 (your volume)$50.00$400.00$571.43
1,500$33.33$383.33$547.62
2,000$25.00$375.00$535.71

How we calculate it: unit cost = (fixed costs + variable costs) ÷ units. Suggested price = unit cost ÷ (1 − margin); equivalent markup = margin ÷ (1 − margin). The table compares your cost at half, 1.5 times, and 2 times your volume, with the same fixed costs and variable cost per unit. Enter all amounts using the same IVA treatment. The calculation runs in your browser, and we do not save the data.

How this is calculated

Methodology: the formulas are cost-accounting arithmetic and do not come from any tax provision. Unit fixed cost = fixed costs ÷ units; unit variable cost = total variable costs ÷ units (or the per-unit amount you enter); unit cost = (fixed costs + variable costs + operating expenses) ÷ units. Suggested price excluding IVA = unit cost ÷ (1 − margin on price); equivalent markup = margin ÷ (1 − margin); the price including IVA adds the general 16% rate only for those who charge IVA. The sensitivity table recalculates the cost at 0.5, 1, 1.5 and 2 times the volume using the same fixed costs and the same variable cost per unit. Amounts are rounded to two decimal places only when the result is displayed.

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

  1. Enter your fixed costs for the period.
  2. Choose whether you have your variable costs as a total for the period or per unit, and enter the amount.
  3. Enter the units produced in the same period: pieces, dishes, or billable hours.
  4. 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 monthFixed cost per unitVariable cost per unitUnit 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 servingCost
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:

ConceptWhat it isWorkshop example
Unit costWhat it costs you to produce one unit$400 per chair
Unit priceWhat you charge for one unit$571.43 per chair before IVA, with a 30% margin on the price
Unit valueThe 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 appraisalThe 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:

  1. 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.
  2. 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.
  3. 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.

Frequently asked questions

We answer the most common questions about unit cost and this calculator.

What is unit cost? Can you give an example?

It is what it costs to produce one unit: the total cost for a period divided by the units produced in that period. For example, a workshop with $50,000 in monthly fixed costs and $350 in variable costs per chair that makes 1,000 chairs has a unit cost of $400 per chair: $50 in fixed costs plus $350 in variable costs.

How do you calculate the unit cost of a product?

Add the fixed costs and variable costs for the period, and divide the total by the units you produced in that same period: CU = (CF + CV) ÷ Q. If you also want the price to cover administration and sales, add those expenses before dividing.

What is fixed cost per unit?

It is the portion of fixed costs allocated to each unit: fixed costs for the period ÷ units produced. It falls when you produce more, because the same amount is spread across more pieces, and rises when you produce less.

What is the difference between unit cost and unit price?

Unit cost is what it costs you to produce one unit; unit price is what you charge for it. The difference between the two is your profit per unit. If a chair costs you $400 and you sell it for $571.43 before IVA, you earn $171.43 per chair.

Does unit cost include IVA?

The calculator works with amounts before IVA and adds IVA at 16% to the price only if you charge IVA. Whether the IVA you pay on your purchases should be included in or excluded from your cost depends on your tax situation; confirm this with your accountant. The important thing is to enter all amounts using the same approach.

What are the 4 types of costs?

One common classification divides costs into fixed (they do not change with volume, such as rent), variable (they change with each unit, such as raw materials), direct (they can be attributed to a specific unit), and indirect (they are allocated across several units, such as supervision). The same cost can be both fixed and indirect.

Why does unit cost fall when I produce more?

Because fixed costs are spread across more units. In the workshop example, fixed cost per chair goes from $50 to $25 when production doubles, and unit cost falls from $400 to $375. Variable cost per unit is not spread out, so each increase in volume reduces unit cost by a smaller amount.

Reach month-end knowing
how much you’ll pay

Connect your RFC today and get your tax information in order.

LatAm’s fastest-growing company, two consecutive years · Financial Times and Statista

Sign up→Request a guided demo→

Related calculators:Margin and Selling PriceBreak-Even PointIVA 16% / 8% Calculator

Clara Tax Intelligence

Clara Tax Intelligence — tax visibility, SAT compliance, and intelligence for Mexican companies.

México

Product

  • Features
  • Pricing
  • Security
  • Tax glossary
  • Resources
  • Tools

Company

  • contacto@clara.com
  • Log in (opens in a new tab)

Legal

  • Terms and Conditions
  • Privacy
  • Trust Center (opens in a new tab)

Clara

  • Clara México
  • Corporate card
  • Clara Intelligence
  • Pricing
  • Customers
  • Blog
  • Help center (opens in a new tab)

México

Clara CF TECH, S.A. de C.V.
Av. Sonora 46, Roma Nte., Cuauhtémoc, Mexico City
+52 55 70 05 51 96
contacto@clara.com

CF TECH, S.A. DE C.V., SOFOM E.N.R.; domicilio en Av. Sonora 46, Roma Nte., Cuauhtémoc, Ciudad de México. Teléfono: (+52) 55 70 05 51 96.

© 2026 Clara Tax Intelligence. All rights reserved.
Start now