Cost Management6 min readFebruary 22, 2026

Shopify COGS: What It Is, Why It Matters, and How to Actually Track It

Cost of Goods Sold is the single most important number in your Shopify store. Shopify doesn't track it automatically — here's how to fix that.

Ask most Shopify merchants what their gross margin is and you'll get one of three answers: a rough guess, a confident wrong number, or a blank stare. The reason is almost always the same — they haven't properly tracked their Cost of Goods Sold.

COGS is the single most important input in your profit calculation. Get it wrong — or skip it entirely — and every other metric in your business is built on a lie. You can't know your real profit margin, you can't price products correctly, and you can't tell which products are actually making you money.

Here's everything you need to know about COGS for your Shopify store, and how to actually track it.


What Is COGS?

Cost of Goods Sold is the direct cost of producing or acquiring the products you sell. It's not your overhead, not your marketing spend, not your Shopify subscription — just the cost directly tied to the products themselves.

For a typical Shopify store, COGS includes:

  • Product cost — what you paid your supplier or manufacturer per unit
  • Packaging — boxes, mailers, tissue paper, inserts, tape
  • Inbound shipping — freight costs to get inventory from your supplier to your warehouse
  • Import duties and tariffs — if you're importing goods from overseas
  • Direct labor — if you manufacture or assemble products yourself

What COGS does not include: payment processing fees, Shopify fees, outbound shipping to customers, advertising, salaries for non-production staff, or any overhead. Those costs matter — they just go in a different part of your profit calculation.


Why Shopify Doesn't Track COGS Automatically

Shopify knows what your customers paid for your products. It doesn't know what you paid for them. That information lives in your purchase orders, supplier invoices, and inventory systems — not in Shopify.

Shopify does have a "Cost per item" field in the product editor. You can enter a value there, and Shopify will use it for basic inventory valuation and some reports. But it has significant limitations:

  • It doesn't account for cost changes over time (if your supplier raises prices, historical orders don't update)
  • It doesn't include packaging, freight, or duties in the COGS figure
  • It's not surfaced in Shopify's main analytics — you have to dig for it
  • There's no profit-per-order view that uses it by default

The result is that most Shopify merchants either ignore COGS entirely, or use a rough percentage estimate that's often significantly off from reality.


The Hidden Cost of Ignoring COGS

When you don't track COGS accurately, you make expensive mistakes that compound over time.

You price products incorrectly

If you think your COGS on a product is $15 but it's actually $22 (once you include packaging and freight), you may be pricing it at $45 thinking you have a 67% gross margin. Your actual margin is 51%. That's a meaningful difference when you're scaling ad spend against it.

You promote the wrong products

High revenue doesn't mean high profit. Your best-selling product might have a 20% margin while a slower-moving product has a 60% margin. Without COGS data, you'll spend ad budget promoting the wrong one.

You scale unprofitable ad campaigns

A Facebook campaign showing 4x ROAS looks great. But if the product being sold has a 30% gross margin, you need a 3.3x ROAS just to break even on ad spend after COGS. You could be running a "profitable" campaign that's actually losing money on every sale.


How to Calculate COGS for Your Store

The formula for COGS in a given period is:

Beginning Inventory Value
+ Inventory Purchased During Period
− Ending Inventory Value
= COGS for the Period

In practice, most e-commerce stores use a simpler per-unit approach: assign a cost to each product SKU, and multiply by units sold. This gives you COGS per order, per product, and per period without needing to do full inventory accounting.


COGS by Business Type

Wholesale / Reseller

Your COGS is your supplier invoice cost per unit, plus inbound freight allocated per unit, plus any import duties. If you paid $8.50 per unit to your supplier plus $0.40/unit in freight and $0.30 in duties, your COGS is $9.20.

Private Label / Manufacturer

COGS includes your manufacturing cost (materials + labor), packaging, quality control, and inbound freight. If you manufacture in-house, you need to allocate direct labor time per unit.

Print-on-Demand

Your COGS is simply the base product cost charged by your POD supplier (Printful, Printify, etc.) plus any per-order handling fees. This is the easiest case — your supplier invoice is your COGS.

Dropshipping

Similar to POD — your COGS is your supplier's price per unit. The complication is that supplier costs can vary by order quantity and fluctuate over time, so you need to track the actual cost at the time of each order rather than using a fixed figure.


What Good COGS Tracking Looks Like

Properly tracked COGS gives you three things you can't get otherwise:

  • Gross margin per product — know exactly which products are worth promoting
  • Profit per order — see whether each transaction actually made money after the cost of what was sold
  • Historical cost accuracy — when your supplier raises prices, your profit calculations for orders from that point forward update automatically, without corrupting historical data

Rule of thumb: If you don't know your COGS within 5% accuracy, you don't know your profit margin. And if you don't know your margin, every business decision — pricing, ad spend, discounts, product selection — is a guess.

How to Track COGS Automatically

The manual approach is a spreadsheet where you maintain a product cost table and update it when supplier prices change. It works, but it's time-consuming to maintain and easy to fall behind on.

DataFuse lets you set COGS per SKU directly in the app, tracks cost changes over time so historical orders stay accurate, and automatically calculates gross profit on every order, every product, and every period. You enter your costs once — DataFuse does the rest.

If you don't know your exact COGS yet, DataFuse also lets you set a default COGS percentage as a starting point. Not perfect, but far better than ignoring it entirely — and you can refine it as you gather more accurate data.

The stores that grow consistently and profitably are the ones that treat COGS as a first-class metric, not an afterthought. It's the foundation everything else is built on.

Stop guessing

See your real Shopify profit today

DataFuse connects to your store in minutes and shows you true profit after every cost — automatically.

Start free 7-day trial

No credit card required during trial