Investment Glossary · Quick read · No ads

Gross Margin

The short answer

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.

Put preciselyGross margin is a profitability ratio that expresses gross profit as a percentage of revenue for the same reporting period. Gross profit is generally calculated as revenue minus cost of goods sold, cost of sales or cost of revenue, depending on the company’s terminology and accounting presentation. The ratio measures the portion of revenue left after direct costs recognized against that revenue, before operating expenses and other items below gross profit. Because companies may classify costs differently, investors should read the relevant accounting policies and notes before comparing businesses.

How Gross Margin works

StepWhat happens
01 · Collect the inputsUse revenue and direct costs from the same fiscal period, currency and unit.
02 · Calculate gross profitSubtract cost of goods sold, cost of sales or cost of revenue from revenue.
03 · Calculate the percentageDivide gross profit by revenue and multiply by 100.
04 · Compare consistentlyReview comparable periods and suitable peers after checking business mix and accounting policies.
05 · Investigate the changeRead the filing, management discussion and notes for pricing, input costs, mix, acquisitions or classification changes.
06 · Check cash conversionCompare 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

MeasureFormulaWhat it showsMain limitation
Gross profitRevenue − direct costsDollar amount left after direct costsDoes not show scale without revenue context
Gross marginGross profit ÷ revenue × 100Direct-cost profitability as a percentageDepends on cost classification and mix
Operating marginOperating income ÷ revenue × 100Profit after operating expensesCan be affected by spending choices and restructuring
Net profit marginNet income ÷ revenue × 100Profit after interest, taxes and other itemsIncludes items unrelated to core sales economics

Check yourself

One question

A company reports $200 of revenue and $130 of direct costs. What is its gross margin?

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 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.

Free beginner guide

New to Investing? Start With Our Free Guide

20 pages on the basics, 6 safe ways to use AI, and a 10 question quiz. Free in your inbox.

Free PDF in your inbox. No spam. Unsubscribe any time.

Learning Path IncludedEvery lesson in the right order, freeGet the Free Guide

AI Robot

Ask the
Stock AI Assistant

Get instant educational answers about
stocks, investing, and StockEducation.com.

Instant Answers Built With Learners

Educational support only. Not personal financial advice. AI responses may contain errors.

Powered by AI ●

The Ultimate Investing Starter Guide

Free Stock Market
Investing Guide

A beginner friendly guide that covers the essential lessons and concepts every new investor should understand.

Beginner Investing Guide Form

Inside You'll Learn

Stocks & How They Work
Valuation Basics
Compound Interest
Index Funds & Diversification
Warren Buffett Principles
AI Stock Research & More
20+ Pages
of Value
Instant
Download
100% Free
No Strings