Home › Calculators › Cost Per Unit Calculator

Cost Per Unit Calculator

Work out what each unit really costs to make. Enter one batch's materials, packaging, labor, setup and other costs, choose how to allocate overhead and allow for waste, then get the cost per unit and a selling price at your target margin.

Last updated:

Batch
%

Units lost to defects, testing or spoilage.

Direct costs per batch
$
$
h
$

Wage plus payroll costs.

$

Fixed per batch: cleaning, machine setup, test runs.

$

Energy, consumables, freight-in for this batch.

Overhead allocation
Allocate overhead by
$

Rent, utilities, insurance, software, admin.

%
Pricing
%

Profit as a share of the selling price.

Enter your values to see the result.
Advertisement
Advertisement

How to use the Cost Per Unit Calculator

  1. Enter the batch size and the share of units you usually lose to waste or rejects.
  2. Add the direct costs of one batch: materials, packaging per unit, labor hours and hourly cost, setup and other costs.
  3. Choose an overhead method: monthly overhead divided by monthly output, or a percentage of direct cost or labor.
  4. Set your target margin to get a suggested selling price.
  5. Check the tables to see how batch size and margin change the unit cost and price.

Cost per unit formula

  • Direct labor = labor hours per batch × labor cost per hour
  • Direct cost = materials + packaging per unit × batch size + direct labor + setup + other direct costs
  • Overhead = (monthly overhead ÷ units per month) × good units, or direct cost × overhead %, or labor × overhead %
  • Good units = batch size × (1 − waste %)
  • Cost per unit = (direct cost + overhead) ÷ good units
  • Price at a target margin = cost per unit ÷ (1 − margin %)

Example (the default candle batch): materials $640 + packaging $0.45 × 200 = $90 + labor 16 h × $22 = $352 + setup $60 + other $35 gives $1,177 of direct cost. With 3% waste there are 194 good units; overhead of $2,400 ÷ 1,600 units = $1.50 per unit adds $291. Total $1,468 ÷ 194 = $7.57 per unit, and a 40% margin price is $7.57 ÷ 0.6 = $12.61.

Which costs go where

CategoryExamplesChanges with batch size?
Direct materialsRaw materials, ingredients, components, fabric, waxYes, roughly in proportion
PackagingBoxes, labels, jars, bags, insertsYes, per unit
Direct laborHours spent making, assembling and packingMostly yes
SetupMachine setup, changeover, cleaning, test piecesNo, fixed per batch
OverheadRent, utilities, insurance, equipment, software, adminNo, fixed per month

Tips for accurate unit costs

  • Use the cost of the labor including payroll taxes and benefits, not just the wage.
  • Count your own time at a fair hourly rate, even if you do not pay yourself yet.
  • Recheck material prices every few months; a supplier increase flows straight into unit cost.
  • Selling costs such as marketplace fees, shipping to customers and payment fees are not production costs; cover them in your price or margin.

Frequently asked questions

What is the cost per unit formula?

Cost per unit = total production cost ÷ number of good units produced. Total production cost is direct materials + direct labor + other direct costs + allocated overhead. For example, $1,500 of total cost for 194 good units is $7.73 per unit.

What is the difference between direct costs and overhead?

Direct costs can be traced to the batch: materials, packaging and the labor hours spent making it. Overhead is the cost of running the business that is shared by all products, such as rent, utilities, insurance, equipment depreciation and admin.

How should I allocate overhead to each unit?

The simplest method divides monthly overhead by the number of units made each month. Manufacturers often use a rate based on labor cost or machine hours, and small shops often add a percentage of direct cost. Pick the method that matches what drives your overhead.

Why does waste raise the cost per unit?

You pay for the materials and time that went into rejected units, but you can only sell the good ones. A 5% waste rate means the batch cost is spread over 95% of the units, raising the cost of each sellable unit by about 5.3%.

How do I turn cost per unit into a selling price?

To hit a target gross margin, divide the unit cost by (1 − margin). A $7.73 unit cost at a 40% margin gives a price of $7.73 ÷ 0.60 = $12.88. Adding 40% markup instead would give only $10.82, which is a 28.6% margin.

Why is the cost per unit lower for larger batches?

Fixed costs per batch, such as setup, cleaning and test runs, are shared by more units. Materials and labor per unit stay roughly the same, so the savings come from spreading fixed costs. The batch size table shows this effect.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Cost of Goods Sold CalculatorCOGS from beginning inventory, purchases, direct costs and ending inventory, plus gross margin.Markup CalculatorFind the selling price from cost and markup, or the markup and margin from cost and price.Profit Margin CalculatorGross margin, markup, cost or price: solve for any one, single or bulk.Break Even CalculatorFind break-even units and revenue, contribution margin, margin of safety and a cost-volume chart.Receipt MakerFill in a receipt template with items and tax, then print or save PDF.Car Depreciation CalculatorEstimate your car's value over time and its projected resale price.CTR CalculatorCalculate click-through rate and compare it with industry benchmarks.Conversion Rate CalculatorCalculate e-commerce conversion rate, revenue per visitor and goals.CPM CalculatorSolve CPM, cost, impressions, CTR and CPC for ad campaigns.Quote Estimate GeneratorCreate a quote or estimate with line items and tax, then save as PDF.ROAS Calculator (Return on Ad Spend)Calculate ROAS, break-even ROAS and profit for each ad channel.Customer Lifetime Value CalculatorCalculate customer lifetime value, LTV:CAC ratio and CAC payback from ARPU and churn.Churn Rate CalculatorCalculate customer churn and retention rates and convert monthly churn to annual.YouTube Money CalculatorEstimate YouTube earnings per day, month and year from views and RPM by niche.Instagram Engagement Rate CalculatorCalculate Instagram engagement rate by followers or reach and compare it to benchmarks.Ecommerce Profit CalculatorNet profit, margin, markup and break-even ROAS per order after fees, ads and returns.Amazon FBA CalculatorEstimate Amazon FBA fees, profit per unit, margin, ROI and break-even price.Etsy Fee CalculatorEtsy listing, transaction, processing and Offsite Ads fees, payout and net profit.eBay Fee CalculatoreBay final value fee, per-order fee, ad fees, payout and net profit on any sale.Stock Profit CalculatorStock trade profit and % return after commissions, plus the break-even sell price.Dollar Cost Averaging CalculatorSee units bought, average cost, value and profit for regular buys at your own price list.Startup Runway CalculatorProject cash, burn rate and runway month by month, with growth, break-even and zero-cash date.SaaS Pricing CalculatorModel flat, per-seat, tiered and volume plans with annual discounts to get MRR, ARR and ARPU.Employee Cost CalculatorWork out the true cost of an employee: payroll taxes, benefits, overhead and real hourly cost.Inventory Turnover CalculatorInventory turnover ratio and days inventory outstanding from COGS or sales and average stock.Unit Price CalculatorCompare up to 4 products by price per ounce, pound, liter or item and find the best deal.Cap Rate CalculatorCalculate a rental property's NOI, cap rate and optional cash-on-cash return.Depreciation CalculatorStraight-line, declining balance, double declining and sum-of-years depreciation schedules.Crypto Profit CalculatorCalculate crypto trade profit, ROI and break-even price after buy and sell fees.PayPal Fee CalculatorWork out PayPal fees, what you receive, and how much to ask for to get an exact amount.Stripe Fee CalculatorCalculate Stripe fees and payouts, or how much to charge to receive an exact amount.Net Promoter Score CalculatorCalculate NPS from promoter, passive and detractor counts or pasted 0–10 survey scores.CPC CalculatorCalculate cost per click from ad spend and clicks, plus CPM, CTR, CPA and ROAS.P/E Ratio CalculatorPrice-to-earnings ratio, earnings yield and PEG ratio from share price, EPS and growth.WACC CalculatorWeighted average cost of capital from equity, debt, their costs and the tax rate.Payback Period CalculatorPayback and discounted payback period for an investment with even or uneven cash flows.Contribution Margin CalculatorContribution margin per unit, CM ratio, operating profit and break-even point.Customer Acquisition Cost CalculatorCAC from marketing and sales spend, plus LTV:CAC ratio and payback months.Crypto Price by Market Cap CalculatorPrice a coin would reach at a target market cap or at another coin's market cap.Current Ratio CalculatorCurrent assets ÷ current liabilities with interpretation, working capital and target solver.Day Rate CalculatorContractor or consultant day rate from income, benefits, expenses and billable days.ESPP CalculatorEmployee stock purchase plan gain: discount, lookback, shares, return and how a sale is taxed.Free Cash Flow CalculatorFree cash flow from operating cash flow and CapEx, plus FCFF, FCFE, FCF margin and per share.Gold Value CalculatorScrap gold melt value from weight, karat and spot price, plus a dealer payout estimate.Handmade Product Pricing CalculatorPrice handmade items from materials, time, overhead and profit, with wholesale and retail.1% Rule CalculatorScreen a rental: 1% and 2% rule pass/fail, 50% rule expenses, cash flow and max purchase price.Operating Margin CalculatorOperating margin from revenue, COGS and expenses, compared with gross, EBITDA and net margin.Quick Ratio CalculatorAcid-test ratio from cash, securities and receivables vs current liabilities, explained.Resale Profit CalculatorGet flipping profit, margin and ROI after platform and payment fees, shipping and supplies.Sales Forecast CalculatorProject 12-36 months of revenue from baseline, growth rate, churn and seasonality.70% Rule CalculatorHouse flipping maximum allowable offer: ARV × 70% − repairs, with adjustable % and wholesale fee.Silver Melt Value CalculatorSilver melt value from weight, purity and spot price, with sterling and US coin presets.Startup Cost CalculatorTotal capital to start a business: one-time and monthly costs, runway buffer and contingency.Stop Loss CalculatorFind your stop-loss price from a % or dollar risk, the loss per share and trailing stop levels.TAM SAM SOM CalculatorSize a market top-down or bottom-up: TAM, SAM and SOM in revenue and customers, plus a chart.Tariff CalculatorImport tariff and duty owed, landed cost per unit and the price rise needed to absorb it.Wholesale to Retail Price CalculatorSet wholesale price and MSRP from unit cost and margins, with an optional distributor tier.ARR CalculatorAnnual recurring revenue from MRR or contracts, with an ARR bridge, NRR and GRR.Asset Turnover Ratio CalculatorRevenue ÷ average total assets, plus fixed asset turnover, ROA and a benchmark check.Burn Multiple CalculatorNet burn divided by net new ARR, with a rating from amazing to bad and runway.CPV Calculator (Cost Per View)Cost per view from spend and views, views from a budget, and CPV to CPM conversion.Crypto Liquidation Price CalculatorLiquidation price of a leveraged long or short crypto position with isolated margin.Depreciation Recapture CalculatorTax on selling depreciated property: §1250 gain at up to 25%, §1245 recapture and capital gain.Discount Impact on Profit CalculatorHow many more sales you need after a discount to keep the same profit, from your margin.DuPont Analysis CalculatorSplit ROE into profit margin, asset turnover and leverage, with 3-step and 5-step models.Email Marketing Metrics CalculatorOpen rate, CTR, click-to-open, bounce, unsubscribe and revenue per email from campaign counts.Enterprise Value CalculatorEV from market cap, debt, preferred, minority interest and cash, plus EV/EBITDA and EV/Sales.Financial Advisor Fee CalculatorSee what a 1% (or tiered) AUM advisor fee costs your portfolio over the years.
See all 209 Business & Marketing Calculators →