Profitability · Income Statement Analysis
Gross Profit Margin: Formula, What It Means & Sector Benchmarks
Gross profit margin measures how much of each revenue dollar a company retains after paying the direct costs of producing what it sells. It is the first and most important profitability gate on the income statement — the ceiling from which all other costs and profit must come. A high gross margin signals pricing power or scalable economics; a compressing gross margin often signals competitive pressure or rising input costs before those forces show up in earnings.
Gross profit margin measures revenue retained after direct production costs. Gross margin = (Revenue - COGS) / Revenue × 100. A 60% gross margin means $0.60 of every revenue dollar survives after paying for what the company sold. High margins (above 50%) signal pricing power or scalable software economics. Low margins (below 20%) reflect commodity or manufacturing exposure. Always compare within the same industry.
Gross Margin Formula & What Each Term Means
The gross margin formula has two components. Revenue is the total sales a company generates. Cost of Goods Sold (COGS) covers only the direct costs of producing those goods or services — raw materials, manufacturing labor, cloud hosting costs for software, or cost of drugs for pharma. COGS explicitly excludes R&D, sales and marketing, and general overhead (SG&A), which appear lower on the income statement.
Formula components defined
- Revenue
- Total net sales for the period (after returns and discounts)
- Cost of Goods Sold (COGS)
- Direct costs: raw materials, manufacturing labor, cloud hosting, cost of products sold
- Gross Profit
- Revenue − COGS (the dollar amount)
- Gross Margin %
- Gross Profit / Revenue × 100 (the percentage)
COGS does NOT include R&D, sales and marketing, or G&A. Those are operating expenses that appear below gross profit on the income statement and are captured by operating margin, not gross margin. This distinction matters: a high gross margin company can still lose money if it spends aggressively on growth.
Worked Example: Apple FY2024
Apple (AAPL) is a useful benchmark because it spans both hardware (lower-margin products) and software services (higher-margin). Its blended gross margin reflects the economics of selling iPhones, Macs, and iPads alongside the App Store, Apple Music, and iCloud.
Apple FY2024 gross margin calculation
- Revenue
- $391 billion
- Cost of Goods Sold (COGS)
- $211 billion
- Gross Profit
- $391B − $211B = $180 billion
- Gross Margin
- $180B / $391B = 46.0%
Apple keeps $0.46 of every revenue dollar after direct production costs. This 46% blended margin reflects a mix of hardware products (Products segment: ~37% gross margin) and high-margin services (Services segment: ~74% gross margin). The services mix shift has been the primary driver of Apple's gross margin expansion over the past decade.
What Is a Good Gross Margin? Benchmarks by Sector
There is no universally “good” gross margin. The right benchmark depends entirely on the industry. Software companies structurally run higher gross margins than grocery retailers because the marginal cost of delivering software to an additional customer is near zero. Comparing gross margins across sectors is a category error.
| Sector | Typical Range | Driver |
|---|---|---|
| Software / SaaS | 65–80% | Near-zero marginal delivery cost; recurring subscription economics |
| Pharmaceuticals | 60–75% | Branded drugs have pricing power; patent protection insulates from cost competition |
| Consumer Staples | 30–50% | Premium brands reach the high end; commodity food processors compress to 20-30% |
| Retail | 20–35% | Reselling physical goods at thin markups; competition compresses pricing power |
| Manufacturing | 15–30% | Raw materials, labor, and factory overhead embedded in every unit; capital-intensive |
| Grocery | 20–25% | Extremely competitive; high inventory turnover offsets thin per-unit margins |
See the gross margin by industry sector benchmarks for median, top-quartile, and bottom-quartile data across 12 S&P 500 sectors.
Gross Margin vs. Net Margin
Gross margin and net margin both measure profitability as a percentage of revenue, but they answer different questions. Gross margin isolates the economics of the product itself. Net margin captures the efficiency of the entire business after every cost has been paid.
| Dimension | Gross Margin | Net Margin |
|---|---|---|
| What it measures | Revenue retained after direct production costs (COGS) | Revenue retained after ALL costs: COGS, R&D, SG&A, interest, and taxes |
| What it excludes | R&D, sales & marketing, G&A, interest, taxes | Nothing — it is the bottom line |
| When to use it | Diagnosing pricing power, product economics, and competitive moat | Assessing overall business efficiency and earnings generation |
| Key limitation | High gross margin does not mean the business is profitable — overhead can eliminate the advantage | Can be distorted by interest costs, tax timing, and one-time charges |
See our gross margin vs. net margin guide for a full comparison including operating margin and EBITDA margin, with a 15-sector benchmark table.
Gross Margin Red Flags
Gross margin trends often signal competitive or structural problems before they appear in headline earnings. These three patterns warrant closer examination.
- Gross margin compression over 3+ years. A steady decline — even from a high base — suggests that pricing power is eroding, input costs are rising faster than prices, or the company is shifting toward lower-margin products. A 200-300 basis point annual compression compounds into a fundamentally different business within five years. Compare the trend against sector peers to determine whether the compression is company-specific or industry-wide.
- Gross margin 10+ percentage points below sector peers. When a company structurally runs below its peers, it either faces a cost disadvantage (inferior scale, higher input costs, less efficient production) or a pricing disadvantage (weaker brand, more commoditized product, more aggressive competition). Either diagnosis points to a moat problem that will persist unless management takes structural action — not just a one-year blip.
- Rising revenue with falling gross margin. Growth that comes with margin compression is volume growth without pricing power. The company is selling more but keeping less per dollar. Common causes include entering lower-margin geographies or product categories, competing on price rather than value, and discounting to hit revenue targets. If gross margin is falling while revenue grows, question whether the growth is creating or destroying economic value.
Limitations of Gross Margin Analysis
- High gross margin does not mean the business is profitable. Gross margin excludes SG&A, R&D, interest, and taxes. A company with an 80% gross margin but 90% of revenue spent on sales, marketing, and engineering can still lose money. Many early-stage SaaS companies demonstrate this pattern deliberately — they accept near-zero operating margins because they believe incremental investment in growth will compound into durable returns. Always follow gross margin analysis with operating margin and net profit margin to see how much of the gross margin advantage the business actually captures.
- COGS definition varies across industries and companies. Software companies differ on whether cloud hosting and customer success costs sit in COGS or operating expenses. Some manufacturers include depreciation on production equipment in COGS; others do not. These choices can swing reported gross margin by several percentage points for companies in the same sector. When comparing gross margins across companies, verify what is included in COGS versus operating expenses to ensure a like-for-like comparison. Cross-sector comparison is almost always invalid for this reason.
- One-time inventory write-downs distort a single period. A large inventory impairment, a commodity price spike, or a supply chain disruption can compress gross margin sharply in the period it hits — without reflecting any change in the underlying business economics. When gross margin drops sharply in a single quarter, investigate whether it reflects a structural change or a one-time event before drawing conclusions. Pair gross margin with return on invested capital (ROIC) for a more stable long-run view of capital efficiency.