Margins

Ever looked at two companies with the same revenue and wondered why one keeps far more profit than the other? The answer almost always comes down to margins. Margins measure how much of each sales dollar a business actually keeps after costs, and they are one of the fastest ways to judge how efficiently a company is run.

For accountants and finance teams, understanding margins is not optional. They show up in board decks, lender covenants, pricing decisions, and month-end close reviews. This guide breaks down what margins are, the three main types you will encounter, how to calculate each one, and how to read them in context.

Key Takeaways

  • A margin is the percentage of revenue left over after subtracting a specific set of costs.
  • The three core margins are gross margin, operating margin, and net profit margin, each subtracting a wider set of costs than the last.
  • Margins are calculated as (Revenue − Costs) ÷ Revenue, expressed as a percentage.
  • Margin and markup are related but different: margin is based on revenue, markup is based on cost.
  • Comparing margins only makes sense within the same industry, since acceptable margins vary widely by business model.
  • Improving margins comes down to three levers: raise prices, reduce costs, or shift the sales mix toward higher-margin products or services.

What Is a Margin?

A margin is the percentage of revenue a business keeps after paying for a defined set of costs. It is expressed as a percentage rather than a dollar amount, which makes it possible to compare profitability across companies of very different sizes.

The general formula behind every margin calculation is the same:

Margin = (Revenue − Costs) ÷ Revenue × 100

What changes between margin types is which costs get subtracted. Gross margin only deducts the direct cost of producing goods or services. Operating margin also deducts overhead like salaries, rent, and marketing. Net margin goes further and deducts interest, taxes, and every other expense on the income statement.

The Three Main Types of Margin

Gross Margin

Gross margin measures how much revenue is left after subtracting the cost of goods sold (COGS) — the direct costs of producing whatever the company sells, such as materials and direct labor.

Gross Margin = (Revenue − COGS) ÷ Revenue × 100

Example: a firm brings in $500,000 in revenue and spends $200,000 on COGS. Gross margin is ($500,000 − $200,000) ÷ $500,000 = 60%. That means 60 cents of every revenue dollar remains before overhead and other expenses are paid.

Operating Margin

Operating margin takes gross profit and subtracts operating expenses — rent, salaries not tied directly to production, marketing, and administrative costs. It shows how efficiently the core business runs before interest and taxes come into play.

Operating Margin = Operating Income ÷ Revenue × 100

Using the same firm: if operating expenses are $150,000, operating income is $300,000 − $150,000 = $150,000, giving an operating margin of $150,000 ÷ $500,000 = 30%.

Net Profit Margin

Net profit margin is the bottom-line number. It subtracts everything — COGS, operating expenses, interest, and taxes — leaving the true percentage of revenue that converts into profit.

Net Margin = Net Income ÷ Revenue × 100

If the same firm pays $30,000 in interest and taxes, net income is $150,000 − $30,000 = $120,000, for a net margin of $120,000 ÷ $500,000 = 24%.

Margin vs. Markup

Margin and markup are often confused, but they measure different things. Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost.

If a product costs $60 and sells for $100, the $40 profit is a 40% margin ($40 ÷ $100) but a 66.7% markup ($40 ÷ $60). Mixing the two up is a common pricing mistake — pricing a product with a target margin in mind using a markup formula (or vice versa) can quietly erode profitability.

Why Margins Matter

Comparing Performance Over Time

Tracking a company's margins month over month or year over year shows whether profitability is improving, holding steady, or eroding, independent of whether revenue itself is growing.

Benchmarking Against Competitors

Margins only mean something in context. A 10% net margin might be strong for a grocery retailer and weak for a software company. Always compare margins within the same industry rather than across unrelated business models.

Informing Pricing and Cost Decisions

A shrinking gross margin usually points to rising input costs or discounting that has gone too far. A shrinking operating margin with stable gross margin points to overhead growing faster than revenue. Tracking each margin separately helps pinpoint exactly where a profitability problem is coming from.

How to Improve Margins

There are three practical levers for improving any margin:

  • Raise prices without a proportional increase in costs, where the market will support it.
  • Reduce costs — renegotiate supplier contracts, cut waste, or automate manual processes that drive up overhead.
  • Shift the sales mix toward higher-margin products, services, or clients, and away from low-margin work that consumes the same resources for less return.

Most sustainable margin improvement comes from a combination of all three, tracked consistently over time rather than a single one-off change.

Steroids for your accounting workflow

14-day free trial

|

No credit card needed