Price too low, and profit leaks out slowly. Too high, and the product struggles to sell. Both often start with one number that's off: cost of goods manufactured (COGM, known in Indonesian as harga pokok produksi, or HPP).
Plenty of finance teams only notice the number is wrong after closing is done and the margin doesn't match what they expected. We'll start with the basics, then work through one factory's numbers.
What is cost of goods manufactured?
Cost of goods manufactured is the total cost of producing finished goods in one period, usually a month. It covers raw materials, direct labor, and factory overhead, adjusted for the change in work-in-process inventory.
The number is used to value finished goods inventory, work out gross profit, and set selling prices. If COGM is off, all three are off.
The abbreviation ‘HPP’ can mean two things in Indonesian: harga pokok produksi (the cost of making goods, COGM) or harga pokok penjualan (the cost of the goods that actually sold, COGS). They are different numbers, and the comparison is further down.
What goes into COGM
There are three components. Direct materials are the materials that become part of the product and can be traced to a specific product, such as wood for a table or fabric for a shirt. Direct labor is the pay of the people who work on the product directly, like machine operators or assemblers. Factory overhead is everything else: production costs you can't pin on a single product, such as factory electricity and water, machine depreciation, supervisor salaries, machine maintenance, and indirect supplies.
Selling costs and general administrative costs don't belong in COGM because they aren't directly tied to production. They are recorded as operating expenses in the income statement.
For financial reporting, the treatment of inventory costs follows PSAK 202 on Inventories, which used to be numbered PSAK 14. Conversion costs under that standard include costs directly related to the units produced plus a systematic allocation of fixed and variable production overhead, and fixed overhead is allocated based on the factory's normal capacity. For the details, it's safest to check with your company's accountant or auditor.
How costs are collected also depends on the type of factory. Factories that make custom orders usually use job order costing, where costs are collected per order. Factories that mass-produce uniform goods usually use process costing, where costs are collected per production stage and then spread across the units produced. The example below uses uniform production so the math is easy to follow.
The COGM formula in four steps
- Raw materials used = beginning raw materials inventory + net purchases − ending raw materials inventory. Net purchases means purchases plus freight-in, minus returns and purchase discounts.
- Total manufacturing cost = raw materials used + direct labor + factory overhead.
- Cost of goods manufactured = total manufacturing cost + beginning work in process − ending work in process.
- COGM per unit = cost of goods manufactured ÷ number of units completed.
A worked example in a furniture factory
Take PT Mebel Nusantara (fictional), a furniture factory that closes January with the data below. All figures are in rupiah.
| Component | Rp |
|---|---|
| Step 1: raw materials used | |
| Beginning raw materials inventory | 50,000,000 |
| Raw materials purchased | 200,000,000 |
| Purchase returns | (5,000,000) |
| Ending raw materials inventory | (45,000,000) |
| Raw materials used | 200,000,000 |
| Step 2: total manufacturing cost | |
| Raw materials used | 200,000,000 |
| Direct labor | 80,000,000 |
| Overhead: indirect labor | 20,000,000 |
| Overhead: factory electricity and water | 15,000,000 |
| Overhead: machine depreciation | 25,000,000 |
| Overhead: indirect supplies | 10,000,000 |
| Total manufacturing cost | 350,000,000 |
| Step 3: cost of goods manufactured | |
| Beginning work in process | 30,000,000 |
| Ending work in process | (40,000,000) |
| Cost of goods manufactured | 340,000,000 |
| Step 4: COGM per unit | |
| Units completed | 1,700 units |
| COGM per unit (340,000,000 ÷ 1,700) | 200,000 |
Overhead in this example is Rp70 million, exactly one fifth of total manufacturing cost. If a component that big gets missed or allocated wrongly, COGM per unit shifts a lot, and any selling price built on it is wrong too.
COGM vs cost of goods sold
| Cost of goods manufactured | Cost of goods sold | |
|---|---|---|
| What it measures | The cost of making the goods completed in the period | The cost of the goods that actually sold in the period |
| Affected by | Work in process inventory | Finished goods inventory |
| Shows up in | Cost of goods manufactured statement | Income statement |
| Formula | Total manufacturing cost + beginning WIP − ending WIP | COGM + beginning finished goods − ending finished goods |
Continuing the example. Finished goods inventory is Rp60,000,000 at the start of the month and Rp80,000,000 at the end, so cost of goods sold is 340,000,000 + 60,000,000 − 80,000,000 = Rp320,000,000.
Of the 1,700 units completed, some went into the finished goods warehouse and haven't become a cost of sales yet. That's why cost of goods sold (Rp320 million) is lower than COGM (Rp340 million) for the month.
Five mistakes that come up a lot
- The two HPPs get swapped. COGM and COGS answer different questions, so using them interchangeably throws off gross profit and inventory value.
- Overhead gets skipped, or allocated in a way that changes every month. Factory electricity and machine depreciation often get recorded late. If the allocation base (machine hours or direct labor hours, for example) keeps changing, month-to-month numbers are hard to compare.
- Work in process isn't counted. Unfinished products at period end make that month's cost look higher or lower than it really is.
- The inventory valuation method keeps switching. Moving between FIFO and average cost without a reason makes numbers across periods stop lining up.
- Data is scattered across many files. One mistyped number in one file changes COGM right away, and it usually surfaces only at closing.
When spreadsheets start to run out of room
Spreadsheets are fine while the product range is small and the process is simple. They start to feel tight when each product has a different bill of material, there are several warehouses or locations, the finance team spends days every month just collecting cost data, or the COGM numbers in finance and production don't match. The symptoms are similar to what's covered in 5 signs your business already needs an ERP, and tidy COGM also speeds up monthly closing.
In Jasper Enterprise (JET), bills of material and production costs are recorded in the system, and the finance, inventory, and procurement modules connect to one General Ledger. That helps cut the work of collecting data from many files.
Frequently asked
What's the difference between cost of goods manufactured and cost of goods sold?
COGM measures the cost of goods completed in the period. COGS measures the cost of goods that actually sold. The gap comes from the change in finished goods inventory.
What does factory overhead include?
All production costs other than direct materials and direct labor, for example factory electricity and water, machine depreciation, machine maintenance, supervisor salaries, and indirect supplies. Selling and general administrative costs are not included.
How do I calculate COGM per unit?
Divide cost of goods manufactured by the units completed in the same period. In the example above, Rp340,000,000 divided by 1,700 units is Rp200,000 per unit.
Does work in process have to be counted?
Yes, whenever there are unfinished products at period end. Its value is deducted at the end of the period and added at the start of the next, so each period's costs don't get mixed up.
We also write about topics like this in the LVI newsletter. If you want in, the form is at the very bottom of the page, just drop your email.
Curious how bills of material and production costs are recorded in a system? See it in a Jasper Enterprise demo.
PT Mebel Nusantara is fictional and the numbers are illustrative. The accounting treatment in this article is general, so check with your accountant or auditor before using it at your company.
← Artikel