ShoptankShoptank
← Back to BlogCalculate Cost of Goods Manufactured for DTC Brands

Calculate Cost of Goods Manufactured for DTC Brands

Calculate cost of goods manufactured (COGM) for your DTC brand. This guide covers the formula, COGM vs COGS, & Shopify tips for 2026 success.

Your Shopify dashboard shows revenue by the minute. Meta shows ad spend. Your 3PL shows units on hand. And yet you still can't answer a basic CFO question with confidence: what did it cost to produce the inventory sitting in your warehouse right now?

Most founders mix up three different things. What they bought. What they made. What they sold. Those are not the same number, and when you blur them together, your margin analysis turns into guesswork. That's how a product can look profitable on paper while subtly draining cash in production.

Cost of goods manufactured is the number that fixes this. It tells you the cost of the units you completed during a period, before sales muddy the picture. For a DTC brand, that matters more than most founders realize. It helps you spot whether your production process is tightening up or getting sloppier, whether a packaging change is helping or hurting, and whether your inventory value on the balance sheet reflects reality.

If you're trying to make smarter decisions around pricing, bundles, replenishment, or channel expansion, you need this number. If you're also thinking about discoverability in AI-driven commerce, your financial clarity should improve in parallel with your visibility strategy, which is why this broader shift toward optimizing for AI search matters operationally too.

Table of Contents

Your True Production Cost Is Hiding in Plain Sight

Founders usually notice the problem when cash gets tight. Sales are moving, purchase orders are going out, inventory is piling up, and gross margin still feels fuzzy. The issue usually isn't demand. The issue is that nobody has separated production economics from sales reporting.

If you bought corrugate, labels, inserts, jars, fabric, or raw ingredients this month, that doesn't mean all of those costs belong to this month's finished output. If you sold inventory this month, that doesn't mean all of the related production happened this month either. Your accounting needs a handoff point between the factory floor and finished inventory.

That handoff point is cost of goods manufactured.

For DTC brands, this number is more useful than many founders think. It helps you answer hard questions fast:

  • Pricing pressure: Are rising unit costs coming from materials, labor, or overhead?
  • Inventory planning: How much value is tied up in completed stock before it sells?
  • Vendor control: Is your manufacturer getting more expensive, or are your own assumptions outdated?
  • Margin discipline: Are you confusing a purchasing spike with a production spike?

Practical rule: If you can't explain the cost of completed units separately from the cost of sold units, you don't really know your gross margin.

Effective production tracking provides operators with an edge over spreadsheet tourists. The founder who tracks production cleanly can renegotiate faster, reprice faster, and kill weak SKUs earlier.

What Is Cost of Goods Manufactured

Cost of goods manufactured is the total cost of the finished goods you completed during a specific period. Not everything you purchased. Not everything you sold. Only the cost attached to the units that moved out of production and into finished goods inventory.

A diagram explaining the Cost of Goods Manufactured using a baker's cake recipe as an analogy.

The simplest way to think about it

Use a bakery. A baker buys flour, sugar, eggs, and packaging. Some ingredients stay in storage. Some are mixed into cakes still in the oven. Some become finished cakes sitting on the cooling rack.

COGM is the cost of the cakes that are fully done and ready to move into inventory.

That's why the standard formula matters. Manufacturers calculate it as beginning work-in-process inventory + total manufacturing costs − ending work-in-process inventory, then use it to derive cost of goods sold with beginning finished goods inventory + COGM − ending finished goods inventory, as explained in AccountingCoach's overview of cost of goods manufactured.

If you run a DTC brand, this is not academic bookkeeping. It's the line between production and inventory. It's how you stop treating your warehouse like a black box.

Why DTC founders should care

A lot of Shopify brands outsource production, so they assume COGM is “factory stuff” that doesn't apply to them. Wrong. If you carry finished inventory, launch bundles, relabel imported goods, or do any light assembly or kitting, you need a view of what completed product cost.

COGM also forces discipline. It makes you classify costs correctly into the same three production buckets used across accounting guidance: direct materials, direct labor, and manufacturing overhead. That structure is what turns messy operating activity into usable financial data.

If you want a grounded primer on how these manufacturing accounting pieces fit together in practice, Jumpstart Partners' accounting guide is a useful companion read.

Founders who skip this usually end up pricing from supplier invoices and hoping the rest works out.

That works until packaging changes, labor shifts, or small production inefficiencies start eating margin without showing up where you expect.

The COGM Formula Deconstructed

Your supplier invoice is not your production cost. That shortcut is how Shopify brands convince themselves they have margin when they really have inventory and overhead drifting around uncounted.

A diagram illustrating the components of the Cost of Goods Manufactured formula, including materials, labor, and overhead.

Start with total manufacturing costs

COGM starts with three cost buckets. Keep them clean or your gross margin will be fiction.

  • Direct materials are the physical inputs that end up in the finished product. For a candle brand, that includes wax, fragrance oil, jars, lids, warning labels, and the product box if it ships as part of the unit. The key rule is simple. Track materials used, not just materials purchased. In practice, that means beginning raw materials inventory plus purchases, minus ending raw materials inventory. If you buy heavily ahead of a launch, using purchases instead of usage will distort the month fast.

  • Direct labor is the labor tied to making the product saleable. Assembly wages, in-house finishing, production staff, and hand-packout when it is part of manufacturing belong here. Founder time does not become direct labor because you jumped onto the floor during a busy week.

  • Manufacturing overhead includes production costs you cannot trace neatly to a single unit, such as factory rent, equipment depreciation, utilities, indirect labor, and maintenance, as outlined in NetSuite's COGM guide.

For DTC operators, overhead is where mistakes pile up. Repacking imported inventory, relabeling units for Amazon or retail, quality checks, kitting labor, and assembly space costs often get dumped into operating expenses because nobody built a proper cost map.

Fix that with a spreadsheet. One tab for materials. One for labor. One for overhead assumptions. Show the allocation rule for every overhead line, whether you assign it by units produced, labor hours, or production batches. If the rule is hidden, the number will not hold up when margins tighten.

Why work in process changes the answer

After total manufacturing costs, adjust for work in process, or WIP. WIP is money sitting inside partially completed goods.

The formula is:

COGM = Beginning WIP Inventory + Total Manufacturing Costs − Ending WIP Inventory

That adjustment matters because COGM measures what you finished during the period. It does not measure what you started.

Here is the practical read. If your brand begins the month with partly assembled gift sets, pours more cost into them, and still has unfinished units on the table at month-end, some of that spending belongs in WIP, not in completed goods. Skip that step and you will overstate output in one month, understate it in the next, and wonder why your margin swings make no sense.

Operator's view: WIP is usually small until it suddenly is not. The moment you add custom packaging, bundles, seasonal prep, or any multi-step assembly, you need a monthly WIP check.

Outsourced brands often assume WIP does not apply because the factory handles production. Bad assumption. If inventory is in transit between stages, waiting for final packaging, or sitting with a 3PL for kitting before it becomes saleable, you still need a method to capture those partial costs. Even a simple spreadsheet estimate is better than pretending everything is finished or everything is expense.

If you want the sales-side companion metric after COGM rolls into finished goods, HiveHQ's guide to COGS is a helpful reference.

COGM vs COGS The Critical Difference for Merchants

A Shopify brand can have a strong sales month and still report a weak gross margin because it is mixing up production cost with sales cost. That mistake shows up all the time in DTC finance.

A comparison infographic between COGM and COGS for merchants explaining manufacturing versus sales costs.

The dividing line merchants need

Your finished goods inventory acts as the dividing line.

COGM is the cost of completing units and moving them into finished goods inventory.
COGS is the cost released from finished goods inventory when those units are sold.

That distinction controls your P&L timing.

For merchants, the logic is simple. Costs move from raw materials or supplier production activity into WIP, then into finished goods, and only then into COGS when a customer order goes out the door. If you skip one of those steps, your gross margin stops reflecting business performance and starts reflecting accounting noise.

The formula chain matters: COGM = Beginning WIP + Total Manufacturing Costs − Ending WIP, then COGS = Beginning Finished Goods + COGM − Ending Finished Goods. Managerial accounting references such as NetSuite's COGM reference lay out that flow clearly. In practice, the message for a DTC operator is even clearer. If your COGM is wrong, your COGS will be wrong right after it.

If you want a separate read focused more tightly on the sales-side metric, HiveHQ's guide to COGS gives a helpful merchant-friendly framing.

Where DTC founders get burned

The common mistake is pulling supplier invoices for the month, dropping them into a spreadsheet, and calling the total COGS. That is purchase activity. It is not the cost of what you sold.

This gets worse with outsourced production.

If your manufacturer bills you for 8,000 units in April, but only 3,000 units are finished, received, and ready for sale, April did not suddenly become a terrible margin month. You are holding inventory. Some cost belongs in WIP or finished goods, not on the P&L yet. The same problem shows up in dropship and light-assembly models when packaging inserts, labeling, kitting, or freight are posted straight to expense instead of attached to the units that have shipped.

Use this operating flow in your spreadsheet:

  1. Track production cost into inventory first. Supplier spend, assembly cost, inbound freight, packaging, and production overhead belong in inventory if they relate to units not yet sold.
  2. Move completed units into finished goods. That is COGM.
  3. Release cost to the P&L only for sold units. That is COGS.
  4. Reconcile beginning and ending inventory every month. Raw materials, WIP, and finished goods all matter.

One more blunt point. COGM follows production timing. COGS follows sales timing.

If you build inventory ahead of a product launch, COGM rises before revenue does. If you sell through old stock during a promotion, COGS may stay high even when current-month factory spend looks low. Founders who miss that timing difference make bad pricing calls, blame Meta ads for a margin problem that started with manufacturing, and miss vendor issues until cash is already tight.

Calculating COGM A Step-by-Step Guide

Your supplier invoices do not equal your production cost for the month. That shortcut is how Shopify brands misread gross margin, underprice bestsellers, and panic over the wrong SKU.

You need a monthly COGM schedule. Build it in a spreadsheet first. If the sheet is clean, you can move it into an ERP later. If the sheet is sloppy, software just helps you report bad numbers faster.

A practical example for Zenith Candles

Use a simple monthly structure for Zenith Candles.

Start with direct materials used. Take beginning raw materials, add purchases, then subtract ending raw materials. That gives you the material cost that went into production, not just what you paid suppliers this month.

Then layer in the rest of the factory cost. Add direct labor tied to production. Add manufacturing overhead such as production supplies, factory-related software, quality control, packaging used in assembly, and inbound freight if that is part of your inventory policy.

After that, adjust for work in process. The full formula is straightforward:

COGM = Beginning WIP + Total Manufacturing Costs - Ending WIP

Once you have total COGM, divide it by units completed, not units ordered and not units sold. That gives you a per-unit manufacturing cost you can use for pricing, margin reviews, and SKU decisions. If you manage a large catalog, clean SKU naming matters here. A messy product master will break your cost model fast, especially when variants are scattered across vendors and bundles. That is the same reason teams investing in Shopify AI catalog structure and product data cleanup usually get better reporting before they get better automation.

A spreadsheet structure that works

Use one tab per month and one summary tab. Keep the model simple enough that your operator, bookkeeper, and finance lead all read the same logic and reach the same answer.

Item Amount
Beginning raw materials inventory [enter amount]
Plus raw material purchases [enter amount]
Less ending raw materials inventory [enter amount]
Direct materials used [calculated]
Direct labor [enter amount]
Manufacturing overhead [enter amount]
Total manufacturing costs [calculated]
Beginning work in process [enter amount]
Less ending work in process [enter amount]
Cost of goods manufactured [calculated]
Units completed [enter units]
COGM per unit [calculated]

Sample Statement of Cost of Goods Manufactured - Zenith Candles

Here is the operating rule that matters. Every line in this sheet should answer one question: did this cost help produce units completed this month?

A few rules keep the model useful:

  • Separate inputs from assumptions: Put allocation logic, freight rules, and labor splits on their own tab.
  • Lock the cutoff date: Month-end inventory counts, vendor bills, and production status need one cutoff. Do not keep revising it.
  • Track packaging on purpose: If boxes, inserts, labels, or kitting are part of getting a unit sale-ready, treat them consistently.
  • Count completed units carefully: Finished means finished. Units waiting on labels, inspection, or final assembly still belong in WIP.
  • Review with operations every month: Finance sees bills. Operations sees what is still on the line, at the 3PL, or stuck with a contract manufacturer.

Build the sheet so another person can audit it in ten minutes. If only the creator understands it, the model is broken.

For early and mid-stage DTC brands, Google Sheets is enough. The discipline matters more than the tool. A reusable template, a monthly close checklist, and clear SKU-level unit counts will get you a far better gross margin view than a stack of supplier PDFs dumped into Xero or QuickBooks.

How to Track COGM for Outsourced and Dropship Models

You approve a supplier invoice, glance at the unit cost, and assume your margin is fine. Then freight spikes, packaging changes, a prep center adds labor, and a one-time tooling charge slips into the same bill. Your Shopify dashboard still shows sales. Your P&L gets worse. That gap is where outsourced and dropship brands lose control.

A manager monitors factory production metrics and supply chain data on a digital tablet in a facility.

If you use a third-party manufacturer

Start with the factory invoice, then break it apart. Do not dump every charge into one blended unit cost and call it done.

Your spreadsheet should separate:

  • recurring per-unit production cost
  • one-time charges such as tooling, setup, sampling, or mold changes
  • inbound freight and duty
  • packaging and inserts
  • prep, inspection, or rework fees
  • storage or transfer costs that do not belong in manufacturing

That split matters because outsourced COGM gets distorted fast. A development charge tied to a future production run should not crush one month's margin. A temporary expedite fee should not become your permanent standard cost. If you mix these together, you train yourself to react to noise.

Overhead allocation matters here too, especially if you use multiple SKUs, vendors, or finishing steps. The Financial Accounting Standards Board's inventory guidance requires inventory costs to include direct and indirect production costs allocated systematically, not casually, and the Corporate Finance Institute's explanation of activity-based costing is a useful reference for assigning overhead based on the work each product consumes. For a DTC brand, that means allocating prep labor, QA time, kitting effort, or warehouse assembly time using a rule you can defend.

Ask your manufacturer better questions. What changed in resin, fabric, labor, packaging, minimum order quantity economics, or defect rates? Do not accept “costs went up” as an answer. You do not need the factory's full cost accounting system. You need enough detail to explain margin movement by SKU and by purchase order.

Keep that logic in a simple monthly sheet. One tab for vendor invoices. One tab for landed cost adjustments. One tab for allocation rules. One tab for SKU output. If your catalog is getting more complex, the same product structure discipline also improves how Shopify AI catalog systems work.

If you dropship or run a hybrid model

Pure dropshipping usually does not create COGM. You are buying and reselling finished goods, so the operating issue is COGS, supplier reliability, and order-level profitability.

Hybrid models need a sharper cutoff.

If you buy blank products and add branded sleeves, inserts, labels, bundles, or final assembly before the item is sale-ready, you are creating a manufacturing step. Track the costs tied to that step. That includes materials you add, labor to assemble or kit, and a reasonable share of related overhead such as prep space or contract labor.

Use a simple rule set:

  • Pure dropship: track supplier item cost, shipping, refunds, and channel fees at the order level.
  • Outsourced finished goods: use supplier production cost as the base, then track non-recurring and landed-cost items separately.
  • Bulk buy plus in-house finishing: calculate COGM only for the finishing step you control.
  • Bundling and kitting: if the work happens repeatedly and affects margin, assign labor and packaging cost by bundle instead of estimating.

Here is the practical test. If a process changes the product before sale, costs time or materials, and happens often enough to affect gross margin, track it in your COGM model. If it is just a pass-through resale transaction, keep it in COGS.

Simple beats fake precision. A clean spreadsheet with clear cost buckets will help you price better, spot vendor creep earlier, and stop blaming ad spend for a margin problem that started in operations.

From Cost Center to Profit Driver

Most founders treat cost of goods manufactured like back-office cleanup. That's too small a view.

This number helps you price products with discipline, value inventory correctly, catch inefficiencies earlier, and separate production problems from sales problems. It gives you a cleaner read on what your brand is earning before discounts, ad spend, and channel fees distort the picture.

If you sell physical products and hold inventory, this isn't optional. It's operating infrastructure.

The brands that scale well usually do one thing better than everyone else. They stop guessing. They build a repeatable monthly process, keep the spreadsheet honest, and use cost of goods manufactured as a management tool instead of a tax-season scramble. If you're also personalizing assortment and merchandising, that same operational clarity supports stronger AI product recommendations.


Shoptank helps Shopify brands become visible to AI shopping assistants like ChatGPT, Perplexity, Gemini, Claude, and Copilot. If your store has strong products but weak AI visibility, install Shoptank to generate llms.txt, add structured schema, monitor brand mentions, and make your catalog easier for AI systems to understand and recommend.

Make your Shopify store visible to AI

Shoptank automatically generates llms.txt, structured data, and AI-optimized content so ChatGPT, Perplexity, and Google AI Overview recommend your store.

Install on Shopify - it's free
Add to Shopify - Free