Profit Margin Calculator: Gross, Operating and Net Margin
Profit margin is profit as a share of revenue. This page works out three of them from one set of figures, shows how each differs from markup, and finds the price a target margin needs.

On this page & data scope
Profit margin is the share of revenue that is left as profit. To find it, divide profit by revenue and multiply by 100. A business with $100,000 of revenue and $60,000 of cost of goods sold has $40,000 of gross profit, which is a 40% gross margin. Take off $25,000 of operating expenses and the operating margin is 15%. Take off $5,000 of interest and taxes and the net margin is 10%.
Calculator
Profit margin calculator
Enter revenue and cost of goods sold for a gross margin. Add operating expenses, then interest and taxes, to see operating and net margin. Or switch modes to find the price a cost needs for a target margin. The calculation stays in your browser.
Net profit margin all four fields filled10%
Net profit $10,000.00on $100,000.00 of revenue
Of $100,000.00 in revenue, $40,000.00 is left after cost of goods sold, a 40% gross margin. $10,000.00 is left after operating expenses, interest and taxes, a 10% net margin.
- Cost of goods sold $60,000.00
- Operating expenses $25,000.00
- Interest and taxes $5,000.00
- Left as net profit $10,000.00
- Revenue
- $100,000.00
- Cost of goods sold
- −$60,000.00
- Gross profit
- $40,000.00
- Gross margin
- 40%
- Operating expenses
- −$25,000.00
- Operating profit
- $15,000.00
- Operating margin
- 15%
- Interest and taxes
- −$5,000.00
- Net profit
- $10,000.00
- Net margin
- 10%
Margins are rounded to two decimal places. The calculator uses the costs as you sorted them. It does not decide which line a cost belongs on.
How to calculate profit margin
Take $100,000 of revenue and $60,000 of cost of goods sold.
- Subtract the costs from revenue. $100,000 − $60,000 = $40,000. That is the gross profit.
- Divide the profit by revenue. $40,000 ÷ $100,000 = 0.40.
- Multiply by 100. 0.40 × 100 = 40%. That is the gross margin.
The same three steps give each margin. Only the profit on top changes.
Gross margin = (revenue − cost of goods sold) ÷ revenue × 100
Operating margin = operating profit ÷ revenue × 100
Net margin = net profit ÷ revenue × 100
Revenue is always the number underneath. With no revenue there is nothing to divide by, so the calculator reports every margin as undefined at $0. If costs were entered, it states the loss in dollars.
Gross, operating and net margin explained
The three margins sit on three lines of an income statement. The names below follow the U.S. Securities and Exchange Commission’s guide to financial statements.
From $100,000 of revenue to $10,000 of net profit
Revenue$100,000
- Revenue$100,000
- −Cost of goods sold$60,000
- =Gross profit$40,00040% gross margin
- −Operating expenses$25,000
- =Operating profit$15,00015% operating margin
- −Interest and taxes$5,000
- =Net profit$10,00010% net margin
Each margin is a subtotal divided by the same $100,000 of revenue. The three margins differ only in how many costs have been taken off: 40% after cost of goods sold, 15% after operating expenses, 10% after interest and taxes.
The Brensley calculation. Margin = profit ÷ revenue × 100. Line names follow the U.S. Securities and Exchange Commission, “Beginners’ Guide to Financial Statements”.
- Revenue is the top line. The SEC says it is often called gross revenues or sales. Its guide subtracts cost of sales from net revenues, so the figure to use here is revenue after returns and discounts (net revenue).
- Cost of goods sold, or cost of sales, is the amount the company spent to produce the goods or services it sold.
- Gross profit is net revenue less cost of sales. The SEC notes that this subtotal is sometimes called gross margin, and that it is “gross” because some expenses have not been deducted yet. In the example it is $40,000, or 40% of revenue.
- Operating expenses support the company’s operations for the period and cannot be linked directly to producing what was sold. The SEC’s examples are administrative salaries, research and marketing.
- Operating profit is what remains after operating expenses and depreciation come off gross profit. It is measured before interest and income tax, and is often called income from operations. The SEC gives the formula as operating margin = income from operations ÷ net revenues. In the example, $40,000 − $25,000 = $15,000, or 15%.
- Net profit is also called net income or net earnings, and often the bottom line. In the example, $15,000 − $5,000 = $10,000, or 10%.
A margin can be negative. If cost of goods sold were $110,000 on the same revenue, the gross profit would be −$10,000 and the gross margin −10%. The calculator shows that as a loss.
A margin compares profit with sales. It says nothing about the money invested to earn it. For that comparison, use the ROI calculator.
Margin vs. markup
Margin and markup describe the same profit with different denominators. Margin divides by the price. Markup divides by the cost. An item that costs $60 and sells for $100 earns $40, which is $40 ÷ $100 = 40% margin, and $40 ÷ $60 = 66.67% markup.
The same $40 profit is a 40% margin and a 66.67% markup
Margin profit ÷ price
$40 ÷ $100 = 40%
Markup profit ÷ cost
$40 ÷ $60 = 66.67%
The profit does not change. The yardstick does. Margin measures the $40 against the $100 price. Markup measures it against the $60 cost, which is smaller, so when there is a profit the markup percentage is always the larger of the two.
The Brensley calculation. Margin = profit ÷ price. Markup = profit ÷ cost.
Markup = margin ÷ (1 − margin)
| Gross margin | Markup on cost | Price as a multiple of cost |
|---|---|---|
| 10% | 11.11% | 1.1111 |
| 20% | 25% | 1.25 |
| 25% | 33.33% | 1.3333 |
| 30% | 42.86% | 1.4286 |
| 33.33% | 50% | 1.5 |
| 40% | 66.67% | 1.6667 |
| 50% | 100% | 2 |
| 60% | 150% | 2.5 |
| 75% | 300% | 4 |
The 33.33% row is one third exactly. Other figures are rounded to two decimal places, and the multiples to four. A price rounded up to the cent can show a slightly higher markup than the table.
This page starts from revenue and the income statement, and reports three levels of margin for a whole business. Our markup calculator works from one unit’s cost and price. It also finds a selling price from a target markup or a target margin.
How to price for a target margin
To find the price that leaves a chosen gross margin, divide the cost by one minus the margin.
Price = cost ÷ (1 − margin)
For a $60 cost and a 40% margin: $60 ÷ 0.60 = $100.
The price a $60 cost needs for each gross margin
20% margin$15 profit on a $60 cost
$75.00
30% margin$25.72 profit on a $60 cost
$85.72
40% margin$40 profit on a $60 cost
$100.00
50% margin$60 profit on a $60 cost
$120.00
- Cost
- Gross profit
The cost stays at $60. Each ten points of margin costs more than the last: $10.72, then $14.28, then $20.00. The 30% price is $85.714 before rounding, so it is rounded up to $85.72 to keep the margin at 30% or more.
The Brensley calculation. Price = cost ÷ (1 − margin), rounded up to the next cent.
Multiplying the cost by 1.40 does not give a 40% margin. It gives an $84 price, a $24 profit and a 28.57% margin, because 1.40 is a 40% markup.
Some targets do not land on a whole cent. A 30% margin on a $60 cost is $60 ÷ 0.70 = $85.714. The calculator rounds up to $85.72, so the margin is never below the target. At $85.71 it would be just under 30%.
A 100% margin is impossible with a cost above zero. The whole price would have to be profit, and the formula would divide by zero.
What a discount does to margin
A discount lowers the price. It does not lower the cost. The whole reduction comes out of the profit.
A 10% price cut needs a third more units sold to earn the same
Full price$100 price · $40 profit · 40% margin
$40$40$40
3 units × $40 = $120 the starting point
10% off$90 price · $30 profit · 33.33% margin
$30$30$30$30
4 units × $30 = $120 33.33% more units
20% off$80 price · $20 profit · 25% margin
$20$20$20$20$20$20
6 units × $20 = $120 100% more units
Each block is the gross profit on one unit, drawn to scale. The cost stays at $60, so the whole discount comes out of the profit. At 10% off, 4 units earn what 3 did, on $360 of revenue against $300. At 20% off it takes 6 units and $480 of revenue. This counts gross profit only and assumes nothing else changes.
The Brensley calculation. Extra units needed = old profit per unit ÷ new profit per unit − 1.
Take the $100 price and $60 cost again. The profit is $40, a 40% margin.
- At 10% off the price is $90 and the profit is $30. The margin is $30 ÷ $90 = 33.33%. To earn the same total gross profit, unit sales have to rise by $40 ÷ $30 − 1 = 33.33%. That is 4 units for every 3, and revenue rises 20%: 4 × $90 = $360 against 3 × $100 = $300.
- At 20% off the price is $80 and the profit is $20. The margin is $20 ÷ $80 = 25%. Unit sales have to rise by $40 ÷ $20 − 1 = 100%. That is 6 units for every 3, and revenue rises 60%: 6 × $80 = $480 against $300.
This is arithmetic on gross profit per unit. It does not predict how many more units a lower price will sell.
The discount calculator works out the sale price and the saving from the shopper’s side. The break-even calculator shows how many units cover fixed costs at a given price, which is the next question once the price changes.
Profit margins by industry
Margins differ widely from one industry to the next. Aswath Damodaran of the NYU Stern School of Business publishes industry-wide figures for US public companies. The figures below are from his table last updated in January 2026.
Gross and net margin by industry, US public companies
- Gross margin
- Net margin
Software (System & Application)
Apparel
Total Market
Total Market (without financials)
Retail (General)
Restaurant/Dining
Retail (Grocery and Food)
Auto & Truck
Industry-wide figures for US public companies, data last updated January 2026. Software (System & Application) keeps 71.72% of revenue after cost of goods sold. Auto & Truck keeps 10.41%. These are figures for groups of public companies, not targets for a small business.
Aswath Damodaran, NYU Stern School of Business, “Margins by Sector (US)”, last updated January 2026.
For the row labelled Total Market, the gross margin is 37.76% and the net margin is 9.74%. For Total Market (without financials) they are 34.39% and 8.56%.
The spread between industries is large. Software (System & Application) has a 71.72% gross margin and a 25.49% net margin. Auto & Truck has 10.41% and 1.29%. Retail (Grocery and Food) has a 26.31% gross margin and a 1.32% net margin.
A high gross margin does not guarantee a high net margin. Apparel has a 56.88% gross margin and a 3.85% net margin. Restaurant/Dining has a lower gross margin, 32.24%, and a higher net margin, 9.37%.
These are figures for groups of public companies. They are not a target for a small business, and a figure for a whole industry does not describe any one company.
What this calculator leaves out
- Classifying your costs. It does not decide whether a cost belongs in cost of goods sold or in operating expenses. It uses the figures as you sorted them, and moving a cost between the two changes the gross margin.
- More than one period. It works on one set of figures. It does not compare months or years, or show a trend.
- Cash flow. Profit is not cash. The calculator does not know when customers pay or when bills are due.
- A tax computation. Interest and taxes are one number that you enter. It does not work out what tax is owed.
- Accounting rules. Businesses and accounting standards differ in what they count on each line. A margin from this page may not match one on a published income statement.
- Demand. The target-margin price is arithmetic. It does not say whether customers will pay it.
Frequently asked questions
How do you calculate profit margin?
Divide profit by revenue and multiply by 100. A $40,000 profit on $100,000 of revenue is $40,000 ÷ $100,000 × 100 = 40%.
What is the formula for gross profit margin?
Gross margin = (revenue − cost of goods sold) ÷ revenue × 100. With $100,000 of revenue and $60,000 of cost of goods sold, it is 40%.
How do I calculate gross profit?
Subtract cost of goods sold from revenue. $100,000 − $60,000 = $40,000 of gross profit. The SEC’s guide calls it “gross” because some expenses have not been deducted yet.
What is operating margin?
Operating profit as a share of revenue. The SEC’s guide gives the formula as Operating Margin = Income from Operations ÷ Net Revenues. In the example, $15,000 ÷ $100,000 = 15%.
How do you calculate net profit margin?
Divide net profit by revenue and multiply by 100. In the example, net profit is $100,000 − $60,000 − $25,000 − $5,000 = $10,000, and $10,000 ÷ $100,000 × 100 = 10%.
What is the difference between gross margin and net margin?
Gross margin takes off only the cost of goods sold. Net margin takes off every cost, including operating expenses, interest and taxes. In the example on this page the gross margin is 40% and the net margin is 10%.
Is gross profit the same as gross margin?
The SEC’s guide says the gross profit subtotal is sometimes called gross margin. On this page, gross profit is the dollar amount and gross margin is that amount as a percentage of revenue: $40,000 and 40%.
What is the difference between margin and markup?
Margin is profit divided by price. Markup is profit divided by cost. A $40 profit on a $100 price and a $60 cost is a 40% margin and a 66.67% markup.
What markup gives a 50% margin?
A 100% markup. Doubling the cost makes half the price profit: a $60 cost at a $120 price leaves $60, and $60 ÷ $120 = 50%.
How do I price a product for a 40% margin?
Divide the cost by 0.60, which is 1 − 0.40. A $60 cost needs a $100 price. Multiplying by 1.40 instead gives $84 and a 28.57% margin.
Can profit margin be negative?
Yes. When costs are more than revenue, the profit is a loss and the margin is below zero. Revenue of $100,000 with $110,000 of cost of goods sold is a −10% gross margin.
Can profit margin be over 100%?
Not in this calculator, which only takes costs off revenue. Gross margin cannot pass 100% when cost of goods sold is zero or more.
What is a good profit margin?
It depends on the industry. In Aswath Damodaran’s January 2026 data for US public companies, the net margin is 9.74% for Total Market, 25.49% for Software (System & Application) and 1.32% for Retail (Grocery and Food). Those are figures for groups of public companies, not targets.
How much more do I have to sell after a discount?
Divide the old profit per unit by the new one and subtract 1. With a $40 profit that falls to $30 after a 10% price cut, it is $40 ÷ $30 − 1 = 33.33% more units sold for the same gross profit.
Evidence record
Sources and references
- Beginners' Guide to Financial Statements — U.S. Securities and Exchange Commission
- Margins by Sector (US) — Aswath Damodaran, NYU Stern School of Business