When evaluating a company's financial health, top-line revenue growth is often the first metric investors look at. However, revenue alone does not tell the whole story. The true measure of a business's core profitability begins with its ability to produce goods or services efficiently. This is where the gross margin becomes an essential metric for investors.
Understanding what gross margin is and how to analyze it can help you identify companies with strong pricing power, efficient manufacturing, and sustainable competitive advantages. In this guide, we will explore the definition of gross margin, how to calculate it, and how to use it effectively in your stock analysis workflow.
What Is Gross Margin?
Gross margin (also known as gross profit margin) is a financial ratio that measures the percentage of revenue a company retains after deducting the direct costs associated with producing the goods or services it sells. These direct costs are commonly referred to as the Cost of Goods Sold (COGS).
Unlike net profit margin, which accounts for every single expense a business incurs, the gross margin focuses strictly on the core operations. It excludes indirect expenses such as:
- Selling, General, and Administrative (SG&A) expenses
- Research and Development (R&D)
- Interest payments on debt
- Taxes
- Depreciation and amortization (unless directly tied to production)
Because it isolates production costs, the gross margin provides the clearest view of a company's fundamental profitability and production efficiency. A higher gross margin indicates that a company retains more capital from each dollar of sales, which can then be used to fund other operations, pay down debt, or return capital to shareholders.
How to Calculate Gross Margin
The formula for calculating gross margin is straightforward:
Gross Margin = ((Total Revenue - Cost of Goods Sold) / Total Revenue) × 100To find these numbers, you simply need to look at a company's income statement:
- Locate the Total Revenue (or Net Sales) at the top of the statement.
- Locate the Cost of Goods Sold (COGS) or Cost of Revenue directly below it.
- Subtract COGS from Total Revenue to find the Gross Profit.
- Divide the Gross Profit by the Total Revenue.
- Multiply by 100 to express the result as a percentage.
For example, if a company generates $10 billion in revenue and incurs $4 billion in COGS, its gross profit is $6 billion. Its gross margin would be 60% (($6B / $10B) × 100).
What Is a Good Gross Margin?
A common question among new investors is, "What constitutes a good gross margin?" The answer depends heavily on the industry in which the company operates. Different business models have fundamentally different cost structures.
Industry Benchmarks
To evaluate a stock properly, you must compare its gross margin to its direct competitors and industry averages. Here is a look at typical gross margin ranges across various sectors:
| Industry | Typical Gross Margin | Characteristics |
| :--- | :--- | :--- |
| Software & SaaS | 70% - 85% | Extremely low costs to duplicate and distribute software, resulting in massive gross margins. |
| Technology (Hardware) | 40% - 60% | Moderate to high margins driven by intellectual property and brand premium, offset by physical manufacturing costs. |
| Consumer Staples | 40% - 55% | Steady margins supported by brand loyalty and economies of scale in production. |
| Retail (General) | 20% - 35% | Lower margins due to the cost of purchasing inventory from suppliers before reselling it. |
| Grocery Stores | 20% - 30% | High volume, low margin businesses that rely on rapid inventory turnover to generate absolute profit. |
Real Company Examples
Let's look at how gross margins vary among some of the world's largest companies to illustrate these industry differences.
NVIDIA (NVDA): As the dominant designer of AI chips, NVIDIA enjoys exceptional profitability. Because it focuses on the high-value design and software ecosystem while outsourcing the physical manufacturing, NVIDIA has recently reported gross margins hovering around 75%. This incredible margin reflects its massive pricing power and technological moat. Apple (AAPL): Apple combines premium hardware with high-margin services. The company typically reports a gross margin of approximately 46% to 48%. While lower than pure software companies, this is exceptionally high for a company that manufactures physical devices, demonstrating its immense brand strength and supply chain efficiency. Costco (COST): As a warehouse club retailer, Costco operates on a completely different model. The company intentionally caps its product markups, resulting in a gross margin of roughly 11% to 14%. While this percentage seems incredibly low, it is a deliberate strategy to provide maximum value to customers. Costco makes the vast majority of its actual profit from membership fees rather than product markups.How to Use Gross Margin in Stock Analysis
When researching stocks, gross margin should be a key component of your fundamental analysis. Here is how to use it effectively:
1. Track Margin Trends Over Time
A single quarter's margin is less important than the long-term trend. A company with expanding gross margins is often gaining pricing power, achieving economies of scale, or shifting its product mix toward higher-margin offerings. Conversely, declining gross margins can be a major red flag indicating rising raw material costs, increased competition forcing price cuts, or supply chain inefficiencies.
2. Compare Against Competitors
Always compare a company's gross margin to its closest peers. If Company A has a 55% margin while Company B in the same industry has a 40% margin, Company A likely has a stronger economic moat, better manufacturing efficiency, or superior products that command higher prices.
3. Assess Pricing Power
During periods of inflation, gross margin is the ultimate test of pricing power. If a company's input costs rise but its gross margin remains stable, it means the company is successfully passing those higher costs onto consumers without losing sales. If the gross margin shrinks, the company is absorbing the costs and taking a hit to its profitability.
Using an AI-powered research platform like Atlantis can help you quickly visualize margin trends over time and compare them against industry peers, saving you hours of manual spreadsheet work.
Gross Margin vs. Net Profit Margin
While powerful, gross margin should not be used in isolation. It is important to understand the distinction between gross margin and net profit margin.
Gross margin only deducts the cost of goods sold, showing the profitability of the core product or service. Net profit margin deducts all expenses, including operating costs (like marketing and R&D), interest, and taxes, showing the final profitability of the entire business.
A company can have a fantastic gross margin but still lose money if its operating expenses are out of control. Therefore, investors should look at gross margin alongside operating margin and net profit margin to get a complete picture of a company's financial health.
Conclusion
Gross margin is a critical indicator of a company's fundamental profitability and production efficiency. By understanding how much profit a business retains after covering its direct costs, investors can make more informed decisions and identify high-quality stocks with sustainable competitive advantages.
Whether you are analyzing a high-margin software giant or a low-margin retailer, tracking profitability trends is essential for long-term investing success. To streamline your fundamental analysis and uncover deeper insights, sign up for Atlantis and explore our comprehensive suite of AI investing tools. For more educational content on evaluating stocks, visit our blog.
Related Reading
Deepen your understanding with these related guides:
- What Is Operating Margin? A Complete Guide for Stock Investors
- What Is Net Profit Margin? A Complete Guide for Investors
- How to Analyze Gross Margin Trends: A Complete Guide for Investors
FAQ
Q: What is the difference between gross margin and markup?A: Gross margin is the percentage of revenue retained after deducting the cost of goods sold (Profit / Revenue). Markup is the percentage added to the cost to determine the selling price (Profit / Cost). For example, if a product costs $50 and sells for $100, the markup is 100%, but the gross margin is 50%.
Q: Can a company have a negative gross margin?A: Yes, though it is rare and highly concerning. A negative gross margin means it costs the company more to produce its goods than it earns from selling them. This is an unsustainable business model unless the company can drastically reduce production costs or raise prices.
Q: Why do software companies have higher gross margins than hardware companies?A: Software companies have high upfront development costs (which fall under R&D, an operating expense), but the cost to duplicate and distribute the software to an additional customer is near zero. Hardware companies must purchase physical materials and pay for manufacturing for every single unit they sell, resulting in much higher costs of goods sold.