Blog

Profitability

How to Calculate Profit Margin: Gross, Operating and Net (With Examples)

November 17, 2026 8 min readBy Moshe
Profit margin formulas for gross, operating and net margin

Quick answer

Profit margin is profit divided by revenue, shown as a percentage. Gross margin = (Revenue - Cost of goods sold) / Revenue. Operating margin = Operating profit / Revenue. Net margin = Net income / Revenue. Example: $200,000 in revenue and $120,000 in direct costs gives a 40% gross margin. If operating expenses are $50,000, operating margin is 15%. Margin is not markup: a 50% markup on cost is only a 33% margin.

The three margins

MarginFormulaWhat it tells you
Gross margin(Revenue - COGS) / RevenueWhether each sale or job is priced to cover its direct costs
Operating margin(Gross profit - Operating expenses) / RevenueWhether the business as a whole is profitable from operations
Net marginNet income / RevenueWhat you keep after everything, including interest and taxes

Cost of goods sold (COGS) means the direct costs of what you sold: materials, inventory, direct labor, subcontractors. See our cost of goods sold glossary entry if you are unsure what belongs there.

A worked example

A small landscaping company has a year with these numbers:

LineAmount
Revenue$200,000
Direct costs (crew wages, plants, mulch, fuel for jobs)$120,000
Gross profit$80,000
Operating expenses (office, insurance, software, marketing, owner salary)$50,000
Operating profit$30,000
Interest and income taxes$8,000
Net income$22,000
  • Gross margin: $80,000 / $200,000 = 40%
  • Operating margin: $30,000 / $200,000 = 15%
  • Net margin: $22,000 / $200,000 = 11%

Margin vs. markup

Markup is profit divided by cost. Margin is profit divided by price. Mixing them up is one of the most common pricing mistakes. If a job costs you $1,000 and you add a 50% markup, you charge $1,500. Your profit is $500, which is a 33% margin, not 50%.

Markup on costResulting margin
20%16.7%
25%20%
33.3%25%
50%33.3%
66.7%40%
100%50%

To hit a target margin, divide cost by (1 - target margin). For a 40% margin on a $1,000 cost: $1,000 / 0.60 = $1,667.

What is a good profit margin?

It depends heavily on the industry. Restaurants run on thin net margins and watch prime cost closely; software and professional services often carry much higher gross margins; contractors live and die by job-level gross margin. Compare yourself to your own trend first, then to businesses like yours. A margin that is shrinking month after month matters more than any benchmark.

Why margins look wrong in most small-business books

  • Direct costs recorded as overhead (or the reverse), which distorts gross margin.
  • Inventory expensed when purchased instead of when sold.
  • Owner pay missing from expenses in one month and lumped in another.
  • Revenue recorded when cash arrives, not when the work was done, on jobs that span months.

Clean, consistently categorized books fix all four. Pair this guide with our break-even calculator and how to read a P&L.

Frequently asked questions

What is the formula for profit margin?

Profit margin = Profit / Revenue x 100. Use gross profit for gross margin, operating profit for operating margin, and net income for net margin.

What is the difference between margin and markup?

Margin is profit as a share of the selling price; markup is profit as a share of cost. A 50% markup equals a 33.3% margin.

Should owner salary be included when calculating margin?

Yes for operating and net margin. Leaving owner pay out makes the business look more profitable than it is and makes it harder to value or sell.

How often should I check my margins?

Monthly, once your books are closed. Watching the trend month to month catches pricing and cost problems early.

Written by

Moshe

Senior Account Manager, Mispar

Moshe is a Senior Account Manager at Mispar who works directly with small business owners and freelancers to keep their books clean, reconciled, and tax-ready every month.

More about Mispar

Ready for clean, tax-ready books?

Book a free consultation with a Mispar bookkeeping expert. We’ll review your books, show you exactly what we’d deliver, and give you a flat monthly price — no pressure.