From Module 01 · The Idea to Unit Economics
How to calculate cost of goods sold for a physical product.
Cost of goods sold (COGS) is what it cost you to make the units you actually sold. Per unit, it is the landed cost of one finished product: every part, process and package, plus the freight, setup and scrap it took to get it onto your shelf. For a period, it is beginning inventory plus what you made or bought, minus what is left at the end.
Most guides explain COGS for a store that buys finished goods and resells them. If you design a part and have it made, the number is harder to get right, because half of the cost never shows up on the drawing. This is how to calculate it for a product you make.
The two formulas
You need both. One is for pricing. The other is for your books.
Per unit
COGS per unit = parts + processes + packaging + inbound freight + setup and minimums + scrap allowance
Per period
COGS = beginning inventory + inventory made or bought − ending inventory
The per-unit number is what you price from. The period number is what goes on your profit and loss statement. If your per-unit number is right, the period number will agree with it: units sold times cost per unit.
A worked example
The course example is a steel A-pillar light mount for a Toyota Tacoma, sold by a fictional brand, Off-Road Design Co., for $179. It is laser cut, formed on a press brake, powder coated and shipped with a hardware kit. Here is one unit at a run of 100. The process lines include machine time and the operator's labor.
| Line | Type | Cost / unit |
|---|---|---|
| Steel blank | Material | $11 |
| Laser cutting | Process | $9 |
| Press brake forming | Process | $6 |
| Powder coat | Process | $14 |
| Bolts and hardware | Purchased | $8 |
| What is on the drawing | $48 | |
| Inbound freight | Landed | $4 |
| Setup and batch minimums | Landed | $5 |
| Box, insert, instructions, label | Packaging | $4 |
| Masking, deburr, touch-up | Finishing | $2 |
| Scrap and rejects | Landed | $2 |
| Cost of goods sold per unit | $65 |
Off-Road Design Co. light mount · course example · 100-unit run
The drawing accounts for $48 of the $65. Price from the drawing and the other $17 comes out of your margin on every unit.
Now the period version. Say you start the quarter with 40 mounts on the shelf, make a run of 100, and end the quarter with 30.
- Beginning inventory: 40 × $65 = $2,600
- Made this quarter: 100 × $65 = $6,500
- Ending inventory: 30 × $65 = $1,950
- COGS for the quarter: $2,600 + $6,500 − $1,950 = $7,150
Check it: you sold 110 units. 110 × $65 = $7,150. The two methods agree, which is how you know the per-unit number is complete.
What belongs in COGS, and what does not
If the cost goes up when you make more units, it belongs in COGS. If it stays the same no matter how many you make, it is an operating expense.
| In COGS | Not in COGS |
|---|---|
| Raw material and purchased parts | Rent on your shop |
| Outside processes: laser, machining, coating | Advertising and marketing |
| Direct labor to make and pack the unit | Software, website, insurance |
| Packaging, inserts, instructions | Design and engineering time |
| Inbound freight | Outbound shipping and merchant fees, usually (see below) |
| Setup charges and batch minimums | Trade show booths, and your salary if you are not making parts |
| Scrap and rejects | Tooling you own, which is depreciated |
Direct labor belongs in COGS, including your own, even if you pay yourself nothing today. Put a real hourly rate on it, because one day you will pay someone else to do it.
COGS is not the whole cost of a sale
Two costs come with every order but usually sit just below COGS on the books: outbound shipping to the customer and merchant fees, the card processing and platform fees taken from each sale. Most ecommerce accountants book them as fulfillment and selling costs, not COGS. Some businesses book outbound shipping in COGS. Either is fine if you stay consistent.
What is not fine is leaving them out when you decide whether a product makes money. For that, use contribution margin: the price, minus COGS, minus every cost that comes with each order.
| One order on your own site | Per unit |
|---|---|
| Price | $179 |
| COGS: landed cost, including direct labor and inbound freight | −$65 |
| Gross profit (64%) | $114 |
| Outbound shipping to the customer | −$15 |
| Merchant fees, about 3% | −$5 |
| Contribution margin (53%) | $94 |
Course example · shipping and fee amounts are illustrative
Gross margin says 64 percent. The order actually keeps 53 percent before marketing and overhead. Set prices from the contribution margin. If you offer free shipping, the shipping line is yours to pay on every order, so it belongs in this math whether or not it is in COGS.
Why COGS changes with volume
Setup charges and minimums are spread over the run. Material and outside processes get cheaper at quantity breaks. So COGS per unit drops as volume grows. For the light mount it goes from $65 at 100 units to $48 at 500, $38 at 1,000 and $31 at 10,000. The full breakdown is in landed cost: what one unit really costs.
This matters for pricing. If you set a wholesale price that only works at 10,000 units, you will lose money on every dealer order until you get there. Wholesale vs retail price works through that math.
Five mistakes that understate COGS
- Pricing from the quote, not the invoice. Quotes leave out freight, setup and the minimum charge. Invoices do not.
- Leaving out lines that are $0 today. Free freight from a local shop ends when you outgrow that shop. Keep the row at $0 so you notice when it changes.
- Using your 10,000-unit price at 100 units. Cost the run size you are actually ordering.
- Forgetting scrap. Some parts will come back scratched or out of spec. Plan for a few percent.
- Ignoring your own time. Free labor makes a product look profitable that is not.
The quickest way to avoid all five is to build a proper bill of materials with the landed lines already in it. Our free bill of materials template does that, with costs at four volumes.
Questions makers ask
What is the formula for cost of goods sold?
Beginning inventory plus inventory made or bought during the period, minus ending inventory. Per unit, it is the landed cost of one unit: the bill of materials plus freight, setup, packaging and scrap.
Is shipping included in cost of goods sold?
Inbound freight belongs in COGS. Outbound shipping is usually booked just below gross margin as a fulfillment cost, though some businesses put it in COGS. Either way, subtract it, along with merchant fees, before you decide a product makes money.
Is my own labor part of COGS?
Direct labor to make the product belongs in COGS. If you do it yourself for free, put a real hourly rate on it anyway when you price.
What is the difference between COGS and landed cost?
Landed cost is what one unit costs on your shelf. COGS is the landed cost of the units you sold in a period. You price from landed cost, and COGS goes on your profit and loss statement.
This article explains how product makers use COGS to price and plan. It is not tax or accounting advice. Your accountant decides how costs are booked for your business.
Module 01 of Bench to Brand builds this number line by line for your own product, with an Excel workbook that calculates COGS, margin and units to $100K at four volumes.