Manufacturing Cost Flows: Raw Materials, WIP, and COGS

Manufacturing cost flows describe how every dollar a company spends to make a product moves through its accounts, starting as a raw material purchase, accumulating with labor and overhead in work in process, sitting in finished goods until sale, and finally landing on the income statement as cost of goods sold. Costs stay on the balance sheet as inventory assets the entire time they are attached to unsold goods. They only become an expense when the product they belong to is sold. Getting the sequence right is what lets a manufacturer report accurate margins and value inventory correctly.

The Three Costs That Enter the Flow

Before costs can move through the inventory accounts, they have to be classified. Manufactured products carry three types of cost, and each one enters the system a different way.

Direct Materials

Direct materials are the physical inputs you can trace straight to a finished product: steel in an automobile frame, flour in a loaf of bread, lumber in a cabinet. Their cost sits in raw materials inventory until someone on the floor requisitions them for a specific job, at which point the cost transfers into work in process.

The purchase price is not the whole cost. Freight charges, import duties, and insurance paid to get the materials to the factory all get folded into the raw materials value on the balance sheet.

Direct Labor

Direct labor is what you pay the workers whose hands are on the product during conversion. Assembly line workers, machinists, welders. The test is whether the worker’s time can be tied to a specific product or production run. Hours logged on time tickets get multiplied by wage rates, and the resulting dollar amount flows into work in process against the job the worker was assigned to.

Manufacturing Overhead

Manufacturing overhead covers every factory cost that is not direct materials or direct labor. Factory rent, utility bills, equipment depreciation, property taxes on the plant, machine lubricants, and supervisor salaries all belong here. These costs are real but can’t be traced economically to a single unit, so they are applied to products using a predetermined rate.

The rate is set at the start of the year: estimated total overhead divided by an estimated activity measure, usually direct labor hours, machine hours, or direct labor cost. If a company expects $600,000 in overhead and 20,000 machine hours, the rate is $30 per machine hour, and a job that runs 10 machine hours picks up $300 in applied overhead. Because the rate uses estimates, the overhead charged to products during the year almost never equals what the company actually spends. That gap gets cleaned up at year-end.

What Doesn’t Enter the Flow

Not every cost a manufacturer incurs belongs in inventory. The CEO’s salary, sales commissions, advertising, corporate office rent, and accounting department payroll are period costs. They hit the income statement in the period incurred and never touch an inventory account.

The dividing line is the factory. A cost tied directly or indirectly to producing goods inside the plant is a product cost and rides with inventory. A cost tied to running the rest of the business is a period cost. A factory supervisor’s salary is overhead. A sales manager’s salary is not. Both are salaries; only one has anything to do with making the product.

Misclassifying a period cost as a product cost inflates inventory and delays expense recognition, which overstates profit in the current period. The reverse error understates inventory and pulls expenses forward. Either way, the financial statements come out wrong.

The Three Inventory Accounts

Manufacturers use three inventory accounts, and costs pass through them in order.

Raw Materials Inventory

Raw materials inventory holds the cost of everything purchased from suppliers and waiting to enter production. It increases when materials arrive and decreases when they’re issued to the floor. Both direct and indirect materials start here. Direct materials move on to work in process when requisitioned; indirect materials (cleaning solvents, machine lubricants) route to manufacturing overhead instead.

Work in Process Inventory

Work in process is where the three product costs converge. Direct materials transfer in from raw materials, direct labor is recorded from payroll, and manufacturing overhead is applied through the predetermined rate. The balance at any point is the total cost invested in partially completed goods still on the factory floor. When a batch finishes production and passes inspection, its accumulated costs move out to finished goods.

Finished Goods Inventory

Finished goods holds the full production cost of completed products waiting for sale. When a customer order ships, the cost of those units leaves finished goods and becomes cost of goods sold on the income statement.

Following a Cost Through the Cycle

The system moves in one direction: acquire, produce, complete, sell. Each stage has a corresponding accounting entry.

When raw materials arrive, the purchase price plus freight, duties, and insurance increases raw materials inventory. The cost is now an asset. When materials are requisitioned, a materials requisition form triggers the transfer: raw materials inventory decreases and work in process increases by the cost of direct materials issued. Indirect materials go to manufacturing overhead instead.

Direct labor enters work in process as workers log time against specific jobs. The journal entry moves cost from wages payable into work in process. Manufacturing overhead is applied at the same time by multiplying the predetermined rate by the activity measure. All three streams build up the cost of each job.

When goods finish production and clear inspection, their accumulated costs transfer from work in process to finished goods. The dollar amount of that transfer is the cost of goods manufactured. Whatever balance remains in work in process represents units still on the floor.

The final transfer happens at sale. Cost leaves finished goods and enters cost of goods sold, matching the expense to the revenue earned in the same period.

Cost of Goods Manufactured and Cost of Goods Sold

Two calculations sit at the heart of the flow. Both work the same way: start with what you had, add what came in, subtract what’s still there.

Cost of goods manufactured (COGM) runs through work in process. Take beginning work in process, add total manufacturing costs incurred during the period (direct materials used, direct labor, and applied overhead), and subtract ending work in process. The result is the total cost of goods that finished production and moved into finished goods inventory.

Cost of goods sold (COGS) runs through finished goods. Take beginning finished goods inventory, add cost of goods manufactured, and subtract ending finished goods inventory. COGS is the number that appears on the income statement, subtracted from revenue to get gross profit. Everything in the manufacturing cost flow system ultimately funnels into this figure.

Cleaning Up Overhead at Year-End

Because overhead is applied using an estimated rate, the manufacturing overhead account almost always carries a balance at year-end that needs to be resolved.

If the company applied less overhead to products than it actually spent, overhead is under-applied. The manufacturing overhead account shows a debit balance. The standard fix is an adjusting entry that debits cost of goods sold and credits manufacturing overhead, increasing COGS by the shortfall.

If the company applied more overhead than it actually spent, overhead is over-applied. The account shows a credit balance. The adjusting entry reverses: debit manufacturing overhead and credit cost of goods sold, reducing the expense.

Adjusting COGS directly is the usual approach and works for small variances. When the variance is large enough to materially distort the financial statements, some companies spread the adjustment across work in process, finished goods, and cost of goods sold in proportion to their balances. The three-way allocation is more precise but more complex, and it is typically reserved for significant discrepancies.

Which Cost Moves: FIFO, LIFO, and Weighted Average

When a manufacturer buys the same material at different prices over time, the flow raises a question: which cost attaches to the units sold, and which stays in ending inventory? The physical flow of goods does not have to match the cost flow. These are accounting conventions.

  • FIFO (first-in, first-out) expenses the oldest costs first. In periods of rising prices, that puts lower historical costs into COGS and leaves higher recent costs in ending inventory, producing higher reported gross profit.
  • LIFO (last-in, first-out) expenses the newest costs first. When prices are rising, LIFO pushes higher recent costs into COGS and lowers taxable income. Tax deferral is the main appeal, but a company that uses LIFO for tax purposes must also use it for financial reporting. That rule is codified in federal tax law and prevents companies from showing low income to the IRS while showing high income to shareholders.1Office of the Law Revision Counsel. 26 USC 472 – Last-In, First-Out Inventories
  • Weighted average blends all units at a single cost. It smooths price swings and simplifies calculation.

All three are permitted under U.S. generally accepted accounting principles. Companies reporting under International Financial Reporting Standards cannot use LIFO.2FASB. Accounting Standards Update 2015-11, Inventory (Topic 330) The method choice doesn’t change cash spent on materials, but it can shift reported profit meaningfully.

Federal Tax Rules That Change What Gets Capitalized

The IRS has its own requirements for inventory accounting, and they don’t always match GAAP. Two federal provisions matter most for the flow.

Section 263A of the Internal Revenue Code, the uniform capitalization rules, requires manufacturers to capitalize a broader set of costs into inventory than financial accounting typically demands. Beyond direct materials, direct labor, and factory overhead, Section 263A pulls in purchasing costs, storage costs, and certain administrative expenses that support production. More cost gets trapped in inventory as an asset, and less gets deducted currently.3Office of the Law Revision Counsel. 26 USC 263A – Capitalization and Inclusion in Inventory Costs of Certain Expenses

Small manufacturers get a break. If a company’s average annual gross receipts over the prior three tax years don’t exceed the inflation-adjusted threshold under Section 448(c), the uniform capitalization rules don’t apply. For 2026, that threshold is $32 million.3Office of the Law Revision Counsel. 26 USC 263A – Capitalization and Inclusion in Inventory Costs of Certain Expenses

The same gross receipts threshold opens the door to simplified inventory accounting under Section 471. Small businesses that qualify can treat inventory as non-incidental materials and supplies, effectively deducting costs when materials are used or sold rather than tracking them through the traditional three-account system. Alternatively, they can follow whatever inventory method appears in their financial statements.4Office of the Law Revision Counsel. 26 USC 471 – General Rule for Inventories Even a manufacturer that qualifies for the simplified methods may still want to maintain the full cost-flow tracking system internally for pricing and operational decisions.