Gross Margin
Gross Margin
Quick Definition
Gross margin is the percentage of revenue that remains after subtracting the Cost of Goods Sold (COGS). It measures how much of each revenue dollar the company retains before paying operating expenses like salaries, rent, and marketing.
Gross Margin = (Revenue - COGS) / Revenue × 100
Or equivalently: Gross Margin = Gross Profit / Revenue × 100
What It Means
Gross margin is the single most revealing metric about a business's fundamental economics. It answers: how much does it cost to make what you sell, and how much do you keep?
A high gross margin means the company adds substantial value beyond its direct production costs. This is the hallmark of a business with pricing power — one whose customers are not purely price-sensitive. Low gross margins mean the company is in a commoditized, competitive market where margins are squeezed and efficiency is everything.
Gross margin is also the foundation of all downstream profitability. A company with 70% gross margins has $0.70 of every revenue dollar to fund operations, R&D, marketing, and profit. A company with 10% gross margins has only $0.10.
Gross Margin Calculation
Example: Two companies, same revenue, different models:
| Metric | Company A (Software) | Company B (Grocery Retail) |
|---|---|---|
| Revenue | $100M | $100M |
| COGS | $15M | $72M |
| Gross Profit | $85M | $28M |
| Gross Margin | 85% | 28% |
Both generate $100M in revenue, but Company A has $85M left to cover all other expenses and generate profit. Company B has only $28M. The business model determines the margin ceiling.
Gross Margins by Industry
| Industry | Typical Gross Margin | Key Driver |
|---|---|---|
| Software (SaaS) | 65-85% | Near-zero marginal cost to add users |
| Pharmaceuticals | 60-80% | Patent protection; minimal COGS vs. selling price |
| Medical devices | 50-70% | Proprietary technology; high switching costs |
| Consumer brands | 40-60% | Brand premium over commodity ingredients |
| Semiconductors (fabless) | 45-65% | IP-heavy; outsourced manufacturing |
| Aerospace & defense | 15-25% | Complex manufacturing; cost-plus contracts |
| Restaurants | 60-75% (on food only) | ~25-40% on total revenue after labor |
| Automotive | 10-20% | High materials cost; competitive pricing |
| Grocery retail | 22-28% | High volume, thin margins |
| Airlines | 15-25% | Fuel cost dominates |
Gross Margin Trends: What Changes Mean
| Trend | Possible Causes | Investor Interpretation |
|---|---|---|
| Expanding gross margin | Pricing power; operational efficiency; favorable input costs; mix shift to higher-margin products | Positive — business improving |
| Stable gross margin | Consistent competitive position; costs and prices moving together | Neutral — steady state |
| Contracting gross margin | Input cost inflation; pricing pressure; competition; mix shift to lower-margin products | Warning — investigate cause |
| Sudden drop | Loss of pricing power; new competitor; contract renegotiation | Red flag — urgent investigation |
Gross Margin vs. Operating Margin vs. Net Margin
| Metric | What It Measures | Deducts From Revenue |
|---|---|---|
| Gross Margin | Core production efficiency | COGS only |
| Operating Margin | Operating efficiency | COGS + SG&A + R&D |
| Net Margin | Total profitability | All expenses, taxes, interest |
Full income statement margin waterfall:
| Line Item | $ Amount | Margin |
|---|---|---|
| Revenue | $500M | 100% |
| COGS | -$175M | |
| Gross Profit | $325M | 65% |
| SG&A | -$150M | |
| R&D | -$50M | |
| Operating Income (EBIT) | $125M | 25% |
| Interest & Other | -$15M | |
| Tax | -$27.5M | |
| Net Income | $82.5M | 16.5% |
A company can have a high gross margin but poor operating margin if SG&A and R&D are excessive.
Gross Margin and Competitive Moat
Sustainably high gross margins indicate a competitive moat — a durable advantage that prevents competition from eroding pricing power:
| Moat Type | Example | Gross Margin |
|---|---|---|
| Network effect | Microsoft Office | 65-70% |
| Switching costs | Salesforce CRM | 70-75% |
| Brand loyalty | Apple | 40-45% |
| Patent protection | Pfizer (on-patent drug) | 70-85% |
| Cost advantage | Walmart (vs. small retailers) | 24% (but operational leverage compensates) |
Gross Margin vs. Contribution Margin
These are related but different:
| Metric | Includes Fixed Costs? | Use |
|---|---|---|
| Gross Margin | GAAP: may include some fixed manufacturing overhead | Financial reporting; comparability |
| Contribution Margin | No fixed costs — only variable costs | Internal breakeven and pricing analysis |
For financial analysis and stock research, gross margin is used. For pricing decisions and breakeven analysis within a business, contribution margin is more precise.
Key Points to Remember
- Gross margin = (Revenue - COGS) / Revenue — measures the efficiency of core production
- Software and pharma have the highest gross margins (65-85%); retail and automotive have the lowest (10-28%)
- High gross margin signals pricing power and competitive moat — the ability to charge more than production costs
- Declining gross margins are a major warning sign — investigate whether it is temporary or structural
- Gross margin determines the ceiling for all downstream profitability — it is the first and most important margin
- Compare gross margins within an industry — cross-industry comparisons are not meaningful
Frequently Asked Questions
Q: Why do SaaS companies have such high gross margins? A: Software can be replicated and distributed digitally at near-zero marginal cost. Once built, serving one additional customer costs almost nothing. This is the "winner-take-most" dynamic — high margins, scalable with minimal COGS growth, justifying high valuation multiples.
Q: Can a company have a negative gross margin? A: Yes, though rarely sustainable. Some early-stage companies (especially in hardware or heavy subsidization situations) sell below cost to gain market share. Amazon's early e-commerce operations occasionally ran negative gross margins in specific categories. Persistent negative gross margins suggest the business model does not work economically.
Q: What is a "good" gross margin? A: Entirely industry-dependent. A 25% gross margin is excellent for a grocery chain and catastrophic for a software company. Always benchmark against industry peers and historical trends for the specific company.
Related Terms
Gross Profit Margin
Gross profit margin measures the percentage of revenue remaining after subtracting the cost of goods sold — revealing how efficiently a company produces its products and how much money is available to cover operating expenses and generate profit.
COGS
Cost of Goods Sold (COGS) is the direct cost of producing the goods or services a company sells, including materials and labor — the first deduction from revenue to calculate gross profit.
Contribution Margin
Contribution margin is the amount of revenue remaining after subtracting variable costs — showing how much each dollar of sales contributes toward covering fixed costs and generating profit.
EBIT
EBIT measures a company's operating profitability before accounting for how it is financed (interest) or taxed — making it ideal for comparing operating performance across companies with different capital structures and tax situations.
Asset Turnover
Asset turnover measures how efficiently a company uses its assets to generate revenue — calculated by dividing annual revenue by total assets, with higher ratios indicating more efficient asset utilization.
P/S Ratio
The price-to-sales ratio compares a company's market capitalization to its annual revenue — useful for valuing high-growth companies with no earnings yet, though it ignores profitability and must be paired with margin expectations.
Related Articles
How to Stop Comparing Your Money to Other People's
Financial comparison is invisible, constant, and expensive. Here's why your brain does it automatically, what it costs you, and how to actually break the habit.
Capital Gains Tax Explained: What Happens When You Sell Investments
Every time you sell a stock, fund, property, or crypto at a profit, a tax bill can follow. Here is how capital gains tax works, what the rates are in 2026, and how to legally reduce what you owe.

How to Do Your Own Taxes for Free Step by Step
Filing your own taxes is simpler than most people think, and it costs nothing if you know where to go. Here is the complete process from gathering documents to submitting your return.

Tax Loss Harvesting: A Simple Strategy Most Investors Ignore
When investments lose value, most people feel only the loss. Tax loss harvesting turns that loss into a tax benefit that can save you real money today and for years to come.
How to Use an HSA to Pay Zero Tax on Medical Expenses
A Health Savings Account is the only account in the US tax code that gives you a triple tax benefit. Here is how it works, who qualifies, and how to use it to make medical costs effectively free.

