
Every Shopify merchant needs to understand each element of the business to run it smoothly. Shopify COGS is one among them. The direct cost of buying or producing the products you sell.
Shopify merchants set up a cost for each product in Shopify and focus on selling it,
But product costs rarely stay fixed.
The gaps show up when you break down last month’s sales. The data refuses to line up, and reconciling orders, products, and reports turns up problems you did not expect.
This guide explains Shopify COGS, how to calculate it, how to add it in Shopify and to track it accurately in every scenario.
What are COGS in Shopify?
COGS is the cost of buying or producing the products you sell. It is every cost tied to a specific product. That includes the cost of acquiring or making the product, whether that is the purchase price from your supplier or your manufacturing cost, plus the costs of getting that inventory ready to sell, such as inbound freight, duties, product packaging, storage, and handling.
COGS connects costs to your products and orders. Each time you add inventory, you set the cost per item for that product, and Shopify carries that number into every order.
How do you calculate COGS
The formula depends on your business type. The two common types are direct-to-consumer (D2C) sellers and ecommerce resellers.
COGS for D2C sellers
COGS = Beginning Inventory + Additional Purchases - Ending Inventory
This formula works by period. Start with the value of the inventory you held at the beginning, add everything you bought or produced during the period, then subtract the value of what is left at the end. The remainder is the cost of what you sold.
Example: $10,000 in beginning inventory, plus $5,000 in purchases, minus $8,000 in ending inventory gives a COGS of $7,000.
COGS for ecommerce resellers
COGS = Product Cost + Freight Cost + Duties + Product Packaging
This formula works per unit. Add every direct cost of getting one unit ready to sell.
Example: $20 product cost, plus $3 freight, $2 duties, and $1 packaging gives a COGS of $26 per unit.
Freight usually arrives as one bill for the whole shipment. Divide it by the number of units to get the per-unit figure. A $1,500 freight bill for 500 units adds $3 to each unit.
COGS for Manufacturers
COGS = Direct Material + Direct Labor + Manufacturing Overhead
This formula fits stores that make their own products. Add the three costs of producing a unit:
H4: Direct material — The raw materials that go into the product.
H4: Direct labor — The wages of the people who make the product.
H4: Manufacturing overhead — The indirect costs of production, such as factory rent, utilities, and equipment upkeep.
Example: $8 in direct material, plus $3 in direct labor and $2 in manufacturing overhead gives a COGS of $13 per unit.
How to track COGS in Shopify?
Tracking COGS in Shopify has two parts: adding the cost to each product, then checking it in your reports.
Step 1: Add the cost per item
Add the calculated cost to each product through the cost per item field. Here are the steps:
Single products : Go to Shopify Admin > Products, click a product, and enter the cost in the cost per item field.
Products with variants : Scroll to the Variants section, select the variants you want to change, and click Bulk edit. Fill in the cost per item column for each size or color.
Bulk updates : Import a CSV file to upload costs for many products at once.
Step 2: Track COGS using Shopify reports
Shopify provides basic financial reports, but COGS tracking is not included by default. Here is how to find and manage your Shopify cost of goods sold report:
Go to Shopify Admin > Analytics > Reports.
Under Finances, open the Profitability report (if enabled).
If COGS is not visible, enter your costs in the cost per item field under each product in your Shopify admin.
Once costs are in place, the report can show the cost behind each product and order.
Where Shopify COGS tracking is limited
Shopify’s cost per item field holds one number per product or variant. That works when your cost stays steady. It falls short when the real cost changes.
Which business models does this affect
Print on demand (POD) and customization stores
Products are printed or customized only after an order arrives, so each order carries its own mix of base and customization costs. Each order can cost a different amount depending on the customization it carries.
Drop shipping
Supplier prices change often, and the same product may come from different suppliers over time. Costs are managed through cost history and separate cost accounts per supplier, so every order is tied to what the supplier actually charged on the day it was placed.
Curated subscription and bundle selling
Several items are packed and sold together as one product, so one sale carries the cost of multiple items. The cost of a bundle changes whenever an item inside it changes.
B2B wholesale
Large-volume orders come with tiered pricing and negotiated terms. The cost per unit changes with the buyer and the quantity.
Multi-region selling
The same product is sold in several countries, so costs differ by market. Supplier, freight, duties, and local fulfillment can all change from one country to the next.
Which Costs Cannot Be Tracked in Shopify?
Customization cost
POD stores add costs such as engraving, embroidery, printing, and personalization on top of the base product. These costs change with the customization each order carries, so one cost per item cannot hold them.
Bundle cost
A bundle, such as a Home Gym Essentials Pack or a Complete Clear Skin System pack, combines multiple items and sells as one product. Its cost is the combined cost of every item inside, which a single cost field does not show.
Seasonal pricing
Supplier prices rise and fall with the season. A single cost stays fixed while the real cost keeps moving.
Bulk purchase pricing
Suppliers charge different unit costs for different purchase volumes. The cost of the same product depends on how much you bought at the time.
Supplier changes
A new supplier can charge a different price for the same product. The product record stays the same, but the cost behind it has changed.
Inflation
Costs rise gradually across materials, freight, and labor. A cost entered once falls out of date as these increases build up.
Quantity-tier pricing
The cost per unit depends on how many units an order contains. Orders of different sizes carry different costs for the same product.
How to get COGS right?
Getting COGS right starts with filling the gaps that Shopify misses in the right way.
Track COGS Shopify doesn’t capture
Products with no cost per item or with an incomplete one make profit look higher than it really is. To close that gap, you need to track the missing COGS for those products and variants, in a way that matches how you actually buy them.
Set up a fixed cost per unit for products with a steady, flat cost, a supplier-based cost when the same product costs vary by who you source it from, and a tier-based cost when your supplier’s price shifts with volume, matched to how their pricing structure actually works.
Set costs by period and country
Costs shift with suppliers, seasons, and the regions you sell into, and a single flat cost per product quickly stops reflecting what you actually paid.
To keep the COGS accurate in these scenarios track costs based on period and country, so each product can have a different cost for different date ranges and for every country you sell in. You can also mix these with variant and quantity, so if a cost changes mid-year, differs by region, or depends on how much was ordered, the right one gets used every time without you having to step in.
Add rules for customization costs
Custom and print-on-demand products rarely fit a single flat cost. Each order can carry its own add-ons, materials, or finishing fees. To keep profit accurate without reconciling orders one by one, you need rule-based costing that reacts to how the order was placed.
That means setting up rules like tag-based and line item property-based costing, where you add tags or line item properties to the order, assign a cost to each, and automate it so every matching order pulls in the cost on its own, with no manual effort.
Cost by quantity break
When your supplier prices by volume, the cost per unit changes and quantity break pricing handles this with methods like Absolute, where one rate applies to the whole order based on the break it falls into; Incremental, where each quantity range carries its own rate across the order; and Flat, where a fixed cost applies regardless of quantity.
Conclusion
Accurate COGS is the foundation of every profit number in your Shopify store. When costs are missing or stuck at a single flat value, profit looks higher than it is, prices carry margins that do not exist, and your reports quietly mislead every decision built on them.
Shopify’s cost per item field works for the simplest case, but the moment customization, bundles, tiered pricing, multiple suppliers, or multi-region selling enter the picture, it stops reflecting reality. Spreadsheets fill the gap for a while, but as orders grow, mistakes creep in and profit numbers drift.
With Bloom, you set your costs once and they apply to every matching order automatically, whether the cost varies by product, period, country, supplier, quantity, tag, or line item property. Your numbers stay accurate across the dashboard in real time, so you can price, discount, and spend on ads with the real margin in view.

FAQs
What are COGS in Shopify?
COGS is the cost of buying or producing the products you sell. It is every cost tied to a specific product, including the purchase price from your supplier or your manufacturing cost, plus the costs of getting inventory ready to sell such as inbound freight, duties, product packaging, storage, and handling. Each time you add inventory, you set the cost per item for that product, and Shopify carries that number into every order.
How do you calculate COGS in Shopify?
The formula depends on your business type. D2C sellers use Beginning Inventory + Additional Purchases - Ending Inventory. Ecommerce resellers use Product Cost + Freight Cost + Duties + Product Packaging per unit. Manufacturers use Direct Material + Direct Labor + Manufacturing Overhead per unit.
How do you add COGS to a product in Shopify?
Add the cost through the cost per item field. For single products, go to Shopify Admin > Products, click a product, and enter the cost in the cost per item field. For products with variants, use Bulk edit in the Variants section. For many products at once, import a CSV file with the cost per item column.
How do you track COGS using Shopify reports?
Go to Shopify Admin > Analytics > Reports, and under Finances open the Profitability report if enabled. If COGS is not visible, enter your costs in the cost per item field under each product in your Shopify admin. Once costs are in place, the report can show the cost behind each product and order.
Why does Shopify’s cost per item field fall short for some stores?
Shopify’s cost per item field holds one number per product or variant, which only works when the cost stays steady. It falls short for print on demand and customization stores, dropshipping with changing suppliers, curated subscription and bundle selling, B2B wholesale with tiered pricing, and multi-region selling where supplier, freight, duties, and local fulfillment differ by country.
Which costs cannot be tracked in Shopify’s cost per item field?
Customization costs for POD stores, bundle costs that combine multiple items into one product, seasonal pricing that rises and falls with the season, bulk purchase pricing where unit cost depends on volume bought, supplier changes where a new supplier charges a different price, inflation across materials, freight, and labor, and quantity-tier pricing where cost per unit depends on how many units an order contains.
How do you track COGS accurately when costs change by period, country, or supplier?
Track costs by period and country so each product can have a different cost for different date ranges and for every country you sell in. Mix these with variant and quantity so if a cost changes mid-year, differs by region, or depends on how much was ordered, the right one is used automatically. For suppliers that price by volume, use quantity break pricing with Absolute, Incremental, or Flat methods.
How do you track COGS for print on demand and customization orders?
Use rule-based costing that reacts to how the order was placed. Set up tag-based and line item property-based costing: add tags or line item properties to the order, assign a cost to each, and automate it so every matching order pulls in the cost on its own, with no manual effort.
Discover More







