Cash Flow Frog logo
July 16, 2026

How to Calculate Profit Margin: Gross, Operating, and Net

Ariel GottfeldAriel Gottfeld

Profit margin is the share of revenue a business keeps as profit, written as a percentage. There are three you'll use most: gross margin (after the direct cost of sales), operating margin (after running costs), and net margin (after everything, including interest and tax). The formula is the same each time: divide a profit figure by revenue and multiply by 100.

How do you calculate profit margin?

Profit margin = profit ÷ revenue × 100. Which profit you use sets which margin you get. The whole calculation runs off one small income statement, so here is the one we'll use for all three margins:

  • Revenue: $500,000
  • Cost of goods sold: $300,000. Gross profit: $200,000
  • Operating expenses: $120,000. Operating profit: $80,000
  • Interest and tax: $20,000. Net profit: $60,000

Gross profit margin

Gross profit margin is gross profit divided by revenue, times 100. It shows what's left after the direct cost of the goods or services you sold, before the cost of running the business.

$200,000 ÷ $500,000 × 100 = 40%

A gross margin of 40% means every dollar of sales leaves 40 cents to cover overhead, interest, tax, and profit. If this number is thin, no amount of cost-cutting further down the statement will save the business model. The fix sits in pricing or in the cost of what you sell.

Operating profit margin

Operating profit margin is operating profit divided by revenue, times 100. It measures profit from core operations, before interest and tax.

$80,000 ÷ $500,000 × 100 = 16%

This is the number that shows whether the business itself is efficient. It ignores how the company is financed and what tax it pays, so it's the cleanest way to compare your operation against a competitor's, or against your own last year.

Net profit margin

Net profit margin is net profit divided by revenue, times 100. It is the bottom line after every cost.

$60,000 ÷ $500,000 × 100 = 12%

A net margin of 12% means the business keeps 12 cents of every revenue dollar. This is the figure owners and lenders care about most, because it's what's actually available to distribute, reinvest, or hold as a buffer.

Gross vs operating vs net margin: what's the difference?

Each margin strips out more cost than the one before it. Gross margin judges your pricing and production. Operating margin judges how well you run the business day to day. Net margin is what reaches the owner.

The gaps between them tell you where the money goes. In the example above, gross margin is 40% and operating margin is 16%, so operating costs consume 24 points of margin. That's a business with real overhead. If the gap between operating and net margin is wide instead, the pressure is coming from debt service or tax, not from how the business runs.

Reading the three together is more useful than any one alone. A company can hold a strong gross margin while its net margin erodes for two straight years, and the gap analysis will show you exactly which layer is doing the eroding.

Profit margin vs markup: don't mix them up

Markup is calculated on cost. Margin is calculated on revenue. A product that costs $60 and sells for $100 has a 67% markup ($40 ÷ $60) but a 40% margin ($40 ÷ $100). Pricing from a target margin as if it were a markup is one of the most common ways small businesses underprice. If you want a 40% margin, divide cost by 0.6 rather than multiplying it by 1.4.

What is a good profit margin?

There's no single number. Your industry sets it. A grocery business can be healthy at a 2% net margin because volume is enormous, while a software business at 2% would be in trouble. Restaurants typically run net margins in the low single digits; professional services firms often run 15% to 25%; software companies can run higher still once they reach scale.

The more reliable benchmarks are your own history and your closest peers. Compare against your own past quarters and against similar businesses in your sector. Then watch the direction of travel: a rising net margin with flat revenue means you're getting more efficient. A falling net margin with rising revenue means growth is costing more than it brings in, and that pattern is worth catching early.

How to improve your profit margin

Match the fix to the layer that's leaking: pricing and cost of goods for gross margin, overhead for operating margin, debt and tax structure for net. We cover the specific levers in our guide to how to improve profit margin.

Margin is not cash in the bank

A healthy margin counts profit when you invoice, not when you get paid. If customers take 60 days, you can post a strong margin and still be short on cash. Track margin next to a cash flow forecast so you see both the model and the month. Cash Flow Frog builds that forecast from your accounting software and updates it daily, so the margin story and the bank balance stay in the same view.

For the wider picture on measuring whether a business makes money, see our guides to profitability analysis and economic profit.

0/5 (0 votes)

Trusted by thousands of business owners

Start Free Trial Now