What the operating margin formula actually is
Operating margin measures how profitable your core operations are, as a percentage of revenue. It sits one level deeper than gross margin and one level above net margin.
The formula has two equivalent forms:
Operating margin % = Operating income ÷ Revenue × 100Operating margin % = (Revenue − COGS − Operating expenses) ÷ Revenue × 100
"Operating income" is also called operating profit or EBIT (earnings before interest and taxes). Both formulas give the same number — the second just shows you where operating income comes from.
The key word is operating. This metric captures the costs of running the business day to day: product costs, fulfillment, payment fees, advertising, salaries, rent, and software. It deliberately excludes interest on debt and income taxes, because those aren't about how well you run the shop.
The operating margin formula worked step by step
Numbers make this concrete. Say you run a print-on-demand apparel store and you want its monthly operating margin.
Here are the store's monthly figures for the example:
- Revenue: $40,000
- COGS (blank garments plus printing): $16,000
- Shipping: $5,000
- Payment processing fees: $1,600
- Pick and pack labor: $1,400
- Advertising (Meta and Google): $10,000
- Fixed costs (rent, software, salaries): $4,000
Step one — find gross profit. Subtract COGS from revenue: $40,000 − $16,000 = $24,000. That is a 60% gross margin, which you can verify with the gross margin formula.
Step two — total the operating expenses. Add everything below COGS: $5,000 + $1,600 + $1,400 + $10,000 + $4,000 = $22,000.
Step three — find operating income. Subtract operating expenses from gross profit: $24,000 − $22,000 = $2,000. Equivalently, $40,000 − $16,000 − $22,000 = $2,000.
Step four — divide by revenue. $2,000 ÷ $40,000 = 0.05, or 5%.
So this store keeps five cents of operating profit from every sales dollar. That 60% gross margin looked healthy, but by the time advertising and overhead are paid, only 5% survives — which is exactly why operating margin is worth calculating.
Operating margin vs gross, contribution, and net margin
These four margins measure the same revenue at different depths. Confusing them is the most common mistake in profit analysis, so here is how they stack up on the example store.
| Margin | What it subtracts | Example result |
|---|---|---|
| Gross margin | COGS only | 60% |
| Contribution margin (CM2) | COGS + shipping, fees, pick/pack | 40% |
| Operating margin | The above + ads + fixed operating costs | 5% |
| Net margin | Everything, including interest and taxes | ≈ 5% |
Gross margin tells you whether a product is worth making. Contribution margin per unit tells you whether it is worth selling through a given channel. Operating margin tells you whether the whole operation makes money before financing.
Net margin goes one step further and also subtracts interest and taxes. For a debt-free store with no meaningful tax bill in the period, operating margin and net margin can be nearly identical — which is the case in the example above. Add a loan or a tax bill and net margin drops below operating margin.
For a deeper tour of how all of these metrics connect, the ecommerce metrics guide walks the full chain from revenue to net profit.
What is a good operating margin?
There is no single "good" number — it depends heavily on your industry, because different business models carry different cost structures.
Grocery and food retail runs on razor-thin operating margins of about 2.29%, while general retail sits near 6.80%, according to NYU Stern's January 2026 margin dataset compiled by Aswath Damodaran. Software and consumer-tech companies run far higher; Apple, for example, posted an operating margin of 24.6% in the period covered by Wall Street Prep's analysis.
The practical takeaways from those benchmarks:
- Compare yourself to your own industry, not to a tech giant.
- A margin trending up over time usually matters more than the absolute level.
- For most retail and ecommerce businesses, a mid-single-digit to low-double-digit operating margin is normal — not a sign that something is broken.
The example store's 5% would be reasonable for general retail and healthy for the food category, but thin for software.
How to improve your operating margin
Because operating margin is revenue minus a long list of costs, you have two broad levers: lift the top line efficiently or cut the costs underneath it.
Raise gross margin first. Every point you add before operating expenses flows straight down. Lowering COGS through better supplier pricing, or nudging average order value up, both widen the gap the formula starts from.
Make advertising pull its weight. Ad spend is often the largest operating expense for an ecommerce brand, so the return on it moves operating margin more than any other line. Judging ads on revenue alone hides losses; measuring them on profit is the fix, which is the whole point of the profit on ad spend (POAS) formula.
Watch the variable middle. Shipping, payment fees, and pick-pack labor quietly eat contribution margin. Renegotiating carrier rates or trimming processing fees adds points without touching a single price.
Don't over-cut fixed costs. Slashing salaries or software can lift this month's margin and cripple next quarter's growth. Operating margin is a health check, not a demand to gut the business. Watching how repeat buyers lift customer lifetime value is usually a better growth lever than cutting overhead.
Why per-order profit beats a monthly average
A single monthly operating margin hides which orders, products, and campaigns actually made money. A 5% blended margin can contain profitable hero products subsidizing losers you'd never spot from the summary.
That is where connecting your data pays off. PodVector connects Shopify, Meta Ads, Google Ads, Printify, and Printful, then computes the true per-order profit behind numbers like your operating margin — so you can see the loss-makers instead of averaging over them.
Victor, its AI operator, reads that live data, analyzes where profit leaks, and proposes moves — executing approved actions on the Shopify side while never touching your ad account. It is not a dashboard; it is an operator that works from the same profit math this article walks through.
FAQs
What is the operating margin formula?
Operating margin equals operating income divided by revenue, times 100. Operating income is what's left after subtracting COGS and all operating expenses (fulfillment, fees, advertising, salaries, rent, software) from revenue, but before interest and taxes.
Is operating margin the same as EBIT margin?
Yes. EBIT stands for earnings before interest and taxes, which is another name for operating income. So "EBIT margin" and "operating margin" describe the exact same calculation.
What's the difference between operating margin and net margin?
Operating margin stops after operating costs. Net margin keeps going and also subtracts interest on debt and income taxes. For a business with no debt and no tax in the period, the two can be almost equal; add financing costs or taxes and net margin falls below operating margin.
Does advertising count as an operating expense?
Yes. Advertising and marketing are operating expenses, so they reduce operating income and pull operating margin down. This is why a store with a strong gross margin can still show a slim operating margin once ad spend is included.
Can operating margin be negative?
Absolutely. If operating expenses plus COGS exceed revenue, operating income is negative and so is the margin. It means the core business is losing money before any financing is even considered — a signal to fix pricing, costs, or ad efficiency quickly.
How is operating margin different from contribution margin?
Contribution margin subtracts only variable costs and is usually measured per order or per channel to decide whether to scale something. Operating margin subtracts variable and fixed operating costs across the whole business, answering whether the entire operation is profitable.