Skip to main content

Orders In Seconds

COGM Formula Guide | Calculate Cost of Goods Manufactured

COGM Formula: Calculate Cost of Goods Manufactured

Picture of By <span style="font-weight:bold;color:#F63C47; font-style: italic;">Oscar Guerrero</span>

By Oscar Guerrero

Published June 14, 2024

COGM formula: Beginning work-in-process inventory + Total manufacturing costs − Ending work-in-process inventory.

Cost of goods manufactured (COGM) is the production cost of goods completed during a period. Total manufacturing costs are direct materials used + direct labor + manufacturing overhead. This guide shows the calculation, a complete cost schedule, the transfer journal entry and how COGM connects to cost of goods sold (COGS).

Updated November 12, 2026. Examples are illustrative and use one monthly accounting period.

Key Takeaways

What Is Cost of Goods Manufactured (COGM)?

Understanding the Cost of Goods Manufactured (COGM)

COGM measures the cost transferred out of work in process (WIP) into finished goods. It includes costs attached to goods completed this period, even if some production began in an earlier period. It excludes the costs still held in unfinished goods at period end.

This is why COGM is not automatically equal to the manufacturing costs incurred during the month. The beginning and ending WIP balances bridge the difference. See the Penn State explanation of the COGM formula.

COGM vs. COGS vs. Total Manufacturing Costs

COGM vs. COGS vs. total manufacturing cost
MeasureWhat it measuresBasic calculation
Total manufacturing costsProduction costs added during the periodDirect materials used + direct labor + manufacturing overhead
COGMCost of goods completed during the periodBeginning WIP + manufacturing costs − ending WIP
COGSCost of goods sold during the periodBeginning finished goods + COGM − ending finished goods

The COGS equation above is a simplified manufacturing cost flow before applicable adjustments. Selling and administrative expenses are not added to COGM or treated as manufacturing overhead merely because the business incurred them. See NetSuite’s discussion of COGM and COGS.

Components of COGM

  • Direct materials used: The cost of materials placed into production, such as ingredients in a food product or timber in furniture. Purchases alone do not equal materials used.
  • Direct labor: Labor attributable to making the product, using the company’s cost classification policy.
  • Manufacturing overhead: Indirect production costs, such as factory utilities, equipment depreciation, indirect materials and indirect labor.

WIP contains accumulated production costs for unfinished goods. Finished goods are complete but not necessarily sold. Keep these balances separate when preparing the schedule.

COGM Formula: How to Calculate Cost of Goods Manufactured

Cost of Goods Manufactured (COGM) Formula

Expanded COGM equation:

COGM = Beginning WIP + Direct materials used + Direct labor + Manufacturing overhead − Ending WIP.

All five inputs must refer to the same period and use consistent costing policies. Add beginning WIP because it brings prior-period production costs into the pool. Subtract ending WIP because those goods remain unfinished.

Step-by-Step Calculation Process

  1. Find direct materials used. For a simple materials schedule: beginning raw materials + net purchases − ending raw materials − indirect materials issued. Subtract indirect issues only if they are included in that raw-materials movement.
  2. Add direct labor. Use production labor records for the same period.
  3. Add manufacturing overhead. Use the actual or applied amounts required by your costing system; do not add both.
  4. Add beginning WIP. Use the opening cost balance for unfinished production.
  5. Subtract ending WIP. Use the closing cost balance, not the number of unfinished units.

If the materials records contain only direct materials, no separate indirect-material deduction is needed. Keep inventory adjustments and other exceptions explicit.

Importance of Accurate COGM Calculation

The completed-goods cost schedule should reconcile to the transfer from WIP to finished goods. If it does not, check period cutoffs, unposted material issues, production labor, overhead and incomplete jobs before using the result for reporting.

A lower COGM is not necessarily better efficiency: the business may simply have completed fewer goods or left more cost in WIP. Compare production volume and unfinished work alongside the dollar amount.

COGM Example and Schedule of Cost of Goods Manufactured

Practical Example of COGM Calculation

Assume a small manufacturer prepares its schedule for April. Opening raw materials are $8,000, net purchases are $27,000 and closing raw materials are $5,000. These balances contain only direct materials, so materials used are $30,000. Direct labor is $15,000 and manufacturing overhead is $8,500. Beginning WIP is $12,000 and ending WIP is $9,500.

Schedule of cost of goods manufactured — April, illustrative USD
Line itemAmount
Beginning direct raw materials$8,000
+ Net direct-material purchases$27,000
− Ending direct raw materials($5,000)
Direct materials used$30,000
+ Direct labor$15,000
+ Manufacturing overhead$8,500
Total manufacturing costs$53,500
+ Beginning WIP$12,000
Total cost to account for in WIP$65,500
− Ending WIP($9,500)
Cost of goods manufactured$56,000

Calculation: $12,000 + $53,500 − $9,500 = $56,000 COGM. Cross-check: $56,000 completed + $9,500 unfinished = $65,500 available in WIP.

Beginning WIP Inventory

The opening $12,000 represents production costs already held in unfinished goods at the start of April. It is added once. Do not re-enter those prior-period material, labor and overhead costs as current-period costs.

Costs Incurred During Production

April’s manufacturing costs are $30,000 + $15,000 + $8,500 = $53,500. That is the cost added this month, while COGM is $56,000 because the business completed some work that carried costs from an earlier period.

Ending WIP Inventory

The $9,500 closing WIP balance remains unfinished and is excluded from April’s COGM. Holding all other inputs constant, increasing ending WIP by $1,000 would reduce the calculated COGM by $1,000; that change alone is not a cost saving.

Cost of Goods Manufactured Journal Entry

Journal entries that reflect the cost of goods manufactured (COGM)

The COGM transfer entry moves completed production costs between inventory accounts. In the April example:

Journal entry to transfer completed goods
AccountDebitCredit
Finished Goods Inventory$56,000—
Work in Process Inventory—$56,000

This transfer does not record sales revenue or automatically expense all goods completed. The cost of goods sold is recorded when the related goods are sold. The cost-flow treatment is illustrated in OpenStax’s job-order costing journal entries.

Reducing Raw Materials Inventory

For the $30,000 of direct materials issued to production in this example, debit Work in Process Inventory $30,000 and credit Raw Materials Inventory $30,000. Indirect materials are charged through manufacturing overhead rather than counted again as direct materials.

Adjusting WIP Inventory

Record the example’s $15,000 direct labor as a debit to WIP and a credit to the appropriate payroll or payable account. In an applied-overhead system, debit WIP and credit Manufacturing Overhead for the $8,500 applied.

These are simplified instructional entries. Actual overhead accumulation, variances, payroll clearing accounts and period-end adjustments depend on the accounting system. Do not book the schedule a second time if the production system has already posted the same costs.

COGM Spreadsheet Formula and Data Checklist

Enhancing COGM Calculation with Technology

A useful COGM worksheet separates inputs from subtotals. In Excel or Google Sheets, put these illustrative inputs in cells B2:B6:

  • B2: beginning WIP, 12000
  • B3: direct materials used, 30000
  • B4: direct labor, 15000
  • B5: manufacturing overhead, 8500
  • B6: ending WIP, 9500

Spreadsheet formula: =B2+SUM(B3:B5)-B6, returning 56000. Keep every input in the same currency and accounting period.

Record where each input came from so another person can trace the worksheet back to the ledger or production records.

Check the Inputs Before Calculating

Before relying on a manufacturing ERP or spreadsheet, check these controls:

A software export can speed up preparation, but review its date range, cost classifications and account mappings. Inventory quantities alone do not establish a complete manufacturing cost schedule.

Real-Time Data Integration

When records move between warehouse, production and accounting systems, test whether material issues, returns, labor and completion transactions arrive once and in the correct period. Check rejected records and late postings before closing the month.

Keep a reconciliation from the WIP opening balance through costs added and completions to the closing balance. A faster sync does not replace this check.

If mistakes are holding back your wholesale business, download our free eBook “Avoid the Top 5 Mistakes Wholesale Distributors Make” and discover key strategies to optimize your operations for success!

Avoid the Top 5 Mistakes Wholesale Distributors Make

Avoid the Top 5 Mistakes Wholesale Distributors Make

Are you making one of the top 5 mistakes that plague wholesale distributors? Download our free eBook to find out. We’ve also included tips and guidance to help you save time and avoid costly mistakes.

From COGM to COGS: Manufacturing Formula Example

COGM links the production schedule to finished goods inventory. To continue April’s example, assume beginning finished goods of $10,000 and ending finished goods of $14,000, with no other adjustments:

COGS = $10,000 + $56,000 − $14,000 = $52,000.

The $56,000 completed during April and the $52,000 sold are different measures. The finished-goods balance increased by $4,000. This example assumes no additional finished-goods adjustments and ignores tax and financial-reporting complexities.

Impact on Gross Margin

If illustrative April net sales are $80,000 and COGS are $52,000, gross profit is $28,000 and gross margin is 35%. Using the $56,000 COGM instead would incorrectly mix goods completed with goods sold.

For the pricing distinction, see our explanation of margin versus markup. COGM supports cost analysis; it is not the same as a selling price or profit margin.

Role in Budgeting and Forecasting

Build forecasts from expected material usage, production labor, overhead and opening/closing WIP assumptions. Explain the drivers behind a change rather than projecting only one COGM total.

A production increase, a materials-price change and a backlog of unfinished jobs can all move the result differently. Review those drivers separately before changing prices or budgets.

Common COGM Calculation Mistakes

Check these common COGM calculation errors before closing the schedule:

Inventory and Period Errors

  • Using material purchases instead of materials actually issued to production.
  • Adding ending WIP instead of subtracting it.
  • Using finished-goods balances in the COGM formula instead of WIP balances.
  • Mixing monthly cost additions with quarterly inventory balances.
  • Treating unfinished-unit counts as monetary WIP values.

Classification and Double-Counting Errors

Also check cost classification and posting controls:

Do not interpret an artificially high ending WIP valuation as improved efficiency. Fix the underlying records and costing assumptions before drawing performance conclusions.

COGM Formula: Quick Recap

Quick answer: Add direct materials used, direct labor and manufacturing overhead to get manufacturing costs. Add beginning WIP, then subtract ending WIP. In the worked example, $53,500 + $12,000 − $9,500 = $56,000 COGM.

Use finished-goods balances in the next calculation to find COGS. Use the same accounting period and reconcile each transfer rather than treating the two figures as interchangeable.

Frequently Asked Questions

What is the difference between COGM and COGS?

COGM measures the cost of goods completed; COGS measures the cost of goods sold. In the example, COGM is $56,000 and COGS is $52,000 because finished-goods inventory increases by $4,000.

How do you calculate the total manufacturing costs?

Total manufacturing costs = direct materials used + direct labor + manufacturing overhead. COGM then adjusts that total for opening and closing WIP. They are equal when beginning and ending WIP are equal, assuming the simplified cost flow used here.

How do you calculate COGM without WIP?

If beginning and ending WIP are both zero, COGM equals total manufacturing costs. Do not assume WIP is zero simply because it was not listed; confirm whether unfinished production exists and has been valued.

What is the journal entry for cost of goods manufactured?

For completed goods, debit Finished Goods Inventory and credit Work in Process Inventory for the transferred cost. The illustrative entry in this guide is $56,000 on each side; the subsequent sale has its own cost-of-sales entry.

Do wholesalers need a COGM calculation?

A wholesaler that buys finished goods for resale generally calculates inventory cost and COGS from purchases rather than a manufacturing COGM schedule. If it also manufactures or transforms products, assess that production activity separately.

Connect Warehouse Records With Your Accounting Workflow

Reliable stock movements help connect physical operations with financial records. Explore OIS Inventory for warehouse workflows and OIS Pro for order-taking if your distribution team needs better operational records.

Keep manufacturing cost allocation, WIP valuation and journal posting within your configured accounting or manufacturing system. Ask which records an integration exchanges rather than assuming a warehouse app calculates COGM automatically.

B2B Wholesale Distributors: 5 Step Guide to Doubling Your Sales Orders
B2B Wholesale Distributors 5 Step Guide to Doubling Your Sales Orders

Double Your Sales Orders in 5 Steps

This exclusive eBook is packed with real-world, data-driven concepts
that can help maximize your store visits and double your sales.
Get it for FREE – Today!

FREE In-Depth Guide for B2B Wholesale Distributors

Double Your Sales Orders in 5 Steps

This exclusive eBook is packed with real-world, data-driven concepts that can help maximize your store visits and double your sales.
Get it for FREE – Today!

Related Posts