Quick answer
Gross Profit Margin = (Revenue − COGS) / Revenue × 100. Example: Revenue $5M, COGS $3M → Gross Profit $2M → 40% Gross Profit Margin. A margin above 30% is healthy for most product businesses; software typically achieves 60–80%.
How to use this gross margin calculator
Enter Revenue and Cost of Goods Sold (COGS) in the same currency unit. The calculator returns Gross Profit in absolute terms and Gross Profit Margin as a percentage. Use the same period for both figures - quarterly or annual income statement values work best.
What is Gross Profit Margin?
Gross Profit Margin measures how much of every dollar of revenue remains after paying the direct costs of producing goods or delivering services. It is the first profitability check on an income statement, sitting above all operating expenses, interest, and tax.
A high gross margin signals strong pricing power or low production costs. It means the company has significant resources to invest in growth, sales, and R&D without operating at a loss. A thin gross margin leaves little room to absorb overhead - even small cost increases can flip a business into a net loss.
Gross Profit Margin is particularly useful for comparing companies within the same industry. Because it strips out financing and tax differences, it isolates whether one business produces goods more efficiently than another.
Gross Profit Margin explained to a beginner
Imagine you run a sandwich shop. You sell each sandwich for $10. The bread, fillings, packaging, and the person making it cost you $6 per sandwich. That $4 left over per sandwich is your gross profit. Expressed as a percentage of your selling price: $4 / $10 = 40% gross profit margin.
That 40% is the money available to pay rent, utilities, your own salary, and marketing - before anything qualifies as actual profit. If your margin were only 10%, you would need to sell four times as many sandwiches to cover the same overhead. That is why gross margin is the first number analysts check: it tells you whether the core product economics make sense before any other cost is even considered.
Gross Profit Margin formula
Two equivalent forms:
$$\text{Gross Profit} = \text{Revenue} - \text{COGS}$$
$$\text{Gross Profit Margin} = \frac{\text{Gross Profit}}{\text{Revenue}} \times 100$$
Combined into one step:
$$\text{Gross Profit Margin} = \frac{\text{Revenue} - \text{COGS}}{\text{Revenue}} \times 100$$
COGS includes direct material costs, direct labour, and manufacturing overhead. It excludes SG&A, R&D, depreciation on non-production assets, interest, and tax.
Industry benchmarks
| Industry | Typical Gross Margin | Key driver |
|---|---|---|
| SaaS / Cloud Software | 65% – 80% | Near-zero marginal cost of software delivery |
| Pharmaceuticals | 60% – 75% | IP pricing power; low incremental manufacturing cost |
| Financial Services | 50% – 70% | Revenue = fees / interest; few direct production costs |
| Medical Devices | 50% – 65% | Premium pricing on regulated products |
| Consumer Electronics | 30% – 45% | Component and assembly costs moderate margins |
| Manufacturing | 20% – 40% | Raw materials and direct labour-intensive |
| Retail (specialty) | 35% – 55% | Mark-up on branded or niche products |
| Retail (grocery) | 20% – 30% | High volume, low mark-up commodity goods |
| Restaurants | 25% – 40% | Food and beverage cost as % of sales |
| Construction | 15% – 25% | Material and subcontractor costs dominate |
These ranges are indicative. Individual companies within each sector vary based on product mix, brand strength, and supply chain efficiency. Always compare against direct peers rather than broad industry averages.
One thing I personally notice is that B2B software founders often anchor to the 65-80% SaaS benchmark without accounting for how much of their revenue is actually recurring subscription versus one-time implementation work.
Professional services delivered by the hour typically run 20-35% gross margin because direct labour is the product.
A company reporting a blended 55% gross margin may actually be running two very different businesses: a 75% margin SaaS product and a 30% margin services arm. Breaking out the segments separately tells a far more useful story than the consolidated figure.
Worked examples for gross profit margin
| Company type | Revenue | COGS | Gross Profit | Gross Margin |
|---|---|---|---|---|
| SaaS startup | $4,000,000 | $800,000 | $3,200,000 | 80.0% |
| Consumer goods brand | $20,000,000 | $12,000,000 | $8,000,000 | 40.0% |
| Grocery retailer | $50,000,000 | $37,500,000 | $12,500,000 | 25.0% |
| Contract manufacturer | $30,000,000 | $24,000,000 | $6,000,000 | 20.0% |
| Restaurant group | $8,000,000 | $5,200,000 | $2,800,000 | 35.0% |
Gross Profit Margin vs Net Profit Margin
Gross Profit Margin and Net Profit Margin both measure profitability as a percentage of revenue, but they sit at different levels of the income statement.
| Metric | What it deducts | Best used for |
|---|---|---|
| Gross Profit Margin | COGS only | Pricing power, production efficiency |
| Operating Profit Margin | COGS + Operating Expenses | Operational efficiency (pre-financing) |
| Net Profit Margin | COGS + OpEx + Interest + Tax | Bottom-line shareholder return |
A business can have an excellent gross margin but a poor net margin if overhead (SG&A, R&D) is disproportionately high. Conversely, a thin gross margin business can still be a viable investment if it operates at extremely high volume with tight cost discipline.
Use gross margin to assess the core product economics. Use net margin to assess whether the full business model - including overhead and financing - is sustainable.
One pattern I see repeatedly: early-stage businesses confuse improving gross margin with improving net margin. A startup that negotiates its COGS down by 5 percentage points feels like it has solved its profitability problem - but if SG&A (Selling, General & Administrative expenses) is 80% of revenue, the net margin barely moves.
Gross margin sets the ceiling for what is achievable, but reducing overhead is what converts that potential into actual profit. The two levers are independent and need to be tracked separately.
FAQs about gross profit margin
What is Gross Profit Margin?
Gross Profit Margin = (Revenue − COGS) / Revenue × 100. It measures what percentage of revenue remains after deducting the direct costs of goods or services. It is the first profitability line on an income statement.
What is a good Gross Profit Margin?
It is highly industry-dependent. Software: 65–80%. Pharma: 60–75%. Retail: 25–50%. Grocery: 20–30%. Manufacturing: 20–40%. A margin well below the sector average usually signals a pricing or cost disadvantage.
What is Cost of Goods Sold (COGS)?
COGS is the total of all direct costs required to produce or deliver the goods and services a company sells. It typically includes raw materials, direct labour, and manufacturing overhead directly tied to production. It does not include indirect costs such as SG&A, marketing, R&D, depreciation on non-production assets, or interest. On the income statement, COGS is the first deduction from Revenue to arrive at Gross Profit.
What costs are included in COGS?
COGS includes direct material, direct labour, and manufacturing overhead directly tied to production. It excludes SG&A, marketing, R&D, depreciation on non-production assets, and financing costs.
Can Gross Profit Margin be negative?
Yes, if COGS exceeds revenue. This means the company sells goods for less than they cost to produce - a critical warning sign that often indicates either aggressive discounting, distress inventory clearance, or a fundamentally broken pricing model.
How is Gross Profit Margin different from Gross Profit?
Gross Profit is an absolute dollar figure (Revenue − COGS). Gross Profit Margin is that figure expressed as a percentage of revenue. The margin is scale-independent: a $2M gross profit on $5M revenue (40%) is more comparable across companies of different sizes than the absolute dollar figure alone.
Quiz: how well do you know gross profit margin?
1. What does Gross Profit Margin measure?
2. A SaaS startup has Revenue of $4,000,000 and COGS of $800,000. What is its Gross Profit Margin?
3. Why is Gross Profit Margin particularly useful for comparing companies within the same industry?
4. According to the industry benchmarks table, what is the typical Gross Profit Margin range for SaaS / Cloud Software companies?
5. What does a negative Gross Profit Margin indicate about a business?