Gross Margin Definition: Gross margin is the percentage of revenue a company keeps after subtracting the cost of goods sold, the direct cost of making or buying what it sells. It is calculated as (revenue minus cost of goods sold) divided by revenue, so a company with $100 million in sales and $60 million in direct costs has a 40% gross margin. The ratio shows how much each sale contributes toward overheads, interest, taxes and profit.
What Is Gross Margin?
Every sale has to pay for the product first. A coffee shop that sells a $5 latte spends money on beans, milk and the cup before it pays rent or staff. Whatever is left from that $5 after those direct costs is gross profit, and gross margin expresses it as a share of the price.
The costs that count are called cost of goods sold (COGS): raw materials, factory labour, and the other expenses that rise and fall with each unit produced. Rent for the head office, marketing campaigns and research budgets sit lower down the income statement as operating expenses. Gross margin ignores them on purpose.
That separation makes it the purest measure of pricing power and production efficiency. The next step is to see how the number is built and what moves it.
How to Calculate Gross Margin
The formula is Gross Margin = (Revenue − COGS) ÷ Revenue × 100. Revenue is the total from sales, and the numerator, revenue minus COGS, is gross profit in dollars.
Consider a hypothetical electronics maker that sells 1 million headphones at $200 each, for $200 million in revenue. Each pair costs $120 in parts and assembly, so COGS is $120 million. Gross profit is $80 million, and gross margin is 40%.
Now a rival cuts its price, and the company matches it by charging $180. Its costs per unit do not change, so gross profit per pair falls from $80 to $60. Revenue drops to $180 million and gross margin falls to 33.3%, even though it sold the same number of units.
That arithmetic explains why price cuts hit margins so hard. A 10% cut in price removed 25% of gross profit, because the entire reduction came out of the margin while costs stayed fixed. To earn the original $80 million back at $180, the company would need to sell about 1.33 million pairs, a third more volume.
Gross Margin vs. Net Margin
| Gross Margin | Net Margin | |
|---|---|---|
| Formula | (Revenue − COGS) ÷ Revenue | Net profit ÷ Revenue |
| Costs included | Only direct production costs | All costs, including overheads, interest and tax |
| What it measures | Pricing power and production efficiency | Overall profitability |
| Affected by one-off items | Rarely | Often, such as write-downs or tax changes |
Both ratios start with the same revenue, but net profit is what remains after every expense. A company with a 60% gross margin can still lose money if it spends 70% of revenue on sales staff and research, which is common in fast-growing software firms.
Why Is Gross Margin Important for Traders?
Gross margin changes often move a stock more than revenue does. Investors read it as a signal of pricing power: a company that can raise prices without losing customers protects its margin when costs rise. When inflation pushes up material costs, the gap between firms that pass costs on and firms that absorb them shows up here first.
Tesla shows the reverse case. After cutting car prices several times during 2023 to defend sales, its gross margin fell from 25.6% in 2022 to 18.2% in 2023. Revenue still grew, yet the lower margin meant each dollar of sales produced less profit, and analysts cut their earnings forecasts. A lower forecast feeds straight into valuation measures such as the P/E ratio.
Its limits matter too. Companies decide which costs go into COGS, so two firms in the same industry can report different margins for the same economics. Gross margin also says nothing about cash, debt or overheads, which is why it belongs alongside cash flow and net margin in any fundamental analysis, not in place of them.
Key Takeaways
- Gross margin is the percentage of revenue left after paying the direct cost of goods sold, calculated as (revenue minus COGS) divided by revenue.
- It measures pricing power and production efficiency because it excludes overheads, interest and taxes.
- Price cuts shrink gross margin faster than revenue, since the full reduction comes out of profit while unit costs stay the same.
- Margins vary widely by industry, so a company is best compared with its direct competitors and its own history.
- A high gross margin does not guarantee profit, because operating expenses, interest and tax can still consume it.
What is a good gross margin?
It depends on the industry. Software companies often keep 70% or more of revenue after direct costs, while supermarkets and car makers work with far thinner margins, so compare a company with its direct rivals rather than with the market as a whole.
Can gross margin be negative?
Yes. A negative gross margin means a company spends more to produce each unit than it earns from selling it, which is common in early-stage manufacturers ramping up a factory and unsustainable for a mature business.
Is gross margin the same as markup?
No. Markup divides gross profit by cost, while gross margin divides it by the selling price. A product that costs $60 and sells for $100 has a 66.7% markup but a 40% gross margin.
Why can gross margin rise while profits fall?
Gross margin ignores operating expenses such as salaries, marketing and research. A company can raise prices and widen its gross margin while heavy spending on expansion, or higher interest costs, still pushes net profit down.