Profit margin tells you how much of every dollar of sales your business actually keeps as profit. It’s one of the most useful numbers for pricing, comparing products and understanding business health. This guide explains how to calculate profit margin with simple formulas, examples and a quick comparison with markup.
Quick Formula
Profit margin (%) = (Revenue – Cost) / Revenue x 100
Example: you sell a product for $50 that costs $30.
- Profit = $50 – $30 = $20
- Margin = $20 / $50 x 100 = 40%
Types of Profit Margin
| Margin | Formula | What it shows |
|---|---|---|
| Gross margin | (Revenue – Cost of goods sold) / Revenue | Profit on products before overhead |
| Operating margin | Operating income / Revenue | Profit after operating expenses |
| Net margin | Net income / Revenue | Profit after all expenses, interest and taxes |
Gross Profit Margin Example
A bakery has monthly revenue of $20,000 and ingredient/packaging costs (COGS) of $8,000.
- Gross profit = $12,000
- Gross margin = 12,000 / 20,000 = 60%
Net Profit Margin Example
The same bakery also pays rent, wages, utilities and taxes, leaving $2,400 net income.
- Net margin = 2,400 / 20,000 = 12%
Profit Margin vs Markup
People often confuse these:
- Margin is profit as a percentage of the selling price.
- Markup is profit as a percentage of the cost.
| Cost | Price | Profit | Margin | Markup |
|---|---|---|---|---|
| $30 | $50 | $20 | 40% | 66.7% |
| $60 | $80 | $20 | 25% | 33.3% |
Markup (%) = (Price – Cost) / Cost x 100
How to Set a Price for a Target Margin
Price = Cost / (1 – Target margin)
Example: cost $30, target margin 40% → $30 / 0.60 = $50.
Calculate Profit Margin in Excel or Google Sheets
If revenue is in A2 and cost in B2:
- Profit: =A2-B2
- Margin: =(A2-B2)/A2, then format as a percentage.
What Is a Good Profit Margin?
It varies a lot by industry. Grocery stores often run thin margins, while software and services can have much higher margins. Compare yourself with businesses in your own industry and track your margin over time.
Ways to Improve Profit Margin
- Raise prices strategically.
- Reduce supplier or production costs.
- Cut unnecessary overhead.
- Focus on higher-margin products or services.
- Reduce waste and returns.
Frequently Asked Questions
Is a 20% profit margin good?
It depends on the industry; for many small businesses, a healthy net margin is in the single to low double digits.
What’s the difference between profit and profit margin?
Profit is a dollar amount; margin is that profit as a percentage of revenue.
Should I use gross or net margin?
Use gross margin to evaluate products and net margin to judge overall business profitability.
Final Thoughts
To calculate profit margin, subtract costs from revenue, divide by revenue and multiply by 100. Track gross, operating and net margins, and don’t confuse margin with markup when setting prices.
This article is for general information only and isn’t financial or accounting advice.


