Profit Margin Calculator
Calculate gross profit margin, net profit margin and markup from revenue and costs.
Gross margin vs. net margin: what's the difference?
Gross profit margin measures how much money remains after paying the direct costs of producing your product or delivering your service (the Cost of Goods Sold, or COGS). It tells you how efficiently your core operations generate profit before overhead.
Net profit margingoes further β it deducts operating expenses (rent, salaries, marketing, utilities) from gross profit. This is what most people mean when they say βprofit marginβ, and it is the number that tells you how much of every dollar of revenue actually stays in the business.
Gross margin % = (Revenue β COGS) Γ· Revenue Γ 100
Net margin % = (Revenue β COGS β Operating costs) Γ· Revenue Γ 100Margin vs. markup: two different ratios
Margin and markup both measure profitability, but they use a different denominator β and confusing the two leads to systematic pricing errors.
| Formula | Example (cost $60, price $100) | |
|---|---|---|
| Margin | (Price β Cost) Γ· Price Γ 100 | ($100 β $60) Γ· $100 = 40% |
| Markup | (Price β Cost) Γ· Cost Γ 100 | ($100 β $60) Γ· $60 = 66.7% |
A 40% margin is not the same as a 40% markup. If you target a 40% margin and accidentally use the markup formula, you will underprice and earn less than expected. Retailers commonly work with markup; finance teams commonly use margin.
Profit margin benchmarks by industry
| Industry | Gross margin | Net margin | Notes |
|---|---|---|---|
| SaaS / Software | 70β90% | 10β30% | Low COGS, high R&D and S&M spend |
| Professional services | 50β70% | 15β25% | Labour-heavy COGS |
| E-commerce / Retail | 25β50% | 2β10% | Thin net margins, high volume |
| Restaurants | 60β70% | 3β9% | High labour and rent costs |
| Manufacturing | 20β40% | 5β12% | Variable by product complexity |
| Healthcare / Pharma | 40β80% | 10β20% | Wide range by segment |
These benchmarks vary significantly by company size, market position, and geography. Use them as orientation, not rigid targets.
How to improve your profit margin
What counts as a good profit margin?
There is no single answer β it depends entirely on your industry, business model, and stage. A 5% net margin is strong for a grocery store and terrible for a software company. A 3% margin that is growing from -10% represents strong momentum, while a 20% margin that is contracting signals trouble.
Investors generally care most about gross margin (as a signal of the core business economics), the trajectory of net margin over time, and how margins compare to direct competitors. A high-growth company with thin margins may command a premium valuation if investors believe margins will expand at scale.
Gross Profit = Revenue β COGS Gross Margin % = (Gross Profit / Revenue) Γ 100 Net Profit = Gross Profit β Operating costs Markup % = (Gross Profit / COGS) Γ 100 Healthy gross margins: retail 30β50%, SaaS 70β90%, services 40β60%.