Calculate Gross Profit Margin Instantly

Subtract COGS from Revenue, then divide by Revenue

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

IndustryTypical Gross MarginKey driver
SaaS / Cloud Software65% – 80%Near-zero marginal cost of software delivery
Pharmaceuticals60% – 75%IP pricing power; low incremental manufacturing cost
Financial Services50% – 70%Revenue = fees / interest; few direct production costs
Medical Devices50% – 65%Premium pricing on regulated products
Consumer Electronics30% – 45%Component and assembly costs moderate margins
Manufacturing20% – 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
Restaurants25% – 40%Food and beverage cost as % of sales
Construction15% – 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 typeRevenueCOGSGross ProfitGross Margin
SaaS startup$4,000,000$800,000$3,200,00080.0%
Consumer goods brand$20,000,000$12,000,000$8,000,00040.0%
Grocery retailer$50,000,000$37,500,000$12,500,00025.0%
Contract manufacturer$30,000,000$24,000,000$6,000,00020.0%
Restaurant group$8,000,000$5,200,000$2,800,00035.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.

MetricWhat it deductsBest used for
Gross Profit MarginCOGS onlyPricing power, production efficiency
Operating Profit MarginCOGS + Operating ExpensesOperational efficiency (pre-financing)
Net Profit MarginCOGS + OpEx + Interest + TaxBottom-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.

Test your knowledge

Quiz: how well do you know gross profit margin?

5 questions · ~2 min

1. What does Gross Profit Margin measure?

Gross Profit Margin = (Revenue - COGS) / Revenue x 100. It only deducts direct production costs (COGS) - not operating expenses, interest, or tax. It is the first profitability line on an income statement.

2. A SaaS startup has Revenue of $4,000,000 and COGS of $800,000. What is its Gross Profit Margin?

Gross Profit = $4,000,000 - $800,000 = $3,200,000. Margin = $3,200,000 / $4,000,000 x 100 = 80%. The 20% figure is the COGS ratio - a common mix-up.

3. Why is Gross Profit Margin particularly useful for comparing companies within the same industry?

Gross margin excludes interest and tax, which reflect financing choices and jurisdiction rather than operational efficiency. This makes it the cleanest cross-company production efficiency signal.

4. According to the industry benchmarks table, what is the typical Gross Profit Margin range for SaaS / Cloud Software companies?

SaaS companies achieve 65-80% gross margins because the marginal cost of delivering an extra unit of software is near zero - no raw materials, minimal direct labour per new customer.

5. What does a negative Gross Profit Margin indicate about a business?

A negative gross margin means COGS > Revenue. The company is selling below cost - a critical warning sign that often points to aggressive discounting, distress clearance, or a fundamentally broken pricing model.

Key terms