Home › Guides › Cost per item from invoices
Update cost per item in Shopify from supplier invoices
Shopify's profit and margin numbers are only as good as the cost per item on each variant. When a supplier's price changes and the cost isn't updated, every margin report after that is wrong.
Where cost per item lives
Every variant in Shopify has a Cost per item field in its pricing section. Shopify shows profit and margin next to it and uses it in profit reports. It should be the cost of one sellable unit, not of a case.
Three ways to update it
- One product at a time: open the product, choose the variant, and change Cost per item. Fine for a short invoice.
- Bulk editor: select several products in the product list, choose bulk edit, and add the Cost per item column. Good when many prices changed on one invoice.
- Product CSV: export your products, fill in the cost column for the changed variants, and import the file again. Good for large catalogues, but easy to overwrite other fields by mistake.
Latest cost or average cost?
Shopify keeps one cost per item per variant, so you choose what that number means:
- Latest cost: set it to the price on the newest invoice. Simple, and right for most small stores.
- Weighted average: blend the stock you already have with the new delivery. Example: 20 units on hand at $4.00 and 40 new units at $4.60 gives (20 × 4.00 + 40 × 4.60) ÷ 60 = $4.40 per unit.
Pick one method and use it every time, so margins stay comparable from month to month.
Getting the number right from an invoice
- Use the line total ÷ units, so line discounts are included.
- Convert cases to units first: a $259.20 line for 3 cases of 24 is $3.60 per item, not $86.40. See cartons and cases to units.
- Leave out sales tax or VAT you can reclaim.
- If the invoice is in another currency, convert at the rate you actually paid.
Doing it from the invoice itself
SnapBillToStock reads the invoice, matches every line to your Shopify variants and shows where the supplier's price differs from your current cost. You tick "update cost" on the lines you want; the cost is set per unit, even when the bill is per carton, and a bill in another currency can be converted at your rate first. Nothing changes until you push.
Questions
Does Shopify update cost per item automatically when I add stock?
Not from an invoice: cost per item is a field you set on each variant. Update it when the supplier's price changes, by hand, in bulk, by CSV, or with an app that reads the invoice.
Should cost per item include shipping?
Only if you want landed cost. Most small stores keep freight separate and use the product cost from the invoice; whichever you choose, do it the same way every time.
Will changing cost per item change my selling price?
No. Cost per item only affects profit and margin numbers; the price customers pay stays the same.
Stop typing bills into Shopify
SnapBillToStock reads supplier bills (photo, PDF, CSV or Excel), matches every line to your products, and updates products, costs and stock after you review. Your first 5 uploads are free.