How do I calculate gross margin by product category in Shopify?
Export your Sales by Product report as a CSV, add Category and Cost of Goods columns manually, then use the formula: (Net Sales − COGS) ÷ Net Sales × 100 for each category.
“High margin plus low sell-through equals a pricing or fit problem, not a success story.”
Shopify doesn't offer a built-in gross margin by category report, so you have to build it yourself — but it's the most powerful buying signal you can pull from your own data. Export your Sales by Product report as a CSV file, then in Google Sheets add two columns: Category (dresses, denim, tops, accessories, etc.) and Cost of Goods Sold using numbers from your vendor invoices.
For each category, sum the net sales, subtract the sum of COGS, divide by net sales, and multiply by one hundred. Rank the categories and flag any that fall five or more percentage points below your store-wide average. This tells you which parts of your collection to lean into and which to scale back before spending on fall orders.
One important caveat: read margin alongside velocity. A seventy percent margin on two units sold in six months is worse than a fifty percent margin on two hundred units. High margin plus low sell-through usually indicates a pricing or fit problem, not a success story. If you haven't entered cost per item in Shopify, start with your top thirty SKUs — that covers the products that actually move.
Listen to the full episode: Episode 26: The Mid-Year Boutique Audit: 6 Numbers to Pull Before You Plan Your July-August Strategy
More answers from this episode
- How do I calculate email revenue per send for my boutique?
- How do I decide which vendors to stop buying from?
- How do I find my top selling products in Shopify?
- How do I identify dead stock in my boutique inventory?
- How do I run a mid-year audit for my boutique?
- How do I track which ad platform is actually driving sales for my boutique?
Source: BoutiquePulse podcast. Last updated: 2026-06-08 · Sourcing & methodology · Corrections log