Operating Margin Calculator
- Operating margin = operating income ÷ revenue = $300,000.00 ÷ $2,000,000.00 = 15.00%.
- That means 15.00% of every revenue dollar survives as operating profit before interest and taxes.
An operating margin calculator measures how efficiently a business turns revenue into profit from its core operations. Operating margin equals operating income divided by revenue, where operating income is what remains after cost of goods sold (COGS) and operating expenses but before interest and taxes. For example, operating income of $300,000 on revenue of $2,000,000 gives an operating margin of 15.00%. The calculator also handles losses: operating income of -$42,500 on revenue of $850,000 gives an operating margin of -5.00%. Because operating margin excludes interest and taxes, it compares the core operations of companies with different financing structures on equal footing.
This method is the accepted standard because it isolates performance from financing and tax decisions, giving a clear view of operational efficiency. Note that gross margin is always at least operating margin when operating expenses are positive, because operating costs come out after gross profit. For instance, revenue of $5,000,000 with COGS of $3,000,000 and operating expenses of $1,250,000 yields gross profit of $2,000,000 (a 40.00% gross margin), operating income of $750,000, and the same 15.00% operating margin. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result.
Worked examples
A healthy margin
Primary result: 15.00% — fifteen cents of every revenue dollar survives as operating profit. (Revenue and operating income · 2000000 $ · 300000 $ · 3000000 $ · 1250000 $)
| Operating margin | 15.00% |
| Operating income | $300,000.00 |
The same margin, built up
Primary result: 15.00% — a 40.00% gross margin minus $1,250,000 of operating expenses lands at the same place. (Build it: revenue, COGS and operating expenses · 5000000 $ · 300000 $ · 3000000 $ · 1250000 $)
| Operating margin | 15.00% |
| Operating income | $750,000.00 |
| Gross margin | 40.00% |
Below the line
Primary result: -5.00% — the business loses five cents of operating profit per revenue dollar. (Revenue and operating income · 850000 $ · -42500 $ · 3000000 $ · 1250000 $)
| Operating margin | -5.00% |
| Operating income | $-42,500.00 |
What operating margin measures
Operating margin measures how much profit a company keeps from each dollar of revenue after covering the direct costs of producing its goods or services and the ongoing costs of running the business. The formula is straightforward: operating margin equals operating income divided by revenue. Operating income is what remains after cost of goods sold (COGS) and operating expenses but before interest and taxes. This gives you a clean view of core profitability before financing decisions and tax obligations enter the picture.
To see how the numbers work, consider a company with operating income of $300,000 on revenue of $2,000,000. Dividing operating income by revenue gives an operating margin of 15.00%. A more detailed example shows the same result from the ground up: revenue of $5,000,000, COGS of $3,000,000, and operating expenses of $1,250,000 produce gross profit of $2,000,000 (a 40.00% gross margin) and operating income of $750,000, which again yields a 15.00% operating margin. An operating margin calculator handles these steps automatically, so you can focus on interpreting the result rather than working through the arithmetic.
Operating margin can also be negative. A company with operating income of -$42,500 on revenue of $850,000 has an operating margin of -5.00%, meaning the business lost five cents on every dollar of sales at the operating level. Negative operating margin signals that core operations are not generating enough revenue to cover production costs and operating expenses, regardless of what happens with interest or taxes further down the income statement.
Because operating margin excludes interest and taxes, it lets you compare the core operations of companies with different financing structures or tax situations on equal footing. Two businesses could be equally efficient at delivering their products and managing day-to-day costs, yet report very different net income simply because one carries more debt or faces a higher tax rate. Operating margin strips away those differences and focuses on the business itself.
It is worth noting the relationship between gross margin and operating margin. Gross margin is always at least operating margin when operating expenses are positive, because operating costs come out after gross profit. In the detailed example above, gross margin was 40.00% while operating margin was 15.00%, reflecting the $1,250,000 of operating expenses that reduced gross profit to operating income. The gap between the two margins shows how much of each revenue dollar goes to running the broader business beyond direct production costs.
Building it from the P&L
To build an operating margin from the ground up, start with your revenue and subtract cost of goods sold (COGS) to arrive at gross profit. From there, subtract your operating expenses — items like selling, general, and administrative costs — to get operating income. Operating income is what remains after COGS and operating expenses but before interest and taxes. The operating margin formula then divides that operating income by revenue. Because operating margin excludes interest and taxes, it compares the core operations of companies with different financing structures on equal footing.
Consider a company with revenue of $5,000,000, COGS of $3,000,000, and operating expenses of $1,250,000. Subtracting COGS from revenue gives a gross profit of $2,000,000, which is a 40.00% gross margin. Subtracting the $1,250,000 in operating expenses from that gross profit leaves an operating income of $750,000. Dividing $750,000 by $5,000,000 in revenue produces an operating margin of 15.00%. Notice how the margin steps down from 40.00% at the gross level to 15.00% at the operating level — the difference reflects the operating expenses that come out after gross profit.
A simpler example makes the same point. Operating income of $300,000 on revenue of $2,000,000 gives an operating margin of 15.00%. You can confirm this with any operating margin calculator: $300,000 divided by $2,000,000 equals 0.15, or 15.00%. The same logic applies when operations lose money. Operating income of -$42,500 on revenue of $850,000 gives an operating margin of -5.00%, meaning the company's core business spent more than it earned before interest and taxes were even considered.
One relationship worth keeping in mind: gross margin is always at least operating margin when operating expenses are positive, because operating costs come out after gross profit. If your operating margin is higher than your gross margin, check your inputs — you may have misclassified an expense or entered a negative where a positive belongs.
Worked examples
The three cases below show how an operating margin calculator handles different inputs. In every case, operating margin equals operating income divided by revenue. Operating income is what remains after cost of goods sold (COGS) and operating expenses but before interest and taxes. Because operating margin excludes interest and taxes, it compares the core operations of companies with different financing structures on a level footing.
The first example is a direct calculation. A company reports operating income of $300,000 on revenue of $2,000,000. Dividing $300,000 by $2,000,000 gives an operating margin of 15.00%. No further breakdown is needed because the operating income figure is already provided.
The second example builds up from component figures. A company has revenue of $5,000,000, COGS of $3,000,000, and operating expenses of $1,250,000. Subtracting COGS from revenue gives gross profit of $2,000,000, which is a 40.00% gross margin. Subtracting the $1,250,000 in operating expenses from the $2,000,000 gross profit leaves operating income of $750,000. Dividing $750,000 by $5,000,000 gives the same 15.00% operating margin. This illustrates a useful relationship: gross margin is always at least operating margin when operating expenses are positive, because operating costs come out after gross profit.
The third example shows an operating loss. A company reports operating income of -$42,500 on revenue of $850,000. Dividing -$42,500 by $850,000 gives an operating margin of -5.00%. A negative result means the company's core operations did not generate enough revenue to cover COGS and operating expenses for the period.
| Case | Revenue | COGS | Operating Expenses | Gross Profit | Gross Margin | Operating Income | Operating Margin |
|---|---|---|---|---|---|---|---|
| Direct | $2,000,000 | — | — | — | — | $300,000 | 15.00% |
| Built-up | $5,000,000 | $3,000,000 | $1,250,000 | $2,000,000 | 40.00% | $750,000 | 15.00% |
| Operating loss | $850,000 | — | — | — | — | -$42,500 | -5.00% |
Operating margin versus gross and net margin
Operating margin, gross margin, and net margin each sit at a different point on the income statement, and each shows a different layer of cost eating into revenue. Gross margin comes first. It is revenue minus cost of goods sold (COGS), the direct costs of producing what a company sells. Gross margin tells you how much is left after production costs but before anything else. Operating margin comes next. It takes gross profit and subtracts operating expenses, the day-to-day costs of running the business, such as selling, general, and administrative expenses. Operating income is what remains after COGS and operating expenses but before interest and taxes. Net margin comes last, subtracting interest and taxes to show final profit.
Because operating costs come out after gross profit, gross margin is always at least operating margin when operating expenses are positive. Consider a company with revenue of $5,000,000, COGS of $3,000,000, and operating expenses of $1,250,000. Gross profit is $2,000,000, a 40.00% gross margin. After operating expenses, operating income falls to $750,000, a 15.00% operating margin. The 25 percentage point gap between gross and operating margin is what operating expenses consumed. Our operating margin calculator uses these same income statement inputs to find that middle layer.
Operating margin excludes interest and taxes, so it compares the core operations of companies with different financing. A company carrying heavy debt may have a weak net margin because of interest expense, but a strong operating margin because its underlying business is efficient. Another company with no debt and lower operating income could show a higher net margin. Operating margin isolates the business itself from financing and tax decisions, making it a cleaner comparison of operational performance.
Operating margin can also be negative, which signals that core operations are losing money. A company with operating income of -$42,500 on revenue of $850,000 has an operating margin of -5.00%. Even if that company eventually turns a net profit through tax benefits or one-time items, the negative operating margin shows the core business is not covering its own costs. Conversely, a company with operating income of $300,000 on revenue of $2,000,000 has an operating margin of 15.00%, meaning 15 cents of every revenue dollar survives as operating profit before interest and taxes are paid.
What is a good operating margin?
There is no single number that defines a good operating margin, because what counts as strong depends heavily on the industry a company operates in. Software companies tend to have high operating margins because their cost of goods sold and operating expenses are relatively low compared with revenue. Grocery retailers, by contrast, run on thin operating margins because inventory costs consume a large share of every dollar of sales. Using an operating margin calculator to compare a software company with a grocery chain would be misleading, since each business model has a different cost structure and different expectations from investors.
What matters more than the absolute level is the trend over time. A company with an operating margin of 15.00% may look healthy today, but if that margin was 20.00% a year ago, the decline could signal rising costs, pricing pressure, or operational inefficiency. Conversely, a company improving from an operating margin of -5.00% to 5.00% is moving in a positive direction even though its margin remains modest. Operating income is what remains after COGS and operating expenses but before interest and taxes, so operating margin reflects the profitability of core operations. Tracking that figure over several periods tells you whether the business is becoming more or less efficient at its central activities.
It is also important to understand the relationship between operating margin and gross margin. Gross margin is always at least operating margin when operating expenses are positive, because operating costs come out after gross profit. A company can have a strong gross margin and a much smaller operating margin if its operating expenses are high, which is common in businesses that spend heavily on sales, marketing, or research and development. For example, revenue of $5,000,000 with COGS of $3,000,000 and operating expenses of $1,250,000 produces gross profit of $2,000,000, a 40.00% gross margin, operating income of $750,000, and an operating margin of 15.00%. The gap between the two margins shows how much the company spends to run the business beyond producing its goods or services.
Because operating margin excludes interest and taxes, it compares the core operations of companies with different financing structures or tax situations. This makes it useful for evaluating operational efficiency, but it also means a company can show a solid operating margin while still losing money overall if interest costs are high. The same principle applies to smaller or early-stage businesses: operating income of -$42,500 on revenue of $850,000 gives an operating margin of -5.00%, which indicates the core business is not yet covering its operating costs. In every case, the trend in operating margin over time reveals more about a company's direction than a single snapshot.
Improving the margin
Because operating margin equals operating income divided by revenue, there are only three levers that move the result: raise prices, cut COGS, or trim operating expenses. Each lever works on a different part of the formula, and each carries a different risk if pulled too hard.
Pricing is the most direct lever. If a company earns operating income of $300,000 on revenue of $2,000,000, its operating margin is 15.00%. Raise prices while holding costs steady and both operating income and margin climb, because revenue grows without a matching rise in COGS or operating expenses. The risk is customer loss: push prices too far and volume may fall enough to leave total operating income lower than before. COGS works the other way. In a verified case, revenue of $5,000,000 with COGS of $3,000,000 and operating expenses of $1,250,000 produces gross profit of $2,000,000, a 40.00% gross margin, operating income of $750,000, and the same 15.00% operating margin. Cutting COGS widens gross profit first, and since operating expenses are positive, gross margin is always at least operating margin. Cheaper materials or labor, however, can hurt quality and drive returns down, which eventually pressures both revenue and margin.
Operating expenses are the third lever and the easiest to overcut. Reducing selling, general, and administrative costs flows straight to operating income, but this is where companies risk cutting muscle instead of fat. Slashing marketing may save cash this quarter yet shrink the pipeline that feeds next quarter's revenue. Trimming research and development can boost margin today while weakening products for years. Laying off experienced staff often raises training and turnover costs later. An operating margin calculator can show the immediate gain from each cut, but it cannot measure the delayed damage to the business.
A negative result tells its own story. Operating income of -$42,500 on revenue of $850,000 gives an operating margin of -5.00%, meaning core operations lose money before interest and taxes are even considered. In that state, aggressive cost cuts may look essential, but if they remove the capacity that generates revenue, the company shrinks toward zero without ever reaching profitability. The same caution applies to healthy firms: because operating margin excludes interest and taxes, it isolates operating performance and makes it easy to compare companies with different financing, but it also means a strong margin does not guarantee cash survival if debt service is heavy. The best improvements protect the activities that drive revenue while trimming true overhead, so the margin rises without hollowing out the business.
FAQs
How do you calculate operating margin?
Operating margin equals operating income divided by revenue. Operating income is revenue minus cost of goods sold and operating expenses. This ratio shows how much profit remains from each dollar of revenue after covering the direct costs of production and the ongoing costs of running the business.
What is the difference between gross margin and operating margin?
Gross margin stops at cost of goods sold, giving 40.00% in the verified build-up. Operating margin goes further by also subtracting operating expenses, which brings the margin down to 15.00% in that same example. Operating margin gives a fuller picture of profitability because it includes costs like sales, marketing, and administration.
Can operating margin be negative?
Yes, operating margin can be negative. The verified loss case gives -5.00%, meaning operations lose five cents per revenue dollar before interest and taxes. This happens when operating expenses and cost of goods sold exceed total revenue, signaling that the core business is not generating enough income to cover its own costs.
Why exclude interest and taxes?
Interest and taxes are excluded so companies with different debt levels and tax situations can be compared on operations alone. Debt structure and tax rates vary widely between companies and can distort profitability comparisons. By focusing on operating income, the margin reflects how efficiently the core business is run regardless of financing decisions or tax obligations.
What is a good operating margin?
It depends on the industry. The verified healthy case is 15.00%, but expectations vary by sector. Supermarkets run at low single digits because of high volume and thin markups, while software companies operate far higher due to lower marginal costs. Always compare a company's operating margin to its industry peers rather than using a universal benchmark.
Is operating margin the same as EBIT margin?
Yes, operating income is EBIT for most companies, so the two terms describe the same ratio. Both measure earnings before interest and taxes as a percentage of revenue. In rare cases, non-operating items can create a difference, but for most businesses, operating margin and EBIT margin are interchangeable and reflect the same underlying performance.