Updated March 15, 2026

Profit Margin Calculator

Profit margin is the percentage of revenue left after subtracting costs. Calculate it as ((Revenue - Cost) / Revenue) x 100. Enter your cost and revenue above to see margin, markup, and profit instantly.

Enter cost and revenue to calculate profit margin and markup.

$
$

Key Takeaways

  • Profit margin = ((Revenue - Cost) / Revenue) x 100. It shows what percentage of each dollar you keep.
  • Markup = ((Revenue - Cost) / Cost) x 100. It shows how much you added above your cost.
  • Margin and markup are not the same. A 50% markup equals a 33.3% margin.
  • To find selling price from a target margin, use: Price = Cost / (1 - Margin%).
  • Compare your margins to industry benchmarks. A "good" margin depends entirely on your sector.

How Do You Calculate Profit Margin?

Profit margin measures how much of every dollar in revenue a business keeps as profit. The formula is: Margin = ((Revenue - Cost) / Revenue) x 100. If you sell a product for $80 that costs $50 to make, your profit margin is ((80 - 50) / 80) x 100 = 37.5%. This means you keep $0.375 of every dollar earned on that product.

Leah Novak tracks margins on every item at Rise & Shine Bakery. Her signature sourdough loaf costs $2.80 in ingredients and labor, and she sells it for $7.50. The margin: ((7.50 - 2.80) / 7.50) x 100 = 62.7%. Her croissants cost $1.40 and sell for $4.25, giving a margin of 67.1%. Leah focuses on margin rather than markup because it directly tells her what percentage of her revenue is actual profit. Use a percentage calculator to quickly convert between margin and markup percentages.

What Is the Difference Between Margin and Markup?

Margin and markup both describe profit, but they use different denominators. Margin divides profit by revenue (selling price). Markup divides profit by cost. The formulas are:

Margin = ((Revenue - Cost) / Revenue) x 100
Markup = ((Revenue - Cost) / Cost) x 100

Marco Ferreira at Marco's Kitchen buys salmon fillets for $12 each and sells salmon plates for $28. His profit per plate is $16. The margin is (16 / 28) x 100 = 57.1%. The markup is (16 / 12) x 100 = 133.3%. Same transaction, very different numbers. Restaurants typically talk about food cost percentage (the inverse of margin), aiming to keep food costs between 28% and 35% of menu price.

Margin % Equivalent Markup % Example (Cost $100)
10%11.1%Sell for $111.11
20%25%Sell for $125.00
25%33.3%Sell for $133.33
30%42.9%Sell for $142.86
33.3%50%Sell for $150.00
40%66.7%Sell for $166.67
50%100%Sell for $200.00
60%150%Sell for $250.00
75%300%Sell for $400.00

Source: Calculated using Markup = Margin / (1 - Margin) and Selling Price = Cost / (1 - Margin).

How Do You Set Prices Using a Target Margin?

To find the selling price that achieves your desired margin, use this formula: Price = Cost / (1 - Margin / 100). This is the reverse of the margin formula and ensures your final price produces exactly the margin you want.

For service businesses, the same formula applies. If your cost per client is $800/month and you want a 40% margin, charge $800 / (1 - 0.40) = $1,333/month. The target-margin formula ensures your price produces exactly the margin you want, regardless of your industry.

Profit Margins by Industry

Profit margins vary dramatically across industries. A grocery store and a software company might both be profitable, but their margin structures look completely different. The table below shows typical gross margins by sector. Net margins are significantly lower after accounting for overhead, taxes, and other operating expenses.

Industry Typical Gross Margin Typical Net Margin
Grocery / Supermarkets25-30%1-3%
Restaurants60-70%3-9%
Bakeries55-70%5-10%
Retail (General)30-50%2-5%
Construction15-25%3-7%
Real Estate Services40-60%10-20%
Software / SaaS70-85%20-40%
Consulting / Services50-70%15-25%
Manufacturing25-40%5-10%
E-commerce40-60%5-15%

Sources: NYU Stern School of Business margins by sector (Damodaran, 2024), National Restaurant Association industry benchmarks.

Common Margin Mistakes to Avoid

The most frequent error is treating margin and markup as interchangeable. If you want a 40% margin but calculate a 40% markup instead, you will underprice your product. A 40% markup on a $100 item gives you a $140 price with only a 28.6% margin, not the 40% you intended.

Another common mistake is ignoring the difference between gross margin and net margin. Leah might see a 63% gross margin on her pastries, but after rent, utilities, staff wages, and packaging, her net margin might be 8-10%. Decisions based on gross margin alone can lead to overconfidence about profitability. Always consider total costs when evaluating whether a product or service is truly profitable.

A third pitfall is using average margins across an entire business without tracking margins per product. Marco's Kitchen has a 65% gross margin on pasta dishes but only 45% on steak entrees. If steak orders increase as a share of total sales, his blended margin drops even though each individual dish's margin stays the same. Product-level margin tracking reveals which items actually drive profit.

See our markup calculator for the inverse calculation, or use the break-even calculator to find how many units you need to sell at your current margin to cover fixed costs. For pricing with tax included, try the sales tax calculator.

This calculator provides general estimates for informational purposes. Actual profit margins depend on your specific cost structure, overhead, and market conditions. Consult an accountant for financial decisions about pricing and profitability.


Related Calculators

Frequently Asked Questions

What is profit margin?

Profit margin is the percentage of revenue that remains after subtracting costs. It is calculated as ((Revenue - Cost) / Revenue) x 100. A 30% margin means you keep $0.30 of every dollar in revenue as profit.

What is the difference between margin and markup?

Margin is profit as a percentage of revenue (selling price). Markup is profit as a percentage of cost. A product that costs $40 and sells for $60 has a 33.3% margin but a 50% markup. Margin is always lower than markup for the same transaction.

How do you calculate selling price from a target margin?

Divide the cost by (1 minus the margin as a decimal). For example, if your cost is $40 and you want a 30% margin: $40 / (1 - 0.30) = $57.14. This ensures the margin on the final price is exactly 30%.

What is a good profit margin?

A good profit margin varies by industry. Grocery stores typically operate on 1-3% net margins, restaurants on 3-9%, software companies on 20-40%, and luxury goods on 50% or more. Compare your margin to industry benchmarks rather than using a single universal target.

What is the difference between gross margin and net margin?

Gross margin only subtracts the direct cost of goods sold (COGS) from revenue. Net margin subtracts all expenses, including overhead, taxes, and interest. A business might have a 60% gross margin but only a 15% net margin after accounting for rent, payroll, and other operating costs.

Can profit margin be negative?

Yes. A negative margin means you are selling below cost. This happens when revenue is less than the cost of goods. Some businesses sell certain products at a loss (called a loss leader) to attract customers, but overall margins must eventually be positive for the business to survive.

How often should I review my profit margins?

Review margins monthly or whenever costs change. Ingredient prices, shipping costs, and supplier rates fluctuate, and your margins shift with them even if your prices stay the same. Quarterly reviews at minimum help you catch margin erosion before it becomes a problem. Adjust prices or renegotiate supplier terms when margins drop below your target.