Markets
S&P 500------DOW------NASDAQ------BTC------GOLD------S&P 500------DOW------NASDAQ------BTC------GOLD------
Back to Glossary
FinanceGLOSSARY

What Is Gross Margin?

Gross margin measures how much profit a company keeps from sales after paying for the direct costs of producing its goods or services.

Rachel Kim 3 min readUpdated Apr 7, 2026

Opening Hook


When Apple (AAPL) reported a gross margin of 44.1% in Q4 2023, it meant the company kept $44 out of every $100 in revenue after paying for manufacturing, components, and direct labor. Meanwhile, Walmart (WMT) operates on a razor-thin 24.8% gross margin. This difference tells us everything about their business models and helps explain why Apple trades at 29x earnings while Walmart sits at 26x despite being profitable for decades.


What It Actually Means


Gross margin is the percentage of revenue left over after subtracting the cost of goods sold (COGS). Think of it like a lemonade stand: if you sell $10 worth of lemonade and spent $6 on lemons, sugar, and cups, your gross profit is $4 and your gross margin is 40%.


The formula is straightforward: Gross Margin = (Revenue - Cost of Goods Sold) ÷ Revenue × 100


This metric strips away all the accounting complexity and gets to the heart of a business: how much money does it make on each dollar of sales before paying for overhead, marketing, executives, and everything else? We use gross margin to understand pricing power, operational efficiency, and competitive positioning.


How It Works in Practice


Let's examine Microsoft (MSFT) versus Ford (F) using their 2023 numbers. Microsoft generated $211.9 billion in revenue with COGS of $65.5 billion, giving them a gross margin of 69.1%. Ford brought in $176.2 billion but had COGS of $148.8 billion, resulting in a 15.6% gross margin.


Here's the breakdown:

Microsoft: ($211.9B - $65.5B) ÷ $211.9B = 69.1%
Ford: ($176.2B - $148.8B) ÷ $176.2B = 15.6%

This massive difference reflects their business models. Microsoft sells software with minimal marginal costs, while Ford manufactures physical cars requiring steel, labor, and complex supply chains. Software companies typically see gross margins above 80%, while automakers struggle to exceed 20%. Retail businesses like Costco (COST) operate around 13%, while pharmaceutical companies like Pfizer (PFE) often exceed 75%.


Why Smart Investors Care


Professional fund managers use gross margin as a quality filter when screening stocks. Warren Buffett famously seeks businesses with "moats" – and consistently high gross margins often signal strong competitive advantages. Companies that maintain or expand gross margins during tough times demonstrate pricing power.


I've watched institutional investors pay premium valuations for businesses with expanding gross margins, even during revenue slowdowns. They know that gross margin improvement often translates directly to earnings growth since fixed costs get leveraged. Conversely, compressing gross margins can signal intensifying competition or commoditization – red flags that send smart money running for the exits before the market catches on.


Common Mistakes to Avoid


Comparing gross margins across different industries without context – a 15% margin is excellent for grocery stores but terrible for software companies
Ignoring gross margin trends over time – a steadily declining margin often predicts future earnings disappointments
Focusing solely on the absolute number without considering the business model – Amazon deliberately operated on thin margins while building market share
Overlooking one-time charges or unusual items that can distort quarterly gross margin calculations

The Bottom Line


Gross margin reveals a company's fundamental profitability and competitive strength better than almost any other single metric. Before diving into complex financial models, start here: companies that can't generate healthy gross margins rarely build lasting shareholder wealth. As markets become increasingly competitive, will your holdings maintain their gross margin advantage, or are they fighting a race to the bottom?