FixThatApp

Profit Margin Calculator Guide: Gross, Net, and Operating Margin Explained

Updated March 19, 2026

Profit margin is the percentage of revenue that remains as profit after costs are subtracted. It is one of the most fundamental metrics in business — used by owners to evaluate pricing decisions, by investors to compare companies, and by managers to track operational efficiency. There are several types of profit margin, each revealing a different layer of profitability.

The Three Main Types of Profit Margin

Gross Profit Margin

Gross margin measures profitability after subtracting only the direct cost of producing or acquiring the goods sold (Cost of Goods Sold — COGS).

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

Example: Revenue $500,000, COGS $300,000
Gross Profit = $200,000
Gross Margin = (200,000 / 500,000) × 100 = 40%

Operating Profit Margin

Operating margin also subtracts operating expenses (salaries, rent, utilities, marketing) but excludes interest and taxes.

Operating Profit = Gross Profit - Operating Expenses
Operating Margin % = (Operating Profit / Revenue) × 100

Net Profit Margin

Net margin is the "bottom line" — profit after all expenses including interest, taxes, and one-time items.

Net Profit = Revenue - All Expenses
Net Margin % = (Net Profit / Revenue) × 100

Markup vs Margin: A Critical Distinction

Markup and margin are often confused but are calculated on different bases. Margin is calculated as a percentage of the selling price. Markup is calculated as a percentage of the cost.

Example: Cost = $60, Selling Price = $100

Margin = (100 - 60) / 100 × 100 = 40%
Markup = (100 - 60) / 60 × 100 = 66.7%

Conversion formulas:
Margin % = Markup % / (1 + Markup % / 100) × 100
Markup % = Margin % / (1 - Margin % / 100) × 100
Never confuse markup % with margin %

A 50% markup is NOT a 50% margin. If you cost $100 and apply a 50% markup, you sell at $150 — a 33.3% margin. If a buyer then demands "a 50% margin", the price must be $200. Quoting markup when margin is expected (or vice versa) leads to serious pricing errors.

Calculating Price from a Target Margin

If you know your cost and want to achieve a specific gross margin, use:

Selling Price = Cost / (1 - Target Margin%)

Example: Cost = $75, Target margin = 40%
Selling Price = 75 / (1 - 0.40) = 75 / 0.60 = $125

Typical Profit Margins by Industry

IndustryTypical gross marginTypical net margin
Software / SaaS70–85%15–30%
Retail (general)25–50%2–5%
Grocery / supermarket25–30%1–3%
Restaurant / food service60–70%3–9%
Manufacturing20–40%5–10%
Professional services30–60%10–20%
E-commerce30–50%1–5%

Why High Gross Margin Doesn't Always Mean High Net Margin

A restaurant might have a 65% gross margin on food (ingredients are cheap), but after paying chefs, servers, rent, utilities, and marketing, the net margin might be only 5%. High operating expenses shrink the gap between gross and net margin. This is why comparing only gross margins across industries is misleading — a grocery store at 28% gross margin may be more profitable in absolute terms than a restaurant at 65% gross margin, depending on scale and operating leverage.

Calculate Your Profit Margin Instantly

Enter revenue and cost to get gross margin, or enter cost and target margin to calculate the right selling price.

Open the Profit Margin Calculator

How to Use the Profit Margin Calculator

  1. Open the Profit Margin Calculator
  2. Choose your mode: "Calculate margin from cost and price", "Calculate markup", or "Find price from cost and target margin"
  3. Enter your cost and either the selling price or target margin percentage
  4. The result shows gross profit, margin %, and markup % simultaneously
  5. Use the margin table to compare multiple pricing scenarios side by side