Gross Margin

Updated
May 28, 2026

Gross Margin: How to Calculate It and What It Tells You About Your Business

Gross margin is the percentage of revenue that remains after subtracting the direct costs of producing your product or delivering your service. It is one of the most important indicators of business efficiency and pricing health.

The Formula


Gross Profit = Revenue - Cost of Goods Sold (COGS)

Gross Margin (%) = (Gross Profit / Revenue) x 100

Example: a business earns $500,000 in revenue and incurs $200,000 in COGS. Gross profit is $300,000. Gross margin is 60%.

What COGS Includes

COGS covers only the direct costs of production or delivery:

  • Raw materials and components
  • Direct labor (workers who physically make the product)
  • Manufacturing overhead directly tied to production
  • For SaaS: hosting costs, payment processing fees, and customer support directly tied to delivering the service

COGS does not include sales and marketing, general and administrative expenses, research and development, or executive salaries. Those are operating expenses, which appear below gross profit on the income statement.

Gross Margin vs. Net Margin

Gross margin measures profitability before operating expenses. Net margin measures profitability after everything, including operating expenses, interest, and taxes.

A business can have a high gross margin and still be unprofitable at the net level if operating expenses are too high. Gross margin tells you whether the product or service model is fundamentally sound. Net margin tells you whether the overall business is.

Industry Benchmarks

Gross margins vary significantly by sector:

  • SaaS and software: 70 to 80% is typical; below 60% raises questions
  • Professional services: 30 to 50%
  • Consumer retail: 30 to 50%
  • Manufacturing: 20 to 40%
  • Grocery and distribution: 10 to 25%

Comparing your gross margin to industry peers is more meaningful than chasing a generic target.

How to Improve Gross Margin

  • Raise prices. If customers are not price-sensitive, higher prices improve margin without changing costs.
  • Reduce direct costs. Renegotiating supplier contracts, improving production efficiency, or reducing waste all lower COGS.
  • Change the product mix. Some products or services carry higher margins than others. Shifting toward higher-margin offerings improves blended margin.
  • Increase volume. Fixed costs within COGS are spread across more units, improving margin per unit sold.

Why Gross Margin Matters to Investors

For investors evaluating a business, gross margin is a proxy for unit economics. A business with a 40% gross margin cannot scale to profitability as easily as one with a 70% gross margin, because there is less money remaining after direct costs to cover fixed expenses and generate returns.

Frequently Asked Questions About Gross Margin

1. What is gross margin in simple terms?

Gross margin is the percentage of revenue that remains after subtracting the direct costs of producing your product or delivering your service. It tells you how much of each revenue dollar is available to cover operating expenses and generate profit.

2. How do you calculate gross margin?

Gross Margin (%) = (Revenue minus Cost of Goods Sold) divided by Revenue, multiplied by 100. If revenue is $500,000 and COGS is $200,000, gross profit is $300,000 and gross margin is 60%.

3. What is the difference between gross margin and net margin?

Gross margin measures profitability after only direct production costs. Net margin measures profitability after all costs, including operating expenses, interest, and taxes. A business can have a high gross margin but still be unprofitable at the net level if overhead is too high.

4. What is a good gross margin?

It depends entirely on the industry. SaaS businesses typically achieve 70 to 80% gross margins. Professional services firms run 30 to 50%. Retail ranges from 30 to 50%. Grocery and distribution often runs 10 to 25%. The more meaningful question is whether your gross margin is trending up or down over time compared to your own prior periods.

5. Can gross margin be negative?

Yes, and it is a serious warning sign. A negative gross margin means the direct cost of delivering your product or service exceeds the revenue it generates. No amount of operational efficiency can offset a negative gross margin at scale; the unit economics of the product itself need to be addressed. To dive deeper into managing these accounting frameworks, you can review the SEC Investor Guide on Financial Statements.

Ready to automate your bookkeeping?
Try LayerNext Today
No items found.
No items found.