Back

Operating Margin: Formula, Worked Example and Operating Margin vs Gross Margin vs Net Margin

Guide · · Published December 2026 · 8 min read

By Ashwin Gopinath, CEO

TL;DR

Operating margin is the share of revenue left as profit after the cost of goods sold and all operating expenses, and before interest and tax. The operating margin formula is operating margin = operating income / revenue x 100. A company with $10,000,000 of revenue and $2,000,000 of operating income has an operating margin of 20%. Gross margin stops after the cost of goods sold. Net margin goes on to subtract interest and tax. This guide is published by Sentra, a management agent that does the work: it joins the ledger with email, chat and meetings, so when operating margin moves it explains the movement with sources.

What is operating margin?

Operating margin is operating income as a percentage of revenue. It shows how many cents of each dollar of sales remain after paying to make the product, sell it and run the company. It is also called operating profit margin or return on sales.

It leaves out interest and income tax. That makes it a measure of the business itself, separate from how the company is financed and where it pays tax. Two companies with the same operations and different debt will show the same operating margin and different net margins.

The operating margin formula

The operating margin formula is operating income divided by revenue, multiplied by 100.

Operating margin = operating income / revenue x 100

Operating income = revenue - cost of goods sold - operating expenses

  • Revenue. Net sales for the period, after returns and discounts.
  • Cost of goods sold. The direct cost of what was sold. See the COGS formula.
  • Operating expenses. Sales and marketing, research and development, general and administrative costs, and depreciation and amortization.
  • Left out. Interest income and expense, income tax, and gains or losses outside normal trading.

How to calculate operating margin: a worked example

To calculate operating margin, subtract the cost of goods sold and operating expenses from revenue, then divide the result by revenue. The figures here are an example with round numbers.

Income statement lineAmount% of revenue
Revenue$10,000,000100%
Cost of goods sold$4,000,00040%
Gross profit$6,000,00060%
Sales and marketing$2,000,00020%
Research and development$1,000,00010%
General and administrative$1,000,00010%
Operating income$2,000,00020%
Interest expense$200,0002%
Income tax$450,0004.5%
Net income$1,350,00013.5%
  • Operating income = 10,000,000 - 4,000,000 - 4,000,000 = $2,000,000
  • Operating margin = 2,000,000 / 10,000,000 x 100 = 20%

Depreciation and amortization of $500,000 are included in the operating expense lines. Adding them back gives EBITDA of $2,500,000 and an EBITDA margin of 25%.

Operating margin vs gross margin vs net margin

Operating margin, gross margin and net margin measure profit at three points on the income statement, and each answers a different question. Gross margin covers the product. Operating margin covers the whole business. Net margin covers what is left for the owners.

MarginFormulaCosts subtractedIn the exampleWhat it tells you
Gross margin(revenue - COGS) / revenueCost of goods sold only60%Whether the product is priced above what it costs to make
EBITDA marginEBITDA / revenueCOGS and operating expenses, before depreciation and amortization25%Operating profit before the charge for past investment
Operating marginoperating income / revenueCOGS and all operating expenses20%Whether the business is profitable to run
Net marginnet income / revenueEvery cost, including interest and tax13.5%What is left for shareholders

The gaps between the margins are as useful as the margins. Here the 40 points between gross margin and operating margin are operating expenses. The 6.5 points between operating margin and net margin are interest and tax. Our guides to the gross margin formula and the EBITDA formula cover the lines on either side.

What is a good operating margin?

A good operating margin is one that is above the company's own recent history and in line with or above its close competitors. There is no single figure that applies across industries. A grocery chain and a software company have very different cost structures, and their margins cannot be compared. Use three comparisons: the same company over the last eight to twelve quarters, the plan or budget for the period, and peers with the same business model.

How to read a change in operating margin

A change in operating margin comes from gross margin or from an operating expense line growing faster or slower than revenue. Put each line as a percentage of revenue in both periods and compare. The figures here are an example: operating margin fell from 20% to 17%.

Line as % of revenueLast yearThis yearEffect on operating margin
Gross margin60.0%59.0%-1.0 point
Sales and marketing20.0%21.5%-1.5 points
Research and development10.0%10.0%0.0 points
General and administrative10.0%10.5%-0.5 points
Operating margin20.0%17.0%-3.0 points

The table says where the three points went. It does not say why. Each row then has a small number of usual causes.

  • Gross margin fell. Input costs rose, prices or discounts changed, or the mix moved toward lower-margin products.
  • Sales and marketing rose faster than revenue. Hiring ran ahead of sales, a campaign was pulled forward, or the cost of winning each customer went up.
  • Fixed costs met lower revenue. Rent, salaries and software stay the same when sales dip, so their share of revenue rises.
  • One-off items. A legal settlement, severance or a write-off landed in operating expenses.
  • Reclassification. A cost moved between cost of goods sold and operating expenses, which shifts gross margin and leaves operating margin unchanged.

Because many operating costs are fixed in the short term, operating margin moves more than revenue does. A 10% rise in revenue on a mostly fixed cost base lifts operating margin sharply, and a 10% fall cuts it just as hard. Contribution margin separates the variable costs from the fixed ones and shows how much of each extra dollar of sales reaches operating income.

Common mistakes

  • Using net income in the formula. That gives net margin.
  • Including interest or tax in operating expenses. Both belong below operating income.
  • Mixing periods. Quarterly operating income over annual revenue understates the margin by a factor of four.
  • Comparing across industries. The cost structures differ too much for the comparison to mean anything.
  • Excluding stock-based compensation or other real costs without saying so. An adjusted operating margin should be labeled and reconciled.
  • Reading one quarter alone. Seasonal businesses need the same quarter of the prior year beside it.
  • Ignoring one-off items. Show them separately so the underlying trend is visible.

Where the explanation for the number lives

The ledger shows that operating margin moved, and the reason usually sits in email, chat and meetings. The ERP shows sales and marketing up 1.5 points of revenue. The email approving six hires a quarter early, the chat thread where a discount was agreed to close a large deal, and the meeting where an event was moved into this quarter all sit outside it.

Sentra is a management agent that does the work. It reads the ERP, CRM, HRIS and BI tools alongside email, chat, meetings and documents, and joins the two: the systems of record say what happened, and the conversations say why. For operating margin, Sentra writes the bridge from last period to this one, line by line and cause by cause, with a link to each source. It puts that in the pre-read for the monthly business review, routes each open question to the budget owner who can answer it, drafts the follow-up and chases it.

A named person approves anything Sentra drafts or raises before it reaches anyone else. Every line cites its source, and each reader sees only what they could already open in the source system. Our guide to variance analysis describes the same method for any figure a finance team has to explain.

To see Sentra explain a margin movement in your own numbers, book a demo.

FAQ

What is the operating margin formula?

Operating margin = operating income / revenue x 100. With $2,000,000 of operating income on $10,000,000 of revenue, operating margin is 20%.

What is the difference between operating margin and gross margin?

Gross margin subtracts only the cost of goods sold from revenue. Operating margin also subtracts operating expenses such as sales, marketing, research, administration and depreciation. In the example, gross margin is 60% and operating margin is 20%.

What is the difference between operating margin and net margin?

Operating margin is measured before interest and income tax. Net margin is measured after them. In the example, operating margin is 20% and net margin is 13.5%.

Is operating margin the same as EBIT margin?

Usually yes. Operating income and EBIT are the same when the company has no non-operating income or expenses apart from interest and tax. Where they differ, EBIT includes the non-operating items.

What is a good operating margin?

A good operating margin is above the company's own recent history and in line with or above close competitors with the same business model. Margins differ widely by industry, so no single figure applies to all companies.

Can operating margin be negative?

Yes. Operating margin is negative when the cost of goods sold and operating expenses together exceed revenue. This is common in early-stage companies that are spending ahead of sales.

How does Sentra help explain operating margin?

Sentra reads the ERP, CRM and HRIS alongside email, chat and meetings, and writes the bridge from one period to the next by line and by cause, with a link to each source. It prepares the pre-read for the monthly review, and a named person approves it before it is sent.