The formula
Gross margin tells you what share of every sale is left after paying for the product or service itself. It is one of the most important numbers for pricing, budgeting and comparing products.
Example
Buy for 50 and sell for 80: profit is 30. Margin = 30 ÷ 80 = 37.5%. Markup = 30 ÷ 50 = 60%.
Margin vs markup
Both use the same profit, but margin divides by the selling price and markup divides by the cost. Margin can never reach 100%, while markup has no upper limit. Mixing them up is a common pricing mistake — a "50% markup" is only a 33.3% margin. Use the markup calculator to convert between them.
Gross vs net margin
This tool calculates gross margin (price minus direct cost). Net margin also subtracts overheads such as rent, salaries, software and tax. To see how many sales you need to cover those overheads, use the break-even calculator.
Frequently asked questions
What is the formula for profit margin?
Profit margin % = (selling price − cost) ÷ selling price × 100.
What is a good profit margin?
It depends heavily on the industry. Software and services often have high gross margins, while retail and food tend to have lower ones. Compare against businesses like yours.
Is margin the same as markup?
No. Margin is profit as a share of price; markup is profit as a share of cost. The same sale always has a higher markup than margin.
Sources & method
- Standard accounting definitions of gross margin and markup.
Last reviewed 2026-11-16. Every calculator on this site is tested against published worked examples. Found an error? It will be fixed promptly.