Launch sale: 30% off every template on Etsy — ends November 14 →

How to Calculate Profit Margin: Gross, Operating and Net

By the Fyscale team · October 30, 2026 · 7 min read

Calculator and P&L sheet showing how to calculate profit margin at gross, operating and net levels

It’s the end of a busy month. Orders went out every day, your sales dashboard looks great, and yet the bank balance barely moved. Where did all that money go?

Learning how to calculate profit margin answers that question. Revenue tells you how busy you were; margin tells you how much of each dollar you actually kept. This guide is for small business owners, makers and online sellers who want three simple numbers (gross, operating and net margin), one worked example from start to finish, and practical ways to improve each one. This isn’t math homework. It’s how you stop guessing and start steering.

Small business owner using a calculator at a desk with coffee to calculate profit margin Photo by Towfiqu barbhuiya on Unsplash

What is profit margin?

Every margin uses the same shape:

Profit margin = Profit ÷ Revenue × 100

The difference between gross, operating and net margin is simply which profit you put on top. If you’re not sure where these numbers live, start with how to read a profit and loss statement; each margin maps to a line on your P&L.

Margin Profit used Question it answers
Gross margin Revenue − cost of goods sold Are my products or services priced well above their direct cost?
Operating margin Gross profit − operating expenses Does the business itself make money before financing and taxes?
Net margin Everything left after all expenses What do I actually keep from each sales dollar?

Key idea: Revenue is what you earn; margin is what you keep, and only what you keep can pay you.

How to calculate profit margin step by step

Step 1: Gross profit margin

Gross profit = Revenue − Cost of goods sold (COGS) Gross margin = Gross profit ÷ Revenue × 100

COGS includes the direct costs of what you sell: materials, packaging, production, and for some service businesses, contractor labor tied directly to a project. It does not include rent, software or your marketing.

Per-product example: you sell a print for $25 and it costs $10 to produce and package. Gross profit is $15, and gross margin is $15 ÷ $25 = 60%.

Gross margin is the number to check when setting prices. If it’s thin, no amount of cost-cutting elsewhere will fix the business. Our guide on margin vs markup explains why a 50% markup is not a 50% margin, which is a very common pricing mistake.

Step 2: Operating profit margin

Operating profit = Gross profit − Operating expenses Operating margin = Operating profit ÷ Revenue × 100

Operating expenses are the costs of running the business that aren’t tied to a specific unit sold: rent, software, advertising, platform subscriptions, insurance, office supplies and payroll for non-production staff. Operating margin shows whether your overhead is in proportion to your sales.

Step 3: Net profit margin

Net profit = Operating profit − Interest − Other expenses − Taxes (if recorded at the business level) Net margin = Net profit ÷ Revenue × 100

Net margin is the bottom line: what’s left from each dollar of sales after everything. For sole proprietors, income tax is usually paid personally, so many owners calculate net margin before income tax and track tax set-asides separately. Just be consistent about which version you use.

Maker trimming a handmade ceramic piece in a pottery studio while thinking about product costs Photo by Raymond Petrik on Unsplash

Example: one year, three margins

Picture Rosa, a typical small online shop owner selling home goods. Here’s her year:

  • Revenue: $120,000
  • Cost of goods sold: $48,000
  • Operating expenses (software, ads, storage, insurance, workspace): $42,000
  • Interest on an equipment loan: $1,500
  • Other business taxes and fees: $4,500
Step Calculation Result
Gross profit $120,000 − $48,000 $72,000
Gross margin $72,000 ÷ $120,000 60%
Operating profit $72,000 − $42,000 $30,000
Operating margin $30,000 ÷ $120,000 25%
Net profit $30,000 − $1,500 − $4,500 $24,000
Net margin $24,000 ÷ $120,000 20%

So Rosa keeps 60 cents of every dollar after product costs, 25 cents after running the business, and 20 cents at the end. Each step down shows where the money goes: 40 cents to products, 35 cents to overhead, and 5 cents to interest and taxes. Now she knows exactly which lever to pull.

What is a “good” profit margin?

It depends heavily on your industry and business model, so be wary of any single benchmark. Digital products and services often have high gross margins because each extra sale costs little, while resellers and food businesses usually run on thinner gross margins and need volume. The most useful comparison is your own margin over time:

  • Is gross margin stable as you grow, or slipping because material costs rose?
  • Is operating margin improving as revenue grows faster than overhead?
  • Did net margin drop because of a new loan or one-off expense?

How to improve each margin

Gross margin: raise prices on your best sellers in small steps and watch conversion, renegotiate or bulk-buy materials and packaging, reduce waste, and reprice products whose margin is far below the rest.

Operating margin: audit subscriptions and cancel tools you don’t use, measure the return on each marketing channel and cut the weakest, and keep fixed costs flat while revenue grows.

Net margin: pay down high-interest debt, and plan taxes ahead with a tax professional instead of reacting at filing time.

Knowing your margins also tells you how many sales you need to cover costs. Once you have gross margin, you can find your break-even point in a couple of minutes.

Common mistakes to avoid

  1. Mixing up margin and markup. Margin divides by price; markup divides by cost.
  2. Leaving platform fees out. Marketplace and payment fees are real costs; put them somewhere consistent.
  3. Forgetting your own time. If you make the product, a margin that ignores your labor can look healthier than it is.
  4. Comparing months on different accounting methods. Cash and accrual books can show very different margins for the same month.

Your 15-minute action plan

  • [ ] Pull last month’s revenue, COGS and operating expenses from your books
  • [ ] Calculate gross margin: (Revenue − COGS) ÷ Revenue
  • [ ] Calculate operating margin: (Gross profit − Operating expenses) ÷ Revenue
  • [ ] Calculate net margin: Net profit ÷ Revenue
  • [ ] Write down the one margin that surprised you most
  • [ ] Pick one small fix for that margin and put it on this week’s calendar

FAQ

What is the formula for profit margin?

Profit margin = Profit ÷ Revenue × 100. Use gross profit for gross margin, operating profit for operating margin, and net profit for net margin.

Is a 20% profit margin good for a small business?

A 20% net margin is healthy for many small businesses, but “good” varies by industry and model. The more useful test is whether your margin is stable or rising compared with your own past months.

What’s the difference between profit margin and markup?

Margin divides profit by the selling price, while markup divides profit by cost. A product that costs $10 and sells for $15 has a 50% markup but only a 33% margin.

The bottom line

You don’t need an accounting degree to know your margins. You need three formulas, last month’s numbers and fifteen quiet minutes. Calculate them once this week, then again next month, and you’ll start to see your business clearly: what’s working, what’s leaking, and where a small change pays off.

If you’d rather have these numbers calculate themselves each month, the Fyscale profit and loss template turns revenue, COGS and expenses into gross, operating and net margin automatically.

This article is general information for US small businesses, not tax, legal or accounting advice. Check current IRS guidance or ask a qualified professional about your situation.