Cost of goods manufactured (COGM) is the total cost of everything your factory finished producing during a period: direct materials, direct labor, and manufacturing overhead, adjusted for work-in-process inventory. It's one of the core numbers in manufacturing accounting, and it feeds directly into your cost of goods sold.
This guide from Anchor AI Tools covers the exact formula, a full worked example, the difference between COGM and COGS (a mix-up that trips up a lot of new manufacturing accountants), and the most common mistakes to avoid.
Quick Answer: Cost of Goods Manufactured = Beginning Work-in-Process (WIP) Inventory + Total Manufacturing Costs โ Ending WIP Inventory, where Total Manufacturing Costs = Direct Materials + Direct Labor + Manufacturing Overhead. For example, $40,000 beginning WIP + $300,000 in total manufacturing costs โ $35,000 ending WIP = $305,000 COGM.
COGM = Beginning WIP + (Direct Materials + Direct Labor + Overhead) โ Ending WIP
Total Manufacturing Costs = Direct Materials + Direct Labor + Manufacturing OverheadIn plain terms: COGM tells you the cost of everything that finished production and moved out of the factory floor into finished goods inventory during the period, not everything you spent money on, and not everything you sold.
A furniture manufacturer wants to calculate COGM for the quarter.
| Line item | Amount |
|---|---|
| Direct materials used | $150,000 |
| Direct labor | $90,000 |
| Manufacturing overhead | $60,000 |
| Total manufacturing costs | $300,000 |
| + Beginning WIP inventory | $40,000 |
| โ Ending WIP inventory | ($35,000) |
๐ Calculation
COGM = $40,000 + $300,000 โ $35,000
That $305,000 is the cost of everything that finished production this quarter and moved into finished goods inventory, ready to be sold. It's the number that flows into the cost of goods sold calculation, covered next.
COGM and cost of goods sold (COGS) sound alike and use overlapping numbers, but they answer different questions, and mixing them up is one of the most common mistakes in manufacturing accounting.
COGM = cost of goods finished this period ยท COGS = cost of goods sold this period
COGS = Beginning Finished Goods Inventory + COGM โ Ending Finished Goods InventoryCOGM tracks goods moving from work-in-process into finished goods inventory. COGS tracks goods moving out of finished goods inventory because they were sold. A company can finish producing $305,000 of goods (COGM) in a quarter while only selling $280,000 worth (COGS). The rest sits in finished goods inventory, unsold, at quarter's end.
Manufacturing overhead includes every production cost that isn't direct materials or direct labor. These are costs that support the factory floor but can't be traced to one specific unit:
| Included in overhead | Excluded from overhead |
|---|---|
| Indirect materials (glue, lubricants, small parts) | Sales & marketing costs |
| Indirect labor (supervisors, maintenance staff) | Administrative salaries |
| Factory rent, utilities, and insurance | Office rent and utilities |
| Equipment depreciation | Interest expense |
| Quality control and factory maintenance | Research & development (usually) |
The dividing line is simple: if the cost happens on the factory floor to support production, it's manufacturing overhead. If it happens outside the factory, whether selling, administration or finance, it's a period cost and doesn't belong in COGM at all.
Confusing COGM with COGS. They use different inventory accounts (work-in-process vs. finished goods) and answer different questions: goods finished vs. goods sold.
Leaving out indirect costs. Manufacturing overhead is easy to under-count if you only think about direct materials and labor. Factory rent, depreciation, and indirect labor all belong in the total.
Forgetting to adjust for WIP inventory. Total manufacturing costs alone isn't COGM. You have to add beginning WIP and subtract ending WIP to capture only what actually finished production.
Mixing in period costs. Sales, marketing, and administrative expenses are period costs, not manufacturing costs, and should never be included in manufacturing overhead.
This comes up constantly for manufacturing accountants and controllers closing the books each period, cost accountants building standard costs, small manufacturers pricing products based on true production cost, and finance teams preparing the cost of goods sold section of an income statement.
Also calculating the next step? See our companion guide on how to calculate total manufacturing cost. Need a quick profitability check instead? Try our margin calculation guide for Excel.
Need more free calculators and formula guides?
Explore Free Tools โTotal Manufacturing Cost
The direct materials, labor, and overhead formula.
Margin in Excel
Calculate profit margin from revenue and cost.
Home Replacement Cost
Estimate the cost to rebuild a home.
Median in Excel
Find the typical value in a dataset with outliers.
Percentage Calculator
Calculate percentage increase, decrease, and discounts.
Every formula and worked example in this guide is checked against its standard method before publishing ยท How we check our tools
This guide is for general information. Confirm figures you will act on with a qualified professional.
Written by Amara Taylor for Anchor AI Tools ยท Last reviewed September 13, 2026 ยท ยฉ 2026 Anchor AI Tools