Profit Margin Calculator — Gross Margin, Net Margin & Markup

IP & Network views

What Is Profit Margin?

Profit margin measures how much of every dollar in revenue a business keeps as profit. Higher margins mean more efficient profitability.

There are three key margin levels, each deducting progressively more costs:

  1. Gross Profit Margin: Revenue minus cost of goods sold (COGS), as a percentage of revenue
  2. Operating Profit Margin: Gross profit minus operating expenses (salaries, rent, marketing)
  3. Net Profit Margin: Bottom-line profit after all costs including taxes and interest

The Formulas

Gross Margin = (Revenue − COGS) ÷ Revenue × 100%

Net Margin = Net Profit ÷ Revenue × 100%

Markup = Profit ÷ Cost × 100% (different from margin — see below)

Worked Example

Product selling price: $50. Cost to produce: $30.

  • Gross profit = $50 − $30 = $20
  • Gross margin = $20 ÷ $50 × 100% = 40%
  • Markup = $20 ÷ $30 × 100% = 66.7%

Use tool.tl's profit margin calculator for instant results with both margin and markup.

Profit Margin Benchmarks by Industry

IndustryTypical Gross MarginTypical Net Margin
SaaS software70%–85%10%–30%
E-commerce retail20%–40%2%–5%
Restaurants60%–70%3%–9%
Manufacturing20%–35%5%–10%
Consulting services60%–80%15%–30%
Grocery retail20%–30%1%–3%

Margin vs Markup: A Common Confusion

These two are frequently confused — and the difference matters for pricing:

  • Margin: Profit as a percentage of selling price
  • Markup: Profit as a percentage of cost

A 40% markup and a 40% margin are very different things:

  • Cost $60 + 40% markup → Price $84 → Margin = $24/$84 = 28.6%
  • Cost $60 with 40% margin target → Price $100 → Markup = $40/$60 = 66.7%

Frequently Asked Questions

What is a good profit margin?

It depends entirely on the industry. SaaS companies routinely see 70%+ gross margins; grocery stores at 25% are healthy. The right benchmark is your industry average and whether margins are trending up.

How do I improve my profit margin?

Two levers: raise prices (requires product differentiation to justify) or reduce costs (COGS, operating expenses). The most effective approach combines both: increase perceived value while systematically reducing cost structure.

Is the calculator free?

Yes — tool.tl's profit margin calculator is completely free, shows both margin and markup simultaneously, no account required.