Skip to main content

Profit Margin Calculator

Calculate gross margin, net margin, and markup percentage from your revenue, cost of goods, and operating expenses.

$
$
$
Revenue$100,000
− COGS$60,000
= Gross Profit$40,000
− Operating Expenses$15,000
= Operating Profit$25,000
Gross Margin
40.0%
Gross Markup: 66.7%
Gross Profit$40,000
Gross Margin %40.0%
Gross Markup %66.7%
Operating Profit$25,000
Net Margin %25.0%
Net Markup %41.7%
Last updated: March 2026Reviewed by CalculWise editorial team
Methodology: Gross margin = (Revenue - COGS) / Revenue. Net margin = Net Income / Revenue.
Share on XShare on Facebook

Gross Margin, Operating Margin, and Net Margin: What Each Actually Measures

Profit margin is the single most cited business metric — and the most frequently misunderstood. The confusion usually comes from conflating three distinct margin measures that answer three very different questions. Here is what each one actually tells you:

  • Gross Margin = (Revenue − Cost of Goods Sold) ÷ Revenue × 100. This measures the profitability of your core product or service, before any overhead. It answers: “How efficiently do we produce what we sell?” A restaurant's gross margin reflects food and direct labor costs relative to menu prices. A software company's gross margin reflects hosting and support costs against subscription revenue. Gross margin is the first filter on business viability.
  • Operating Margin = (Revenue − COGS − Operating Expenses) ÷ Revenue × 100. Operating expenses include rent, salaries, marketing, utilities — everything it costs to run the business beyond the product itself. Operating margin answers: “How profitable is the core business before financing and taxes?” It's the metric investors use to compare operational efficiency across companies in the same industry.
  • Net Margin = (Revenue − COGS − Operating Expenses − Interest − Taxes) ÷ Revenue × 100. The full bottom line. For small businesses without complex debt structures, operating margin and net margin are often close. For heavily leveraged businesses, the gap can be significant.

When evaluating a business — whether your own or a competitor's — look at gross margin to understand pricing power and production efficiency. Look at operating margin to understand how well overhead is managed. Look at net margin to understand the actual return to owners.

Industry Profit Margin Benchmarks

Profit margins vary dramatically by industry due to structural differences in capital intensity, competition, and pricing power. The SBA's business guides and Census Bureau industry data provide sector-level benchmarks. Here is a condensed comparison:

IndustryTypical Gross MarginTypical Net MarginWhat Drives the Gap
Software / SaaS60–80%15–35%High R&D and sales/marketing spend
Professional Services40–60%15–40%Labor costs; low COGS structure
Retail (general)20–50%2–8%High overhead; competitive pricing
Restaurant55–70%3–9%High labor, rent, and waste
Manufacturing20–40%5–12%Equipment, overhead, raw materials
Grocery / Food Retail20–30%1–3%Extreme price competition; high volume
Healthcare (private practice)30–50%10–20%Staffing and compliance costs

The restaurant industry's wide gross margin (55–70%) surprises many people. Food costs alone (the primary COGS) typically run 28–35% of revenue in full-service restaurants — leaving a substantial gross margin. But after paying front-of-house and kitchen staff (30–35% of revenue), rent (6–10%), utilities, insurance, and equipment maintenance, that comfortable gross margin shrinks to a 3–9% net margin. A thin net margin on high-fixed-cost operations means a bad month can erase a quarter's profits.

Real Scenario: Margin Analysis for a Coffee Shop

Consider a specialty coffee shop with the following monthly financials: $45,000 in total revenue, $28,000 in COGS (coffee beans, milk, pastries, cups, and direct labor behind the bar), and $12,000 in operating expenses (rent, manager salary, utilities, marketing, POS fees, and insurance). Let's work through all three margin measures:

  • Gross profit: $45,000 − $28,000 = $17,000
  • Gross margin: $17,000 ÷ $45,000 = 37.8%
  • Operating profit: $17,000 − $12,000 = $5,000
  • Operating margin: $5,000 ÷ $45,000 = 11.1%
  • Net profit (after ~20% effective tax): approximately $4,000
  • Net margin: ~8.9%

This coffee shop is actually performing above average for its category — the industry net margin range of 3–9% suggests this operation has either above-average pricing, controlled food costs, or favorable rent. But notice the gross margin of 37.8% is below the typical coffee shop target of 50–65%. The $28K COGS seems high relative to revenue. Drilling into that: if pastry and food items ($8K/mo) carry lower margins than beverage ($20K/mo in COGS), the owner could improve gross margin by shifting the product mix toward higher-margin drinks and reducing food inventory that doesn't sell fast enough to avoid waste.

To model the ROI on expanding this business, combine this analysis with our ROI Calculator.

Markup vs. Margin: The Most Common Pricing Confusion

The markup/margin confusion causes real problems in pricing decisions. Business owners who think in markup terms but communicate in margin terms — or vice versa — routinely underprice their products. Here is the core distinction:

  • Markup = Gross Profit ÷ Cost × 100. It is calculated as a percentage of cost. A product that costs $4 and sells for $6 has a 50% markup: ($6 − $4) ÷ $4 = 50%.
  • Margin = Gross Profit ÷ Revenue × 100. It is calculated as a percentage of revenue. That same product has a 33.3% gross margin: ($6 − $4) ÷ $6 = 33.3%.
CostMarkup %Selling PriceGross Margin %
$10.0025%$12.5020.0%
$10.0050%$15.0033.3%
$10.00100%$20.0050.0%
$10.00200%$30.0066.7%

The critical insight: a 50% markup does not equal a 50% margin. It equals a 33.3% margin. If you tell your team to “mark everything up 50%” while your financial model targets a 50% gross margin, you will consistently miss your margin goals. Use our Percentage Calculator to convert between the two.

The formula to find the required markup for a target margin: Markup = Margin ÷ (1 − Margin). To achieve a 50% gross margin: Markup = 0.50 ÷ (1 − 0.50) = 100% markup on cost.

How to Improve Profit Margins: Four Levers

Margin improvement comes down to four levers, each with different risk profiles and time horizons:

1. Raise Prices (Highest Impact, Often Underused)

A 1% price increase on $1M in revenue is $10,000 in additional gross profit — with zero change in costs. For a business with a 10% net margin, that $10,000 flows almost entirely to the bottom line (versus a 1% cost reduction, which saves $X in COGS but first must work through gross margin). Research consistently shows that most small businesses underprice out of fear of losing customers, when the demand elasticity would support moderate price increases without meaningful volume loss.

2. Reduce COGS Through Better Sourcing or Production Efficiency

Renegotiate supplier contracts, consolidate purchasing volume, reduce waste, or find alternative inputs. For the coffee shop above, a 3% reduction in COGS (from $28K to $27.2K) improves gross margin from 37.8% to 39.6% — nearly 2 percentage points of margin improvement with no effect on the customer experience.

3. Cut Operating Expenses Strategically

Not all operating expenses are equal. Fixed costs (rent, salaries) are hard to cut without structural changes. Variable operating expenses (marketing spend, software subscriptions, contract services) can often be renegotiated or eliminated. Audit your operating expenses against measurable ROI: which spend lines are producing revenue, and which are legacy costs?

4. Shift Product or Service Mix Toward Higher-Margin Offerings

Not every product or service has the same margin. Identifying and promoting your highest-margin offerings — without changing your pricing structure at all — improves blended margins over time. For the coffee shop: a $6 latte at $1.50 COGS carries a 75% gross margin. A $3 drip coffee at $0.25 COGS carries an 83% gross margin. Focusing upsell on add-ons (extra shots, non-dairy milk) increases revenue per transaction with minimal COGS impact.

Frequently Asked Questions

What is a good profit margin for a business?

Context-dependent. A 5% net margin in grocery retail is excellent; the same 5% in software means something is deeply wrong with cost structure. As a rough benchmark: below 5% net margin is thin and vulnerable; 10–20% is healthy for most industries; 20%+ is strong and typically seen in tech, professional services, or businesses with durable competitive advantages. Compare your margins to your industry peers, not to a universal standard.

What is the difference between gross margin and net margin?

Gross margin is profit after subtracting the direct cost of producing your goods or services (COGS). It reflects how efficiently you produce what you sell. Net margin is profit after subtracting COGS and all operating expenses, interest, and taxes. It reflects the total profitability of the entire business. A high gross margin with a low net margin signals high overhead relative to sales — often a symptom of bloated operating costs.

What is the difference between margin and markup?

Margin is profit expressed as a percentage of revenue. Markup is profit expressed as a percentage of cost. A 50% markup = 33.3% gross margin. A 100% markup = 50% gross margin. Always clarify which metric you're using when discussing pricing, especially in teams where finance and operations use different conventions.

How do I improve my profit margin?

The four levers: raise prices (often the highest-impact move with the least operational effort), reduce COGS through better sourcing or production efficiency, cut operating expenses against ROI criteria, and shift your product mix toward higher-margin offerings. Audit your margin by product line — most businesses have a few high-margin products subsidizing low-margin ones, and the product mix shift is often the easiest place to start.

Industry Benchmark Margins: Is Your Business on Track?

Profit margins vary dramatically by industry, and comparing your margins to sector averages is essential context for evaluating business performance. A 5% net margin in grocery retail is outstanding (Walmart averages 2.4%); the same margin in software-as-a-service would signal serious operational problems (SaaS companies typically target 15–30% net margins at scale).

General benchmark ranges by sector: Software/SaaS (gross margin 70–85%, net margin 15–25%); Restaurants (gross margin 65–75%, net margin 3–9%); Retail (gross margin 25–50%, net margin 2–8%); Healthcare services (gross margin 40–60%, net margin 5–15%); Manufacturing (gross margin 25–45%, net margin 5–10%); Professional services / consulting (gross margin 60–80%, net margin 15–25%). If your gross margin is healthy but net margin is thin, the problem is operating expenses (payroll, rent, marketing). If gross margin itself is thin, the issue is cost of goods — pricing, supplier negotiation, or product mix. Understanding which margin is under pressure tells you exactly where to focus improvement efforts.

Related Calculators