
Gross Margin vs Operating Margin Explained: Formulas, Worked Example, What Each Tells You, How to Compare Companies and What a Falling Margin Means
Gross margin = (revenue minus cost of goods sold) / revenue. Operating margin = operating profit / revenue. Gross shows pricing and production cost. Operating adds overheads. Compare within a sector.
Updated: 20 Nov 2026 • 10:03 am
Posted by:

Quick Answer
Gross margin vs operating margin explained simply: gross margin is revenue minus the direct cost of goods sold, divided by revenue, and shows how profitable the product itself is. Operating margin goes further and also deducts overheads such as salaries, marketing and rent, showing how profitable the whole operation is. A falling gross margin points to input cost or pricing pressure, while a falling operating margin with a steady margin at the gross level points to rising overheads.
Gross margin vs operating margin explained for investors who see both on a company's results page: one shows the profit on the product, the other the profit on the running of the whole business.
This guide covers the formulas, a worked example, how to read each and what a falling margin means. It is educational and not a recommendation.
Click Here – Get Free Investment Predictions
Gross Margin vs Operating Margin Explained: The Formulas
| Margin | Formula | Costs included |
|---|---|---|
| Gross margin | (Revenue – cost of goods sold) / revenue x 100 | Direct production or purchase cost |
| Operating margin | Operating profit / revenue x 100 | Direct cost plus overheads such as staff, marketing, rent and depreciation |
| Net profit margin | Net profit / revenue x 100 | All costs including interest and tax |
Worked Example
| Item | Rs crore (illustrative) |
|---|---|
| Revenue | 1,000 |
| Cost of goods sold | 600 |
| Gross profit | 400 |
| Gross margin | 40% |
| Operating expenses | 250 |
| Operating profit | 150 |
| Operating margin | 15% |
Out of every Rs 100 of sales, Rs 40 remains after the product cost and Rs 15 after running the business.
What Each Margin Tells You
- Gross margin shows pricing power and production efficiency. A brand that can charge more or buy inputs well has a high margin at the gross level.
- Operating margin shows how well the whole business is run, including selling, administration and research.
- The gap between the two shows how heavy the overheads are.
Gross profit is the starting point, and the cost of sales line sets it. A company with a durable competitive advantage keeps gross profit stable even when input costs move. Track gross profit in rupees and as a margin, because rising gross profit with a falling margin means volume growth with weaker pricing.
How to Read Changes
| What changes | Likely meaning |
|---|---|
| Gross margin falls, operating margin falls | Input cost rise or price cuts |
| Gross margin steady, operating margin falls | Overheads growing faster than sales |
| Gross margin rises, operating margin steady | Better pricing but higher spending elsewhere |
| Both rise | Pricing power and scale benefits |
Use the Univest Screener to check live fundamentals before you act on any idea.
How to Compare Companies
- Compare only companies in the same sector, since cost structures differ.
- Look at five years of both margins and see the trend.
- Check the management commentary for the reason behind changes.
- A company that keeps margins steady while input costs rise shows pricing power.
- Compare gross and operating margin with net profit margin to see where profit leaks.
Consumer and IT companies in the Nifty 50 are often compared on these margins, but definitions of cost of goods sold differ, so read the notes.
Sector context shapes what counts as healthy. A branded consumer business may keep a wide spread between sales and direct cost, while a contract manufacturer lives on thin spreads and wins on volume. A software firm may show a high first line and a modest bottom line because of research and sales spending. Read each company against its own peers and its own five year range, and avoid comparing a distributor with a luxury brand.
A practical routine helps. Open the last five annual results and write down the two figures for each year in a small table. Mark the years in which sales rose but profit did not, and read the commentary for those years. Then repeat the exercise for two peers. Differences in direction between the company and its peers are usually more informative than the absolute level. If the company improves while peers weaken, ask whether it gained share or simply benefited from a short term cost tailwind. If it weakens while peers hold up, look for company specific issues such as a failed product launch, a plant shutdown or rising discounts.
Limits
- Some companies, such as software and services firms, do not report cost of goods sold in a clear way.
- Companies classify costs differently, so these margins are not always comparable.
- A high gross level with a low operating level can mean heavy marketing spend that may or may not pay off.
- Margins alone do not show returns on capital.
Also watch the quality of the change. A margin that improves because of a one time input cost drop is weaker than one that improves because of better pricing. Management commentary on the quarterly results usually names the reason. If the explanation is vague, treat the improvement with caution and wait for another quarter of data.
Download the Univest iOS App or Univest Android App to get daily stock research and market updates.
Conclusion
Gross margin shows the profit on the product, and operating margin shows the profit after running the business. The trend of both over five years against peers tells you more than a single year.
Read them with net profit margin and returns on capital.
Disclaimer: Data and figures in this article are sourced from publicly available information. These may or may not be accurate. Please verify all data with the official NSE (nseindia.com) and BSE (bseindia.com) websites before making any investment decision. Investments in securities are subject to market risk. This content is for educational purposes only and is not investment advice by Univest (SEBI RA INH000013776).
Frequently Asked Questions
What is gross margin?
Ans. It is revenue minus the direct cost of goods sold, divided by revenue. It shows how much of each rupee of sales is left after the cost of making or buying the product.
What is operating margin?
Ans. Operating margin is operating profit divided by revenue. It deducts overheads, such as salaries and marketing, as well as the direct cost, so it shows the profitability of the whole operation.
What is the difference between gross margin and operating margin?
Ans. Gross margin looks only at direct costs. Operating margin includes overheads too. The gap between them shows how heavy the overheads are.
What does a falling gross margin mean?
Ans. It usually means input costs have risen faster than prices, or that the company has cut prices to hold sales. It can signal weaker pricing power.
Which margin is more important?
Ans. Both matter. Gross margin shows pricing and production strength, and operating margin shows overall efficiency. Check both and their trend.
What is a good operating margin?
Ans. It depends on the sector. Compare with peers and the company's own history, and prefer a steady or rising margin.
Where do I find these margins?
Ans. Calculate them from the profit and loss statement, or find them in the results presentation. Many stock research pages show them directly.
Recent Articles

Demerger Explained: How a Company Splits, What Happens to Your Shares, Record Date, Share Price Adjustment, Tax Treatment and What to Do as an Investor
20 November 2026

Return on Assets Explained: Formula, Worked Example, What a Good ROA Is, How It Differs From ROE and ROCE and Why Banks Need Different Benchmarks
20 November 2026

Free Cash Flow Yield Explained: Formula, Worked Example, How to Compare It With Earnings Yield and Bond Yields and Where It Can Mislead
20 November 2026

Margin of Safety Explained: Formula, How to Estimate Intrinsic Value, How Much Margin to Demand and Why It Protects You From Wrong Estimates
20 November 2026
Note: This blog is for information purpose only. Investments and trading are subject to market risks, read all scheme related documents carefully.
Reviews
Recent Posts
Demerger Explained: How a Company Splits, What Happens to Your Shares, Record Date, Share Price Adjustment, Tax Treatment and What to Do as an Investor
Return on Assets Explained: Formula, Worked Example, What a Good ROA Is, How It Differs From ROE and ROCE and Why Banks Need Different Benchmarks
Free Cash Flow Yield Explained: Formula, Worked Example, How to Compare It With Earnings Yield and Bond Yields and Where It Can Mislead
Margin of Safety Explained: Formula, How to Estimate Intrinsic Value, How Much Margin to Demand and Why It Protects You From Wrong Estimates
Asset Turnover Ratio Explained: Formula, Worked Example, What a High or Low Ratio Means, Sector Differences and Link to Return on Equity

Uniresearch Global Pvt Ltd
Research Analyst
SEBI Registration Number — INH000013776
Uniresearch is a subsidiary of Univest Communication Technologies Private Limited
Company Address: Registered Address: Ground Floor, Unitech Commercial Tower 2, Block B, Greenwood City, Unit 1-3, Sector 45, Gurugram, Haryana 122003
Write to us : support@univest.in, compliance@univest.in
Verify on SEBI registry →RESEARCH ANALYST
Get SEBI Registered
advice on the stocks
trending today.
Get 3 FREE Trade Ideas
for Startups Accelerator 2024
Trusted by 1Cr Indians
Awarded No.1 by Economic Times





