Profit Margin Calculator

Calculate gross, operating, and net profit margins from your revenue and costs. Also includes a markup-to-margin converter so you never confuse markup with margin again.

Net Profit Margin formula
Net Profit Margin = (Net Income ÷ Revenue) × 100
Profit margin calculator Gross · Operating · Net
$
$
Direct materials, manufacturing, inventory
$
Rent, salaries, marketing, admin
$
Income tax, interest expense
Markup vs. margin converter Never confuse them again
%
%

Gross, operating, and net margin

Profit margin measures how much of every dollar of revenue actually turns into profit — but there isn't just one margin figure. Gross, operating, and net margin each subtract a different, progressively larger set of costs, revealing where in the business profitability is actually being gained or lost.

The three margins Gross Margin = (Revenue − COGS) ÷ Revenue
Operating Margin = (Gross Profit − Operating Expenses) ÷ Revenue · Net Margin = (Operating Profit − Taxes/Interest) ÷ Revenue

Worked example: on $100,000 in revenue with $40,000 in COGS, $25,000 in operating expenses, and $8,000 in taxes and interest, gross margin is 60%, operating margin is 35%, and net margin is 27%. Each successive margin narrows as more cost categories are subtracted, showing exactly how much of the original 60% gross margin survives all the way to the bottom line.

The gap between each successive margin level is itself informative. In this example, gross margin (60%) drops to operating margin (35%) — a 25-point decline driven entirely by operating expenses — and then to net margin (27%), an additional 8-point decline from taxes and interest. Comparing the SIZE of each drop, not just the final net figure, highlights which cost category is consuming the largest share of the business’s gross profitability.

Tracking all three margins, rather than just net margin alone, reveals where a specific business’s profitability challenges actually originate. A business with strong gross margin but weak net margin has an overhead or financing problem, not a production-cost problem — a very different issue than a business with weak gross margin from the start, which points to pricing or direct-cost issues instead.

Each margin level answers a distinct diagnostic question. Gross margin asks “is the core product or service itself priced and produced profitably, before any overhead is considered?” Operating margin asks “once overhead like rent, salaries, and marketing are covered, is the core business still profitable?” Net margin asks “after everything, including taxes and financing costs, what’s actually left?” Reviewing all three in sequence tells a coherent story about exactly where value is created or lost as revenue flows through the business.

Markup vs. margin

Markup expresses profit as a percentage of cost; margin expresses the identical dollar profit as a percentage of selling price. These are genuinely different numbers for the same transaction, and confusing them is one of the most common — and costly — pricing mistakes in small business.

Worked example: a $10-cost item marked up 50% sells for $15, producing $5 in profit. That same $5 profit, expressed as a percentage of the $15 selling price, is a 33.3% margin — not 50%. A business owner who intends a 50% profit margin but mistakenly applies a 50% markup formula instead will actually achieve only a 33.3% margin, a meaningful shortfall from what was intended.

This confusion is especially common in retail and small-business pricing, where markup is often the more intuitive, naturally-used framing (marking up a wholesale cost by a percentage to arrive at a retail price) while margin is typically the figure actually tracked for profitability reporting and business health assessment. Because both are casually referred to as “profit percentage” in everyday conversation, it’s easy to assume they’re interchangeable when they genuinely aren’t.

The conversion between the two follows a precise, fixed relationship: Margin = Markup ÷ (100 + Markup), and Markup = Margin ÷ (100 − Margin), both expressed as percentages. Understanding this relationship — and using a converter rather than assuming the two numbers are interchangeable — prevents a pricing decision from silently falling short of its actual intended profitability target.

This distinction matters most at higher target percentages, where the gap between markup and margin widens considerably. At low percentages (5-10%), markup and margin are close enough that confusing them causes only a small error; at higher percentages (50%+), the gap becomes substantial — precisely the range where getting the conversion right matters most for hitting an actual profitability target.

A quick mental check for the direction of the gap: markup is always the larger of the two numbers for any given profit relationship (except at 0%, where both are zero), since it’s measured against the smaller base (cost) rather than the larger base (selling price, which already includes the profit itself). Remembering this simple rule — “markup is always bigger than margin” — offers a fast sanity check against an obviously wrong conversion result.

What counts as a good margin?

IndustryTypical net margin
SaaS / Software~20%
Consulting / Services~18%
Healthcare~10%
Manufacturing~8%
Restaurants~6%
Retail~5%
Grocery~2.5%

Profit margins vary dramatically by industry, which is exactly why comparing a specific business’s margin to a universal standard is far less useful than comparing it to its own specific industry benchmark. A 5% net margin would be a serious problem for a software company but is an entirely typical, healthy result for a grocery store — the appropriate benchmark depends entirely on the underlying business model and cost structure of the specific industry in question.

These industry differences largely trace back to cost structure. Software companies have near-zero cost of goods sold once a product is built, letting a large share of revenue flow through as gross profit — but they typically carry substantial R&D and sales costs. Grocery stores face the opposite structure: high COGS relative to revenue (the products themselves are expensive to source) but comparatively lean operating costs, producing a very different margin profile purely from the nature of the business rather than any difference in operational skill.

A specific business can also reasonably use its own historical margins as a personalized benchmark, alongside broader industry averages. Comparing a current period’s margins against that same business’s own performance in prior periods reveals whether profitability is trending in the right direction, which is often just as useful a signal as comparing against an external industry figure — particularly for a mature business with an established, relatively stable cost structure.

Improving your margins

Margins can be improved from either direction: increasing revenue (through pricing or sales volume) without a proportional increase in costs, or reducing costs without sacrificing the revenue those costs support. Both levers are legitimate, but they carry different tradeoffs worth weighing deliberately, and a durable margin improvement often draws on more than one lever at once rather than relying on a single approach in isolation.

Price increases directly improve every margin level simultaneously — gross, operating, and net all benefit from the same additional revenue, provided sales volume doesn’t drop enough to offset the higher price. Cost reductions, by contrast, only improve the margin level where the specific cost category sits — cutting COGS improves gross margin (and everything below it), while cutting only operating expenses leaves gross margin unchanged but improves operating and net margin. Understanding which margin level a specific cost affects clarifies exactly what a proposed cost-cutting measure will and won’t accomplish.

Improving sales mix — shifting revenue toward higher-margin products or services — is a third lever worth considering alongside pricing and cost management. A business selling several products at different margins can improve its overall blended margin simply by growing the higher-margin lines faster than the lower-margin ones, even without changing any individual product’s price or cost structure at all. This is often an underappreciated margin lever compared to the more obvious levers of pricing and cost-cutting.

Real-world applications

Diagnosing where a struggling business’s profitability problem actually originates benefits directly from tracking all three margin levels rather than net margin alone — a healthy gross margin paired with a weak net margin points toward an overhead or financing issue, not a pricing or production-cost problem.

Setting a pricing strategy with a specific target margin in mind benefits from the markup/margin converter specifically, since pricing decisions are commonly made in markup terms (a percentage added to cost) while the actual profitability target is usually expressed in margin terms — converting between the two ensures the pricing decision actually hits the intended profitability goal.

Comparing a business’s performance against its industry benefits from checking net margin specifically against the relevant industry benchmark, rather than assuming a single universal “good margin” standard applies regardless of business type.

Evaluating a potential acquisition or investment target’s financial health benefits from examining all three margin levels across several recent periods, rather than a single snapshot — a consistent, stable margin profile over time is generally a more reassuring signal than a single strong period that might not reflect a sustainable, ongoing pattern.

Deciding between competing product lines when allocating limited production or marketing resources benefits from comparing their respective margins directly — a product with a meaningfully higher margin generates more profit per unit of revenue, making it a reasonable candidate for extra investment and attention when resources are genuinely constrained and a choice has to be made between competing priorities.

Common mistakes to avoid

  • Confusing markup and margin when setting prices. These are different percentages of different base numbers (cost vs. selling price) — using the wrong one produces a real, quantifiable shortfall from the intended profitability target.
  • Comparing a business’s margin against a universal benchmark instead of its specific industry. Typical margins vary enormously by industry — a margin that looks weak in one industry might be entirely healthy and typical in another.
  • Focusing only on net margin without checking gross and operating margin separately. Net margin alone doesn’t reveal whether a profitability problem originates in production costs, overhead, or financing — each margin level narrows down where the actual issue lies.
  • Assuming cost cuts and price increases affect margins identically. A price increase improves every margin level simultaneously; a cost cut only improves the margin levels at or below where that specific cost sits.
  • Treating a single margin snapshot as representative of ongoing performance. Margins fluctuate with cost changes, pricing changes, and sales mix — tracking margin trends over time reveals more than any single-period calculation alone.
  • Overlooking how a change in sales volume affects margin conclusions. A margin percentage doesn’t reveal total dollar profit — a lower margin on much higher revenue can still produce more total profit than a higher margin on lower revenue, a distinction worth keeping in mind when comparing margin percentages alone.
  • Ignoring blended margin effects when a business sells multiple products at different margins. Overall company-wide margin is a weighted average across the full product mix — a shift toward higher-margin or lower-margin products changes the blended figure even without any change to individual product pricing or costs.
  • Setting a markup percentage based on a competitor’s advertised margin, or vice versa. Since these are different numbers describing the same underlying profit, directly copying one figure while intending to match the other produces a pricing decision that doesn’t actually match the competitor’s real profitability.
Frequently asked questions
What is the difference between gross, operating, and net margin?
Gross margin = (Revenue − COGS) ÷ Revenue. It measures production efficiency. Operating margin subtracts operating expenses (salaries, rent, marketing) from gross profit. Net margin subtracts everything including taxes and interest — it shows the true bottom-line profitability of every dollar of revenue.
What is a good profit margin?
It varies dramatically by industry. Software companies can achieve 20-30%+ net margins. Grocery stores operate on 1-3% net margins. Restaurants average 3-9%. Professional services (consulting, law) often see 15-25%. Compare your margins to your specific industry benchmarks rather than a universal standard.
What is the difference between markup and margin?
Markup is profit expressed as a percentage of COST. Margin is profit expressed as a percentage of SELLING PRICE. A 50% markup on a $10 product = $5 profit = $15 selling price = 33.3% margin. Confusing these two is one of the most common pricing mistakes in small business. Use the converter above to switch between them instantly.
Why does gross margin matter more for some businesses?
For manufacturing and product businesses, gross margin is the most critical metric because it determines whether the core business model is viable before overhead costs. SaaS businesses often focus on gross margin because software has near-zero COGS, making operating and net margin more relevant. Service businesses often skip COGS entirely.

For informational purposes only. Not financial advice.