Profit Margin Calculator

Margin, markup and selling price — from cost and revenue, or from the margin you want.

$60
$
$100
$
$50
$
40%
%
Selling price = cost ÷ (1 − margin). A 40% margin on a $50 cost gives $83.33, not $70.
$50
$
60%
%
Selling price = cost × (1 + markup). A 60% markup on a $50 cost gives $80.
Profit Summary
Gross Margin
40.00%
Profit
$40.00
Gross Margin
40.00%
Markup
66.67%
Selling Price
$100.00
Profit: $40.00 | Gross margin: 40.00% | Markup: 66.67%
Cost vs Profit Split

Search Tools

Understanding Profit Margin & Markup

Profit margin and markup both describe the same profit, but they divide it by different numbers. Gross margin is profit as a percentage of revenue (the selling price). Markup is profit as a percentage of cost. Because cost is smaller than revenue, markup is always the bigger number. A $60 cost sold for $100 gives $40 of profit, a 40% margin and a 66.67% markup. To price for a target margin, divide the cost by (1 - margin): a $50 cost at a 40% margin gives $83.33. To price from a markup, multiply the cost by (1 + markup): a $50 cost at a 60% markup gives $80.

Unit Type Unit Name Value in Gross Margin (%) on Revenue
Margin 20% 25% markup
Margin 25% 33.33% markup
Margin 33.33% 50% markup
Margin 40% 66.67% markup
Margin 50% 100% markup
Worked example $60 cost, $100 price $40 profit, 40% margin, 66.67% markup
Price from margin $50 cost at 40% $83.33 selling price
Price from markup $50 cost at 60% $80 selling price, 37.5% margin
Cost change $5 rise on $60 / $100 Margin falls from 40% to 35%
Benchmark Retail About 20-30% gross margin
Benchmark Software / SaaS About 70-90% gross margin

Conversion Tip

Profit margin and markup both describe the same profit, but they divide it by different numbers. Gross margin is profit as a percentage of revenue (the selling price). Markup is profit as a percentage of cost. A $60 cost sold for $100 gives $40 of profit, a 40% margin and a 66.67% markup. To price for a target margin, divide the cost by (1 - margin): a $50 cost at a 40% margin gives $83.33. To price from a markup, multiply the cost by (1 + markup): a $50 cost at a 60% markup gives $80.


Quick Reference

  • Gross margin % = (Revenue - Cost) / Revenue x 100
  • Markup % = (Revenue - Cost) / Cost x 100
  • Profit = Revenue - Cost
  • Selling price from margin = Cost / (1 - Margin)
  • Selling price from markup = Cost x (1 + Markup)
  • A $60 cost sold for $100 is a 40% margin and a 66.67% markup
  • A $50 cost at a 40% margin gives a selling price of $83.33
  • A $50 cost at a 60% markup gives a selling price of $80
  • Adding 40% to a $50 cost gives $70, which is only a 28.57% margin
  • Margin can never pass 100%; markup has no ceiling
Copied!

Margin vs markup — the difference that costs people money

Margin and markup both describe the same profit, but they divide it by different numbers. Gross margin is profit as a percentage of revenue (the selling price). Markup is profit as a percentage of cost. Because cost is smaller than revenue, markup is always the bigger number — and mixing the two up is how sellers underprice their products.

Gross margin % = (Revenue − Cost) ÷ Revenue × 100
Markup % = (Revenue − Cost) ÷ Cost × 100

Worked example: you buy a product for $60 and sell it for $100. Profit is $100 − $60 = $40. Gross margin is $40 ÷ $100 = 40%. Markup is $40 ÷ $60 = 66.67%. The same $40 of profit, two very different percentages.

Margin-to-markup conversion
Gross marginMarkup
20%25%
25%33.33%
33.33%50%
40%66.67%
50%100%
Pricing from margin

To hit a target margin, do not just add that percentage to the cost. Use selling price = cost ÷ (1 − margin). A $50 cost at a 40% margin gives $50 ÷ 0.6 = $83.33. The common mistake — adding 40% to the cost to get $70 — leaves you with only ($70 − $50) ÷ $70 = 28.57% margin.

Pricing from markup

Markup pricing is simpler: selling price = cost × (1 + markup). A $50 cost at a 60% markup gives $50 × 1.6 = $80, and the gross margin on that price is ($80 − $50) ÷ $80 = 37.5%.

Frequently Asked Questions

How do you calculate profit margin?

Profit margin is (revenue − cost) ÷ revenue, times 100. For a cost of $60 and a selling price of $100, profit is $40 and the margin is $40 ÷ $100 = 40%.

What is the difference between margin and markup?

The percentage base is different. Margin divides profit by revenue; markup divides the same profit by cost. On a $60 cost and a $100 price, the $40 profit is a 40% margin but a 66.67% markup.

How do I price for a 40% margin?

Divide the cost by 0.6, because price = cost ÷ (1 − 0.40). A $50 cost gives $50 ÷ 0.6 = $83.33. Simply adding 40% to the cost would give $70, which is only a 28.57% margin.

What is a good profit margin?

It varies by industry. Retailers often earn only about 2–5% net margin, while software companies can earn 70% or more gross margin. Typical gross margins are roughly:

IndustryTypical gross margin
Retail20–30%
E-commerce30–50%
Manufacturing25–35%
Restaurants60–70% on food
Software / SaaS70–90%

Compare your margin with businesses like yours, and remember that a high gross margin still has to cover rent, wages, marketing and other overheads before it becomes net profit.

Can margin be over 100%?

No. Gross margin tops out at 100%, because profit can never be larger than revenue — that would mean a negative cost. Markup has no ceiling: a $50 cost sold for $150 is a 200% markup, but the margin is still only 66.67%.

What if my costs change?

Re-run the calculation with the new cost. A $5 cost rise on the $60 cost / $100 price example cuts profit from $40 to $35 and the margin from 40% to 35%. Small cost changes move the margin fast when the price stays fixed, so check your margin every time a supplier changes a price.

Profit Margin Calculator Guide

Use this profit margin calculator to work out the gross margin and markup on anything you sell, or to set a selling price from the margin you want. Enter the cost and the revenue (the selling price) to see the profit in dollars, the gross margin as a percentage of revenue, and the markup as a percentage of cost. Or switch to price from margin or price from markup and enter the margin or markup you want - the calculator works out the selling price that hits it.

Margin vs markup

Margin and markup describe the same profit, but they divide it by different numbers. Margin is profit as a percentage of revenue; markup is profit as a percentage of cost. A $60 cost sold for $100 gives $40 of profit, a 40% margin and a 66.67% markup. Because cost is always smaller than revenue, markup is always the bigger number. A 20% margin equals a 25% markup, a 25% margin equals 33.33%, a 40% margin equals 66.67%, and a 50% margin equals a 100% markup.

Pricing from margin

To hit a target margin, divide the cost by one minus the margin as a decimal: price = cost / (1 - margin). A $50 cost at a 40% margin gives $50 / 0.6 = $83.33. Simply adding 40% to the cost gives $70, which is only a 28.57% margin - the most common pricing mistake. Re-run the calculation whenever a supplier changes a price: a $5 rise on a $60 cost and $100 price cuts the margin from 40% to 35%.

Pricing from markup

Markup pricing is simpler: price = cost x (1 + markup). A $50 cost at a 60% markup gives $50 x 1.6 = $80, and the gross margin on that price is 37.5%. Markup has no ceiling - a $50 cost sold for $150 is a 200% markup - but margin can never pass 100%, because profit can never be larger than revenue.

What a good margin looks like

A good margin depends on the industry. Retailers often earn about 20-30% gross margin and only 2-5% net margin after overheads, while software and SaaS companies can earn 70-90% gross margin. Restaurants typically earn 60-70% gross margin on food, and manufacturers around 25-35%. Compare your margin with businesses like yours, and remember that gross margin still has to cover rent, wages, marketing and other overheads before it becomes net profit.

© 2026 Universal Converter. All rights reserved.

Developed By Bahlool Hanif

Accurate conversion for everyone, everywhere.