Home / Guides / Gross Margin vs Operating Margin

Gross Margin vs Operating Margin

Finance Concepts · Updated June 2026

Gross margin and operating margin are two profitability ratios that sit at different points on the income statement. Gross margin captures profit after the direct cost of goods, while operating margin captures profit after running the whole business. The gap between them is operating expense, and reading that gap as a bridge tells you where money is made and where it is spent.

The two margins defined

Gross margin is Gross Profit / Revenue, where Gross Profit = Revenue - Cost of Goods Sold. It measures how much of each sales dollar survives the direct cost of producing the product or service.

Operating margin is Operating Income / Revenue, where operating income is gross profit minus operating expenses such as sales, general, administrative, and research costs. It measures profitability after the full cost of running the business but before interest and taxes.

Worked example in Excel

Put revenue in B1, cost of goods sold in B2, and operating expenses in B4. Build gross profit and operating income, then divide each by revenue.

  1. Compute gross profit with =B1-B2 in B3.
  2. Compute operating income with =B3-B4 in B5.
  3. Compute gross margin with =B3/B1 and operating margin with =B5/B1, both formatted as percentages.
LineCellValue
RevenueB1500
COGSB2300
Gross profitB3200
Operating expensesB4120
Operating incomeB580

Gross margin is 200 / 500 = 40% and operating margin is 80 / 500 = 16%. The 24 point gap is operating expense as a share of revenue.

Reading the margin bridge

The space between gross margin and operating margin is the operating expense ratio. A wide gap means heavy spending on people, marketing, or research relative to sales.

Comparing the two margins over time shows whether a change in profitability came from production cost or from overhead. Falling gross margin points to pricing or input costs, while a stable gross margin alongside a falling operating margin points to rising overhead.

Variants and common mistakes

Classification drives the result. Whether a cost lands in cost of goods sold or in operating expenses changes gross margin even if operating margin is unchanged, so margins are only comparable across companies that classify costs the same way.

A frequent Excel error is burying a constant inside a formula, for example typing =B1-300 instead of linking to the COGS cell. That hardcode hides the assumption and breaks the moment revenue or volume changes. Keep every input in its own labeled cell so the margin recalculates honestly.

Do it in one click

Find Hardcodes

Find Hardcodes flags literal constants buried inside margin formulas, like a COGS figure typed into the calculation instead of linked to its own cell.

Get ModelMint See how it works

FAQ

What is the difference between gross margin and operating margin?

Gross margin is gross profit over revenue, capturing profit after direct product costs. Operating margin is operating income over revenue, capturing profit after operating expenses as well but before interest and taxes.

What sits between gross margin and operating margin?

Operating expenses such as sales, general, administrative, and research costs. The difference between the two margins is the operating expense ratio as a share of revenue.

Why is operating margin lower than gross margin?

Because operating margin subtracts operating expenses on top of cost of goods sold. As long as the business has overhead, operating income is smaller than gross profit, so the margin is lower.