Why Gross Profit Margin Matters
A company can increase its sales and still earn less gross profit on each dollar of sales. The reason may be lower selling prices, higher production costs, or a shift toward products that generate less gross profit per sales dollar. Gross profit margin puts gross profit in relation to revenue, making it useful for examining these product economics.
The measure is most informative when its inputs refer to the same reporting period and use consistent accounting policies. It describes the relationship between reported sales and the cost assigned to the products sold; it does not, by itself, explain every reason that the relationship changed.
For example, a margin of 35% means that, for each dollar of net sales revenue, 35 cents remain after the cost assigned to the goods sold has been deducted. It does not mean that 35% of sales is left after all expenses: the gross profit calculation does not deduct costs that are reported below COGS.
For this analysis, use the sales and COGS figures as reported for a period. Revenue is generally measured net of sales returns, allowances, and discounts under the relevant accounting policy; amounts collected on behalf of a government, such as sales taxes, are generally not revenue. COGS is the cost assigned to units sold, not automatically the cost of all units produced during the period. Which costs are included in COGS depends on the business and its accounting policies. Comparisons are more meaningful when those policies are consistent.
From Unit Economics to the Reported Margin
For a single product, suppose \(p\) is the selling price per unit, \(c\) is the COGS per unit, and \(q\) is the number of units sold in the period. If all units have the same price and cost, net sales revenue is \(pq\), COGS is \(cq\), and gross profit is \((p-c)q\). Therefore, the gross profit margin is the gross profit per unit divided by the selling price per unit.
This relationship explains why a higher selling price can raise the margin if unit cost stays fixed, and why a higher unit cost can lower it if price stays fixed. The number of units sold affects total revenue and gross profit, but when price and unit cost are unchanged, quantity cancels from the margin calculation.
With multiple products, each product may have its own price, cost, and margin. The company-wide margin is not generally the simple average of the product margins. It is a revenue-weighted average: products that account for more revenue have more influence on the combined result.
To see why, the gross profit from product \(i\) is \(q_i(p_i-c_i)\). Its margin is \(m_i=(p_i-c_i)/p_i\), so that product's gross profit can also be written as \((q_i p_i)m_i\): its revenue multiplied by its margin. Adding those gross profits and dividing by total revenue gives the weighted-average formula above. The weights are each product's share of total revenue, so they sum to 1 when total revenue is positive.
Worked Calculations and Product-Level Interpretation
Worked Example: A Price Increase Alongside Higher Unit Costs
A hypothetical equipment seller sells 400 identical units during each of two periods. In Period 1, the selling price is $50 per unit and COGS is $31 per unit. In Period 2, the price is $52 per unit and COGS is $32 per unit. Assume all units are sold in the period, with no other changes to the reported figures. Calculate gross profit and gross profit margin in each period, then interpret the change.
Method. Calculate revenue and COGS from units sold, find gross profit, and divide gross profit by revenue. Comparing the resulting percentages distinguishes a change in total gross profit from a change in margin.
Period 1 revenue: \(400\times \$50=\$20{,}000\).
Period 1 COGS: \(400\times \$31=\$12{,}400\).
Period 1 gross profit: \(\$20{,}000-\$12{,}400=\$7{,}600\).
Period 1 margin: \(\$7{,}600/\$20{,}000=0.38=38.00\%\).
Period 2 revenue: \(400\times \$52=\$20{,}800\).
Period 2 COGS: \(400\times \$32=\$12{,}800\).
Period 2 gross profit: \(\$20{,}800-\$12{,}800=\$8{,}000\).
Period 2 margin: \(\$8{,}000/\$20{,}800=0.384615\ldots\), or 38.46% rounded to two decimal places.
Gross profit increased by \(\$8{,}000-\$7{,}600=\$400\). The margin increased by \(38.46\%-38.00\%=0.46\) percentage points, rounded to two decimal places. The selling price rose by $2 per unit while unit COGS rose by $1, so gross profit per unit increased from $19 to $20. The denominator also rose, which is why the margin increase is not simply the $1 increase divided by the old price.
Check: In Period 2, gross profit per unit is \(\$52-\$32=\$20\), and \(\$20/\$52=38.46\%\) to two decimal places, matching the total-based calculation. A common mistake is to treat the $1 increase in unit gross profit as a one-percentage-point increase in margin; the margin must be recalculated using the applicable selling price as its denominator.
Worked Example: A Shift Toward a Higher-Margin Product
A hypothetical retailer sells two product lines. Product A sells for $80 per unit and has COGS of $48 per unit. Product B sells for $50 per unit and has COGS of $35 per unit. In one period, the retailer sells 100 units of A and 200 of B. In a later period, it sells 150 units of A and 100 of B. Prices and unit costs are unchanged. Calculate each period's total margin and explain the effect of the changed sales mix.
Method. Find revenue and COGS by product, add within each period, then calculate the overall margin. This avoids incorrectly averaging the two product margins without regard to their revenue shares.
Product A's margin is \((\$80-\$48)/\$80=\$32/\$80=40\%\). Product B's margin is \((\$50-\$35)/\$50=\$15/\$50=30\%\).
First-period revenue: A: \(100\times \$80=\$8{,}000\); B: \(200\times \$50=\$10{,}000\). Total revenue is \(\$8{,}000+\$10{,}000=\$18{,}000\).
First-period COGS: A: \(100\times \$48=\$4{,}800\); B: \(200\times \$35=\$7{,}000\). Total COGS is \(\$4{,}800+\$7{,}000=\$11{,}800\).
First-period gross profit: \(\$18{,}000-\$11{,}800=\$6{,}200\).
First-period margin: \(\$6{,}200/\$18{,}000=34.444\ldots\%\), or 34.44% to two decimal places.
Later-period revenue: A: \(150\times \$80=\$12{,}000\); B: \(100\times \$50=\$5{,}000\). Total revenue is \(\$17{,}000\).
Later-period COGS: A: \(150\times \$48=\$7{,}200\); B: \(100\times \$35=\$3{,}500\). Total COGS is \(\$10{,}700\).
Later-period gross profit: \(\$17{,}000-\$10{,}700=\$6{,}300\).
Later-period margin: \(\$6{,}300/\$17{,}000=37.0588\ldots\%\), or 37.06% to two decimal places.
The mix shifted toward A, the higher-margin product. Total revenue fell by $1,000, but gross profit rose by $100 and the overall margin increased by 2.61 percentage points, rounded to two decimal places. As a check, the first-period revenue weights are \(8{,}000/18{,}000=4/9\) for A and \(10{,}000/18{,}000=5/9\) for B; their weighted margin is \((4/9)(40\%)+(5/9)(30\%)=34.44\%\) to two decimal places. In the later period the weights are \(12/17\) and \(5/17\), giving \((12/17)(40\%)+(5/17)(30\%)=37.06\%\) to two decimal places. A simple 50–50 average of 40% and 30% would not describe either period's overall margin.
Worked Example: A Change in Production Cost per Unit
A hypothetical manufacturer sells 600 units at $75 each. For the units sold, COGS per unit consists of $24 of materials, $16 of labor, and $10 of allocated production overhead. A process change reduces materials cost by $3 per unit and increases labor cost by $1 per unit; overhead and selling price are unchanged. Assume the 600 units sold have these costs, and that the costs are consistently included in COGS. Calculate the margin before and after the change.
Method. Add the cost components to obtain COGS per unit, then calculate total COGS, gross profit, and margin for each case. The assumption that all 600 sold units have the stated costs prevents confusion between units produced and units sold.
Before the change: COGS per unit is \(\$24+\$16+\$10=\$50\). Revenue is \(600\times \$75=\$45{,}000\). COGS is \(600\times \$50=\$30{,}000\). Gross profit is \(\$45{,}000-\$30{,}000=\$15{,}000\). The margin is \(\$15{,}000/\$45{,}000=33.333\ldots\%\), or 33.33% to two decimal places.
After the change: Materials cost per unit is \(\$24-\$3=\$21\), and labor cost is \(\$16+\$1=\$17\). COGS per unit is \(\$21+\$17+\$10=\$48\). Revenue remains \(\$45{,}000\), while COGS is \(600\times \$48=\$28{,}800\). Gross profit is \(\$45{,}000-\$28{,}800=\$16{,}200\). The margin is \(\$16{,}200/\$45{,}000=36.00\%\).
The net unit-cost reduction is \(\$50-\$48=\$2\), so total COGS falls by \(600\times \$2=\$1{,}200\), and gross profit rises by the same amount. The margin rises by \(36.00\%-33.33\%=2.67\) percentage points, rounded to two decimal places. As a check, the new unit gross profit is \(\$75-\$48=\$27\), and \(\$27/\$75=36.00\%\). A common mistake is to count the full $3 materials saving while ignoring the $1 labor increase; the net cost reduction is $2 per unit.
Interpreting Margin Changes Carefully
The single-product identity \(1-c/p\) provides a useful way to organize product-level reasoning. Holding unit cost fixed, a higher price raises gross margin because the cost is a smaller share of the selling price. Holding price fixed, a higher unit cost lowers the margin because less gross profit remains per dollar of sales. If both price and cost change, recalculate the ratio; the direction of the margin change cannot be determined by looking at just one change in isolation.
For a company with several products, a change in the overall margin may also arise from a change in mix. Even if every product's own price and unit cost remain constant, selling a greater share of revenue from higher-margin products can raise the weighted average. Conversely, a shift toward lower-margin products can reduce the overall margin even when no product's own margin has changed.
A margin comparison is a signal to investigate, not proof of a single cause. Product specifications, input costs, discounts, production conditions, and the way costs are assigned to inventory can all matter. Comparisons across periods or businesses should consider whether sales and COGS are defined and measured consistently. A gross margin does not, by itself, measure the company's performance after costs outside COGS.
Common Denominator Trap: Margin Versus Markup
Gross profit margin and markup use the same gross profit but divide by different amounts. Margin divides gross profit by selling price (or total net sales revenue); markup divides gross profit by cost. Confusing the denominators leads to a materially different percentage.
For a product with a $60 cost and a $100 selling price, gross profit is \(\$100-\$60=\$40\). The gross profit margin is \(\$40/\$100=40\%\). The markup is \(\$40/\$60=66.67\%\), rounded to two decimal places. Reporting 66.67% as the gross profit margin is the wrong calculation: it uses cost, not sales revenue, as the denominator.
Check Your Understanding
Use the stated sales and cost figures consistently. Round percentages to two decimal places where needed.
- A hypothetical seller moves 250 units at $64 each, with COGS of $40 per unit. Calculate total gross profit and gross profit margin. (Answer: gross profit $6,000; margin 37.50%)
- A product sells for $90 and has COGS of $63. Calculate its gross profit margin and markup. (Answer: gross profit margin 30.00%; markup 42.86%)
- A retailer sells 80 units of Product R at $120 with $72 COGS per unit, and 120 units of Product S at $75 with $60 COGS per unit. Calculate total revenue, total COGS, and the overall margin. (Answer: revenue $18,600; COGS $13,680; gross profit $4,920; margin 26.45%)
- A producer sells 500 units at $48 each. COGS per unit is $29, made up of $12 materials, $9 labor, and $8 overhead. A change reduces materials by $2 per unit and raises labor by $0.50 per unit, with price, overhead, and units sold unchanged. Find the new gross profit and margin, and the margin change in percentage points. (Answer: new gross profit $10,250; new margin 42.71%; increase of 2.08 percentage points)
- A company has two products with fixed unit prices and costs. Product U has a 45% margin and accounts for 70% of revenue; Product V has a 25% margin and accounts for 30% of revenue. Calculate the overall margin. If the revenue shares later become 40% for U and 60% for V, with the product margins unchanged, calculate the new overall margin and its change. (Answer: initial margin 39.00%; new margin 33.00%; decrease of 6.00 percentage points)