Understanding COGS for Shopify: Track Your True Costs
Cost of Goods Sold (COGS) is the direct cost of producing or purchasing the products you sell. For Shopify stores, COGS typically includes supplier/manufacturing costs, inbound shipping from supplier to you, packaging materials, and any direct labor involved in producing the product. COGS does NOT include marketing, Shopify fees, outbound shipping to customers, or overhead. Accurately tracking COGS is essential for pricing, tax deductions, and knowing your actual gross profit.
Track Your Real Customer Journeys
What Counts as COGS (And What Doesn't)
The most common mistake Shopify store owners make with COGS is including costs that don't belong or leaving out costs that do. Getting this right is the foundation of every profit calculation you'll ever make.
Included in COGS
- Raw materials used to create the product
- Manufacturing or supplier costs per unit
- Inbound freight (shipping from supplier to you or your warehouse)
- Product packaging materials (boxes, inserts, labels)
- Direct labor involved in producing the product
- Import duties and customs fees
- Factory overhead directly tied to production
NOT Included in COGS
- Shopify subscription fees
- Marketing and advertising spend
- Outbound shipping to customers
- Payment processing fees (Shopify Payments, PayPal)
- Shopify apps and software subscriptions
- Owner salary and administrative wages
- Rent, utilities, and general overhead
- Shipping packaging (mailers, tape, packing peanuts for outbound orders)
The dividing line is simple: if the cost is directly tied to creating or acquiring the product before it's ready to sell, it's COGS. If the cost exists regardless of whether you sell that specific unit, it's an operating expense. This distinction matters for tax purposes, pricing decisions, and understanding your real gross margin.
How to Calculate COGS for Different Shopify Models
COGS calculation varies significantly depending on your business model. Here's how to calculate it for the four most common Shopify store types.
Dropshipping
Dropshipping COGS is the simplest to calculate because you don't hold inventory. Your COGS is what you pay the supplier per order, including their shipping fee.
| Cost Component | Amount |
|---|---|
| Supplier product cost | $8.00 |
| Supplier shipping fee | $2.50 |
| Total COGS per unit | $10.50 |
Private Label
Private label COGS includes the unit cost from your manufacturer plus all costs to get the product to your warehouse, ready to sell.
| Cost Component | Amount |
|---|---|
| Manufacturing unit cost | $4.00 |
| Inbound shipping per unit | $0.40 |
| Import duties per unit | $0.32 |
| Packaging per unit | $0.80 |
| Total COGS per unit | $5.52 |
Print on Demand
Print on demand is similar to dropshipping but your COGS includes both the base product and the printing/customization fee charged by the POD provider.
| Cost Component | Amount |
|---|---|
| Base product cost | $8.50 |
| Print/customization fee | $3.50 |
| Total COGS per unit | $12.00 |
Handmade
Handmade COGS is the most complex because it includes your direct labor time. Value your labor at a fair hourly rate and track the time per unit to calculate labor COGS accurately.
| Cost Component | Amount |
|---|---|
| Raw materials | $12.00 |
| Consumable supplies | $1.50 |
| Direct labor (1.5 hrs @ $15/hr) | $22.50 |
| Packaging | $2.00 |
| Total COGS per unit | $38.00 |
Tracking COGS in Shopify
Shopify has a built-in "Cost per item" field on every product and variant. You can find it by going to Products, selecting a product, and scrolling to the Pricing section. Enter the cost you pay for each unit, and Shopify will calculate your margin and profit automatically in reports.
However, Shopify's built-in cost tracking has significant limitations. It only stores one cost per product at a time, so when your supplier raises prices, the old cost data is overwritten. It doesn't account for inbound shipping, duties, or packaging unless you manually add those into the cost per item. And it doesn't handle currency conversion for international suppliers.
For accurate COGS tracking, do a quarterly reconciliation. Compare Shopify's reported COGS against your actual supplier invoices, shipping bills, and duty payments for the quarter. Calculate the true per-unit COGS including all direct costs and update the "Cost per item" field accordingly. This catches supplier price changes, currency fluctuations, and costs that Shopify's single field misses.
If your COGS is complex or changes frequently, consider using a dedicated inventory management app that syncs with Shopify and tracks landed costs automatically. Apps like Stocky (included with Shopify POS Pro) or third-party tools can handle multi-component COGS, currency conversion, and historical cost tracking.
How COGS Affects Your Pricing
Your COGS directly determines how much room you have for marketing, operations, and profit. Here's how the same $25 selling price looks at different COGS levels:
| COGS Level | COGS | Gross Profit | Gross Margin | Available for Ads + Overhead |
|---|---|---|---|---|
| Low COGS | $5.00 | $20.00 | 80% | $20.00 |
| Medium COGS | $12.50 | $12.50 | 50% | $12.50 |
| High COGS | $18.75 | $6.25 | 25% | $6.25 |
At 80% gross margin, you have $20 per unit to cover advertising, Shopify fees, shipping, and profit. You can afford to spend aggressively on customer acquisition. At 25% gross margin, you only have $6.25 per unit for everything else. If your customer acquisition cost is $10, you're losing money on every first order. This is why knowing your exact COGS isn't optional — it determines your entire growth strategy.
COGS and Taxes
COGS is one of the most important line items on your tax return because it directly reduces your taxable income. The formula is straightforward:
Revenue - COGS = Gross Profit (taxable income starts here)
If your store generates $500,000 in revenue and your COGS is $200,000, you pay taxes on the remaining $300,000 (minus operating expenses). Underestimating your COGS means you're overpaying taxes. Overestimating it could trigger an audit.
For inventory-based businesses, the IRS requires you to use a consistent inventory valuation method. The three most common methods are:
- FIFO (First In, First Out): Assumes you sell the oldest inventory first. When costs are rising, FIFO results in lower COGS and higher taxable income. This is the most common method for Shopify stores.
- LIFO (Last In, First Out): Assumes you sell the newest inventory first. When costs are rising, LIFO results in higher COGS and lower taxable income. Less common for ecommerce and not allowed under IFRS.
- Weighted Average: Averages the cost of all units available for sale during the period. This smooths out price fluctuations and is the simplest method for stores with many similar products.
Whichever method you choose, you must use it consistently. Switching methods requires IRS approval and should be discussed with your accountant. For most Shopify stores selling physical products, FIFO is the standard and most straightforward choice.
Common COGS Mistakes
- •Not updating COGS when your supplier changes prices. If your manufacturer raised costs 10% six months ago and you haven't updated Shopify, your profit reports are wrong.
- •Ignoring currency fluctuations for international suppliers. If you pay in CNY or EUR, your actual COGS in USD changes every day. Reconcile quarterly at minimum.
- •Mixing COGS with operating expenses. Shopify fees, marketing costs, and outbound shipping are NOT COGS. Including them inflates your COGS and makes your gross margin look worse than it is.
- •Not tracking COGS per variant. A small t-shirt and a 3XL t-shirt often have different production costs. A blue widget and a custom-engraved widget definitely do. Track at the variant level.
- •Forgetting to account for samples, damaged goods, and shrinkage. Products that you buy but can't sell still count as costs. Write them off properly rather than leaving them in inventory.
COGS tells you what each product costs. BlackBox tells you what each customer journey costs. See which channels bring orders at the lowest acquisition cost — and which ones eat your margins.
Track Your Real Customer JourneysWhat Shopify merchants are saying
Reviews from the Shopify App Store
“Great app, easy to install, and way more affordable than the big-name attribution tools. Helps me make smarter decisions about my ad spend. Support has been responsive too. Worth every penny.”
LooksPretty
“This is a good app. I simply tried the app, and I would say it exceeded my expectations. The setup has been very easy and I got some pretty good insights. Support has been very responsive.”
Hustle Wear
“I was skeptical at $19/mo but this thing actually nails attribution better than tools I've paid way more for.”
Sydney Padel Club
Ready to see your real attribution?
Frequently Asked Questions
What is COGS in Shopify?
COGS (Cost of Goods Sold) is the direct cost of the products you sell. It includes everything that goes into getting the product ready for sale: supplier costs, manufacturing, inbound shipping, packaging materials, and direct labor. It does not include marketing, Shopify fees, or outbound shipping to customers.
How do I enter COGS in Shopify?
Go to Products in your Shopify admin, select a product, and find the "Cost per item" field in the Pricing section. Enter the cost you pay for each unit. Shopify will use this to calculate your profit margin on that product. For products with variants, you can set a different cost per item for each variant.
Is shipping included in COGS?
Inbound shipping (from your supplier to you) is part of COGS. Outbound shipping (from you to the customer) is an operating expense and is NOT included in COGS. This distinction matters for both accurate profit calculations and tax reporting.
How do I calculate COGS for dropshipping?
For dropshipping, COGS is the amount you pay the supplier per order, including the product cost and any shipping fee the supplier charges you. Since the supplier ships directly to the customer, their shipping charge to the customer is your inbound freight equivalent and counts as COGS.
Why is tracking COGS important for my Shopify store?
Accurate COGS determines your actual gross profit, which is the foundation for every financial decision you make. Without it, you cannot know your real margins, set profitable prices, calculate break-even points, or properly file taxes. Many stores think they are profitable when they are actually losing money because they underestimate their true COGS.