Profit Margin Calculator
Profit margin = (revenue − cost) ÷ revenue. With $80.00 of revenue and $50.00 of cost, gross profit is $30.00, so the profit margin is 37.5% and the markup on cost is 60%. Enter your revenue and cost and the calculator shows the gross profit, the margin and the markup. Switch to the target-margin mode to find the price that earns the margin you want: a 40% margin on a $50.00 cost needs a price of $83.33. The net-margin mode subtracts every expense, not just the cost of goods: the same $80.00 of revenue with $65.00 of total expenses leaves $15.00, a net margin of 18.75%. Margin and markup use the same profit but divide it by different things (revenue and cost), so a 50% margin is a 100% markup. This is an estimate for planning, not financial advice.
Updated Runs in your browser: nothing you enter is uploadedHow this tool works
Profit margin 37.5%
Revenue $80.00 less cost $50.00 is a gross profit of $30.00: a margin of 37.5% and a markup of 60%.
- Revenue
- $80.00
- Cost
- $50.00
- Gross profit
- $30.00
- Profit margin
- 37.5%
- Markup on cost
- 60%
An estimate for planning, not financial advice.
Target margin to price multiplier
| Target margin | Price multiplier on cost | Equivalent markup | Price for a $100.00 cost |
|---|---|---|---|
| 10% | 1.1111 × | 11.11% | $111.11 |
| 20% | 1.25 × | 25% | $125.00 |
| 25% | 1.3333 × | 33.33% | $133.33 |
| 30% | 1.4286 × | 42.86% | $142.86 |
| 40% | 1.6667 × | 66.67% | $166.67 |
| 50% | 2 × | 100% | $200.00 |
| 60% | 2.5 × | 150% | $250.00 |
The profit margin formulas, worked on the example
| Measure | Formula | Example |
|---|---|---|
| Gross profit | Revenue − cost | $80.00 − $50.00 = $30.00 |
| Profit margin | Gross profit ÷ revenue | $30.00 ÷ $80.00 = 37.5% |
| Markup | Gross profit ÷ cost | $30.00 ÷ $50.00 = 60% |
| Price for a target margin | Cost ÷ (1 − margin) | $50.00 ÷ (1 − 40%) = $83.33 |
| Net profit | Revenue − cost − operating expenses − other expenses | $80.00 − $65.00 = $15.00 |
| Net profit margin | Net profit ÷ revenue | $15.00 ÷ $80.00 = 18.75% |
Worked examples: revenue and cost to margin and markup
| Revenue | Cost | Gross profit | Profit margin | Markup on cost |
|---|---|---|---|---|
| $40.00 | $30.00 | $10.00 | 25% | 33.33% |
| $80.00 | $50.00 | $30.00 | 37.5% | 60% |
| $150.00 | $90.00 | $60.00 | 40% | 66.67% |
| $250.00 | $175.00 | $75.00 | 30% | 42.86% |
| $600.00 | $390.00 | $210.00 | 35% | 53.85% |
| $1,500.00 | $1,350.00 | $150.00 | 10% | 11.11% |
| $5,000.00 | $3,200.00 | $1,800.00 | 36% | 56.25% |
Price needed for a target margin, by cost
| Cost | 20% margin | 30% margin | 40% margin | 50% margin |
|---|---|---|---|---|
| $10.00 | $12.50 | $14.29 | $16.67 | $20.00 |
| $25.00 | $31.25 | $35.71 | $41.67 | $50.00 |
| $50.00 | $62.50 | $71.43 | $83.33 | $100.00 |
| $80.00 | $100.00 | $114.29 | $133.33 | $160.00 |
| $150.00 | $187.50 | $214.29 | $250.00 | $300.00 |
| $400.00 | $500.00 | $571.43 | $666.67 | $800.00 |
Net margin as operating expenses change on the $80.00 example
| Operating expenses | Net profit (loss) | Net profit margin | Gross margin |
|---|---|---|---|
| $0.00 | $27.00 | 33.75% | 37.5% |
| $6.00 | $21.00 | 26.25% | 37.5% |
| $12.00 | $15.00 | 18.75% | 37.5% |
| $18.00 | $9.00 | 11.25% | 37.5% |
| $24.00 | $3.00 | 3.75% | 37.5% |
| $30.00 | −$3.00 | −3.75% | 37.5% |
What a change of price does to the $50.00 cost
| Selling price | Gross profit | Profit margin | Markup on cost |
|---|---|---|---|
| $55.00 | $5.00 | 9.09% | 10% |
| $60.00 | $10.00 | 16.67% | 20% |
| $65.00 | $15.00 | 23.08% | 30% |
| $70.00 | $20.00 | 28.57% | 40% |
| $80.00 | $30.00 | 37.5% | 60% |
| $100.00 | $50.00 | 50% | 100% |
How to calculate profit margin
- Enter revenue and cost. Revenue is the price customers pay and cost is what the goods or service cost you. The example uses $80.00 of revenue and $50.00 of cost.
- Read the gross profit. Subtract the cost from the revenue: $80.00 − $50.00 = $30.00.
- Divide by revenue for the margin. Divide the profit by the revenue: $30.00 ÷ $80.00 = 37.5%. That is the share of every sale you keep as gross profit.
- Divide by cost for the markup. Divide the same profit by the cost instead to get the markup: $30.00 ÷ $50.00 = 60%.
- Find a price for a target margin. Choose the target-margin mode and enter your cost and the margin you want. A 40% margin on $50.00 gives a price of $83.33, a markup of 66.67%.
- Check the net margin. Choose the net-margin mode and add operating and other expenses to see what is left after everything: $15.00 of net profit, or 18.75% of revenue.
Frequently asked questions
- How do you calculate profit margin?
- Subtract the cost from the revenue to get the profit, then divide the profit by the revenue. With $80.00 of revenue and $50.00 of cost, the profit is $30.00 and the margin is $30.00 ÷ $80.00 = 37.5%. Multiply by 100 to read it as a percentage, which the calculator already does.
- What is the difference between gross and net profit margin?
- Gross margin counts only the direct cost of what you sell (materials, goods, direct labor). Net margin subtracts every expense: operating costs such as rent, salaries and marketing, plus interest and taxes. In the example the gross margin is 37.5%, but after $12.00 of operating expenses and $3.00 of other expenses the net margin is 18.75%. Net margin is always at or below gross margin when the extra expenses are positive.
- What is the difference between margin and markup?
- Both use the same profit, but margin divides it by the selling price and markup divides it by the cost. On $80.00 of revenue and $50.00 of cost, the profit of $30.00 is a 37.5% margin and a 60% markup. Markup is always the larger figure for a profitable sale, and a margin can never reach 100% of a positive cost, while a markup has no upper limit.
- Why is a 50% markup not a 50% margin?
- Because the two divide by different amounts. A cost of $100.00 marked up 50% sells for $150.00; the $50.00 profit is a third of that price, a 33.33% margin. To earn a 50% margin you need a 100% markup (a price of 2 times the cost). Mixing them up is the most common pricing mistake and leaves you with less profit than you planned.
- How do I find the price for a target profit margin?
- Divide the cost by one minus the margin, written as a decimal: price = cost ÷ (1 − margin). For a 40% margin on a $50.00 cost, that is $50.00 ÷ (1 − 0.4) = $83.33, which is 1.6667 × cost. The profit is $33.33 and the markup is 66.67%. Multiplying the cost by (1 + margin) is a common error: it gives a lower price and a lower real margin.
- What multiplier gives a 30% margin?
- Multiply your cost by 1.4286. The table above lists the multiplier for each target margin: for example 1.25 for 20%, 1.6667 for 40% and 2 for 50%. A $100.00 cost at a 30% margin sells for $142.86.
- Can profit margin be negative?
- Yes. When the cost is higher than the revenue you have a loss, and the margin is negative. For $40.00 of revenue against $50.00 of cost the calculator shows a −$10.00 loss, a margin of −25% and a markup of −20%.
- How does a discount change my profit margin?
- The cost does not move, so the whole discount comes out of the profit. At $80.00 of revenue and $50.00 of cost the margin is 37.5%. A 10% discount takes the price to $72.00 and the margin to 30.56%; a 20% discount takes it to $64.00 and 21.88%. The 10% discount removes $8.00 of profit and the 20% one $16.00, dollar for dollar, because the cost stays put while the price falls.
- How many more sales make up for a lower price?
- Compare the profit on each sale. After a 10% discount the example earns $22.00 a sale instead of $30.00, so to make the same total gross profit you need 36.36% more sales: $30.00 ÷ $22.00. This assumes the cost per sale does not change and ignores any fixed costs.
- What is operating margin?
- Operating margin is operating profit divided by revenue, where operating profit is the gross profit minus operating expenses but before other items such as interest. For the example, $80.00 − $50.00 − $12.00 = $18.00, so the operating margin is 22.5%. It sits between the 37.5% gross margin and the 18.75% net margin once the $3.00 of other expenses is taken off.
- What gross margin do I need just to cover my expenses?
- Operating and other expenses have to fit inside the gross profit. On the example they total $15.00 against $80.00 of revenue, so the gross margin must be at least 18.75% for the net profit to reach zero. The example’s 37.5% gross margin is above that, which is why the net margin is positive at 18.75%.
- How much revenue do I need to earn a target profit at a given margin?
- Divide the profit by the margin. At the example’s 37.5% margin, $1,000.00 of gross profit needs $2,666.67 of revenue, rounded up to the cent. This works for gross profit with the gross margin, and for net profit with the net margin.
- What is a good profit margin?
- It depends on the industry, the size of the business and whether you look at gross or net margin, so there is no single good number. Gross margins are typically much higher than net margins, and low-margin, high-volume businesses such as grocery can be healthy at a few percent net. Compare yours against businesses like yours and against your own history rather than a universal target.
- How do I double my money on a sale?
- Selling for twice the cost is a 100% markup and a 50% margin: with $50.00 of cost and $100.00 of revenue the calculator shows a margin of 50% and a markup of 100%.
- What does this calculator leave out?
- It works on the figures you enter for one period or one product. It does not know your sales tax, discounts, returns, payment fees or the way your accountant allocates overhead, so put those in the cost or expenses as you see fit. Treat the result as a planning estimate, not financial or tax advice.
- Is anything I type stored or sent?
- No. Your revenue, costs and margins are worked out by the page in your browser, so the business numbers you type are never sent to a server and never leave your device.
How it works
Money is handled as whole cents in integer arithmetic and every ratio is an exact fraction, rounded once for display (half up), so there is no floating-point error. Gross profit is revenue minus cost; the profit margin is gross profit divided by revenue, and the markup is gross profit divided by cost. The price for a target margin is the cost divided by one minus the margin, rounded to the nearest cent, with the price multiplier (1 ÷ (1 − margin)) and the equivalent markup (margin ÷ (1 − margin)) computed from the same exact fraction. In the net-margin mode, net profit is revenue minus the cost of goods, operating expenses and other expenses, and net margin is net profit divided by revenue; the gross margin is shown beside it. A negative result is a loss and is shown with a minus sign. Percentages are shown with up to two decimals and multipliers with up to four. Margins of 100% or more have no price, and revenue of zero has no margin, so the calculator says so instead of showing a number. The tables and the answers on this page are computed by these same functions at build time: the worked examples, the net-margin table and the price table run the calculator itself, and the target-price table calls the price function directly. Operating margin is operating profit, meaning revenue less the cost of goods and operating expenses, divided by revenue, and the revenue for a target profit is the profit divided by the margin as an exact fraction, rounded up to the cent. Everything runs in your browser and nothing you type is sent anywhere.
Sources
More free tools
- Markup CalculatorSelling price, profit and gross margin from cost and markup percent. Also finds markup and margin from cost and price, or cost from price and markup.
- Break-Even CalculatorBreak-even units and revenue from fixed costs, price and variable cost, plus contribution margin, margin of safety and units for a target profit.
- ROI CalculatorReturn on investment from amount invested and returned: ROI %, dollar gain and annualized ROI (CAGR) from years or dates, with optional fees and income.
- Discount CalculatorFind the sale price and savings from a percent or dollar discount. Stack discounts, price buy-one-get-one deals, add tax or work back to the original.
- Commission CalculatorWork out sales commission at a flat rate or in tiers, with a base salary or a draw, or the sales needed for a target. Exact to the cent, in your browser.
- VAT CalculatorAdd VAT to a net price, take it out of a gross price, or total an invoice with several VAT rates. Exact to the cent, with standard rates for 36 countries.
More: Shopping, tax and businessAll money & costsAll toolsHome & DIY calculators