Finance5 min read

How to Calculate Profit Margin — Gross & Net Margin

Learn how to calculate gross profit margin and net profit margin, with the exact formulas, worked examples, and what counts as a good margin.

Profit margin tells you how much of every dollar (or rupee, or pound) in sales actually becomes profit — it is one of the most important numbers for understanding whether a business is genuinely healthy, not just growing in revenue. There are two commonly used versions: gross profit margin and net profit margin, and they answer different questions.

Gross Profit Margin Formula

Gross Profit Margin (%) = ((Revenue − Cost of Goods Sold) ÷ Revenue) × 100. This measures profitability after only the direct cost of producing or acquiring what you sold — before overhead, salaries, rent, or marketing.

Worked Example — Gross Margin

A retailer sells $50,000 worth of goods that cost $30,000 to acquire. Gross Profit = $50,000 − $30,000 = $20,000. Gross Profit Margin = ($20,000 ÷ $50,000) × 100 = 40%. This means 40 cents of every dollar in sales remains after covering the direct cost of goods — before any other business expenses.

Net Profit Margin Formula

Net Profit Margin (%) = (Net Profit ÷ Revenue) × 100, where Net Profit = Revenue − All Expenses (cost of goods, rent, salaries, marketing, interest, taxes — everything). This is the "true bottom line" margin.

Worked Example — Net Margin

Continuing the example: the same retailer has $20,000 gross profit, but also pays $12,000 in rent, salaries, and marketing, plus $2,000 in interest and taxes. Net Profit = $20,000 − $12,000 − $2,000 = $6,000. Net Profit Margin = ($6,000 ÷ $50,000) × 100 = 12%. Notice how much lower net margin (12%) is than gross margin (40%) — this gap is where overhead and operating costs eat into profitability.

What Is a Good Profit Margin?

  • •Retail: gross margins of 20–50% are typical; net margins of 2–5% are common due to high overhead and low prices.
  • •Software/SaaS: gross margins often exceed 70–80%, since there is little direct cost per additional customer.
  • •Restaurants: gross margins around 60–70% on food cost, but net margins are often just 3–9% due to high labor and rent.
  • •Manufacturing: gross margins of 25–35% are common, with net margins of 5–15%.

Gross Margin vs Markup — Don't Confuse Them

Markup and margin are calculated from different bases and are frequently confused. Markup = ((Price − Cost) ÷ Cost) × 100 (based on cost). Margin = ((Price − Cost) ÷ Price) × 100 (based on selling price). A 50% markup on a $100 cost item ($150 price) is only a 33.3% margin — not 50%. Always clarify which one is being discussed in a business conversation.

Use the free CalcSphere Profit Margin Calculator to instantly calculate gross and net profit margin for your business.

Open Profit Margin Calculator →