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 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 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.

Worked examples

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.

Frequently asked questions

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.

Key terms