SKU margin
Why your Shopify orders show negative margin (and how to fix it)
Seamline finance team · Cross-border ecommerce finance · Last updated November 24, 2026
TL;DR
Negative margin usually appears because two views are being mixed. Shopify multiplies a static cost per item by net sales; contribution profit then subtracts payment fees, billed freight, returns and ad spend. A discounted SKU can look fine on the product page and still lose money per order.
One order is a clue. Shopify profit-leak detection turns the same bridge into a scheduled, ranked list across every SKU and every spend category.
Still choosing a tool? Compare Shopify profit apps by the cost lines they cover, then decide which app should own the dashboard and which should own the audit.
You are probably looking at two different margins
The product page margin and the profit report margin are both useful, but they are not the same number. Shopify calculates product-page margin from price minus cost per item. Its profit reports use net sales, so discounts and refunds change the reported gross margin.
Neither figure includes every cost a cross-border store actually pays. Shopify says cost per item excludes tax, shipping and other costs, and that the field is static. If fulfilment, gateway fees or ad spend are higher than the product-page margin allows, the order can be negative even when the catalogue looks healthy.
| View | Formula | What it can hide |
|---|---|---|
| Product-page projected margin | (price − cost per item) / price | Discounts, refunds, tax, freight, fees and ad spend |
| Shopify gross margin report | (net sales − cost) / net sales | Costs outside cost per item; orders without a cost at sale time |
| Pre-tax contribution profit | net sales − all variable and allocated costs | Tax, overhead and owner decisions still need a full close |
Shopify formulas come from the Help Center pages listed in Sources. The contribution-profit view is Seamline’s declared reporting scope, not a Shopify report.
The symptom is not the cause
“Margin is negative” is a result. The cause is one or more lines above it: a missing cost, a deeper discount, a fee-rate change, a billed freight variance or ad spend with no order attribution.
Six common causes, from easiest to hardest to see
Work from the data boundary outwards. The earlier a cost is missing, the more every later calculation is distorted.
- 1. No cost per item at the time of sale. Shopify reports profit only for products and variants that had a cost recorded then.
- 2. Cost changed after the order. The new value does not reprice historical orders, so an old cost can linger in reports.
- 3. Discount or refund erosion. Net sales falls while cost stays fixed, squeezing gross margin.
- 4. Payment and platform fees. Effective fees are a percentage of processed volume, not of the list price.
- 5. Freight actually paid. Last-mile and accessorial charges may sit in a 3PL invoice rather than in Shopify.
- 6. Ad spend. Campaign spend without an order join still has to be carried by the products sold in that period.
A worked bridge from $50 net sales to a loss
The following bridge is illustrative. The amounts are constructed to show the arithmetic, not quoted as fees, rates or benchmarks from Shopify, a gateway or a carrier. Replace each line with your own records before drawing a conclusion.
| Line | Amount | Calculation note |
|---|---|---|
| List price | $60.00 | Starting product price |
| Discount | −$10.00 | Net sales becomes $50.00 |
| Cost per item | −$30.00 | Recorded at sale time |
| Shopify-style gross margin | 40% | ($50.00 − $30.00) / $50.00 |
| Payment and platform fees | −$2.05 | From gateway and platform transactions |
| Billed last-mile freight | −$8.00 | From fulfilment invoice, not product cost |
| Return and handling allowance | −$3.00 | From returns and handling records |
| Ad spend allocated to order | −$7.00 | From joined ad platform spend |
| Pre-tax contribution profit | −$0.05 | $50.00 − $30.00 − $2.05 − $8.00 − $3.00 − $7.00 |
All amounts are sample values constructed for this article. Shopify’s gross-margin formula is from the Profit reports help page; the contribution bridge is Seamline’s reporting method.
Where the 40% went
Nothing in the arithmetic is wrong. The product-page and gross-margin views simply stop before four real cost lines. A 40% gross margin can become a zero or negative contribution once those lines are joined to the same order.
How to diagnose the exact order
Do not start by raising prices. First make the loss reproducible: take one negative-margin order and attach its cost, money and traffic records in one table.
Confirm the order is in scope
Check that the variant had a cost recorded when the order was created.
otherwise there is no comparable margin
Rebuild net sales
Start from net sales after discounts and refunds, not gross sales.
sets the real denominator
Attach money costs
Join payment fees, settlement lines, refunds and platform charges to the order id.
adds the missing variable costs
Attach physical costs
Add billed freight and return fees from fulfilment and 3PL records.
exposes billed-versus-estimated variance
Attach acquisition cost
Allocate campaign spend using a stated attribution rule and keep unallocated spend visible.
the contribution number becomes reproducible
- Keep the formula next to the number. If finance cannot recompute it, the margin is an opinion.
- Separate structural and one-off causes. A fee-rate drift repeats; a single oversized freight bill does not.
- Rank SKUs by estimated impact, then decide whether to reprice, renegotiate freight, change packaging or stop scaling the campaign.
Three mistakes that make the loss look fixed when it is not
The first mistake is updating cost per item and assuming past orders were repriced. Shopify documents that they were not. The second is reading a blended category margin and concluding every SKU is safe. The third is treating unallocated ad spend as somebody else’s problem; it still has to be absorbed by the products sold in the period.
Seamline addresses this with SKU-level profit trees and rule-based leakage findings that carry estimated impact, evidence and confidence. The briefing is scheduled, not live, and the connection is read-only.
Frequently asked questions
Can a product with a positive Shopify margin still lose money?
Yes. Product-page margin excludes tax, shipping and other costs by Shopify’s own definition, and gross margin in reports still excludes costs outside cost per item. Payment fees, billed freight, returns and allocated ad spend can turn a positive catalogue margin into a negative contribution.
Why did my margin drop after I changed cost per item?
If the change was made after orders were created, those orders keep the earlier cost. Shopify states that cost per item is recorded on an order when the order is created and that later changes do not apply retroactively.
Should I raise the price on every negative-margin SKU?
Not before you know the cause. A loss can come from freight variance, fee-rate drift, refund behaviour or ad attribution. Repricing is one lever; renegotiating logistics, tightening discounts or changing the campaign may be the correct fix.
How do discounts and refunds change Shopify gross margin?
Shopify calculates gross margin from net sales, so discounts and refunds lower the denominator while cost per item stays fixed. The product details page uses full price, which is why the two margins can disagree.
Does a daily briefing mean intraday profit?
No. A Daily Profit Briefing is based on the latest completed scheduled sync. It is a T+1-style review when the daily cycle completes, not an intraday P&L or a guarantee about streaming numbers.
Find the SKU that is quietly losing money
Seamline joins Shopify orders with your configured costs, fees, freight and ad data, then shows contribution profit down to the SKU with the evidence behind each gap.
Sources
- Shopify Help Center: Adding cost per item to products (excludes tax, shipping and other costs; historical order rule)
- Shopify Help Center: Profit reports (net-sales formula, discounts and refunds, static cost field)
- Seamline: Shopify profit-leak detection (SKU-level profit tree, estimated impact and Daily Profit Briefing)