Gross Margin: The Definitive Guide for Smart Investors
Gross margin is revenue minus cost of goods sold (COGS), expressed as a percentage of revenue. A company with $1 billion in revenue and $600 million in COGS has a gross profit of $400 million and a gross margin of 40%. Gross margin tells you how much the business earns from its core operations before it pays for sales teams, R&D, administration, interest, or taxes. That one number reveals more about competitive position, pricing power, and scalability than almost any other single metric. High gross margins mean the business can absorb rising costs, fund growth through reinvestment, and still produce strong profits. Low gross margins leave almost no room for error.
This guide explains the formula, shows how gross margin differs from operating margin and net margin, gives you real benchmarks by industry, and shows you how to use it in a stock screen.
Key Takeaways
- Gross margin equals gross profit divided by revenue, expressed as a percentage. Gross profit equals revenue minus cost of goods sold.
- Gross margins above 60% typically indicate software, pharmaceuticals, or strong consumer brand businesses with genuine pricing power.
- AAPL's gross margin runs approximately 44-46% (a blend of high-margin services and lower-margin hardware); MSFT's software and cloud gross margin sits above 69%; KO's gross margin runs near 60%.
- Gross margin compression over 2-3 years is an early warning of either competitive pressure, input cost inflation that cannot be passed to customers, or mix shift toward lower-margin products.
- Industry context is everything: a 30% gross margin is strong for a retailer and dangerously thin for a software company.
- ValueMarkers tracks gross margin alongside 120+ other indicators in the screener, letting you set minimum thresholds by sector to filter out structurally weak businesses.
The Gross Margin Formula
The calculation is direct.
Gross Profit = Revenue - Cost of Goods Sold Gross Margin (%) = (Gross Profit / Revenue) x 100
Cost of goods sold (COGS) includes the direct costs of producing the goods or services sold: raw materials, direct labor, manufacturing overhead, and for software companies, the direct cost of running cloud infrastructure. It does not include sales and marketing, general and administrative expenses, research and development, depreciation and amortization (in most accounting treatments), or interest payments.
A concrete example: AAPL's fiscal 2024 revenue was $391 billion. COGS was approximately $211 billion. Gross profit was $180 billion. Gross margin: $180B / $391B = 46.1%.
The number you see on AAPL's income statement will split into two line items: Products gross margin (approximately 37%) and Services gross margin (approximately 74%). The overall blended margin of 46% reflects the fact that Services (App Store, Apple Music, iCloud, Apple TV+) has been growing faster than Products (iPhone, Mac, iPad) for six consecutive years, steadily pulling the blended gross margin upward.
Gross Margin vs Operating Margin vs Net Margin
These three metrics are frequently confused. Each answers a different question.
Gross margin measures how efficiently the core business produces revenue after paying for what it sells. It excludes all the overhead costs. A retailer with 25% gross margin may still be profitable if it runs a lean cost structure.
Operating margin (also called EBIT margin) subtracts operating expenses from gross profit: sales, marketing, G&A, R&D, and D&A. Operating margin measures how profitably the business is run as a whole, before financing decisions (debt interest) and taxes. AAPL's operating margin runs approximately 30%; MSFT's is approximately 43%.
Net margin (also called net profit margin) is what remains after every expense including taxes and interest payments. Net margin is the bottom line as a percentage of revenue. AAPL's net margin runs approximately 24-26%; MSFT's approximately 36%; JNJ's approximately 19%.
The relationships between these three reveal different types of quality.
A company with a 70% gross margin and a 10% net margin has a serious operating cost problem; it is burning cash on sales, marketing, or administration. A company with a 35% gross margin and a 20% net margin runs a famously disciplined cost structure. The distance between gross and net margin is the story of how well management controls the business.
| Company | Gross Margin | Operating Margin | Net Margin | Implication |
|---|---|---|---|---|
| AAPL | 46.1% | 30.0% | 24.3% | Hardware drag on gross; operating efficiency strong |
| MSFT | 69.8% | 43.1% | 36.1% | Software economics, minimal COGS |
| KO | 59.7% | 22.0% | 23.4% | Brand premium captured at gross; marketing heavy |
| JNJ | 68.4% | 24.6% | 19.1% | Pharma gross margins; litigation costs compress net |
| BRK.B | 18.2% | 11.1% | 10.4% | Insurance/financial structure makes margins low but economics strong |
BRK.B's apparently low margins are not a problem; they reflect the nature of insurance, financial, and industrial businesses within Berkshire's portfolio. Margin benchmarks are only useful within comparable sectors.
Industry Gross Margin Benchmarks
Gross margin benchmarks vary enormously by sector, and applying the wrong benchmark will mislead you. Here are the ranges that define each major sector.
| Sector | Typical Gross Margin Range | Top-tier Examples |
|---|---|---|
| Software (SaaS) | 65-85% | MSFT (69%), Salesforce (75%), Adobe (88%) |
| Pharmaceuticals | 60-80% | JNJ pharma (70%+), Eli Lilly (75%) |
| Consumer Staples (brand) | 45-65% | KO (60%), PG (50%), CL (57%) |
| Medical Devices | 50-70% | Abbott (55%), Medtronic (65%) |
| Consumer Electronics | 35-50% | AAPL blended (46%) |
| Retail (discretionary) | 25-45% | Nike (44%), Home Depot (33%) |
| Automotive | 10-20% | Ford (10%), Toyota (18%) |
| Grocery/Food Retail | 20-30% | Kroger (22%), Costco (13%) |
| Energy (integrated) | 15-35% | Chevron (35% in high-cycle) |
| Airlines | 15-30% | Delta (26% blended) |
A software company with 50% gross margin is underperforming its sector; a grocery chain with 50% gross margin is doing something extraordinary (or categorizing expenses in an unusual way).
When using the ValueMarkers screener with gross margin filters, always set sector-specific thresholds rather than a universal minimum.
What Gross Margin Tells You About Competitive Moats
The single most useful question gross margin answers: does this business have pricing power?
Pricing power means the ability to raise prices without losing customers. It comes from switching costs (enterprise software), brand equity (luxury goods, consumer beverages), network effects (payment networks), cost advantages (scale economies), or regulatory barriers (pharmaceutical patents, utility monopolies).
A company with consistently high and expanding gross margins is charging more than it costs to produce, and customers are paying it. A company with shrinking gross margins is either losing pricing power to competitors, absorbing commodity cost inflation it cannot pass through, or shifting its product mix toward lower-value offerings.
AAPL's gross margin trajectory illustrates the pricing power story. In fiscal 2018, AAPL's blended gross margin was 38.3%. By fiscal 2024 it was 46.1%. The improvement came from two sources: iPhone price increases (from a $699 average selling price in 2017 to above $900 in 2024) and the growth of the high-margin Services segment from 13% of revenue to 22% of revenue. Both reflect genuine pricing power, not accounting changes.
KO's gross margin has been stable at 58-62% for a decade. Stability at a high level is as strong a signal as expansion; it means the business defends its premium consistently.
Beware of gross margin expansion driven by mix shift toward services that may not be sustainable. Revenue quality matters as much as the margin number.
How to Screen for Gross Margin Quality
A gross margin screen has two components: the level and the trend.
Level: Set a minimum threshold appropriate to the sector. For a broad screen, a floor of 40% eliminates commodity businesses, low-margin retailers, and capital-intensive industrials, leaving you with software, healthcare, consumer brands, and similar quality businesses. For a sector-specific screen, use the benchmarks above.
Trend: More important than the level is whether gross margin has been stable or expanding over 3-5 years. A 55% gross margin expanding from 52% over 3 years suggests improving pricing power or positive mix shift. A 55% gross margin contracting from 62% is a warning that something structural is changing, even if the absolute number still looks good.
In the ValueMarkers screener, you can filter by current gross margin (minimum level) and sort by 3-year change in gross margin to identify both quality and improving quality.
Gross Margin in the VMCI Score
The ValueMarkers VMCI Score integrates gross margin into the Quality pillar, which carries 30% of the total score weight. Within the Quality pillar, gross margin is evaluated both on an absolute basis (against sector benchmarks) and on a trend basis (3-year change).
A company with a gross margin in the top quartile of its sector and an expanding trend over 3 years scores full marks on this dimension. A company with gross margin in the bottom quartile and a declining trend gets flagged for risk, regardless of how cheap its valuation appears.
This integration means the VMCI Score captures a situation like: cheap P/E, but gross margin has compressed 8 percentage points over 3 years. The Quality pillar downgrade offsets the Value pillar uplift, producing a moderate overall score that prompts further investigation rather than automatic inclusion.
Common Gross Margin Mistakes Investors Make
Ignoring sector context: A 25% gross margin for a software company signals a serious competitive problem. For a grocery retailer, 25% is above average. The same number means opposite things.
Treating gross margin as the final word on profitability: A high gross margin with reckless operating expense growth produces low or negative net income. Gross margin is the starting point, not the conclusion.
Not adjusting for revenue recognition policies: Software companies that recognize revenue upfront versus over contract life show different gross margin profiles on identical economic transactions. Read the revenue recognition footnotes in the 10-K before comparing gross margins across companies with different accounting elections.
Confusing gross margin with gross profit: Gross profit is an absolute dollar number (revenue minus COGS). Gross margin is that number as a percentage of revenue. A growing business can increase gross profit in dollar terms while gross margin percentage contracts, which is a meaningful difference for valuation.
Using EBITDA margin as a substitute for gross margin: EBITDA margin strips out depreciation and amortization, which are real economic costs for asset-intensive businesses. EBITDA margin overstates profitability for manufacturers, utilities, and capital-heavy businesses. Gross margin does not have this distortion.
Further reading: Investopedia · CFA Institute
Why gross profit margin Matters
This section anchors the discussion on gross profit margin. The detailed treatment, formula, and worked examples appear in the body of this article above. The points below summarize the most important takeaways for value investors who want to apply gross profit margin in real portfolio decisions. ValueMarkers exposes the underlying data on every covered ticker via the screener and stock profile pages, so the concepts in this article translate directly into actionable filters.
Key inputs for gross profit margin
See the main discussion of gross profit margin in the sections above for the full treatment, including the inputs, the calculation methodology, the typical sector benchmarks, and the most common pitfalls to avoid. The ValueMarkers screener lets value investors filter the full universe of 100,000+ stocks across 73 exchanges using gross profit margin alongside the rest of the 120-indicator composite, with sector percentiles and historical trends shown on every stock profile.
Sector benchmarks for gross profit margin
See the main discussion of gross profit margin in the sections above for the full treatment, including the inputs, the calculation methodology, the typical sector benchmarks, and the most common pitfalls to avoid. The ValueMarkers screener lets value investors filter the full universe of 100,000+ stocks across 73 exchanges using gross profit margin alongside the rest of the 120-indicator composite, with sector percentiles and historical trends shown on every stock profile.
Related ValueMarkers Resources
- Gross Margin — Gross Margin measures how efficiently a company converts capital into earnings
- Roe — Glossary entry for Roe
- Net Margin — Glossary entry for Net Margin
- Us Large Cap Value Stocks Screening — related ValueMarkers analysis
- Cnbc Pro Stock Screener — related ValueMarkers analysis
- Piotroski F Score Criteria All 9 Signals Explained — related ValueMarkers analysis
Frequently Asked Questions
what is gross profit
Gross profit is the dollar amount remaining after subtracting cost of goods sold (COGS) from total revenue. If AAPL generates $391 billion in revenue and incurs $211 billion in COGS, its gross profit is $180 billion. Gross profit is the raw material for paying operating expenses (S&M, R&D, G&A) and, after all expenses, producing net income. A growing gross profit in dollar terms, even with stable or slightly declining gross margin percentage, indicates the business is scaling.
what is profit margin
Profit margin most commonly refers to net profit margin, which equals net income divided by revenue, expressed as a percentage. If a company earns $10 billion in net income on $100 billion in revenue, its net margin is 10%. The term "profit margin" can also describe gross margin or operating margin depending on context; in financial analysis, always specify which margin you mean. AAPL's net margin runs approximately 24-26%, among the highest in the hardware and services industry.
what is net margin
Net margin (net profit margin) equals net income divided by revenue. It measures the percentage of revenue that becomes profit after every expense: COGS, operating expenses, interest, and taxes. Net margin is the most comprehensive profitability measure but is also the most sensitive to accounting choices, tax rate changes, and one-time items. MSFT's net margin of approximately 36% reflects its high-margin software and cloud business model; JNJ's net margin of approximately 19% is compressed by pharmaceutical R&D costs and litigation expenses.
what is ebitda margin
EBITDA margin equals EBITDA (earnings before interest, taxes, depreciation, and amortization) divided by revenue. It approximates operating cash generation before capital structure and accounting depreciation effects. EBITDA margin is widely used in corporate finance and M&A for comparing companies with different capital structures or depreciation policies. For investors evaluating earnings quality, EBITDA margin is less useful than gross margin or free cash flow margin because it adds back real economic costs (depreciation represents real asset consumption).
how to calculate net profit margin
Net profit margin = (Net Income / Revenue) x 100. Net income appears on the last line of the income statement. Revenue appears at the top. For AAPL with $94 billion in net income and $391 billion in revenue: ($94B / $391B) x 100 = 24.0% net margin. Use the trailing twelve months (TTM) figures from the most recent quarterly filing for the current picture, or fiscal year figures for the full-year comparison. Exclude one-time items (gains on asset sales, restructuring charges) if you want to see the underlying operational margin.
what is net profit margin
Net profit margin is the percentage of each revenue dollar that becomes net income after all costs, including taxes and interest. It is the most commonly cited profitability metric and the one investors typically mean when they say a company has a "20% margin." For context: the S&P 500 median net margin is approximately 11-12%; a net margin above 20% places a company in the top quartile of U.S. public companies by profitability. MSFT at 36% and AAPL at 24% both exceed this threshold, while BRK.B at 10% reflects its financial conglomerate structure rather than weak profitability.
Written by Javier Sanz, Founder of ValueMarkers. Last updated April 2026.
Ready to find your next value investment?
ValueMarkers tracks 120+ fundamental indicators across 100,000+ stocks on 73 global exchanges. Run the methodology above in seconds with our stock screener, or see today's top-ranked names on the leaderboard.
Related tools: DCF Calculator · Methodology · Compare ValueMarkers
Disclaimer: This content is for informational and educational purposes only and does not constitute investment advice, a recommendation, or an offer to buy or sell any security. Past performance does not guarantee future results. Consult a licensed financial advisor before making investment decisions.