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 / Supermarkets | 25-30% | 1-3% |
| Restaurants | 60-70% | 3-9% |
| Bakeries | 55-70% | 5-10% |
| Retail (General) | 30-50% | 2-5% |
| Construction | 15-25% | 3-7% |
| Real Estate Services | 40-60% | 10-20% |
| Software / SaaS | 70-85% | 20-40% |
| Consulting / Services | 50-70% | 15-25% |
| Manufacturing | 25-40% | 5-10% |
| E-commerce | 40-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.