For a retailer, cost of goods sold is fairly simple: you bought something, you sold it, and its purchase cost moves from inventory to the income statement. For a manufacturer, the same line carries far more weight. It has to capture raw materials, the labor that turned them into products, and a share of the factory costs that made production possible.
Get COGS wrong and almost everything downstream suffers. Gross margin looks better or worse than it really is, product pricing drifts away from reality, and inventory on the balance sheet stops matching what is on the shelves. This guide walks through how manufacturing COGS works, where it usually goes wrong, and what a controller or owner can do to keep it trustworthy.
What COGS means in a manufacturing business
Cost of goods sold is the cost of the products you actually sold during a period. The key word is sold. Costs you spend producing goods do not hit COGS right away. They first sit in inventory, and only move to COGS when the finished product ships to a customer.
That timing matters. A plant that builds ahead for a busy season can spend heavily in one quarter while reporting modest COGS, because most of that spending is parked in finished goods inventory. When the products sell later, the cost follows them.
The three building blocks of product cost
Manufacturers generally break product cost into three groups:
- Direct materials. Raw materials and components that become part of the finished product, such as steel, resin, fabric, circuit boards or packaging that ships with the item.
- Direct labor. Wages and related costs for people who work hands-on to make the product, like machine operators and assemblers.
- Manufacturing overhead. Factory costs that support production but cannot be traced to a single unit easily. Think plant utilities, equipment depreciation, maintenance, supervisors, quality inspectors, factory rent and indirect supplies.
What does not belong in product cost: sales commissions, marketing, office rent for headquarters, executive salaries and outbound shipping to customers in most setups. Those are operating expenses, recorded in the period they occur.
The basic COGS formula
At the period level, the classic calculation works like this:
- Start with beginning finished goods inventory.
- Add the cost of goods manufactured during the period (materials, labor and overhead for units completed).
- Subtract ending finished goods inventory.
- The result is cost of goods sold.
Cost of goods manufactured has its own calculation, which accounts for work in process (WIP). You take the production costs added during the period, add beginning WIP, and subtract ending WIP. Partially finished units stay on the balance sheet until they are done.
A worked example
Consider a hypothetical company that makes outdoor furniture. Here are its figures for one quarter:
| Item | Amount |
|---|---|
| Direct materials used | $410,000 |
| Direct labor | $180,000 |
| Manufacturing overhead applied | $150,000 |
| Total production costs added | $740,000 |
| Plus beginning WIP | $60,000 |
| Less ending WIP | ($80,000) |
| Cost of goods manufactured | $720,000 |
| Plus beginning finished goods | $200,000 |
| Less ending finished goods | ($240,000) |
| Cost of goods sold | $680,000 |
If sales for the quarter were $1,000,000, gross profit would be $320,000, a 32% gross margin. Notice that the company spent $740,000 on production but only $680,000 reached COGS. The difference built up in WIP and finished goods.
How overhead gets into product cost
Overhead is where most of the judgment lives. Because you cannot trace the electric bill to a single chair, you need a method for spreading it across units. Most manufacturers use a predetermined overhead rate: estimate the year’s overhead, pick an allocation base, and divide.
Common allocation bases include:
- Direct labor hours, which suits labor-heavy operations.
- Machine hours, which fits automated lines where equipment drives cost.
- Direct labor dollars, which is simple but can distort if wage rates vary widely.
- Activity-based drivers, such as number of setups or inspections, for companies with very different products sharing the same plant.
Because the rate is based on estimates, actual overhead will rarely match applied overhead. The gap is called under- or over-applied overhead. Small differences are often closed to COGS at period end. Large ones may need to be spread across inventory and COGS so the balance sheet is not misstated. Either way, a persistent large variance is a sign the rate needs updating.
Standard costing versus actual costing
Many manufacturers carry inventory at standard cost, a predetermined cost per unit for materials, labor and overhead. Others use actual costing with methods like FIFO or weighted average.
| Approach | How it works | Strengths | Watch-outs |
|---|---|---|---|
| Standard costing | Inventory valued at a set cost; differences recorded as variances | Stable unit costs, easy pricing, variances flag problems | Standards go stale; large variances must be handled correctly |
| Actual (FIFO) | Oldest costs flow to COGS first | Reflects real purchase prices over time | Unit costs fluctuate; more detail to track |
| Actual (weighted average) | Costs blended across units on hand | Smooths price swings, simple to explain | Can hide sudden cost changes |
Standard costing is popular in ERP systems because it separates “what should this cost” from “what did it cost.” Variances for material price, material usage, labor efficiency and overhead spending tell you where the gap came from. The catch is discipline: standards need regular review, or variance reports turn into noise nobody reads.
Common mistakes that distort COGS
- Treating all factory spending as period expense. Expensing overhead immediately understates inventory and overstates COGS in production-heavy periods.
- Stale bills of materials. If the BOM says a product uses four brackets but the line uses five, material cost is understated on every unit.
- Ignoring scrap and rework. Normal scrap usually belongs in product cost. Abnormal scrap is generally expensed. Not tracking either leaves margins guessed rather than measured.
- Weak inventory counts. Ending inventory drives COGS directly. An overstated count makes COGS too low and profit too high.
- Freight-in left out. Inbound freight on raw materials is typically part of material cost, not a general expense.
- Never revisiting overhead rates. A rate set years ago on old volume and old equipment will misallocate costs today.
Practical steps to keep COGS reliable
- Audit your top BOMs and routings. Start with the products that drive the most revenue. Walk the floor and compare what is recorded to what actually happens.
- Review overhead rates at least annually. Rebuild them when volume, equipment or product mix shifts meaningfully.
- Use cycle counting. Counting high-value items frequently catches errors sooner than one annual physical count.
- Reconcile inventory subledgers to the general ledger monthly. Unexplained differences tend to grow if left alone.
- Read the variance report. Assign an owner to each major variance type and ask for a short explanation each month.
- Record production transactions promptly. Late material issues and labor postings push costs into the wrong period.
Why it matters beyond the income statement
Accurate COGS is not just a reporting exercise. It drives quoting, product mix decisions, make-versus-buy analysis and conversations with lenders. If your costs are blended or out of date, you may be winning business on products that lose money and pricing yourself out of jobs that would be profitable. Taxes also depend on it, since inventory capitalization rules affect taxable income, so coordinate with your tax advisor on method choices.
Key takeaways
- Manufacturing COGS includes direct materials, direct labor and allocated factory overhead, but only for units actually sold.
- Production costs flow through WIP and finished goods before reaching COGS, so spending and COGS often differ in a given period.
- Overhead allocation and standard costs require regular review to stay meaningful.
- Clean BOMs, good counts and timely transactions do more for COGS accuracy than any single formula.