Margin Calculator

Margin Calculator — Calculate Gross, Operating & Net Profit Margin

One number tells the whole story. Calculate gross margin, operating margin, or net profit margin instantly and see the profit waterfall without leaving the page.

Live Tool

Gross Margin Calculator

The live tool below also includes operating and net modes, but gross margin is where most pricing and product margin conversations begin.

Gross Margin Calculator

Enter any two values. The other three fields update instantly.

Gross profit is $40,000 and every $1 of revenue keeps about 40.00% before operating costs.

Smart Insight Bar
Gross Margin: 40.00%
Moderate

Industry average: 30% - 45%. You are inside the common operating band.

Suggested improvement

To reach 45% margin, aim to keep cost below $55,000 at the current revenue level.

Retail usually carries healthy gross margin but thin net margin because markdowns, rent, labor, and returns consume the spread quickly.

Margin
40.00%

Profit ÷ Revenue

Markup
66.67%

Profit ÷ Cost

Markup vs Margin Calculator

Profit Margin Visual Breakdown

Revenue flows down through cost, operating overhead, and financing drag so you can see exactly where margin disappears.

Operating Margin Calculator

Operating margin sits one level deeper than gross margin. It keeps revenue and direct cost in view, then subtracts operating expenses such as rent, payroll, and marketing. That makes it a cleaner measure of business efficiency than gross margin alone.

If gross margin looks strong but operating margin stays weak, the problem is rarely pricing in isolation. It usually signals overhead sprawl, inefficient acquisition channels, weak labor utilization, or a business model that needs more revenue per fixed cost dollar.

Net Margin Calculator

Net margin is the final profitability view. It takes gross profit, subtracts operating expenses, interest, and taxes, then shows what share of revenue actually survives as profit. That is why investors, lenders, and operators lean on net margin more than markup or gross margin when evaluating financial quality.

A business can post attractive gross margin and still disappoint on net margin if debt service, tax burden, or operating complexity strip too much cash out of the stack before profit reaches the bottom line.

Definition

What Is Profit Margin?

Profit margin is the percentage of revenue left over as profit after costs are deducted. In its simplest gross form, margin equals revenue minus cost, divided by revenue, multiplied by 100. The reason margin matters more than a raw profit dollar figure is that it makes businesses comparable. Two companies can earn the same dollar profit while operating at very different efficiency levels.

That comparability is why investors, finance teams, and operators use margin as a primary health signal. Margin tells you how much of each sales dollar survives. Markup tells you how much you added relative to cost. Both matter, but margin is closer to how businesses are evaluated from the outside. If you need the pricing-side view, open the markup calculator and compare the same economics from a cost-first perspective.

The three layers of margin form a stack. Gross margin only looks at direct production cost. Operating margin goes one level deeper and subtracts business overhead. Net margin finishes the job by accounting for financing and taxes. That means the relationship is always the same: gross margin is highest, operating margin is lower, and net margin is lowest. If a report suggests otherwise, the math or definitions are wrong.

Formula

Gross Margin Formula

Core formulas

Gross Margin % = (Revenue - COGS) / Revenue × 100
Gross Profit = Revenue - COGS
Revenue = COGS / (1 - Gross Margin%)
COGS = Revenue × (1 - Gross Margin%)

Worked example

Revenue = $100, COGS = $60

Gross Profit = $40

Gross Margin = 40 / 100 × 100 = 40%

That 40% means the business keeps 40 cents of every revenue dollar before operating overhead, interest, and taxes enter the picture.

Comparison

Gross Margin vs Operating Margin vs Net Margin

Type
Formula
What It Measures
Gross Margin
(Revenue - COGS) / Revenue × 100
Production efficiency
Operating Margin
(Revenue - COGS - OpEx) / Revenue × 100
Business efficiency
Net Margin
Net Profit / Revenue × 100
Overall profitability

Gross margin isolates production efficiency. It answers whether the unit economics are strong before the rest of the business shows up. Operating margin asks the harder question: after paying to run the business, is the model still efficient? Net margin finishes the stack by showing the final percentage of revenue that reaches the bottom line after interest and tax.

This is also the section where teams should stop mixing margin and markup. Margin is anchored to revenue. Markup is anchored to cost. If you need that denominator difference laid out directly, use the markup vs margin page and convert between the two without guessing.

Benchmarks

What Is a Good Profit Margin?

There is no universal “good” profit margin because margin is heavily shaped by industry structure. Still, broad rules of thumb are useful. A 10% net margin is often treated as average. Around 20% is healthy in many sectors. Thirty percent or more is exceptional unless the business model is unusually asset-light or benefits from strong pricing power.

The mistake is applying one threshold everywhere. Retail can be perfectly healthy at 2% to 5% net margin because volume and inventory turns carry the model. SaaS can run much higher because the incremental cost to serve is low once the product exists. Restaurants can enjoy strong gross margins on menu items yet still finish with modest net margins because labor and occupancy eat the spread.

Industry Table

Profit Margin by Industry — Benchmarks

Industry
Gross Margin
Operating Margin
Net Margin
Retail
30% - 45%
3% - 8%
2% - 5%
Restaurants
60% - 70%
5% - 15%
3% - 9%
SaaS / Software
70% - 85%
15% - 30%
10% - 25%
Manufacturing
25% - 35%
8% - 15%
5% - 10%
Wholesale
15% - 25%
3% - 7%
2% - 4%
E-commerce
40% - 60%
5% - 12%
5% - 15%
Consulting
60% - 80%
20% - 35%
15% - 30%
Healthcare
40% - 60%
8% - 18%
5% - 12%

Use these as reference bands, not rigid targets. Benchmarks help you ask the right question: is the issue pricing, direct cost, operating cost, or the capital structure underneath the business? If you want a separate page dedicated to markup context and category-level pricing ranges, open the industry benchmarks guide.

Improvement

How to Improve Your Profit Margin

Lower cost intelligently

Improve supply chain terms and batch purchasing where volume justifies it.

Reduce operating waste by tightening labor scheduling, fulfillment leakage, and rework.

Automate repetitive admin or reporting tasks so overhead grows slower than revenue.

Raise revenue quality

Increase selling price only when value perception and competitive context support it.

Lift average order value through bundling, upsells, and cross-sells.

Shift mix toward higher-margin products, services, or customer segments.

Margin improvement rarely comes from one lever. The strongest businesses use a mix of direct cost control, disciplined overhead management, and focused revenue growth. If pricing strategy itself is the bottleneck, the next page to open is the pricing strategy guide, which turns the formulas into a repeatable operating model.

Excel

How to Calculate Margin in Excel

Gross Margin: =(B2-A2)/B2
Operating Margin: =(B2-A2-C2)/B2
Net Margin: =D2/B2

Here `A2` is COGS, `B2` is Revenue, `C2` is OpEx, and `D2` is Net Profit. The denominator stays revenue, which is why margin is a revenue-based metric rather than a cost-based one.

FAQ

Margin Calculator FAQ

The most common questions cluster around formulas, benchmarks, and the difference between margin and markup.

Related Pricing Tools

Related Pricing Tools

Keep margin analysis, markup conversion, bulk pricing, and pricing strategy in one connected workflow instead of jumping across disconnected tools.

Open Home Calculator