Skip to content

CPA · Tax · Accounting · Business Advisory

Insights / Manufacturing Accounting

How Do You Calculate Cost of Goods Sold for a Manufacturer?

Published October 15, 2026 7 min read By Phil Kim, content curator, Pagac & Company

Manufacturers calculate cost of goods sold (COGS) as beginning inventory plus the production costs added during the period, raw materials, direct labor and manufacturing overhead, minus ending inventory. Because goods move through raw materials, work in process and finished goods, the calculation has to track all three stages for the deduction to match what was actually sold. Pagac & Company helps manufacturers build the inventory accounting that makes COGS trustworthy.

What is cost of goods sold for a manufacturer?

Cost of goods sold is the direct cost of the products a manufacturer sold during a period, including the materials in those products, the labor that made them and a share of production overhead. The IRS generally requires businesses to use inventories when producing, purchasing or selling merchandise is an income-producing factor, which is the situation for almost every manufacturer.

The COGS deduction is taken when goods are sold, not when costs are incurred. That timing is why a manufacturer needs a working inventory system rather than simply expensing purchases as they happen.

How does the manufacturer's COGS formula work?

The basic formula is the same one used across inventory businesses: beginning inventory plus additions during the year minus ending inventory equals cost of goods sold. For a manufacturer, the additions include purchases of raw materials, direct labor, materials and supplies, and production overhead allocated to manufacturing.

Inventory for a manufacturer sits in three stages: raw materials, work in process and finished goods. Each stage must be valued at year end, because ending inventory is subtracted in the formula and becomes the beginning inventory of the next year. An error in any one stage flows straight into profit.

What does Section 263A have to do with a manufacturer's COGS?

Under IRC Section 263A, the uniform capitalization rules, producers must capitalize direct materials, direct labor and a properly allocable share of indirect production costs into inventory. Indirect costs can include factory rent, utilities, insurance, depreciation, supervisory compensation allocable to production, quality control and materials handling.

In effect, costs that might otherwise be deducted currently are held in inventory and recognized in COGS only when the finished goods are sold. The IRS provides a small-business exception for producers whose average annual gross receipts over the prior three years fall below an indexed threshold, around $31 million for recent tax years; the current figure should be confirmed for each filing year.

Why do COGS mistakes show up as profit mistakes?

When inventory or overhead is miscounted, profit is misstated even if the books balance. Pagac worked with a Metro Detroit electrical-parts manufacturer whose accounting system was effectively counting the same labor cost twice, creating almost $250,000 in false cost swings.

Pagac identified the problem, rebuilt the previous twelve months of reports and recalculated the company's break-even point. The corrected reporting revealed that rising copper costs were affecting profitability on two strong-selling products, so the owner could better understand the pricing adjustment needed. That is what accurate COGS is for: it turns a vague sense that costs are off into a specific, decision-ready number.

What should a manufacturer review to keep COGS accurate?

Review the cost flow method (FIFO, LIFO, weighted average or standard costing) for consistency, reconcile physical counts to the general ledger each period, value work in process deliberately and confirm that overhead is allocated on a defensible basis.

COGS accuracy is a foundation for every downstream number: gross margin by product line, pricing, quotes, break-even and inventory on the balance sheet. When the foundation is clean, the monthly reporting package becomes decision-useful.

Key takeaways

  • COGS equals beginning inventory plus period production costs minus ending inventory.
  • Manufacturers must track raw materials, work in process and finished goods, not just purchases.
  • IRC Section 263A requires capitalizing direct and allocable indirect production costs, with a small-business exception.
  • COGS errors distort profit and margins even when the books balance.

Educational information only. This article is not personalized tax, legal or financial advice. Tax results depend on individual facts and applicable law, which can change. Discuss your situation with a qualified advisor.

Case study

The Manufacturer Who Took Back Control of His Numbers

Read it

Discuss your business with Pagac & Company

Strategic accounting, tax and advisory for business owners, from our Bloomfield Hills, Michigan office.

Call Schedule