Skip to main content
The percentage of revenue remaining after subtracting the cost of goods sold.

Formula

Product Margin % = ( Gross RevenueCOGS ) ÷ Gross Revenue × 100

Formula Components

MetricDefinition
Gross RevenueTotal revenue from product sales before discounts and adjustments
COGSCost of goods sold from Shopify product inventory data
Metadata
TypePercentage
Data SourceShopify
AggregationWeighted Average

Example

Your store generated $50,000 in revenue with $30,000 in product costs, resulting in a 40% product margin:
CategoryRevenueCOGSMargin %
Apparel$25,000$12,50050%
Accessories$15,000$10,50030%
Home Goods$10,000$7,00030%
Total$50,000$30,00040%

How It Works

Product Margin % calculates the percentage of each revenue dollar that remains after covering product costs. Shopify provides product cost data through inventory settings or metafields. This metric aggregates across all line items in orders, weighted by revenue contribution.

When to Use

ScenarioAction
Evaluating product profitabilityIdentify high-margin products to promote
Pricing decisionsAdjust prices on low-margin items
Supplier negotiationsFlag products with eroding margins
Ad spend allocationFocus budget on products with healthy margins

MetricRelationship
Gross RevenueRevenue before deductions (denominator)
COGSProduct costs subtracted from revenue
Product MarginDollar amount instead of percentage
Net RevenueRevenue after discounts and refunds
See all Product Margin metrics →