Knowing the difference between margin and markup before you price
A 40% margin and a 40% markup sound alike but produce very different selling prices. Confusing the two is one of the most common pricing mistakes in retail, freelancing, and small-business finance. Business owners, product managers, accountants, and pricing analysts need both numbers side by side so pricing decisions are based on the right denominator.
This guide explains the margin and markup formulas, demonstrates them with the same cost and selling price, and lists the situations where gross margin alone is not enough. A quick online calculator is included so you can compare margin, markup, and gross profit from any pair of numbers.
Profit Margin Calculator: method and assumptions
Use selling price and cost of sales on the same basis, such as one unit or one batch. Subtract entered cost of sales from price, divide that difference by selling price for gross margin, and divide it by cost for markup. Call the result net margin only if a fuller accounting model has included every relevant operating, tax, finance, and exceptional item.
Official HMRC guidance distinguishes a gross-profit rate based on sales from markup based on cost and notes that trade terminology can vary. The page therefore names both denominator and entered cost scope instead of presenting either percentage as net profitability.
Profit Margin Calculator example you can verify
If cost is 60 and selling price is 100, gross profit is 40. Margin is 40 / 100 = 40%. Markup is 40 / 60 = 66.67%. Both are true, but they answer different questions.
Formulas: entered gross profit = selling price - entered cost of sales. Gross margin % = entered gross profit / selling price x 100. Markup % = entered gross profit / entered cost x 100. With cost 60, a 40% target margin needs price 60 / (1 - 0.40) = 100, whereas a 40% markup gives price 60 x 1.40 = 84.
Where Profit Margin Calculator needs extra care
Gross margin ignores overhead, tax, shipping, payment fees, returns, and advertising. It is useful for first-pass pricing, but net profit needs a fuller cost model. A zero cost or zero selling price makes one of the ratios meaningless.
Include all relevant costs such as platform fees, shipping, payment fees, and returns where appropriate. Watch for one recurring error: confusing margin with markup and making a price look healthier than it is.
Checks before keeping the result
- Selling price and cost of sales measured on the same basis.
- Include all relevant costs such as platform fees, shipping, payment fees, and returns where appropriate.
- The result is not net profit and omits every overhead, tax, refund, fee, or other cost not included in the entered cost.
- Save the cost assumptions behind each pricing decision.
- Use VAT and percentage tools when tax or discounts affect the final price.
Sources for Profit Margin Calculator
- Gross profit rate
UK HM Revenue & Customs
Defines gross profit as turnover less cost of sales and the gross-profit rate using turnover as the denominator.
- Gross profit percentage and mark-up
UK HM Revenue & Customs
Distinguishes a sales-denominator gross-profit rate from cost-denominator markup and notes that business terminology can vary.
- Profit Margin
Corporate Finance Institute
Supports the gross, operating, and net margin formulas used to explain business profitability ratios.
Use TOOLFINA Profit Margin Calculator
Enter cost and selling price in TOOLFINA Profit Margin Calculator. Read gross profit, margin, and markup together so pricing decisions are not based on the wrong denominator.
Input: entered cost of sales and selling price on a comparable basis. Output: price less entered cost, gross-margin percentage, and markup percentage. Zero selling price makes margin undefined; zero cost makes markup undefined. The UI reports those cases instead of displaying a false 0%.
Pricing numbers are calculated in the browser. Price less entered cost of sales is divided by selling price for gross margin and by entered cost for markup.
Try this tool
Compare price with entered cost of sales to estimate gross profit, gross margin, and markup.
Profit Margin Calculator