Key takeaways
- Gross profit is dollars; gross margin is a percentage. Divide gross profit by revenue, not by cost.
- Markup and margin use different denominators. A 50% markup is a 33.3% margin; a 50% margin is a 100% markup.
- Cost of goods sold includes direct and production costs. Materials, direct labor, production overhead, inbound freight, and duties generally belong; sales and administration do not.
- Discounts hit margin faster than they look. A 10% price cut on a 35%-margin product removes 28.6% of its gross profit.
- A high gross margin can still produce a low operating margin. Overhead, mix, and channel costs decide what reaches the bottom line.
What gross margin measures
Gross margin shows how much of each sales dollar is left after the direct cost of the product or service sold. It is the first profitability checkpoint: before paying for salespeople, rent, software, management, or interest, does the product itself earn a spread? A business with a thin gross margin has little room to absorb overhead, discounts, or returns.
The formula is:
Gross margin = (revenue − cost of goods sold) ÷ revenue × 100
Revenue should be net of returns, allowances, and sales tax collected for a government. Cost of goods sold is the cost of the units or services recognized as sold in the same period, not the cash spent on inventory during the period.
Gross margin, gross profit, and markup
Gross profit is the dollar amount: revenue minus cost of goods sold. Gross margin is that amount divided by revenue. Markup divides the same gross profit by cost. The two percentages answer different questions, and confusing them is one of the most common pricing errors.
Markup = gross profit ÷ cost of goods sold. Margin = gross profit ÷ revenue. To convert, margin = markup ÷ (1 + markup) and markup = margin ÷ (1 − margin). A product that costs $60 and sells for $100 has $40 of gross profit, a 66.7% markup, and a 40% margin.
| Unit cost | Selling price | Gross profit | Markup | Gross margin |
|---|---|---|---|---|
| $60 | $84 | $24 | 40.0% | 28.6% |
| $60 | $100 | $40 | 66.7% | 40.0% |
| $60 | $120 | $60 | 100.0% | 50.0% |
Adding 40% to a $60 cost gives $84, but that is a 28.6% gross margin, not 40%. To hit a 40% margin, divide cost by (1 − 0.40): $60 ÷ 0.60 = $100.
A worked product example
A company sells 1,200 units at $100 each, for $120,000 of revenue. Cost of goods sold is $78,000: $42,000 of materials, $24,000 of direct labor, $9,000 of production overhead, and $3,000 of inbound freight. Gross profit is $42,000, gross margin is 35.0%, and markup is 53.8%. The per-unit cost is $65 and the per-unit gross profit is $35.
Now cut the price 10% to $90 without changing unit cost. Revenue falls to $108,000, gross profit falls to $30,000, and gross margin falls to 27.8%. To recover the original $42,000 of gross profit at the lower price, the company needs 1,680 units, 40.0% more volume. That is the trade-off a discount has to justify.
What belongs in cost of goods sold
| Generally included | Generally excluded |
|---|---|
| Raw materials and components | Sales and marketing salaries |
| Direct labor and production supervision | General and administrative costs |
| Production facility and equipment costs | Research and development |
| Inbound freight, duties, and tariffs | Interest and income taxes |
| Inventory write-downs and shrinkage | Outbound delivery, depending on policy |
| Subcontracted production | One-time legal or restructuring costs |
Service businesses have a less obvious cost of goods sold. Direct labor, contractor delivery, hosting, and support costs that scale with the service usually belong; account management, sales, and corporate overhead do not. Outbound shipping is a policy choice: some companies treat it as a fulfillment cost in cost of goods sold, while others report it as selling expense. The key is to apply the policy consistently and disclose it.
Pricing from a target gross margin
If the target margin is 40% and the fully loaded unit cost is $60, the minimum price is $60 ÷ (1 − 0.40) = $100. If the business instead marks up cost by 40%, it charges $84 and earns only a 28.6% margin. The first formula protects the target; the second protects a markup target that may not be the same thing.
Target-margin pricing has limits. It assumes the cost is known and the market will pay the price. A competitor may set a lower price, a large customer may demand a discount, or volume may fall enough to leave total gross profit lower. Use the target as a floor for negotiation, then test the volume response rather than treating it as a guarantee.
Product mix, discounts, and returns
Blended gross margin is a revenue-weighted average, not the simple average of product percentages. If product A produces $100,000 of revenue at 50% margin and product B produces $300,000 at 20%, gross profit is $50,000 + $60,000 = $110,000 on $400,000 of revenue, a 27.5% blended margin. Averaging 50% and 20% would overstate it at 35%.
Discounts, returns, and markdowns reduce revenue while the related cost of goods sold may already be committed. A 10% discount on a 35%-margin product cuts gross profit per unit from $35 to $25, a 28.6% decline. Returns add another layer: the sale is reversed, but shipping, handling, and refurbishment costs may remain. Track discount and return rates by product and channel, not only in total.
Common mistakes
- Calling markup margin. A 40% markup is not a 40% margin.
- Leaving inbound freight or duties out of cost. Those costs are part of getting inventory ready to sell.
- Treating all overhead as cost of goods sold. Sales, administration, and research are operating expenses, not product cost.
- Using cash purchases instead of cost of goods sold. Inventory purchases move cash and balance-sheet inventory; cost of goods sold matches the units sold.
- Including sales tax in revenue. That inflates both revenue and the apparent margin.
- Comparing gross margins across business models. A distributor and a software company do not have the same cost structure.
- Ignoring returns and markdowns. Net revenue, not gross billings, is the right denominator.
Practical caveats
Cost-flow assumptions matter. FIFO, weighted average, and LIFO can produce different cost of goods sold when prices move, and IFRS does not permit LIFO. Production overhead allocation also matters: fixed factory costs spread over more units lower the per-unit cost, so building inventory can raise reported gross margin without improving economics. A variable-cost view, which separates fixed production costs, is often more useful for a short-term pricing decision.
Gross margin is also exposed to input-cost shocks, tariffs, currency, and channel mix. A company can report a stable margin while its underlying product economics deteriorate, because it shifted toward a lower-cost product or cut service. Read gross margin with inventory turnover, operating margin, and cash conversion rather than in isolation.
How to use gross margin
- Track it by product and channel. A blended number can hide a product that is subsidizing the rest.
- Set a price floor from the target margin. Use cost ÷ (1 − target margin), then test what the market will pay.
- Model discounts and volume together. A lower price only helps if the extra volume produces more total gross profit.
- Review cost of goods sold line by line. Materials, labor, freight, and production overhead move for different reasons.
- Connect it to operating margin and cash. Gross profit that is consumed by overhead or trapped in receivables does not build the business.
A one-point gross-margin improvement on $10 million of revenue is $100,000 of additional gross profit. That is valuable only if volume holds, the cost saving is sustainable, and the cash is collected.
Frequently asked questions
Is gross margin the same as gross profit?
No. Gross profit is a dollar amount; gross margin is gross profit divided by revenue. A $40 gross profit on $100 of revenue is a 40% gross margin.
What is a good gross margin?
It varies widely by industry and business model. Compare with close peers, the company’s own history, and the operating expenses the margin must support.
Does gross margin include direct labor?
Yes, direct labor used to produce the good or deliver the service generally belongs in cost of goods sold. Indirect labor and administrative salaries usually belong in operating expenses.
Why can gross margin rise while net profit falls?
Mix, discounts, or inventory accounting can lift gross margin while higher operating costs, interest, or taxes reduce net profit. Read the full income statement.
Is markup always higher than margin?
Yes, for a positive cost and a positive price. The same gross profit is divided by a smaller cost base for markup, so the markup percentage is higher.
Do discounts reduce cost of goods sold?
No. A discount reduces revenue. Cost of goods sold is unchanged unless the discount changes the product, volume, or production cost.
Further reading