Short answer: Cost per item is what a product or variant costs you, entered in the Price section of the product page. Shopify uses it to show projected profit and margin on the product, and to calculate cost of goods sold and gross profit in its reports. Two rules decide what those reports show: the cost is recorded on an order when the order is created, and a cost you add or change later isn’t applied to earlier orders. So add costs before you sell, and fill in the products that are missing one.
AfterAds, our Shopify app, lists the products that sold without a cost, so you can fill them in. See AfterAds on the Shopify App Store.
What cost per item is, and what it isn’t
Shopify describes cost per item as how much it costs you for the product or variant. What goes in it depends on how you get your stock:
- If you resell products, enter the price you paid the manufacturer, excluding taxes, shipping or other costs.
- If you make them, enter a value based on your labor and material costs.
Cost per item isn’t the same as unit price. Unit price is the price per unit, such as per kilogram, that you can show shoppers so they can compare package sizes. It’s optional, though displaying it is a legal requirement in some regions. Cost per item is your own number, used for profit and margin.
How to add cost per item to a product
- In your Shopify admin, go to Products and click the product.
- In the Price section, click Cost per item.
- Enter the cost in the Cost field and click Save.
If the product has variants, each variant needs its own cost. Once a cost is set, Shopify shows the projected profit and margin in the Price section, with margin calculated as (price − cost) ÷ price × 100.
How to add costs to many products at once
Shopify lets you add costs to existing products in two ways:
- The bulk editor. Select the products in Products, click Bulk edit, and fill in the costs. Our guide to bulk editing products in Shopify shows how to add columns and save.
- A product CSV. Enter costs in the Cost per item column and import the file with Overwrite products with matching handles ticked. With overwrite on, a blank cell in an optional column replaces the product’s value with blank, so keep every value you want to keep in the file, and test the import on a few products first.
Where your costs show up
| Place | What it uses |
|---|---|
| Product page, Price section | Projected profit and margin from the price and cost you entered. |
| Profit reports, such as Gross profit by product | Only sales of products and variants that had a cost recorded at the time they were sold. Gross margin here is calculated from net sales, so it can differ from the product page. |
| Finance summary, Gross profit breakdown | Net sales split into sales with a cost recorded and sales without one. Only net sales with a cost recorded count toward cost of goods sold and gross profit. |
So Shopify’s cost of goods sold is the cost of the products it has a cost for. Sales of products without a cost aren’t counted as zero cost; they’re left out of gross profit.
Why the timing matters
Because the cost is recorded on an order when the order is created, a cost you add today won’t change last month’s reports. If you sold a product for weeks without a cost, those sales stay outside your gross profit even after you add the cost. That makes it worth adding costs as soon as you list a product, and checking for products that sold without one.
When you change a supplier or a price, update the cost then. Orders created before the change keep the cost they had when they were placed.
Find the products that sold without a cost
The Finance summary shows how much of your net sales had no cost recorded, and the profit reports leave those sales out. Look at both before you trust a gross profit figure. Once your costs are in, our guide on how to calculate profit on Shopify covers the next step, from gross profit to net profit, and our Shopify profit calculator works it out for one period.
Payment fees, transaction fees and app charges are also left out of Shopify’s profit reports; our guide on how to see Shopify fees shows where to find each one.
Fill in missing costs, then see your profit
AfterAds is our Shopify app. It lists products that sold without a cost, so you can enter costs one by one or paste them from a spreadsheet, and save them back to Shopify if you want. A sale without a product cost is flagged and left out of product cost, unless you turn on an estimated cost (a % of the sale price) yourself.
It takes the figures Shopify already reports, subtracts the costs Shopify doesn’t know about, and shows what is left, per day and per ad channel. It shows your profit line by line: net sales, then product cost, shipping, payment fees, ad spend and your own expenses, down to net profit.
Sources
All sources were opened on November 26, 2026.
- Shopify Help Center, Adding cost per item to products
- Shopify Help Center, Unit pricing
- Shopify Help Center, Profit reports
- Shopify Help Center, Finance reports
- Shopify Help Center, Using CSV files to import and export products