Investment Glossary · Quick read · No ads
Gross Margin
Gross margin is gross profit divided by revenue, expressed as a percentage. It shows how much revenue remains after direct costs such as cost of goods sold or cost of revenue.
Key takeaways
- Gross margin equals gross profit divided by revenue, multiplied by 100.
- Gross profit is revenue minus the direct costs assigned to the goods or services sold.
- A higher gross margin can reflect stronger pricing, lower direct costs or a more favorable product mix.
- Gross margin does not include operating expenses, interest, taxes or most other below gross profit items.
- Compare gross margin across consistent periods and similar businesses, then investigate the reasons for changes.
What is Gross Margin?
Gross margin shows how much of each dollar of revenue remains after the costs directly tied to producing or delivering the goods and services sold. It is a useful first look at pricing, product mix and direct cost control, but it does not include operating expenses, interest or taxes.
To use it well, calculate gross profit and gross margin from the same period and accounting basis, then compare the result with the company’s own history and suitable peers. Read the company’s financial statements and compare gross margin with operating cash flow before drawing conclusions.
How Gross Margin works

| Step | What happens |
|---|---|
| 01 · Collect the inputs | Use revenue and direct costs from the same fiscal period, currency and unit. |
| 02 · Calculate gross profit | Subtract cost of goods sold, cost of sales or cost of revenue from revenue. |
| 03 · Calculate the percentage | Divide gross profit by revenue and multiply by 100. |
| 04 · Compare consistently | Review comparable periods and suitable peers after checking business mix and accounting policies. |
| 05 · Investigate the change | Read the filing, management discussion and notes for pricing, input costs, mix, acquisitions or classification changes. |
| 06 · Check cash conversion | Compare the result with operating cash flow and working capital movements before forming a conclusion or valuation assumption. |
The formula
Gross margin = (Revenue − Direct costs) ÷ Revenue × 100
Revenue = sales or other revenue for the selected reporting period. Direct costs = cost of goods sold, cost of sales or cost of revenue reported for that same period. Gross profit = Revenue − Direct costs.
A worked example
Illustrative example: suppose a company reports $100 of revenue and $60 of cost of goods sold for one period. Gross profit is $100 − $60 = $40. Gross margin is $40 ÷ $100 × 100 = 40%. If revenue later rises to $120 while direct costs rise to $78, gross profit is $42 and gross margin is 35%. Revenue increased, but the lower margin shows that direct costs grew faster than revenue. These figures are invented to explain the calculation and do not represent a real company or market quote.
Why it matters
Gross margin helps investors understand how much revenue remains to cover operating expenses and generate operating profit after direct costs. It is especially useful for tracking pricing, product mix, input costs and business economics over time, while recognizing that classification differences limit simple comparisons.
Formula and calculation
Gross margin is calculated by dividing gross profit by revenue and multiplying by 100. Gross profit is usually revenue minus cost of goods sold, cost of sales or cost of revenue. For an illustrative company with $100 of revenue and $60 of direct costs, gross profit is $40 and gross margin is 40%. The figures are invented for instruction and are not a market quote or forecast. Use the same period, currency and unit for both inputs, and check whether the company reports a separate gross margin measure for a segment or product category.
What gross margin tells you
Gross margin describes the amount left from sales after direct costs, before selling, general and administrative expenses, research and development, interest and taxes. It can provide clues about pricing power, procurement, production efficiency, service delivery costs and sales mix. A rising margin is not automatically positive if revenue is shrinking or if a temporary cost benefit will reverse. A falling margin may reflect discounting, inflation in inputs, launch costs, freight, labor, product mix or a change in how costs are classified.
Gross margin compared with other margins
Gross margin is earlier in the income statement than operating margin and net profit margin. Operating margin deducts operating expenses from gross profit, while net margin also reflects items such as interest, taxes and other gains or losses. Two businesses can have similar gross margins but very different operating margins because one spends more on sales, administration or research. Use the margins together rather than treating one ratio as a complete measure of business quality.
Comparing companies and periods
Compare a company with itself over several comparable periods before comparing it with another company. Confirm that the periods are both annual or both quarterly, that fiscal year ends are understood, and that the companies define cost of revenue similarly. Business mix matters: a software company, retailer and manufacturer may have very different cost structures. Read the management discussion, accounting policies and footnotes for unusual items, acquisitions, segment changes, foreign exchange effects and reclassifications.
Limits and links to cash flow
Gross margin is based on accrual accounting and does not measure cash received from customers or cash paid to suppliers in the same period. Inventory changes, payment timing, deferred revenue and noncash costs can separate gross profit from cash flow. A company may report a strong gross margin while investing heavily in working capital or generating weak operating cash flow. Review the cash flow statement and operating cash flow, and investigate whether reported profitability converts into cash over time.
Using gross margin in valuation work
Gross margin can help investors understand the economics behind revenue growth and build assumptions for forecasting. In a discounted cash flow model, changes in gross margin affect projected gross profit and potentially operating cash flow, but the assumption should be supported by historical results, competitive conditions and management disclosures. Do not capitalize a temporary margin spike into a permanent valuation assumption. Pair the ratio with revenue growth, operating expenses, capital expenditure, working capital and return measures.
Comparison
| Measure | Formula | What it shows | Main limitation |
|---|---|---|---|
| Gross profit | Revenue − direct costs | Dollar amount left after direct costs | Does not show scale without revenue context |
| Gross margin | Gross profit ÷ revenue × 100 | Direct-cost profitability as a percentage | Depends on cost classification and mix |
| Operating margin | Operating income ÷ revenue × 100 | Profit after operating expenses | Can be affected by spending choices and restructuring |
| Net profit margin | Net income ÷ revenue × 100 | Profit after interest, taxes and other items | Includes items unrelated to core sales economics |
Check yourself
A company reports $200 of revenue and $130 of direct costs. What is its gross margin?
Gross profit is $200 − $130 = $70. Gross margin is $70 ÷ $200 × 100 = 35%.
Show the answer
35%
Things people get wrong
Mistake 01 Confusing gross margin with net margin
Gross margin is calculated before operating expenses, interest and taxes; use net margin only when the question concerns profit after those items.
Mistake 02 Comparing unlike businesses without context
Product mix, reporting policies, business models and fiscal periods can make a raw cross-company comparison misleading.
Mistake 03 Treating a higher margin as proof of better investment quality
A company can have a high gross margin but weak growth, high operating costs, poor cash conversion or excessive valuation.
Mistake 04 Ignoring cost classification
Read the filing and notes because companies may place freight, depreciation, hosting or other costs above or below gross profit.
Mistake 05 Using mismatched periods
Calculate the ratio with revenue and direct costs from the same fiscal period, currency and unit.
Questions people ask about Gross Margin
What is the gross margin formula?
Gross margin equals gross profit divided by revenue, multiplied by 100. Gross profit is generally revenue minus cost of goods sold, cost of sales or cost of revenue.
Is gross margin the same as gross profit?
No. Gross profit is a dollar amount, while gross margin is gross profit expressed as a percentage of revenue.
What does a higher gross margin mean?
It means more revenue remains after the reported direct costs for each dollar of sales, but it does not by itself prove that the company is more profitable overall.
Why can gross margin differ between companies?
Differences can come from business model, product mix, pricing, supplier costs, accounting classification, depreciation treatment and the types of services or products sold.
Can gross margin be negative?
Yes. If direct costs exceed revenue, gross profit is negative and gross margin is below zero.
Should investors compare gross margin with cash flow?
Yes. Gross margin is an accrual-based income statement measure, so operating cash flow helps assess whether reported profitability is converting into cash.
The bottom line
Gross margin is a useful first measure of the economics of sales: it shows the percentage of revenue left after reported direct costs. Use the formula consistently, investigate changes through the filing and notes, compare similar periods and businesses, and pair the ratio with operating expenses, cash flow and valuation assumptions.
Sources
About this page. Written by Associate Professor Charles Lo, CPA, PhD and edited by Felix La Spina. No ads and no paywall. Editorial standards · How we fact check · Corrections log · Report an error
Educational information only. Nothing on this page is personal financial, tax or legal advice. Investing involves risk, including the possible loss of principal.
