SendNow Logo

Free Profit Margin Calculator for Gross, Operating and Net Margin

Last updated 2026-11-30

Quick answer: Profit margin is profit divided by revenue, shown as a percentage. Gross margin = (Revenue - COGS) / Revenue. Operating margin = Operating income / Revenue. Net margin = Net income / Revenue. Type your revenue and costs below to see all three, plus markup, instantly. Or enter a cost and a target margin to get the price you need.

The calculator starts with an example (a coffee roaster with $480,000 in sales). Replace the numbers with your own; nothing you type leaves your browser.

Table of contents

How to use this profit margin calculator

The tool has two parts. Use whichever matches your question.

Margins from your numbers answers "how profitable am I?"

  1. Revenue: total sales for the period, after refunds and discounts. Leave out sales tax you collect for the government.
  2. Cost of goods sold (COGS): the direct cost of what you sold. Materials, products bought for resale, inbound shipping, packaging, direct labor and, for software, hosting and support.
  3. Operating expenses (optional): everything else it takes to run the business. Rent, marketing, salaries outside production, software subscriptions, insurance.
  4. Interest and taxes (optional): loan interest and income taxes for the same period.

With only revenue and COGS you get gross margin and markup. Add operating expenses to unlock operating margin and net margin.

Price for a target margin answers "what should I charge?" Enter the cost of one unit and the margin you want to keep. The tool returns the selling price, the profit per unit and the markup that price represents.

A few input tips:

  • Use the same period for every field. Mixing a monthly revenue figure with annual costs gives nonsense.
  • Numbers can include commas or a dollar sign; the calculator strips them.
  • A margin shown in red is negative: costs are larger than revenue at that level.

What your results are telling you

Read the three margins as a staircase. The size of each step down shows where your money goes.

  • A big drop from gross to operating margin means overhead is heavy relative to sales. Look at rent, headcount outside production and marketing efficiency before touching prices.
  • A low gross margin means the product itself is the problem: prices are too low, costs are too high or the mix leans on weak products. Cutting overhead rarely fixes it.
  • A big drop from operating to net margin usually points to debt. Interest on loans is eating profit the business earned.
  • A markup far above your margin is normal. Markup is always the larger number because it divides the same profit by a smaller base (cost instead of price).

Run the calculator for the last four quarters, not just the latest one. The direction of each margin is often more useful than the level.

Profit margin formulas

There are three profit margins, one for each level of the income statement, plus markup, which is a pricing measure rather than a margin.

Gross profit margin = (Revenue - COGS) / Revenue x 100

Operating margin = (Revenue - COGS - Operating expenses) / Revenue x 100

Net profit margin = (Revenue - All costs, interest and taxes) / Revenue x 100

Markup = (Revenue - COGS) / COGS x 100

MeasureSubtractsAnswersWho watches it most
Gross marginCOGS onlyIs the product itself profitable?Founders, pricing and product teams
Operating marginCOGS + operating expensesIs the core business profitable?Operators, lenders, acquirers
Net marginEverything, including interest and taxesWhat is left for owners?Owners, shareholders, tax planning
MarkupNothing; divides profit by costHow far above cost are prices set?Retail buyers, quoting and estimating

Gross margin is always the largest of the three margins, and net margin the smallest, because each step down subtracts more costs. If you want the deeper story behind the first line, our guide to gross margin breaks down what belongs in COGS for products, services and SaaS.

Worked examples for three kinds of business

All three examples below are illustrative. Run them through the calculator above to see the same results.

Example 1: an online store (one month)

LineAmount
Revenue$85,000
COGS (products, inbound shipping, packaging)$38,250
Operating expenses (ads, apps, salaries)$27,200
Interest and taxes$4,100
  • Gross profit: $85,000 - $38,250 = $46,750, so gross margin = 55.0%
  • Operating income: $46,750 - $27,200 = $19,550, so operating margin = 23.0%
  • Net profit: $19,550 - $4,100 = $15,450, so net margin = 18.2%
  • Markup: $46,750 / $38,250 = 122.2%

The store more than doubles its product cost on average, yet keeps a little under a fifth of revenue as profit. Ad spend is the swing factor: a month with $10,000 more ads would cut operating margin to about 11.2%.

Example 2: a design agency (one year)

LineAmount
Revenue$240,000
Cost of services (designers and contractors on client work)$132,000
Operating expenses (owner's admin time, tools, rent, marketing)$72,000
Interest and taxes$9,000
  • Gross margin: ($240,000 - $132,000) / $240,000 = 45.0%
  • Operating margin: $36,000 / $240,000 = 15.0%
  • Net margin: $27,000 / $240,000 = 11.25%
  • Markup on delivery cost: $108,000 / $132,000 = 81.8%

For service businesses "COGS" means the people doing billable work. The fastest margin lever is utilization: the same salaries spread over more billable hours.

Example 3: a growth-stage SaaS company (one year)

LineAmount
Revenue$1,500,000
COGS (hosting, AI inference, support)$330,000
Operating expenses (R&D, sales, marketing, admin)$1,425,000
Interest and taxes$15,000
  • Gross margin: $1,170,000 / $1,500,000 = 78.0%
  • Operating margin: -$255,000 / $1,500,000 = -17.0%
  • Net margin: -$270,000 / $1,500,000 = -18.0%

This is a common shape for venture-backed software: a strong product margin and a negative bottom line because the company is spending ahead of revenue on growth. Investors usually accept the loss if gross margin is high and stable. To see how the walk from revenue to profit works line by line, read revenue vs profit.

Margin vs markup: the conversion table

Margin and markup describe the same profit from two angles. Margin compares it with the price; markup compares it with the cost. The table converts one into the other.

Gross marginEquivalent markupPrice for a $10 costProfit on that price
10%11.1%$11.11$1.11
20%25.0%$12.50$2.50
25%33.3%$13.33$3.33
30%42.9%$14.29$4.29
33.3%50.0%$15.00$5.00
40%66.7%$16.67$6.67
50%100.0%$20.00$10.00
60%150.0%$25.00$15.00
70%233.3%$33.33$23.33
75%300.0%$40.00$30.00
80%400.0%$50.00$40.00

Conversion formulas, with margin and markup written as decimals:

Markup = Margin / (1 - Margin)

Margin = Markup / (1 + Markup)

So a "keystone" 100% markup (doubling the cost) gives a 50% margin, and a 25% markup gives only a 20% margin.

How to price for a target margin

Working backward from a margin target is where most pricing mistakes happen. The correct formula:

Price = Cost / (1 - Target margin)

Worked examples:

Unit costTarget marginCorrect priceWrong price (cost x (1 + margin))Margin the wrong price actually gives
$12.5030%$17.86$16.2523.1%
$12.5040%$20.83$17.5028.6%
$45.0050%$90.00$67.5033.3%
$200.0025%$266.67$250.0020.0%

The wrong method adds a markup equal to the margin you wanted, and you end up with less than you planned on every unit. The gap widens as the target rises.

Another trap is dividing cost by the margin itself instead of by 1 minus the margin. $12.50 / 0.30 = $41.67, which is the price for a 70% margin, not a 30% one.

Why discounts hit margin so hard

A discount comes entirely out of profit. Take a product with a $50 price and a $30 cost (40% margin):

DiscountNew priceProfit per unitNew marginExtra units needed to earn the same gross profit
0%$50.00$20.0040.0%none
10%$45.00$15.0033.3%+33%
20%$40.00$10.0025.0%+100%
30%$35.00$5.0014.3%+300%

Extra volume needed = Margin / (Margin - Discount) - 1

A 20% off sale has to double unit sales just to stand still on gross profit. Run your promotions through that formula before launching them.

šŸ’” SendNow tip: If you send price quotes or proposals, a tracked link shows when the client opened it and how long they spent on the pricing page, so you know when to follow up instead of discounting blindly. Start free

What is a good profit margin? Benchmarks by industry

A "good" margin depends entirely on the industry. The figures below are averages for US public companies, compiled by Aswath Damodaran at NYU Stern.

Industry (US)Gross marginOperating margin (pre-tax, unadjusted)Net margin
Software (system and application)71.72%32.98%25.49%
Hotel and gaming60.85%19.39%10.38%
Apparel56.88%9.11%3.85%
Business and consumer services33.38%12.27%7.03%
Retail (general)33.18%6.80%5.61%
Restaurant and dining32.24%15.79%9.37%
Retail (grocery and food)26.31%2.29%1.32%
Construction supplies25.52%15.23%10.78%
Trucking21.19%6.89%3.79%
Total US market37.76%12.82%9.74%

Source: Damodaran Online, Margins by Sector (US), data last updated January 2026. Verified on November 30, 2026.

How to read your result against the table:

  • Compare within your industry. A 2% net margin is normal for grocery and alarming for software.
  • Expect to sit below public-company averages if you are small. Large companies buy in bulk and spread overhead across far more revenue.
  • Look at the gap between gross and net. Apparel's average gross margin is high, but its net margin is under 4%: marketing, stores and markdowns eat most of the gross profit.
  • Watch your trend. Three quarters of falling gross margin is a warning even if you are still above the industry average.

Common profit margin mistakes

  1. Confusing margin and markup. The most expensive mistake on this page. Pricing with a 30% markup when you meant a 30% margin quietly costs you about seven points of margin on every sale.
  2. Averaging percentages. If one product makes 60% on $10,000 of sales and another makes 20% on $90,000, your blended margin is 24%, not 40%. Always divide total profit by total revenue.
  3. Leaving costs out of COGS. Inbound shipping, packaging, payment fees and the labor that delivers the product all belong in cost. Leaving them out flatters gross margin.
  4. Using gross sales. Refunds, returns and discounts must come off revenue first.
  5. Mixing periods. Annual software bills set against one month of sales distort every margin.
  6. Counting sales tax as revenue. Tax you collect on behalf of the government is not your money and does not belong in revenue.
  7. Judging margin in isolation. A lower-margin product that sells ten times the volume can produce more gross profit dollars. Check both the percentage and the dollars.

How to calculate profit margin in Excel or Google Sheets

Set up one row per period or per product with these columns: A = name, B = revenue, C = COGS, D = operating expenses, E = interest and taxes. Then:

ResultFormula (row 2)
Gross profit=B2-C2
Gross margin=(B2-C2)/B2
Operating margin=(B2-C2-D2)/B2
Net margin=(B2-C2-D2-E2)/B2
Markup=(B2-C2)/C2
Price for a target margin in F2=C2/(1-F2)
Blended margin across all rows=(SUM(B:B)-SUM(C:C))/SUM(B:B)

Format the margin cells as percentages rather than multiplying by 100. To avoid a divide-by-zero error on empty rows, wrap formulas like this: =IF(B2=0,"",(B2-C2)/B2).

Tools and resources

  • Accounting software: QuickBooks, Xero and FreshBooks produce a profit and loss report with gross profit and net income you can feed straight into this calculator.
  • Spreadsheets: Excel or Google Sheets with the formulas above for product-by-product margins.
  • Benchmarks: Damodaran Online margins by sector, updated every January.
  • Related calculator: use the ROI calculator to check whether an investment, such as new equipment or an ad campaign, pays back.
  • Deeper reading: our guide to gross margin covers COGS by business type and seven ways to raise it.

FAQ

What is a good profit margin?

It depends on your industry. US public company data compiled by NYU Stern's Aswath Damodaran (January 2026) shows an all-market average of about 37.8% gross margin, 12.8% operating margin and 9.7% net margin. Grocery stores average about 1.3% net, while system and application software averages about 25.5% net.

What is the difference between margin and markup?

Margin is profit divided by the selling price. Markup is profit divided by the cost. A product that costs $60 and sells for $100 has a 40% margin and a 66.7% markup. Margin is always the smaller number and can never reach 100%.

How do I calculate the price for a 30% margin?

Divide the cost by 1 minus the margin. For a 30% margin on a $12.50 cost, the price is $12.50 / 0.70 = $17.86. Do not multiply the cost by 1.30: that adds a 30% markup and gives only a 23.1% margin.

What is the difference between gross and net profit margin?

Gross margin only subtracts the direct cost of what you sold (COGS). Net margin subtracts everything: COGS, operating expenses, interest and taxes. Gross margin tells you whether the product is profitable; net margin tells you whether the business is.

Can profit margin be more than 100%?

No. Margin is profit divided by revenue, and profit can never be larger than revenue, so the maximum is just under 100% when costs are close to zero. Markup, on the other hand, can be 200%, 500% or more.

Should I include shipping and taxes in my costs?

Include shipping you pay to get goods in, packaging and payment fees in COGS for gross margin. Shipping to customers that you absorb belongs in COGS or operating costs, consistently. Leave sales tax you collect for the government out of revenue entirely. Income taxes only affect net margin.

How do I calculate profit margin in Excel or Google Sheets?

With revenue in B2 and cost in C2, use =(B2-C2)/B2 and format the cell as a percentage. For markup use =(B2-C2)/C2. For the price that hits a target margin in D2, use =C2/(1-D2).

Why does a discount hurt margin so much?

Because the discount comes entirely out of your profit, not your cost. A $50 product with a $30 cost has a 40% margin. A 20% discount cuts the price to $40, so profit drops from $20 to $10 and margin falls to 25%. You would need to sell twice as many units to earn the same gross profit.

Keep reading

Know when your numbers get read

Once your margins look right, the next step is usually sending them to someone: a lender, an investor or a buyer.

āœ… Share your P&L as a tracked link instead of an email attachment āœ… See who opened it and which pages they read with document tracking āœ… Add a password, a watermark or an expiry date in a couple of clicks

Try SendNow free