Profit Margin Calculator: Gross, Operating & Net Margin (Free)

Profit Margin Calculator: a business owner working out numbers with a calculator and laptop

Quick summary: Profit margin is profit divided by revenue, shown as a percentage. This profit margin calculator gives all three: gross margin ((revenue − cost of goods sold) ÷ revenue), operating margin (after operating expenses) and net margin (after interest and taxes). It also works backward from a target margin to the selling price you need: price = cost ÷ (1 − margin).

Free tool, no sign-up, and your numbers stay in your browser. Need it per product? Download the free pricing, markup and margin worksheet (Excel). Last reviewed November 22, 2026.

Jump to a section (10)
  1. How do you use the profit margin calculator?
  2. How do you calculate profit margin (formulas)?
  3. How do you calculate net profit margin, operating margin and EBITDA margin?
  4. What is a good profit margin?
  5. How do you improve your profit margin?
  6. How do profit margin, markup, and gross profit compare?
  7. Where do these numbers and rules come from?
  8. What would I tell a friend about the profit margin calculator?
  9. Frequently asked questions
  10. Related guides and tools
Your first step today

Do this today

Enter last month's revenue, COGS, and operating expenses to see your gross, operating, and net margins.

Start small. Your first goal is $500 a month. That is where I started. — Trent

Get the free Startup Kit

Five free files: a startup checklist (PDF), a one-page business plan (Word and PDF), a full plan template (Word), a financials workbook (Excel), and a startup cost worksheet (Excel). Enter your email and the downloads open on the next page. No credit card.

Free Startup Kit signup

How do you use the profit margin calculator?

  1. Pick a period and use it for every field: one sale, a month, or a year from your profit and loss statement.
  2. Revenue: total sales after returns and discounts.
  3. Cost of goods sold (COGS): direct costs of what you sold, such as inventory, materials, direct labor and inbound shipping. Enter only this and leave the rest at 0 for gross margin.
  4. Operating expenses: rent, software, marketing, insurance, and salaries not counted in COGS.
  5. Interest and taxes: to get from operating profit to net profit.
  6. Price for a target margin: enter a unit cost and the gross margin you want, and the calculator returns the price.

How do you calculate profit margin (formulas)?

MarginFormulaWhat it tells you
Gross profit margin(Revenue − COGS) ÷ Revenue × 100How much of each sales dollar is left after the direct cost of what you sold. Use it for pricing.
Operating margin(Gross profit − Operating expenses) ÷ Revenue × 100Whether the core business makes money before financing and taxes.
Net profit margin(Operating profit − Interest − Taxes) ÷ Revenue × 100What you actually keep from each dollar of sales.
Price for a target marginCost ÷ (1 − Target margin)The selling price that delivers that gross margin.

Worked example

A small online shop has $100,000 of annual sales, $60,000 of COGS, $25,000 of operating expenses, $1,000 of loan interest and $2,500 of income tax:

LineMathResult
Gross profit$100,000 − $60,000$40,000
Gross margin$40,000 ÷ $100,00040.0%
Operating profit$40,000 − $25,000$15,000
Operating margin$15,000 ÷ $100,00015.0%
Net profit$15,000 − $1,000 − $2,500$11,500
Net margin$11,500 ÷ $100,00011.5%

To hit a 40% gross margin on an item that costs $20, price it at $20 ÷ (1 − 0.40) = $33.33. That’s a 66.7% markup on cost. Margin and markup aren’t the same number. See the markup calculator.

How do you calculate net profit margin, operating margin and EBITDA margin?

Net profit margin formula

Net profit margin = net income ÷ revenue × 100. Net income is what’s left after every cost: COGS, operating expenses, interest and income taxes. To calculate it, take net income from the bottom of your profit and loss statement, divide by total revenue for the same period, and multiply by 100. In the example above, $11,500 ÷ $100,000 = 11.5%. For a sole proprietor, decide whether to subtract a fair salary for yourself first; otherwise your margin looks better than the business really is.

How to calculate operating margin

Operating margin = operating income ÷ revenue × 100, where operating income = revenue − COGS − operating expenses (rent, payroll, marketing, software, depreciation). It leaves out interest and taxes, so it shows how well the business itself runs no matter how it’s financed. In the example, $15,000 ÷ $100,000 = 15%.

How to calculate EBITDA margin

EBITDA margin = EBITDA ÷ revenue × 100. EBITDA is earnings before interest, taxes, depreciation and amortization. Two ways to get it:

  • EBITDA = operating income + depreciation + amortization
  • EBITDA = net income + interest + taxes + depreciation + amortization

If the example shop’s $25,000 of operating expenses included $3,000 of equipment depreciation, EBITDA = $15,000 + $3,000 = $18,000, an 18% EBITDA margin. Check: $11,500 + $1,000 + $2,500 + $3,000 = $18,000. Buyers and lenders often use EBITDA to compare businesses and to value them. See the business valuation calculator. It isn’t cash flow, though: equipment still has to be paid for.

MarginSubtractsExample result
Gross marginCOGS40.0%
EBITDA marginCOGS, operating expenses except depreciation and amortization18.0%
Operating marginCOGS, all operating expenses15.0%
Net profit marginEverything, including interest and taxes11.5%

What is a good profit margin?

It depends heavily on the industry, so compare yourself with businesses like yours, not with averages across all businesses:

  • Service businesses such as consulting, bookkeeping, design and cleaning have little or no COGS, so gross margins are high. The real test is net margin after paying yourself a fair wage.
  • Retail and ecommerce run lower gross margins because inventory is the main cost, and marketplace fees and shipping squeeze them further.
  • Restaurants and food businesses run thin net margins because food, labor and rent take most of each dollar.
  • Software and digital products can carry very high gross margins once they’re built.

For industry benchmarks, look at aggregated financial statement data, such as RMA’s Annual Statement Studies (often free through public libraries), your trade association’s surveys, or the margin data NYU Stern’s Aswath Damodaran publishes each January by industry, which covers public companies. Then track your own margin every month. A falling gross margin is often the first sign that costs rose faster than your prices. To check gross margin alone against 30 industries, use the gross margin calculator.

How do you improve your profit margin?

  1. Raise prices on purpose. A 5% price increase at a 40% gross margin raises gross profit by 12.5% if volume holds. Use the pricing calculator to set prices that cover fees and overhead.
  2. Cut COGS. Renegotiate with suppliers, buy in volume, reduce waste and returns, and redesign packaging.
  3. Change the mix. Push higher-margin products and services. Bundle low-margin items with high-margin ones.
  4. Control overhead. Audit subscriptions, rent and ad spend that doesn’t produce sales.
  5. Watch payment fees. Card processing and marketplace fees often take 3% to 15% of revenue. That’s a real cost, so include it.
Motivational sign: Don't quit on a bad day.
Every business has bad days. Decide on a good one.

How do profit margin, markup, and gross profit compare?

  • Margin is profit as a percentage of the selling price. It can never reach 100%.
  • Markup is profit as a percentage of cost. It can be more than 100%.
  • Gross profit is a dollar amount, revenue minus COGS. Calculate it with full inventory accounting in the gross profit calculator.

Where do these numbers and rules come from?

When I check a number or a rule about the profit margin calculator, I look it up on IRS Publication 334, Tax Guide for Small Business, SBA guide to marketing and sales, and SBA guide to calculating startup costs. I rechecked those pages in November 2026 while updating this guide on the profit margin calculator. If a figure changes mid-year, the official page wins over any example on this site.

What would I tell a friend about the profit margin calculator?

Years in an aerospace machine shop taught me to measure twice. That habit is how I treat the profit margin calculator. Look at net margin, not just gross, before you call a week a win. Ads, software, and card fees have a habit of eating the last few points.

— Trent Powell

Read next: gross vs. net profit, the gross margin calculator, and the profit margin formula in Excel, or go back to all calculators and tools.

Frequently asked questions

What is the difference between gross and net profit margin?

Gross margin is what is left after the direct cost of the sale. Net margin is what is left after all operating costs, interest, and taxes you include in the model. You need both: gross tells you if the job is healthy, net tells you if the business is.

How do I calculate profit margin?

Subtract costs from revenue, divide by revenue, and multiply by 100. For gross margin, subtract only the cost of goods sold. For net margin, subtract all expenses, including interest and taxes.

What’s the difference between gross and net profit margin?

Gross margin counts only the direct cost of what you sold. Net margin also subtracts operating expenses, interest and taxes, so it’s always lower and shows what you actually keep.

How do I price for a 30% profit margin?

Divide your cost by 0.70. An item that costs $14 needs a $20 price for a 30% gross margin. To reach a 30% margin after fees and overhead, use the pricing calculator, which includes them.

What is EBITDA margin?

EBITDA margin is earnings before interest, taxes, depreciation and amortization divided by revenue. A business with $18,000 of EBITDA on $100,000 of sales has an 18% EBITDA margin. It sits between gross margin and operating margin.

Can profit margin be negative?

Yes. A negative margin means costs were higher than revenue for that period. Startups often run negative net margins at first, but a negative gross margin means you lose money on every sale.

Is a 50% markup the same as a 50% margin?

No. A 50% markup on a $10 cost gives a $15 price, which is a 33.3% margin. A 50% margin needs a $20 price, which is a 100% markup.

Should I include my own pay in costs?

Yes, for an honest picture. Sole proprietors don’t deduct owner draws on Schedule C. But if you leave your labor out when judging the business, its margin looks better than it really is. Put a fair wage for your work in operating expenses.


General information, not financial advice. Last reviewed November 22, 2026.