Gross Margin: What It Is and How to Calculate It
The share of each sale that remains. Not the final profit.
What remains from every sale?
Calculate your marginEUR 1 of net sales
0.40 to cost of sales.
0.60 left for the rest.
The hypothetical coffee shop has EUR 10,000 in net sales. At 40% COGS, gross profit is EUR 6,000.00.
Gross margin is not final profit. Expenses outside COGS still come next.
On this page
Gross margin is the percentage of sales revenue left after subtracting the cost of the products or services sold. If a business has a 60% gross margin, it retains EUR 0.60 from each euro of net sales to cover remaining expenses and, eventually, produce profit.
Gross margin does not show the final profit of a business. Rent, marketing, administrative salaries, interest, and taxes may still need to be paid, depending on which costs are included in cost of sales. It answers a narrower question: how much remains after the costs assigned to what was sold?
What is gross margin?
Gross margin measures the relationship between net sales and cost of goods sold, usually abbreviated as COGS. A service business may use the term cost of revenue instead. Here, gross margin means the percentage, also called gross profit margin.
Net sales are sales after returns, discounts, and allowances. COGS includes the costs assigned to producing or purchasing what the company sold. For a retailer, this normally includes the purchase cost of the goods. For a manufacturer, it can include direct materials, direct labor, and production overhead.
The exact classification of costs can differ by business and accounting policy. Consistency matters: changing which costs are included can change the margin even when the underlying business has not improved. COGS is not necessarily limited to variable costs or to directly traceable inputs.
The Cost of Goods Sold guide explains that cost base in more detail.
Why does gross margin matter?
Gross margin helps a business answer several basic questions:
- Is the selling price high enough relative to the cost of sales?
- Are supplier or production costs rising faster than prices?
- Is a change in product mix helping or hurting profitability?
- Is enough money left to cover operating expenses?
Tracking the percentage over time is often more useful than looking at gross profit alone. Gross profit may rise simply because sales increased. Gross margin shows whether the business retained the same proportion of each sales euro.
The gross margin formula
First, calculate gross profit:
Gross profit = Net sales - Cost of goods sold
Then calculate gross margin:
Gross margin = (Gross profit / Net sales) x 100
The result is a percentage. If net sales are zero, the percentage is undefined, not 0%. If COGS exceeds positive net sales, gross profit and gross margin are negative: the business has a gross loss.
A simple example
Consider a hypothetical neighborhood coffee shop for one month:
| Item | Amount |
|---|---|
| Net sales | EUR 10,000 |
| Coffee, milk, food, cups, and other costs included in COGS | EUR 4,000 |
| Gross profit | EUR 6,000 |
For this simplified example, EUR 4,000 represents the complete cost of sales under the shop's chosen accounting basis. In a real business, check whether labor or allocated overhead also belongs in that cost base; do not omit it just because it is not an ingredient.
The calculation is:
Gross margin = (EUR 6,000 / EUR 10,000) x 100 = 60%
The shop has EUR 0.60 left from each euro of net sales after COGS. That amount must still cover rent, administrative wages, marketing, insurance, interest, taxes, and other expenses not already included in COGS.
If those remaining expenses total EUR 5,500, the shop does not have a 60% final profit. It has only EUR 500 left before any additional items. This is why gross margin should never be confused with net profit margin.
When should you use it?
A monthly gross-margin review is a useful starting routine when the business has reliable monthly figures. It is especially useful when:
- Changing prices.
- Negotiating with suppliers.
- Reviewing rising input costs.
- Comparing products, locations, or customer segments.
- Preparing a budget.
- Checking whether growth is improving the underlying economics.
Gross margin also supports broader unit economics, but it remains useful on its own as a first look at pricing and cost of sales.
How to interpret the result
A 40% gross margin means that EUR 0.40 of every euro of net sales remains after COGS. It does not automatically mean that the business is healthy or unhealthy.
There is no universal "good" gross margin. A grocery store and a software subscription have very different costs, operating expenses, and business models. Compare the result with:
- The same business in earlier periods.
- The company's budget or target.
- Similar businesses using comparable cost definitions.
- Individual products or segments inside the business.
A falling margin can point to discounts, higher supplier costs, waste, an unfavorable product mix, or inaccurate cost allocation. A rising margin can reflect better pricing, lower cost of sales, or more sales of higher-margin products. The percentage identifies a change; it does not explain the cause by itself.
When comparing percentages, distinguish percentage points from relative percentage change. A move from 50% to 60% is an increase of 10 percentage points, not 10%. Relative to 50%, that is a 20% increase in the margin ratio.
For a wider investigation of price, volume and cost changes, continue with profitability analysis.
Common confusion
Gross profit vs gross margin
Gross profit is a monetary amount. Gross margin is normally that amount expressed as a percentage of net sales. With EUR 10,000 of net sales and EUR 4,000 of COGS, gross profit is EUR 6,000 and gross margin is 60%.
Gross margin vs net profit margin
Gross margin subtracts only COGS. Net profit margin uses the final profit after other recognized income and expenses, including operating costs, interest, and taxes. A business can have a positive gross margin and still make a net loss.
Gross margin vs markup
Margin divides gross profit by the selling price or net sales. Markup divides it by cost. If an item costs EUR 40 and sells for EUR 100, its gross margin is 60%, but its markup is 150%.
| Measure | Calculation | Result |
|---|---|---|
| Gross profit | EUR 100 - EUR 40 | EUR 60 |
| Gross margin | EUR 60 / EUR 100 x 100 | 60% |
| Markup on cost | EUR 60 / EUR 40 x 100 | 150% |
Same sale. Same profit. Different denominators.
Put it to work
Set aside 20-30 minutes and use last month's figures:
- Find net sales after discounts, returns, and allowances.
- Find COGS or cost of revenue for the same month.
- Subtract COGS from net sales to calculate gross profit.
- Divide gross profit by net sales and multiply by 100.
- Compare the result with the previous month.
- Write down the price, cost, discount, or product-mix change most likely to explain the difference, then look for evidence.
Use the same scope and cost classifications for both periods. Previous-month data is optional; the coffee-shop example does not supply it.
One currency for all entries. Changing it does not convert values.
Amounts from 0 to 1,000,000,000; up to two decimals with a dot or comma, without thousands separators. Net sales must already reflect returns, discounts and allowances.
Complete net sales and COGS with valid amounts. Blank fields are not zero.
No universal good-margin target is assumed. Values are shown to two decimals. Gross margin is not cash received, net profit margin or proof of why performance changed.
Common mistakes
- Using gross sales instead of net sales after returns, discounts, and allowances.
- Leaving costs that belong in COGS out of the calculation.
- Comparing businesses that classify costs differently.
- Treating gross margin as final profit.
- Looking only at the company-wide average and missing weak products or segments.
- Confusing a percentage-point change with a relative percentage change.
Limitations
Gross margin ignores expenses below gross profit, cash timing, debt, taxes, and the capital needed to run the business. It also depends on consistent cost classification. Use it as one layer of the income statement, not as a complete measure of profitability or cash health.
Quick checklist
Key takeaways
- Gross margin is gross profit divided by net sales and expressed as a percentage.
- It shows what remains after COGS, not the final profit of the business.
- A useful comparison requires consistent cost definitions and similar periods or businesses.
- Gross profit, gross margin, markup, and net profit margin answer different questions.
- A margin change is a signal to investigate pricing, cost of sales, discounts, or product mix.
Final takeaway
Gross margin tells you how much of each sales euro remains after the cost of sales. Calculate it consistently, compare it over time, and investigate the drivers behind any change. Then examine the remaining expenses before deciding whether the business is truly profitable.