CalcMaven
How to Calculate

How to Calculate Profit Margin: Gross, Operating & Net

By Alex B.|Updated December 3, 2025|7 min read

For informational purposes only, not financial advice. Full disclaimer

Profit margin tells you how much money a business keeps from each dollar of revenue. A 20% net profit margin means the business retains $0.20 of every $1.00 in sales after all expenses. There are three types of profit margin — gross, operating, and net — and each reveals something different about your business's financial health. Knowing how to calculate and interpret all three is essential for pricing, budgeting, and growth decisions.

Calculate All Three Margins

Enter your revenue and costs to instantly see gross, operating, and net profit margins for your business.

Try the Profit Margin Calculator

One of my early businesses had impressive revenue but margins so thin that a single bad quarter wiped out a full year of profit. I learned the hard way that top-line growth means nothing if your net margin cannot absorb a downturn. Now, margin analysis is the first thing I look at before investing in any venture.

Alex B.

Gross Profit Margin

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

COGS (Cost of Goods Sold) includes only the direct costs of producing your product or delivering your service — materials, direct labor, manufacturing overhead. It does not include rent, marketing, administrative salaries, or other operating expenses. Gross margin tells you how efficiently you produce or source your products relative to what you charge.

Example Calculation

Your e-commerce store has $400,000 in annual revenue. You spend $160,000 on products (wholesale cost, shipping to warehouse, packaging).

  1. Revenue: $400,000
  2. COGS: $160,000
  3. Gross Profit: $400,000 - $160,000 = $240,000
  4. Gross Margin: ($240,000 / $400,000) × 100 = 60%

Your gross margin is 60%. You keep $0.60 of every revenue dollar after production costs. This $240,000 must cover all other business expenses (rent, salaries, marketing, etc.).

Industry benchmarks for gross margin: software/SaaS companies typically see 70-85%, professional services run 50-70%, retail operates at 25-50%, restaurants achieve 60-65% on food, and manufacturing averages 25-40%. If your gross margin is significantly below your industry average, you are either pricing too low or your direct costs are too high.

Operating Profit Margin

Operating Margin = (Operating Income / Revenue) × 100

Operating income = Revenue - COGS - Operating Expenses. Operating expenses include rent, salaries, utilities, marketing, insurance, depreciation, and administrative costs. Operating margin shows how well management controls costs relative to revenue. It is the best indicator of day-to-day business efficiency because it excludes financing decisions (interest) and tax strategies.

Example Calculation

Same e-commerce store: $400,000 revenue, $160,000 COGS, $180,000 in operating expenses (rent: $36,000, salaries: $90,000, marketing: $30,000, other: $24,000).

  1. Gross Profit: $240,000
  2. Operating Expenses: $180,000
  3. Operating Income: $240,000 - $180,000 = $60,000
  4. Operating Margin: ($60,000 / $400,000) × 100 = 15%

Operating margin is 15%. From the initial 60% gross margin, operating expenses consumed 45 percentage points, leaving 15% as operating profit.

Net Profit Margin

Net Margin = (Net Income / Revenue) × 100

Net income = Operating Income - Interest - Taxes + Other Income. This is the true bottom line — what the business actually earns after everything is paid. Net margin is what determines whether owners and shareholders make money. A positive net margin means the business is profitable; negative means it is losing money.

Example Calculation

Continuing: $60,000 operating income, $5,000 interest expense on a business loan, $2,000 in other income, effective tax rate of 25%.

  1. Pre-tax income: $60,000 - $5,000 + $2,000 = $57,000
  2. Income tax: $57,000 × 25% = $14,250
  3. Net income: $57,000 - $14,250 = $42,750
  4. Net margin: ($42,750 / $400,000) × 100 = 10.7%

Net margin is 10.7%. From $400,000 in revenue, the business ultimately keeps $42,750 in profit. The three margins tell the full story: 60% gross → 15% operating → 10.7% net.

Margin vs. Markup: Don't Confuse Them

Margin and markup are calculated differently and confusing them leads to pricing errors. If a product costs $60 and sells for $100: Markup = ($40 / $60) × 100 = 66.7%. Margin = ($40 / $100) × 100 = 40%. Markup is the profit relative to cost; margin is the profit relative to selling price. Margin is always the smaller number.

Conversion formulas: Margin = Markup / (1 + Markup). Markup = Margin / (1 - Margin). A 100% markup equals a 50% margin. A 50% markup equals a 33.3% margin. A 33.3% markup equals a 25% margin. When setting prices, decide whether your target is a margin or a markup percentage, then apply the correct formula.

How to Improve Profit Margins

Raising Prices

A 10% price increase on a product with a 40% gross margin increases gross profit by 25% per unit (assuming volume stays constant). Many businesses underestimate their pricing power. If you lose fewer than 10% of customers from a 10% price increase, your total gross profit still goes up. Test price increases on a subset of products or customers before rolling out broadly.

Reducing COGS

Negotiate better terms with suppliers, buy in larger quantities for volume discounts, switch to lower-cost materials where quality allows, or optimize production processes. A 5% reduction in COGS directly improves gross margin. For the $400,000 business above, saving 5% on COGS ($8,000) drops straight to the bottom line, increasing net income by 19%.

Controlling Operating Expenses

Growing revenue on a relatively fixed cost base is the most powerful way to improve operating margin. Rent does not increase when you sell 20% more units. Many salaries are fixed regardless of sales volume. This "operating leverage" means each additional dollar of revenue above break-even contributes disproportionately to profit.

Track Margins Monthly

Calculate all three margins monthly and track the trend over quarters. A declining gross margin signals pricing or supply cost issues. A declining operating margin signals overhead creep. Catching these trends early lets you adjust before they become problems.

Frequently Asked Questions

What is a good profit margin for a small business?+
It varies by industry. Net margins of 5% are considered low but viable for retail. 10-15% is healthy for most service businesses. 15-25% is strong. Above 25% is exceptional. Compare to your specific industry benchmarks rather than a universal target.
What is the difference between gross margin and net margin?+
Gross margin only subtracts direct production costs (COGS) from revenue. Net margin subtracts ALL costs: COGS, operating expenses, interest, and taxes. A business can have a high gross margin (good product pricing) but low net margin (high overhead or debt costs).
How do I convert markup to margin?+
Margin = Markup / (1 + Markup). A 50% markup equals a 33.3% margin. A 100% markup equals a 50% margin. Markup is always a larger number than margin for the same transaction.
Why is operating margin important?+
Operating margin is the best measure of business management efficiency because it includes all operating costs but excludes financing decisions (interest) and tax strategies that management may not control. Two businesses in the same industry with different operating margins are being managed with different levels of efficiency.

Related Calculators

Disclaimer: This article is for informational purposes only and does not constitute financial advice. Consult a qualified financial advisor for decisions about your specific situation.

How to Calculate Profit Margin | CalcMaven