Calculate Profit Margin

How to Calculate Profit Margin

A $500,000 revenue year sounds impressive — until you realize only $15,000 of it stayed in your pocket. That is a 3% profit margin, and it means you worked all year to keep three cents on every dollar.

Profit margin is the single number that separates businesses that are growing from businesses that are slowly dying. It tells you how much money you actually keep from every sale after costs are paid. And yet, most business owners calculate it wrong — or worse, never calculate it at all.

This guide shows you exactly how to calculate profit margin using three formulas: gross, operating, and net. Each formula answers a different question about your money, and together they give you a complete picture of your financial health. We have built and tested pricing models for tool-based businesses and have seen firsthand how a 5-point margin improvement changes everything — from cash reserves to hiring timelines to sleep quality.

By the end, you will know which formula to use, when to use it, and what the result actually means for your business. You will also get a free profit margin calculator that does the math instantly.

What Is Profit Margin (And Why Most People Misunderstand It)

Profit margin is the percentage of revenue that remains as profit after costs are subtracted. It is calculated by dividing profit by revenue and multiplying by 100. A 25% profit margin means you keep $0.25 from every dollar of sales.

Here is the part that trips people up: there are three different profit margins, and each one subtracts a different set of costs. Using the wrong one gives you a dangerously incomplete picture.

Think of it like weighing yourself. Stepping on a scale fully clothed, wearing boots and a backpack gives you a number — but it does not tell you your actual body weight. Gross margin is you in underwear. Operating margin removes the boots. Net margin strips everything away and gives you the real number.

The confusion gets expensive. A restaurant owner who sees a 65% gross margin on food thinks the business is thriving. But after rent, labor, insurance, and taxes, the net margin might be 4%. That 65% number was real, but it was answering the wrong question.

The only margin that tells you how much money your business actually keeps is net profit margin. The other two are diagnostic tools that help you figure out where the money is leaking.

How to Calculate Gross Profit Margin

Gross profit margin measures how much revenue remains after subtracting the direct cost of producing what you sell. It is the most basic profitability metric and the starting point for all margin analysis.

The Formula

Gross Profit Margin = ((Revenue − Cost of Goods Sold) ÷ Revenue) × 100

Cost of goods sold (COGS) includes only the costs directly tied to making your product or delivering your service. Raw materials, manufacturing labor, packaging, and shipping to your warehouse — those are COGS. Rent, marketing, and your accountant’s fee are not.

Worked Example — Online Retail Store

You sell handmade candles. Last month:

  • Revenue: $12,000
  • COGS (wax, wicks, jars, labels, direct labor): $4,800

Gross Profit = $12,000 − $4,800 = $7,200

Gross Profit Margin = ($7,200 ÷ $12,000) × 100 = 60%

That 60% means for every dollar of candle revenue, you keep $0.60 after the direct cost of making the candle. The remaining $0.60 goes toward rent, marketing, wages, taxes, and — hopefully — profit.

Worked Example — Freelance Consultant

You bill $15,000 per month. Your only direct cost is $2,000 for a subcontractor who handles research.

Gross Profit Margin = (($15,000 − $2,000) ÷ $15,000) × 100 = 86.7%

Service businesses typically have higher gross margins because there is no physical product cost. But do not celebrate too quickly — operating expenses eat into that number fast.

What gross margin tells you: Are your products priced high enough relative to their production cost? If gross margin is shrinking over time, either your costs are rising or you are discounting too aggressively.

Quick benchmark: According to NYU Stern’s January 2025 analysis of U.S. industries, average gross margins range from about 25% in grocery retail to over 80% in software. Knowing your industry’s average tells you if your pricing and production are competitive.

How to Calculate Operating Profit Margin

Operating profit margin measures how much revenue remains after subtracting both direct costs and the day-to-day expenses of running the business. It strips away rent, salaries, utilities, marketing, insurance, and depreciation — everything except taxes and interest on debt.

The Formula

Operating Profit Margin = ((Revenue − COGS − Operating Expenses) ÷ Revenue) × 100

Operating expenses (also called SG&A — selling, general, and administrative expenses) include the costs you pay regardless of how much you produce: office rent, employee salaries, software subscriptions, advertising, insurance, and equipment depreciation.

Worked Example — Candle Business Continued

Same $12,000 revenue month. Same $4,800 COGS. But now we add operating expenses:

  • Rent: $1,200
  • Marketing (Etsy ads, Instagram): $600
  • Software (Shopify, accounting): $200
  • Part-time employee: $1,500
  • Insurance: $150

Total operating expenses: $3,650

Operating Profit = $12,000 − $4,800 − $3,650 = $3,550

Operating Profit Margin = ($3,550 ÷ $12,000) × 100 = 29.6%

That gross margin was 60%. After operating costs, you are at 29.6%. The gap between gross and operating margin reveals your overhead burden — and it is the first place to look when profits feel thinner than expected.

What operating margin tells you: How efficiently are you running the actual business? Two companies can have identical gross margins, but the one with lower overhead will have a higher operating margin — and more money available for growth, debt repayment, or the owner’s pocket.

The number most investors care about: When someone asks about “margins” without specifying which type, they usually mean operating margin. It is the clearest measure of whether the core business is healthy.

How to Calculate Net Profit Margin

Net profit margin is the final measure of profitability — the percentage of revenue that remains after every single cost has been paid. COGS, operating expenses, taxes, interest on loans, and one-time charges are all subtracted. What is left is the money the business actually earns.

The Formula

Net Profit Margin = ((Revenue − All Expenses) ÷ Revenue) × 100

Or equivalently: Net Profit Margin = (Net Income ÷ Revenue) × 100

“All expenses” means COGS + operating expenses + interest payments + taxes + any other costs (legal settlements, depreciation, amortization, one-time charges).

Worked Example — Candle Business Continued

Revenue: $12,000 COGS: $4,800 Operating Expenses: $3,650 Taxes (estimated quarterly): $700 Loan interest: $150

Net Profit = $12,000 − $4,800 − $3,650 − $700 − $150 = $2,700

Net Profit Margin = ($2,700 ÷ $12,000) × 100 = 22.5%

Started at 60% gross. Dropped to 29.6% operating. Landed at 22.5% net. The candle business keeps $0.225 from every dollar earned.

That 22.5% is excellent — well above the average for retail businesses. But notice the journey: 60% became 22.5%. Almost two-thirds of the gross margin was consumed by overhead and taxes.

What net margin tells you: Is the entire business model sustainable? Net margin is the number that determines whether the owner can pay themselves, reinvest in growth, and survive a slow quarter. Everything else is a diagnostic detail.

All Three Margins Side by Side: A Real-World Comparison

Seeing all three margins for the same business reveals exactly where your money goes. Here is a comparison for three different business types based on typical industry ranges:

MetricCandle Shop (Retail)Marketing Agency (Service)SaaS Company (Software)
Revenue$12,000$40,000$25,000
COGS$4,800 (40%)$8,000 (20%)$2,500 (10%)
Gross Margin60%80%90%
Operating Expenses$3,650$22,000$18,000
Operating Margin29.6%25%18%
Taxes + Interest$850$3,200$1,500
Net Margin22.5%17%12%

Notice something counterintuitive? The SaaS company has the highest gross margin (90%) but the lowest net margin (12%). That is because SaaS businesses spend heavily on customer acquisition, development, and support. High gross margin does not automatically mean high net margin — and this is the misconception that catches the most people off guard.

The gap between each margin level tells a story. A large gap between gross and operating margin means high overhead. A large gap between operating and net margin means heavy debt service or tax burden. A small gap at every level means a lean, efficiently run operation.

The Profit Margin Mistake That Costs Thousands

There is one error that shows up in nearly every small business we have worked with: confusing profit margin with markup.

A product costs $40. You sell it for $60. You made $20 profit. So your margin is… 50%? No.

Markup is $20 divided by $40 (the cost) = 50%. Margin is $20 divided by $60 (the selling price) = 33.3%.

If a financial plan calls for “40% margins” and you apply a 40% markup instead, every item is underpriced. On a business doing $200,000 in annual sales, this single confusion can cost over $20,000 in lost profit per year.

Use our markup vs margin calculator to see both numbers side by side and eliminate this mistake permanently.

The rule: Markup is always based on cost. Margin is always based on revenue. Margin is always the smaller number.

What Is a Good Profit Margin? Industry Benchmarks for 2026

There is no universal “good” profit margin. What is excellent in grocery retail would be disastrous in software. Here are net profit margin benchmarks drawn from NYU Stern’s January 2025 industry data:

IndustryAvg Net Profit Margin
Software (Entertainment)~27%
Financial Services (Non-bank)~22%
Real Estate (Development)~17%
Healthcare Products~12%
Restaurant/Dining~10.6%
General Retail~4.6%
Grocery/Food Retail~1.5%
Green/Renewable Energy~-19%

Practical benchmarks:

  • Above 20% net margin: Exceptional. Strong pricing power, low costs, or a scalable model.
  • 10% to 20%: Healthy. The business generates real profit after all expenses.
  • 5% to 10%: Acceptable. Common in competitive, volume-driven industries.
  • Below 5%: Thin. One bad month or unexpected expense could push you into losses.

The most useful comparison is against yourself. Is your margin trending up or down over the past 12 months? A business improving from 8% to 12% margin year over year is in a stronger position than one stuck at 15%.

Five Practical Ways to Improve Your Profit Margin

Knowing your margin is step one. Improving it is where the money is made.

1. Raise prices by 5% to 10%.

Most small businesses underprice. A 5% price increase on a business with a 10% net margin increases profit by roughly 50%. Test it on your best-selling products first. Track customer response for 30 days. You may be surprised how little pushback you get.

When Starbucks raised prices across its menu in 2022 and 2023, the company’s operating margin actually improved — the volume decrease was smaller than the per-unit profit increase.

2. Cut your three largest unnecessary expenses.

Audit every recurring charge. Cancel unused software subscriptions, renegotiate your lease or insurance, and eliminate services you are paying for but not using. The average small business wastes 10% to 15% of operating budget on zombie expenses that no longer add value.

3. Renegotiate supplier costs.

If you have been buying from the same supplier for more than a year, ask for a better rate. Get competing quotes. Even a 3% reduction in COGS, applied across your entire product line, drops straight to the bottom line.

4. Eliminate low-margin products.

Not everything you sell is equally profitable. Identify products or services with margins below your average and either raise their prices or discontinue them. Redirecting marketing spend from a 10% margin product to a 40% margin product generates more profit from the same effort.

5. Track margins monthly, not annually.

Businesses that review margins monthly catch problems 11 months earlier than those who only check at year-end. Set a monthly calendar reminder. Use our profit margin calculator to run the numbers in 30 seconds.

Here is the question worth asking yourself: If you improved your net margin by just 3 percentage points this year, how much extra cash would that put in your pocket? Multiply your annual revenue by 0.03. That number is the prize.

How to Calculate Profit Margin in 30 Seconds

If you want to skip the manual math, use our free profit margin calculator. Enter your revenue and costs, and it instantly shows your gross, operating, and net margin — plus markup percentage and a visual breakdown of where every dollar goes.

For the manual method, here is the quick-reference cheat sheet:

What You WantFormulaExample
Gross Profit Margin(Revenue − COGS) ÷ Revenue × 100($100K − $60K) ÷ $100K × 100 = 40%
Operating Profit Margin(Revenue − COGS − OpEx) ÷ Revenue × 100($100K − $60K − $20K) ÷ $100K × 100 = 20%
Net Profit MarginNet Income ÷ Revenue × 100$12K ÷ $100K × 100 = 12%

Bookmark this table. You will use it more than you expect.

Frequently Asked Questions

Q: How do you calculate profit margin from cost and selling price?

A: Subtract the cost from the selling price to get profit. Then divide profit by the selling price (not the cost) and multiply by 100. A product costing $30 and selling for $50 has a margin of ($20 ÷ $50) × 100 = 40%. Dividing by cost instead gives you markup, not margin — a common and costly mistake.

Q: What is the difference between gross margin and net margin?

A: Gross margin only subtracts the direct cost of producing your product (materials, manufacturing, direct labor). Net margin subtracts everything — operating expenses, taxes, interest, and one-time costs. Gross margin tells you if your products are priced right. Net margin tells you if the entire business is profitable.

Q: Is a 20% profit margin good?

A: A 20% net profit margin is excellent in most industries. The average small business operates between 7% and 10%. Service businesses and software companies tend to have higher margins (15% to 25%), while retail and restaurants typically run lower (2% to 10%). Always compare to your specific industry average.

Q: Why is my gross margin high but my net margin low?

A: This means your overhead is the problem, not your product pricing. The gap between gross and net margin represents operating expenses (rent, salaries, marketing) plus taxes and debt payments. Audit your operating costs — that is where the leak is.

Q: How often should I calculate profit margin?

A: Monthly at minimum. Tracking margins monthly lets you spot trends, seasonal patterns, and problems before they become crises. Use a spreadsheet or our free calculator and spend 5 minutes at the end of each month running the numbers.

Q: Can profit margin be negative?

A: Yes. A negative margin means total costs exceed total revenue — the business is losing money on every dollar of sales. This can happen temporarily during heavy investment periods (like a startup’s first year), but sustained negative margins require immediate action: either increase prices, cut costs, or fundamentally rethink the business model.

Q: What is the difference between profit margin and markup?

A: Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost. A product costing $40 sold for $60 has a 33.3% margin but a 50% markup. Our markup vs margin calculator shows both numbers simultaneously.

Your Next Step

You now have three formulas and the knowledge to use each one correctly. Here is what to do right now:

  1. Open our free profit margin calculator.
  2. Enter last month’s revenue and costs.
  3. Write down your gross, operating, and net margin.
  4. Compare to the industry benchmarks above.
  5. Pick one improvement strategy from the list of five and implement it this week.

Knowing your profit margin is not a one-time exercise. It is a monthly habit that separates businesses that grow from businesses that guess.

Break-Even Calculator — Find out how many sales cover your costs.

Markup Calculator — Calculate the right markup for your products.

ROI Calculator — Measure return on any business investment.

Leave a Comment

Scroll to Top