Profit Margin Calculator: Gross, Operating & Net Margins

Work out gross, operating and net margin from revenue and costs, or find the price that hits a target margin. Steps shown.

Enter Your Figures

$
$
$
$
Calculations run locally in your browser. Your numbers never leave your device.
Result
—

Enter figures on the left to see live calculations.

What is profit margin?

Profit margin measures how much money a business retains from each dollar of revenue after accounting for expenses. Expressed as a percentage, it reveals the operational efficiency and pricing strength of a company.

For example, if a company produces $200,000 in revenue with $120,000 in direct product costs and $50,000 in operating overhead, it retains $30,000 in operating profit—resulting in a 15% operating profit margin.


The three levels of profit margin

Financial accounting tracks profitability across three distinct tiers:

Margin Tier Formula What It Measures
Gross Margin (Revenue − COGS) ÷ Revenue Direct production & fulfillment efficiency
Operating Margin Operating Income ÷ Revenue Overhead discipline, marketing & admin efficiency
Net Margin Net Income ÷ Revenue Bottom-line profitability after taxes & interest

1. Gross Profit Margin

Gross profit reflects revenue minus Cost of Goods Sold (COGS). It measures whether your pricing covers inventory, manufacturing, and direct labor before general overhead.

2. Operating Profit Margin

Operating profit (also known as EBIT) deducts operating expenses (OpEx)—such as rent, marketing spend, software licenses, and administrative payroll—from gross profit.

3. Net Profit Margin

Net profit represents the ultimate bottom line after deducting non-operating expenses, financing interest, and corporate income taxes.


Worked example: Small retail business

Consider a specialized electronics retailer with the following annual income statement:

  • Annual Revenue: $500,000
  • Cost of Goods Sold (COGS): $275,000 (inventory purchases, supplier freight)
  • Operating Expenses (OpEx): $140,000 (store lease $48k, staff payroll $65k, ads $20k, software $7k)
  • Interest & Taxes: $15,000

Step-by-step calculations:

  1. Gross Profit: $500,000 − $275,000 = $225,000
    • Gross Margin: $225,000 ÷ $500,000 = 45.0%
  2. Operating Profit: $225,000 − $140,000 = $85,000
    • Operating Margin: $85,000 ÷ $500,000 = 17.0%
  3. Net Profit: $85,000 − $15,000 = $70,000
    • Net Margin: $70,000 ÷ $500,000 = 14.0%

Typical industry margin benchmarks

Profit margins vary dramatically by business model and capital intensity:

  • SaaS & Digital Products: Gross margins typically reach 70% to 85%; net margins range from 15% to 30%.
  • E-Commerce & DTC: Gross margins range from 45% to 65%; net margins often sit between 8% and 15%.
  • Restaurants & Food Service: High direct labor and perishability result in gross margins of 60% to 70%, but net margins frequently hover between 3% and 7%.
  • Wholesale & Distribution: High volume and low markup yield gross margins of 15% to 25%, with net margins between 2% and 5%.

Common mistakes when evaluating profit margins

  • Confusing margin with markup: A 50% markup on cost produces only a 33.3% gross margin on price.
  • Failing to include merchant fees: Credit card processing fees (2.5% to 3.5%) are direct cost deductions that frequently get omitted from COGS.
  • Ignoring customer returns: High return rates diminish realized revenue while generating unrecoverable shipping and restocking costs.

Frequently asked questions

Can net profit margin be negative?

Yes. If operating expenses and interest obligations exceed gross profit, the business records a net loss, yielding a negative net profit margin.

How do I price an item to achieve a target margin?

Use the target price formula: Price = Cost ÷ (1 − Desired Margin). For example, to achieve a 40% margin on a $60 item: $60 ÷ (1 − 0.40) = $100.

What is the quickest way to expand operating margins?

The fastest lever is reviewing non-essential SaaS subscriptions, auditing ad channel return on ad spend (ROAS), and renegotiating payment processing fees.

Related Calculators & Guides

Explore related tools to analyze your financials from every angle:

  • Break-Even Calculator — Find how many units you must sell to cover costs. Add a target profit, see every step, and keep your numbers private.
  • Markup vs Margin Calculator — Convert markup to margin and back in one step. See why a 50% markup is only a 33% margin, with a full conversion table.
  • Percentage Change Calculator — Calculate percent increase, decrease or difference between two numbers, with Excel formulas and worked examples.

Deep Dive Guides:

Result
—
View Steps