Profit margin and markup: two views of the same profit
Profit margin tells you what share of the selling price is profit. Markup tells you how much was added on top of cost. Both describe the same profit, but the percentages are different, and mixing them up leads to under-pricing.
Enter the cost per unit, the selling price per unit and the number of units sold. The calculator returns profit per unit, margin, markup and total gross profit.
Margin, markup and total profit
Profit per unit = price − cost. Margin = profit ÷ price × 100. Markup = profit ÷ cost × 100. Total profit = profit per unit × units.
A cost of 60 and a price of 100 give a profit of 40, a margin of 40% and a markup of 66.67%. Selling 10 units earns 400 in gross profit.
Converting between the two
Margin = markup ÷ (1 + markup). Markup = margin ÷ (1 − margin). A 25% markup is a 20% margin (cost 80, price 100), and a 50% markup is a 33.33% margin (cost 60, price 90). Margin can never reach 100%, but markup can exceed it.
Gross margin, not net profit
This is gross margin: it covers the direct cost of each unit only. Rent, salaries, marketing and other overheads still have to be paid out of the 400. Net profit is what remains after those costs, which is why a product with a healthy-looking gross margin can still lose money.
How discounts eat into margin
A discount comes straight off profit. On the example, a 10% discount brings the price to 90: profit falls from 40 to 30 and margin from 40% to 33.33%. To earn the same 400 in total, you would need to sell about 14 units instead of 10.
Using margin in decisions
- Compare products by margin to see which earn more per riyal of sales.
- Compare by total profit to see which contribute most overall.
- Track margin over time to catch rising supplier costs early.
- Check that the price still covers costs after platform and payment fees.
Keep VAT out of the price
For VAT-registered businesses, enter the price before VAT. The 15% VAT collected from customers is passed to ZATCA and is not part of revenue or margin.
Frequently asked questions
Is a 40% margin good?
It depends on the industry. Grocery retail often runs on thin margins, while software and services can be much higher. Compare with similar businesses.
Why is markup higher than margin?
Markup divides profit by cost, which is smaller than the price, so the percentage is larger.
What if my cost is 0?
Margin is 100% and markup is undefined, so the calculator shows a dash for markup.
Last reviewed: 8 November 2026 · How we check our calculations · Report an error