CalcWisp

How to Calculate Profit Margin (Gross, Net and vs Markup)

How to calculate profit margin: (revenue − costs) ÷ revenue × 100. Gross vs net margin, a worked example, a markup-to-margin table and common mistakes.

By Søren, founder of CalcWisp · Updated · 6 min read · Checked against 4 sources (our standards)

Key takeaways

  • Profit margin = profit ÷ revenue × 100: a business that keeps $4,400 of $12,500 in sales has a 35.2% net margin.
  • Gross margin subtracts only the direct cost of goods sold from sales; net margin subtracts every expense, including interest and tax.
  • Margin is measured against the selling price and markup against the cost, so a 30% markup is only a 23.08% margin.
  • Margin can never reach 100%, while markup can be any size: a 50% margin equals a 100% markup.
  • To hit a target margin, divide the cost by (1 − margin): a $60 cost and a 40% margin gives a $100 price.

Profit margin is profit divided by revenue, multiplied by 100: (revenue − costs) ÷ revenue × 100. A shop that sells $12,500 of goods and keeps $4,400 after all expenses has a net profit margin of 4,400 ÷ 12,500 = 35.2%. Which costs are subtracted decides whether the result is a gross, operating or net margin.

This guide shows each formula in order, works one business through all three margins, explains why margin and markup are different numbers, and gives a lookup table for converting between them.

Free toolProfit CalculatorProfit, margin and break-even in one place.

What is the profit margin formula?

The general formula is the same every time; only the profit figure changes:

Profit margin (%) = profit ÷ revenue × 100

Revenue is the money from sales. The SEC's beginner guide to financial statements calls the top line "gross revenues or sales" and notes that discounts and returns can be subtracted to reach net revenue. Use whichever revenue figure you are consistent about, normally net sales after returns and discounts.

Three margins are used most often, each stopping at a different line of the income statement:

Margin Profit used Formula
Gross margin Gross profit = sales − cost of goods sold (Sales − COGS) ÷ Sales
Operating margin Sales − COGS − other operating expenses (Sales − COGS − operating expenses) ÷ Sales
Net profit margin Net income: everything deducted, including interest and tax Net income ÷ Sales

The three formulas match those in Harvard Business School Online's overview of margin ratios.

How do you calculate gross, operating and net margin? A worked example

A small online shop has these figures for one month:

  • Sales: $12,500
  • Cost of goods sold (products, packaging, shipping in): $4,500
  • Operating expenses (rent, software, ads, wages): $3,600
  • Interest: $400
  • Income tax: $1,000

Step 1: gross profit and gross margin

Gross profit = $12,500 − $4,500 = $8,000. Gross margin = 8,000 ÷ 12,500 × 100 = 64.0%.

Step 2: operating profit and operating margin

Operating profit = $8,000 − $3,600 = $4,400. Operating margin = 4,400 ÷ 12,500 × 100 = 35.2%.

Step 3: net income and net margin

Net income = $4,400 − $400 − $1,000 = $3,000. Net margin = 3,000 ÷ 12,500 × 100 = 24.0%.

The same business has a 64.0%, a 35.2% and a 24.0% margin, depending on where the subtraction stops. When someone quotes a "profit margin", ask which one. If the cost lines are not known, the profit calculator takes units, price, unit cost and fixed costs and returns profit, margin and break-even in one step.

Percent of a number and percent change use the same division; the percentage guide covers the basics.

What is the difference between profit margin and markup?

Both express the same profit, but against a different base:

  • Margin = profit ÷ selling price × 100
  • Markup = profit ÷ cost × 100

For the shop above, the $8,000 gross profit is 64.0% of the $12,500 in sales but 8,000 ÷ 4,500 = 177.8% of the cost of goods. Same money, two percentages.

Penn State Extension illustrates the trap with a $1.00 item marked up 30% to $1.30. The profit is $0.30, but dividing it by the $1.30 price gives a margin of only 23%. Adding a 30% markup therefore never produces a 30% margin.

Because a margin is a share of the price, it cannot reach 100%: that would mean the item cost nothing. A markup has no ceiling, since profit can be many times the cost.

Markup to margin conversion table

The conversion is exact: margin = markup ÷ (100 + markup) × 100 and markup = margin ÷ (100 − margin) × 100.

Markup Margin Margin Markup
10% 9.09% 10% 11.11%
25% 20.00% 20% 25.00%
30% 23.08% 30% 42.86%
50% 33.33% 40% 66.67%
75% 42.86% 50% 100.00%
100% 50.00% 60% 150.00%
150% 60.00% 70% 233.33%
200% 66.67% 75% 300.00%

The markup calculator converts any pair of cost, price, markup and margin.

How do you set a price for a target margin?

Divide the cost by one minus the margin: price = cost ÷ (1 − margin).

  • Cost $60, target margin 40%: price = 60 ÷ 0.60 = $100. Check: profit $40 ÷ $100 = 40%.
  • The University of New Hampshire Extension gives the same comparison for a $2.50 wholesale item: a 40% margin needs $2.50 ÷ 0.60 = $4.17, whereas a 40% markup ($2.50 × 1.40) gives only $3.50.

The second price looks right to people who confuse the two measures, and it quietly leaves the margin at 28.57% instead of 40%.

How do discounts change profit margin?

A discount lowers the price but not the cost, so the margin falls faster than the discount. An item costing $60 and sold for $100 has a 40% margin. At 10% off the price is $90, profit is $30 and the margin is 30 ÷ 90 = 33.3%. Profit per item dropped by 25%, from $40 to $30. The discount calculator shows the sale price and savings.

What happens to the margin when the price goes up?

Raising the price lifts the margin faster than the price itself, as long as cost stays the same. The $60 item sold at $100 has a 40% margin. At $110 the profit is $50 and the margin is 50 ÷ 110 = 45.45%, even though the price rose only 10%. The same arithmetic explains why a cost increase hurts: if the cost of that $100 item rises from $60 to $66 (up 10%), the margin falls from 40% to 34 ÷ 100 = 34%. Tracking the margin month by month shows which of the two moved.

What are common profit margin mistakes?

  • Mixing up margin and markup. Check which base a quoted percentage uses before comparing it.
  • Comparing different margins. A 64% gross margin and a 24% net margin can describe the same business.
  • Leaving out costs. Shipping, payment fees, returns and software count as costs. A margin that ignores them is overstated.
  • Using a margin to estimate break-even. Break-even depends on fixed costs and the profit per unit, not on the percentage alone: with $3,600 of fixed costs and $16 of profit per unit ($25 price − $9 cost), a business needs 3,600 ÷ 16 = 225 units.
  • Comparing across industries. Cost structures differ, so a "good" margin is relative to similar businesses and to the same business over time.

Frequently asked questions

What is a good profit margin?

No single number applies to every business. Compare the margin with companies of a similar type and size, and watch the trend. A margin that rises as sales grow usually means costs are under control.

Should I use gross or net margin?

Use gross margin to judge pricing and product costs, and net margin to judge whether the whole business makes money after every expense.

Educational only, not financial or tax advice.

Frequently asked questions

What is the formula for profit margin?

Profit margin = (revenue − costs) ÷ revenue × 100. Which costs count decides the type: cost of goods sold only gives gross margin, all costs including interest and tax gives net margin.

What is a good profit margin?

It depends on the industry, because a grocery store and a software company have very different cost structures. Compare a margin with businesses of the same type and with your own margin over time rather than against a single number.

Is profit margin the same as markup?

No. Markup divides profit by cost, margin divides profit by selling price. An item that costs $50 and sells for $80 has a 60% markup and a 37.5% margin.

How do I calculate profit margin from markup?

Margin = markup ÷ (100 + markup) × 100. A 25% markup is 25 ÷ 125 = 20% margin.

Can profit margin be negative?

Yes. If costs are higher than revenue the profit is negative, so the margin is negative too. A $9,000 loss on $12,000 of sales is a −75% margin.

Key terms

Glossary →
Gross Margin
Gross margin is gross profit as a percentage of sales: (sales − cost of goods sold) ÷ sales × 100. It shows how much of each sales dollar remains after direct costs.
Gross Profit
Gross profit is net sales minus the cost of goods sold: the money left from selling a product after its direct costs, before operating expenses, interest and tax.
Markup
Markup is the amount added to a product's cost to reach its selling price, usually expressed as a percentage of cost: (price − cost) ÷ cost × 100.
Net Income
Net income, also called net profit or net earnings, is what a business has left after deducting all expenses from revenue, including cost of goods sold, operating costs, interest and income tax.
Net Profit Margin
Net profit margin is net income as a percentage of sales: net income ÷ sales × 100. It shows how much of each sales dollar remains after every expense, interest and tax included.

Sources

  1. Harvard Business School Online — How to Use Profitability & Margin Ratios
  2. U.S. Securities and Exchange Commission — Beginners' Guide to Financial Statements
  3. Penn State Extension — What's the Difference Between Markup and Profit?
  4. University of New Hampshire Extension — gross margin vs markup pricing

Try the tools

Free toolProfit CalculatorProfit, margin and break-even in one place.Free toolMarkup CalculatorMarkup, margin, profit and price in one place.Free toolDiscount CalculatorSale price and savings for any percent off.Free toolPercentage CalculatorPercent of, % change, % difference, with steps.

Keep reading