How to use the profit margin calculator
Type any two of the four boxes — revenue, cost of goods sold, gross profit or gross margin — and the other two fill in; the markup is shown with the answer. The line under the boxes says which two were used. Type a third value and it replaces the other one you typed, never the cost of goods sold, so changing the margin or the profit moves the revenue.
Need the price for a margin you want? Type the cost of goods sold and the margin, and the revenue appears; click a row of the ladder to try another margin. Open Go advanced to add operating expenses, other costs, fees, interest and a tax rate: the picture and the table then show your gross, operating and net margin, and the break-even revenue.
The formulas
To go the other way: revenue = cost of goods sold ÷ (1 − margin ÷ 100). Example, worked out by this calculator:
Revenue $50,000.00, cost of goods sold $30,000.00, operating expenses $10,000.00, other costs $1,000.00, fees 2.9%, interest $500.00, tax 25%:
| Amount | % of revenue | |
|---|---|---|
| Revenue | $50,000.00 | 100% |
| Cost of goods sold | −$30,000.00 | −60% |
| Gross profit | $20,000.00 | 40% |
| Operating expenses | −$10,000.00 | −20% |
| Other costs | −$1,000.00 | −2% |
| Fees 2.9% | −$1,450.00 | −2.9% |
| Operating profit | $7,550.00 | 15.1% |
| Interest | −$500.00 | −1% |
| Tax 25% | −$1,762.50 | −3.52% |
| Net profit | $5,287.50 | 10.58% |
Gross, operating and net margin
The three margins use the same revenue but subtract more costs each time. Gross margin counts only the cost of goods sold: 40% in the example. Operating margin also counts operating expenses, other costs and fees: 15.1%. Net margin also counts interest and tax: 10.58%. A business can have a healthy gross margin and a thin net margin, which is why the bar and the table show every step.
Margin versus markup
Margin and markup describe the same profit with a different base. Revenue of $50,000.00 on a cost of $30,000.00 is a 40% margin but a 66.67% markup. A 50% margin needs a 100% markup, not 50%. The markup calculator goes the other way: type the cost and the markup you want and get the selling price.
| Margin | Markup |
|---|---|
| 10% | 11.11% |
| 20% | 25% |
| 25% | 33.33% |
| 30% | 42.86% |
| 40% | 66.67% |
| 50% | 100% |
| 60% | 150% |
| 70% | 233.33% |
| 75% | 300% |
| 80% | 400% |
| 90% | 900% |
What if the price or cost changes?
A 10% higher price moves the example’s gross margin from 40% to 45.45%; a 10% higher cost drops it to 34%. The calculator shows all eight cases for your own numbers.
Related tools
To set a selling price from a cost use the markup calculator, to work out a percentage of a number the percentage calculator, to see how much a figure rose or fell the percentage change calculator, and to add tax to a price the sales tax calculator.
Sources
- Gross profit = revenue − cost of goods sold and gross margin = gross profit ÷ revenue are the formulas stated on the pages of Omnicalculator (gross margin and margin calculators), calculator.net’s margin calculator, CalculatorSoup’s profit margin calculator and Xero’s gross margin calculator; net margin as the share of revenue left after all costs and expenses is how businessinitiative.org’s profit margin calculator describes it. All opened 2026-11-08.
- Operating profit here = gross profit − operating expenses − other costs − fees, and fees are a percent of revenue. Profit before tax = operating profit − interest; tax = your rate × profit before tax (nothing when there is no profit); net profit = profit before tax − tax. Those steps are this page’s convention for turning the typed amounts into three margins; check them against your own accounts.
- Break-even assumes your operating expenses, other costs and interest stay the same however much you sell, while the cost of goods sold and fees grow in step with revenue, and ignores tax. Real businesses are rarely that tidy; treat it as a guide.
- The currency selector only changes the symbol and the number of decimals; nothing is converted.
- Not used because I found no source for them: “good profit margin” benchmarks by industry.
For information only. Check your own figures and ask an accountant before you act on them.
Common questions
What is profit margin?
Profit margin is the share of your revenue that is left as profit. With revenue of $50,000.00 and a cost of goods sold of $30,000.00, the gross profit is $20,000.00, which is a 40% gross margin.
What is the profit margin formula?
Gross margin % = (revenue − cost of goods sold) ÷ revenue × 100. For revenue of $50,000.00 and a cost of $30,000.00 that is $20,000.00 ÷ $50,000.00 = 40%. In the calculator, type the revenue and the cost and the margin fills in.
What is the difference between gross, operating and net margin?
They use the same revenue but subtract more each time. Gross margin takes off only the cost of goods sold (40% in the example). Operating margin also takes off operating expenses, other costs and fees (15.1%). Net margin also takes off interest and tax (10.58%).
How do I calculate the price I need for a target margin?
Revenue = cost ÷ (1 − margin ÷ 100). A cost of $60.00 at a 40% margin needs revenue of $100.00. In the calculator, type the cost of goods sold and the margin you want and the revenue fills in; the ladder lists the revenue for ten common margins.
What is the difference between margin and markup?
Both measure the same profit, but margin divides it by revenue and markup divides it by the cost. A cost of $30,000.00 sold at $50,000.00 is a 40% margin and a 66.67% markup. A 25% margin needs a 33.33% markup. The markup calculator on this site works the other way round.
Can a profit margin be negative?
Yes. If the cost is higher than the revenue you make a loss and the margin is negative: a cost of $100.00 sold at $80.00 loses $20.00, a −25% margin. The bar then shows where the revenue runs out. A margin can never reach 100%, because that would need a cost of zero, so the calculator does not accept it.
How do operating expenses, interest and tax change the margin?
Type them under Go advanced and the table shows each step. In the example, $10,000.00 of operating expenses, $1,000.00 of other costs, 2.9% fees, $500.00 of interest and 25% tax turn a $20,000.00 gross profit into a net profit of $5,287.50: a net margin of 10.58%.
What is break-even revenue?
It is the revenue at which you stop losing money. If your fixed costs (operating expenses, other costs and interest) are $11,500.00 and each $1 of revenue leaves 37.1% after the cost of goods sold and fees, you break even at $30,997.30 before tax. The calculator shows it when you type your fixed costs.
Does the currency selector convert my numbers?
No. It only changes the symbol and the decimals shown. Type your numbers in the currency you use.