Gross Margin Definition: Formula, Examples, and How It Works
Gross Margin Definition: Formula, Examples, and How It Works
Gross margin measures what percentage of revenue remains after subtracting direct production costs (cost of goods sold). A 70% gross margin means the company keeps $0.70 of every $1.00 of revenue to cover operating expenses, debt service, taxes, and profit. It is the primary indicator of pricing power — the ceiling on every dollar of future earnings, and the first number analysts check when evaluating a business model.
By Minalyst · April 9, 2026 · Updated: April 9, 2026
Table of Contents
- What Is Gross Margin?
- Gross Margin Formula
- Gross Margin in Practice
- Why Gross Margin Matters for Investors
- Related Terms
- Frequently Asked Questions
What Is Gross Margin?
Gross margin answers the first question in any analysis: does this business model actually work — before considering how well management runs it?
Gross margin is the percentage of revenue remaining after subtracting the direct costs of producing goods or services (cost of goods sold, or COGS). It measures pricing power and production efficiency in a single number — which is why analysts read it first on every income statement.
COGS includes raw materials, direct labor, and manufacturing overhead. It excludes sales and marketing, general and administrative expenses, and R&D — those are operating expenses, which appear below gross profit on the income statement.
Gross profit (Revenue − COGS) is the absolute dollar figure. Gross margin is the percentage — the one that's comparable across companies of different sizes.
Gross Margin Formula
Gross margin = Gross Profit ÷ Revenue. Both numbers appear as the first two line items on any income statement.
To calculate gross margin from an income statement:
- Find revenue (top line of the income statement)
- Find cost of goods sold (COGS) — the line immediately below revenue
- Subtract: Gross Profit = Revenue − COGS
- Divide: Gross Margin = Gross Profit ÷ Revenue
- Multiply by 100 to express as a percentage
Equivalently: Gross Margin = (Revenue − COGS) ÷ Revenue
For trend analysis, compute gross margin for each of the last 5 years using annual income statements from SEC EDGAR filings or the company's investor relations page. A single year is a snapshot. Five years is a pattern.
Gross Margin in Practice
Alphabet's gross margin expanded from 56.9% in 2021 to 59.7% in 2025 — a 280-basis-point improvement that signals pricing power strengthening across its advertising and cloud businesses simultaneously.
Here's what that means in dollar terms: on $403 billion in FY2025 revenue, the difference between 56.9% and 59.7% gross margin is approximately $11 billion in additional gross profit — before accounting for a single dollar of operating expense changes.
Sector benchmarks (Damodaran, January 2026):
- Software (System & Application): ~71.7%
- Drugs (Pharmaceutical): ~71.7%
- Semiconductor: ~59.0%
- Oil/Gas (E&P): ~57.2%
- Machinery: ~37.5%
- Retail (Grocery): ~26.3%
A grocery retailer at 26% gross margin and a software company at 72% are not equivalently profitable — they operate entirely different business models. The gross margin difference reflects the economics of those models: physical inventory and perishable goods vs. zero-marginal-cost software delivery. The benchmark is your sector, not the market.
Gross margin is one of 12 ratios Minalyst tracks automatically across any company's full filing history. Instead of pulling five years of income statements manually, you get the trend — and the context — in minutes. See how it works →
Why Gross Margin Matters for Investors
Gross margin is the ceiling on all future profitability. Operating expenses, interest, and taxes all come out of gross profit — if gross margin is low or declining, every other margin is constrained.
Three specific uses in analysis:
Pricing power indicator. Gross margin expanding while volume grows signals that the company is raising prices without losing customers — the definition of pricing power. Gross margin compressing while revenue grows means the company is buying growth at the expense of unit economics. That distinction matters enormously for long-run competitive position.
Business model quality screen. Asset-light businesses — software, professional services, licensing — naturally achieve high gross margins because the incremental cost of serving one more customer is near zero. Capital-intensive businesses — manufacturing, retail, logistics — have lower gross margins because production requires significant direct inputs. A gross margin much lower than sector peers signals either a structural cost disadvantage or pricing competition eroding the moat.
Early warning signal. Gross margin typically deteriorates before revenue does. A company losing pricing power shows it in gross margin contraction first — customers are pushing back, competitors are undercutting, or input costs are rising faster than the company can pass through. Watching the 3–5 year gross margin trend reveals competitive dynamics the income statement headline doesn't.
The income statement analysis guide covers where gross margin fits in the full profitability picture. The financial ratio analysis guide covers gross margin alongside operating margin, ROE, and the eleven other ratios analysts run on every company.
Related Terms
Gross margin connects directly to income statement analysis, financial ratio benchmarking, and downstream profitability metrics like EBITDA — understanding it requires knowing where it sits in the financial statements and how it compares to operating margin.
- Income Statement Analysis — where gross margin fits in the full profitability picture
- Financial Ratio Analysis: The 12 Ratios That Matter — gross margin alongside operating margin and ROE
- How to Read Financial Statements — the source document for gross margin data
- EBITDA: Definition, Examples, and How It Works — the downstream metric gross margin feeds into
Frequently Asked Questions
What is a good gross margin?
There is no universal good gross margin — it depends entirely on the business model and industry. Software companies typically run 65–80% gross margins. Pharmaceutical companies run 65–75%. Semiconductor companies run 55–65%. Industrial manufacturers run 30–45%. Grocery retailers run 22–30%. A meaningful gross margin assessment compares the company to direct sector peers over at least 3–5 years. A gross margin consistently above peers signals pricing power or cost advantage. Below peers signals a structural disadvantage worth understanding.
What is the difference between gross margin and operating margin?
Gross margin deducts only direct production costs (COGS) from revenue. Operating margin deducts COGS plus all operating expenses — sales and marketing, general and administrative, research and development. A company with 70% gross margin and 20% operating margin is spending 50 percentage points of revenue on operating expenses. That gap reveals the cost of running the business above the production level. Expanding gross margin combined with flat operating margin means the company is not achieving operating leverage — every extra dollar of gross profit is being consumed by overhead growth.
Why does gross margin vary so much between industries?
Gross margin reflects the ratio of direct production costs to selling price — which varies by business model. Software companies deliver digital products with near-zero marginal cost per additional user, producing 70%+ gross margins. Grocery retailers sell physical products with thin markups and high direct costs, producing 22–30% margins. Neither is superior — the gross margin is a structural feature of the business model, not a management quality signal. Comparisons are only meaningful within the same sector.
What does declining gross margin signal?
Declining gross margin signals one of three things: rising input costs the company cannot pass through to customers (pricing power erosion), competitive pressure forcing price cuts to maintain volume (competitive moat weakening), or a shift in revenue mix toward lower-margin products or customers. Each has different implications. Gross margin declining for 3+ consecutive years while revenue grows is a high-priority analytical flag — the company is buying growth at the expense of unit economics. This pattern frequently precedes revenue pressure by 12–18 months.
How do you calculate gross margin?
Gross margin = (Revenue − Cost of Goods Sold) ÷ Revenue × 100. Revenue and COGS both appear as the first two line items on the income statement — gross profit (Revenue − COGS) is the first subtotal. Divide gross profit by revenue and multiply by 100 to get the percentage. For trend analysis, compute gross margin for each of the last 5 years using annual income statements from SEC EDGAR filings or the company's investor relations page.