How to Calculate Cost of Goods Manufactured (COGM)

๐Ÿ“… Updated September 13, 2026 โฑ 7 min read โœ๏ธ By Amara Taylor
Factory production line used to illustrate how to calculate cost of goods manufactured

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.

The COGM Formula

COGM = Beginning WIP + (Direct Materials + Direct Labor + Overhead) โˆ’ Ending WIP

Total Manufacturing Costs = Direct Materials + Direct Labor + Manufacturing Overhead

In 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.

Step-by-Step Calculation

  1. Add up direct materials used. Beginning raw materials inventory + purchases โˆ’ ending raw materials inventory.
  2. Add direct labor. Wages paid to workers directly involved in production.
  3. Add manufacturing overhead. Indirect factory costs: utilities, equipment depreciation, factory supervision, and similar costs.
  4. Sum the three to get Total Manufacturing Costs.
  5. Add beginning WIP inventory, the partially finished goods on the factory floor at the start of the period.
  6. Subtract ending WIP inventory, the partially finished goods still on the floor at the end of the period. The result is COGM.

Worked Example

A furniture manufacturer wants to calculate COGM for the quarter.

Line itemAmount
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

Cost of Goods Manufactured: $305,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 vs. COGS: Don't Confuse Them

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 Inventory

COGM 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.

What Counts as Manufacturing Overhead

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 overheadExcluded from overhead
Indirect materials (glue, lubricants, small parts)Sales & marketing costs
Indirect labor (supervisors, maintenance staff)Administrative salaries
Factory rent, utilities, and insuranceOffice rent and utilities
Equipment depreciationInterest expense
Quality control and factory maintenanceResearch & 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.

Common Mistakes to Avoid

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.

Who Needs to Calculate COGM?

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 โ†’

Frequently Asked Questions

What is the formula for cost of goods manufactured?
COGM = Beginning WIP Inventory + Total Manufacturing Costs โˆ’ Ending WIP Inventory, where Total Manufacturing Costs is Direct Materials + Direct Labor + Manufacturing Overhead.
What's the difference between COGM and COGS?
COGM is the cost of goods finished during the period (moved from work-in-process to finished goods). COGS is the cost of goods actually sold during the period, calculated from finished goods inventory instead of WIP inventory.
What counts as manufacturing overhead?
Indirect production costs that support the factory but aren't traceable to one unit: indirect materials, indirect labor, factory rent and utilities, equipment depreciation, and quality control.
Is COGM the same as total manufacturing cost?
No. Total manufacturing costs (direct materials + direct labor + overhead) is one component of the COGM formula. COGM also adjusts that figure for the change in work-in-process inventory.
Where does COGM appear in financial statements?
COGM doesn't appear directly on the income statement, but it's a required input to calculate cost of goods sold, which does appear on the income statement.
Do service businesses calculate COGM?
No. COGM applies to businesses that physically manufacture products. Service businesses typically track cost of services instead, which doesn't involve work-in-process inventory in the same way.
How do I find my WIP inventory numbers?
Beginning WIP inventory is your ending WIP balance from the prior period. Ending WIP inventory comes from a physical count or your production accounting system's current work-in-process balance.

Related Free Guides & Tools From Anchor AI Tools

โš ๏ธ Accuracy Note: This guide explains a standard managerial accounting formula for planning and educational purposes. For financial reporting, cost accounting, or tax decisions, confirm your figures and methodology with a qualified accountant.
Amara Taylor, who builds and maintains Anchor AI Tools
Written and reviewed by Amara Taylor ยท Content Lead, Anchor AI Tools ยท California, USA

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