If you run an operating store, you have already seen this formula in a dozen accounting posts. They walk a furniture plant through direct materials, direct labor, and factory overhead, then hand you a tidy total. None of them tell you what the number means for your margin next month.
This guide keeps the real formula intact, then rebuilds it for a seller who outsources manufacturing — and carries it all the way to per-order profit, which is the part the textbook versions skip.
The manufacturing COGS formula, stated plainly
For a business that makes its own products, cost of goods sold is a two-step calculation. First you figure out what you finished producing this period (cost of goods manufactured). Then you adjust for what actually sold versus what's still sitting in inventory.
Step one — Cost of Goods Manufactured (COGM):
COGM = Beginning Work-in-Progress + Total Manufacturing Costs − Ending Work-in-Progress
Step two — Cost of Goods Sold (COGS):
COGS = Beginning Finished Goods + COGM − Ending Finished Goods
That two-step structure is the standard managerial-accounting treatment described by Corporate Finance Institute. COGM answers "what did I complete?" and COGS answers "what did I sell?"
The three cost inputs
Total Manufacturing Costs inside the COGM line are always the same three buckets:
- Direct materials used = Beginning Raw Materials + Purchases − Ending Raw Materials. The blank garment, the ink, the mug.
- Direct labor = the wages of the people who physically make the product.
- Manufacturing overhead = everything else the factory needs to run: equipment depreciation, plant rent, utilities, indirect labor, and supplies.
Add those three together, roll them through work-in-progress, and you have COGM. Roll COGM through finished-goods inventory, and you have COGS.
A clean textbook example
Say a small factory posts these numbers for a month: direct materials used of $120,000, direct labor of $50,000, and manufacturing overhead of $60,000. Work-in-progress starts at $10,000 and ends at $30,000.
COGM = $10,000 + ($120,000 + $50,000 + $60,000) − $30,000 = $210,000.
Now assume finished goods open at $40,000 and close at $55,000.
COGS = $40,000 + $210,000 − $55,000 = $195,000.
That is the formula working exactly as written. The problem is that almost no print-on-demand operator has a $60,000 overhead line or a work-in-progress account — so the next section translates it.
When your supplier is your factory
Here is the shift that the generic guides never make. When you sell print-on-demand, you do not hold raw materials, you do not pay direct labor, and you do not carry factory overhead. Your supplier does all three and bills you a single blended per-unit price.
That one price — the amount Printify, Printful, or Gelato charges to produce and hand off a unit — already contains direct materials, direct labor, and overhead rolled together. In formula terms, their invoice is your Total Manufacturing Costs.
The second simplification is inventory. POD items are made to order, so you rarely carry finished-goods or work-in-progress inventory. When beginning and ending inventory are both near zero, the formula collapses:
COGS ≈ Supplier production charges for the units you sold this period.
So for most operating POD stores, cost of goods sold is simply the sum of what your fulfillment partner charged you for everything that shipped. The accounting is boring; the implication for margin is not.
Worked example: a real operating month
Say your store ran 420 orders last month at a $34 average order value, so revenue was $14,280. You fulfill through Printify, and the typical order is one shirt.
Your per-unit supplier charge is $12.40 for the garment plus $4.75 shipping = $17.15 per order that your supplier bills you.
With no inventory to adjust, your monthly COGS = 420 × $17.15 = $7,203.
Gross profit = $14,280 − $7,203 = $7,077, a gross margin of about 50%. That is the number the manufacturing COGS formula actually produces for you — and it is where most sellers stop. The next section is why stopping there is dangerous.
From COGS to per-order profit
Gross margin feels healthy right up until you remember the costs that sit below COGS. For an operating store, the two biggest are ad spend and payment fees — and neither appears anywhere in the manufacturing formula.
This is the exact handoff from cost accounting to profit accounting. Getting COGS right is step one; the operational discipline of recording cost of goods sold consistently is step two; subtracting the rest is where the real answer lives. For the full picture of how these layers stack, the ecommerce ops economics guide maps every line from revenue to take-home.
Worked example: per-order profit
Take one $34 order from the store above and carry it all the way down.
| Line item | Amount |
|---|---|
| Order revenue (AOV) | $34.00 |
| Supplier COGS (garment + shipping) | −$17.15 |
| Payment processing (roughly 2.9% + $0.30) | −$1.29 |
| Ad spend per order (at a $2,800 Meta budget ÷ 420 orders) | −$6.67 |
| True per-order profit | $8.89 |
The gross-margin story said you keep about $17 per order. The real story says you keep $8.89 — barely half of it — once customer acquisition and processing come out. That gap is why a store can post a 50% gross margin and still feel broke.
It also shows how fragile the number is. If your Meta cost-per-order drifts from $6.67 up to $9.50, your $8.89 profit becomes roughly $6.06 — a one-third cut to take-home from a single rising input, with COGS never moving.
Common COGS mistakes operators make
Burying ad spend in COGS. Marketing is an operating expense, not a cost of manufacturing. Mixing it in inflates COGS and hides your true gross margin — keep it in the layer the guide on controlling operating expenses covers.
Forgetting supplier shipping. The shipping your supplier bills you is part of producing and delivering the unit, so it belongs in COGS. The shipping you separately pay for warehouse or office logistics is a different line — see direct operating expenses for the split.
Ignoring refunds and reprints. A refunded POD item cannot be restocked, so its production cost stays in COGS as a dead loss. If you refund or reprint even a handful of orders a month, your effective COGS is higher than your supplier invoices suggest.
Using a blended average instead of per-SKU cost. A $9 mug and a $24 hoodie have wildly different margins. One averaged COGS number hides which products actually make money.
Get the number computed from live data
You can rebuild this formula in a spreadsheet every month — or you can have it computed from your real orders automatically.
PodVector AI's Victor is an AI employee that connects directly to Shopify, Meta Ads, Google Ads, Printify, Printful, Gelato, and Klaviyo. Victor pulls the actual supplier charge on each order, subtracts payment fees and the ad spend that acquired the customer, and computes true per-order profit — the way the worked example above lays it out, order by order, not a quarterly average. Every write action Victor takes is approval-gated, and it can deliver the resulting reports straight to your Google Drive.
Start with PodVector AI and let Victor turn the manufacturing COGS formula into a live profit number you can actually run the business on.
FAQs
What is the cost of goods sold formula for manufacturing?
COGS = Beginning Finished Goods Inventory + Cost of Goods Manufactured − Ending Finished Goods Inventory. Cost of Goods Manufactured itself equals Beginning Work-in-Progress + (Direct Materials + Direct Labor + Manufacturing Overhead) − Ending Work-in-Progress. The two-step structure separates what you completed from what you actually sold.
How is COGM different from COGS?
COGM is the total cost of the units you finished producing during the period. COGS is the cost of the units you sold. If you manufactured more than you sold, the difference sits in finished-goods inventory, so COGM and COGS rarely match exactly for a business that holds stock.
Does the manufacturing formula apply to print-on-demand sellers?
Yes, but it simplifies dramatically. Your supplier absorbs direct materials, labor, and overhead into one per-unit price, and because POD items are made to order, you carry almost no inventory. In practice your COGS equals the supplier production charges for the units that shipped.
What should be included in COGS for a POD store?
The supplier's per-unit production cost and the shipping your supplier bills you to fulfill the order. Include unrecoverable production cost on refunds and reprints. Do not include ad spend, your software subscriptions, or general overhead — those are operating expenses, not cost of goods sold.
Why does my gross margin look fine but my profit feel thin?
Because gross margin only subtracts COGS. Ad spend and payment processing come out below it, and for most operating stores they are large enough to cut take-home roughly in half. The manufacturing COGS formula is necessary but not sufficient — per-order profit is the number to manage.
Is supplier shipping part of COGS or an operating expense?
The shipping your supplier charges to produce and send the unit is part of COGS, because it is a direct cost of delivering that specific product. Shipping tied to your own operations, rather than a sold unit, is an operating expense instead.