Calculate total manufacturing cost by adding direct materials, direct labor and manufacturing overhead, with optional cost per unit, COGM and COGS.

Use costs from the same period. Overhead means factory overhead only; exclude selling and administrative expenses.

Leave blank to skip cost per unit. This is an average cost, not a selling price.

COGM and COGS (optional)

Total Manufacturing Cost Formula

The core formula is the same in every mode. The other modes add steps before or after that core calculation. See OpenStaxโ€™s manufacturing cost-flow discussion. Inputs must use consistent accounting classifications and valuations; inconsistent balances producing negative materials used, COGM or COGS are rejected.

TMC = DM + DL + MOH
  • TMC = Total manufacturing cost for the period
  • DM = Direct materials used
  • DL = Direct labor
  • MOH = Manufacturing overhead (fixed plus variable)

When you have inventory records for direct materials, calculate materials used first. Use net purchases and exclude indirect-material withdrawals already counted in overhead; adjust records for returns, losses and other movements before using this simplified model:

DM Used = Beginning RM + Purchases - Ending RM

To extend TMC into cost of goods manufactured and cost of goods sold:

COGM = TMC + Beginning WIP - Ending WIP; COGS = Beginning FG + COGM - Ending FG
  • WIP = Work-in-process inventory
  • FG = Finished goods inventory
  • COGM = Cost of goods manufactured
  • COGS = Cost of goods sold

Assumptions: all costs belong to the same period, overhead is already allocated to production (not period expense), and indirect materials and indirect labor are inside MOH, not DM or DL. Selling, general, and administrative costs are not part of TMC.

The three calculator modes use these formulas as follows:

  • Direct totals applies TMC = DM + DL + MOH directly when you already have the three summary numbers.
  • From records derives direct materials used from the supplied inventory balances. Add fixed and variable manufacturing overhead yourself and enter the allocated total.
  • Optional inventory bridge extends either total task through WIP and finished goods to report COGM, COGS and COGM per good unit completed. Blank optional balances mean zero; good units must be positive. Three separate missing-component tasks subtract the two known components from TMC.

Reference Tables

These tables explain cost categories. The previously published share ranges below are illustrative and unsourced, not benchmark validation limits; the calculator does not apply them.

Cost component Previously published illustrative share (unverified) What belongs here
Direct materials40% to 60%Raw materials and components traced to the product
Direct labor15% to 30%Wages and payroll taxes for workers building the product
Manufacturing overhead20% to 35%Factory rent, utilities, depreciation, indirect labor, indirect materials, maintenance

Actual cost mix varies with the process, allocation method and reporting scope. No universal industry shares or acceptable ranges are assumed.

Item Manufacturing cost? Bucket
Steel used in a frameYesDirect materials
Assembly line wagesYesDirect labor
Factory supervisor salaryYesOverhead (indirect labor)
Lubricants and glueYesOverhead (indirect materials)
Factory utilitiesYesOverhead
Sales commissionsNoSelling expense
CEO salaryNoG&A expense
Office building rentNoG&A expense
Delivery truck fuelNoSelling expense

Worked Example and FAQ

Example. A shop has beginning raw materials of $5,000, purchases of $25,000, and ending raw materials of $4,000. Direct labor is $25,000. Fixed overhead is $10,000 and variable overhead is $5,000. They produced 1,000 units.

  1. Direct materials used: $5,000 + $25,000 - $4,000 = $26,000
  2. Manufacturing overhead: $10,000 + $5,000 = $15,000
  3. TMC: $26,000 + $25,000 + $15,000 = $66,000
  4. TMC divided by units: $66,000 / 1,000 = $66.00. This equals COGM per completed unit only when beginning and ending WIP are equal.

If beginning WIP was $60,000 and ending WIP was $40,000, COGM = $66,000 + $60,000 - $40,000 = $86,000. With beginning finished goods of $100,000 and ending finished goods of $80,000, COGS = $100,000 + $86,000 - $80,000 = $106,000. With the same 1,000 completed units, COGM per good unit is $86,000 / 1,000 = $86.00, not $66.00.

Is total manufacturing cost the same as cost of goods sold? No. TMC is manufacturing cost incurred for the period, which can include noncash allocated costs such as depreciation. COGS is the cost assigned to goods sold, which can include costs from earlier periods. WIP and finished goods inventory move costs between them.

Should I use direct materials purchased or direct materials used? Use materials used. Purchases that sit in raw materials inventory have not entered production yet.

Where do indirect materials go? In manufacturing overhead. Direct materials only include items you can trace to a specific unit.

Do I include depreciation? Include depreciation on factory equipment and the factory building in overhead. Depreciation on office equipment is a period expense, not a manufacturing cost.

What if my overhead share looks too high? Check whether non-factory costs slipped in. Office rent, sales salaries, and admin software are common mistakes. Also confirm that depreciation is split correctly between factory and non-factory assets.

How does TMC connect to pricing? A consistently scoped manufacturing cost per unit can inform planning, but does not determine a price floor or market price. Inventory changes can make TMC per unit differ from COGM per completed unit. Pricing also depends on operating costs, volume, capacity, demand and other assumptions.