Gross margin definition
Gross margin: the percentage of net revenue left after subtracting cost of goods sold. It measures how much each dollar of sales contributes toward operating expenses and profit.
Gross profit is the dollar amount (revenue minus COGS). Gross margin is that amount as a percentage of revenue. People use "gross margin" and "gross profit margin" for the same ratio. It is the first profit line on the income statement and the one most directly driven by pricing, discounting and product cost.
Gross margin formula
Gross margin % = (Net revenue - COGS) / Net revenue × 100
- Net revenue: gross sales minus discounts, returns and allowances. Using gross sales inflates the margin.
- COGS: the cost of the units sold in the period, not the units bought. For product brands this is landed cost: product cost, inbound freight, duties and tariffs, and other costs to bring inventory to a sellable state.
Gross margin is not the same as markup. Markup divides profit by cost, so a product that costs $10 and sells for $20 has a 100% markup and a 50% gross margin.
Illustrative example
Illustrative example: a candle brand sells the same candle with a $12 landed cost through two channels in one month.
| Channel | Units | Price | Revenue | COGS | Gross profit | Gross margin |
|---|---|---|---|---|---|---|
| DTC (Shopify) | 1,000 | $40 | $40,000 | $12,000 | $28,000 | 70.0% |
| Wholesale | 1,500 | $20 | $30,000 | $18,000 | $12,000 | 40.0% |
| Total | 2,500 | $70,000 | $30,000 | $40,000 | 57.1% |
The blended gross margin is $40,000 / $70,000, or 57.1%. Neither channel actually earns 57.1%. If next month wholesale grows and DTC stays flat, the blended margin falls even though nothing changed in price or cost. A 20% DTC promotion moves it too: at $32, the DTC gross profit per unit drops from $28 to $20 and the DTC gross margin falls from 70.0% to 62.5%.
How to read gross margin
- Rising gross margin can come from price increases, lower landed cost, less discounting or a shift toward higher-margin channels and SKUs. Find out which before celebrating.
- Falling gross margin often traces to tariffs or freight, deeper promotions, more wholesale mix or inventory write-downs.
- Gross margin is not profit. A high gross margin can still lose money after fulfillment, marketplace fees and customer acquisition. That is what contribution margin measures.
- Compare like for like. What counts as "good" depends on category and channel mix. See the benchmarks guide linked below for sourced ranges.
Common mistakes
- Using product cost from the supplier invoice and leaving out freight, duties and tariffs.
- Calculating margin on gross sales instead of net revenue after discounts and returns.
- Expensing inventory when it is purchased instead of when it sells, which makes margin jump around with ordering cycles.
- Reporting one blended margin and missing that a channel or SKU group is far below the average.
- Changing whether fulfillment and shipping sit in COGS or operating expenses between periods, so trends are not comparable.
For consumer brands
Track gross margin by channel and SKU, not just in total. DTC, Amazon and wholesale sell the same product at different net prices, and channel mix changes every month. Update landed cost whenever freight rates, tariffs or supplier pricing change, so the margin you plan against reflects what the next purchase order will actually cost.
Related terms and guides
For sourced industry ranges, see what is a good profit margin. To get COGS right, read landed cost. To go below gross margin, see contribution margin by channel and markup vs margin. Related glossary terms: income statement, net income and SKU.
See margin by channel and SKU
Know your gross margin before the blend hides it.
Niblin is FP&A for consumer brands: gross and contribution margin by channel and SKU, reconciled to your books, and built into your budget and forecast.
See how Niblin models it
Frequently Asked Questions
What is the difference between gross profit and gross margin?
Gross profit is a dollar amount: net revenue minus cost of goods sold. Gross margin is gross profit divided by net revenue, shown as a percentage. A brand with $70,000 of revenue and $30,000 of COGS has $40,000 of gross profit and a 57.1% gross margin.
Should shipping and fulfillment be in COGS?
It is an accounting policy choice. Inbound freight to your warehouse belongs in inventory cost and therefore COGS. Outbound shipping and fulfillment are recorded in COGS by some brands and in operating expenses by others. Pick one treatment, disclose it, and apply it consistently so margins stay comparable.
Why did my gross margin drop when prices did not change?
Common causes are channel mix shifting toward wholesale or Amazon, deeper discounts, higher landed cost from freight or tariffs, more returns, and inventory write-downs flowing through COGS. Break the change into price, volume, mix and cost effects to see which one moved.
Is gross margin the same as markup?
No. Gross margin divides gross profit by the selling price; markup divides it by cost. A product costing $10 and selling for $20 has a 50% gross margin and a 100% markup. Mixing up the two is a common source of underpriced products.
By