Marcus Reyes
Supply Chain & Inventory Specialist | 12 Years
Marcus has managed supply chain and inventory operations in food & beverage manufacturing for over a decade, with a focus on compliance, lot traceability, and waste reduction. He has worked with FDA-regulated manufacturers across the US.
Most manufacturers I talk to are guessing their COGS. I mean genuinely guessing — a rough materials cost, maybe some mental math on labor, and a hopeful assumption that the margins work out. Sometimes they do. More often they don't, and nobody figures that out until tax time or a bad month when the cash isn't there.
COGS — Cost of Goods Sold — is one of the most important numbers in your business. It directly determines your gross profit, shapes your pricing strategy, and affects your tax bill. Yet for most small manufacturers, it's calculated loosely, if at all.
This guide explains what COGS is, how to calculate it correctly for a manufacturing business, and why getting it right matters.
What Is Cost of Goods Sold?
COGS is the total direct cost of producing the goods you sold during a period. It includes:
- Raw materials — every component and ingredient that goes into the product
- Direct labor — the wages paid to workers directly involved in production
- Manufacturing overhead — costs directly tied to production (equipment depreciation, utilities for the factory, packaging)
COGS does NOT include:
- Sales and marketing expenses
- Administrative salaries
- Office rent
- Legal or accounting fees
These are operating expenses, reported separately on your income statement below the gross profit line. This is where most people get it wrong — they pull in expenses that don't belong and end up with a distorted picture of product-level profitability.
The COGS Formula
The basic formula is:
Beginning Inventory + Purchases During the Period − Ending Inventory = COGS
Example:
- Beginning inventory value: $20,000
- Purchases during the month: $15,000
- Ending inventory value: $18,000
- COGS = $20,000 + $15,000 − $18,000 = $17,000
This works for resellers. For manufacturers, it gets more complex — and this is the part accountants don't always walk you through.
COGS for Manufacturers: It's More Than Materials
When you manufacture goods, you're not just buying and reselling. You're transforming raw materials into finished products. Here's the part accountants don't always mention: for manufacturers, COGS isn't just materials. It includes the labor hours on that specific production run, the overhead allocation for your facility, and any yield loss.
That means your COGS calculation needs to account for:
Bill of Materials (BOM) costs
Your BOM defines exactly what goes into each product — every component, its quantity, and its cost. The cost of a production run is the BOM cost × units produced. If a unit requires $3.50 in materials, and you produce 1,000 units, your materials COGS is $3,500. Sounds straightforward. It isn't, once yield loss and waste enter the picture.
Yield loss
Not all input becomes output. If you use 10kg of ingredients to produce 8kg of finished product, your yield is 80%. That 20% loss still costs money — it must be included in your COGS calculation, not ignored. Forgetting yield loss leads to systematically understating your true cost per unit. I've seen food manufacturers running a 15% yield gap they had no idea about, which meant two of their products were being sold at a loss.
Waste and write-offs
Damaged materials, spoilage, and QC failures are part of your production cost. They belong in COGS, not in a vague "miscellaneous losses" account.
Direct labor
The wages of workers who physically make your products. If a production worker earns $25/hour and takes 30 minutes to produce a batch, that $12.50 is part of the batch's COGS. Many small manufacturers skip this entirely because it feels complicated. Don't skip it.
Why COGS Matters
Gross Profit Calculation
Gross profit = Revenue − COGS. This is the most fundamental measure of whether your products are profitable to make. A business with $500K revenue and $480K COGS is in trouble, regardless of how busy the factory looks.
Pricing Decisions
If you don't know your true COGS, you can't price correctly. Underestimating COGS leads to pricing that looks profitable but isn't. Every sale at that price slowly drains the business. This isn't rare — it's the norm for manufacturers who've never built an accurate cost model.
Tax Reporting
COGS is deducted from revenue before calculating taxable income. A higher (accurate) COGS reduces your tax bill. A lower (inaccurate) COGS means you overpay taxes. Either way, accuracy matters.
Inventory Valuation
COGS ties directly to how you value inventory on your balance sheet. Inaccurate COGS leads to inaccurate inventory values, which affects financing, audits, and investor confidence.
Common COGS Mistakes
1. Forgetting packaging
Boxes, bags, labels, and containers are part of the product cost. They belong in your BOM and therefore in your COGS. Many manufacturers leave them out and wonder why margins are thinner than expected.
2. Ignoring yield loss
If your process has known waste — evaporation, offcuts, rejected units — that cost must be captured. Yield percentage belongs in your BOM calculation. This is one of the most consistent gaps I see.
3. Using purchase price instead of consumed cost
What you paid for materials isn't the same as what you consumed to make a product. The consumed quantity (from your BOM) at the actual cost of the lots used is what matters.
4. Not accounting for waste separately
Unplanned waste — spoilage, spills, damage — should be logged separately from production. This lets you distinguish between expected yield loss (built into the BOM) and unexpected write-offs (which signal a process problem).
5. Lumping overhead incorrectly
Rent for office space is not a manufacturing cost. Depreciation on production equipment is. The line between operating expenses and COGS must be drawn correctly.
COGS vs. COGM
These two terms often cause confusion:
- COGM (Cost of Goods Manufactured) — the total cost of everything you produced during a period, whether sold or not
- COGS (Cost of Goods Sold) — the cost of only the goods that were actually sold during the period
If you produced 500 units but sold 400, your COGM covers all 500. Your COGS covers only the 400 sold. The remaining 100 units sit in finished goods inventory on your balance sheet.
Understanding this distinction is important for both financial reporting and cash flow management. It's also what determines whether a good quarter on the floor actually shows up as profit on paper.
How Nstock Calculates COGS Automatically
Tracking COGS manually is error-prone and time-consuming. Nstock automates the entire calculation:
Every time you run a production batch, Nstock pulls the component costs from your BOM, applies the actual lot costs of materials consumed, adds any waste logged during the run, and calculates the per-unit COGS automatically.
When you sell finished goods, that cost flows directly into your COGS reporting — no spreadsheet formulas, no manual updates.
You get accurate COGS by product, by period, broken down by material cost, waste cost, and production run. This is the data you need to price correctly, report accurately, and identify where costs are running high.
Industries like food and beverage — where ingredient costs fluctuate, yield loss is significant, and lot-level cost tracking is essential — benefit most from automated COGS calculation.
Getting Started
If you're currently guessing at your COGS, the first step is getting your BOMs right. Every product needs an accurate BOM with real quantities, current component costs, and realistic yield percentages.
From there, a system that automates production tracking will calculate your COGS for you — correctly, every time. And you'll finally have a number you can actually build a pricing strategy around.
Explore Nstock's production and cost tracking features → | See pricing → | Read more about BOMs → | See how food manufacturers use Nstock →
---
*This article is for educational purposes only and does not constitute accounting or tax advice. Consult a CPA or financial professional for guidance specific to your business.*
— Kyle Moloney, Procurement & Operations



