Home › Profit Margin Calculator
Profit Margin Calculator
Free profit margin calculator. Calculate gross margin, markup, and selling price from cost.
Cost vs. Profit
Margin versus markup
Both compare profit with a price, but against different bases, and mixing them up is one of the most common pricing mistakes.
- Gross margin is profit as a share of the selling price.
- Markup is profit as a share of the cost.
Margin = (price − cost) ÷ price × 100 | Markup = (price − cost) ÷ cost × 100
Worked example
A product costs $30 to make and sells for $50. Profit per unit is $20, so:
| Gross margin | $20 ÷ $50 = 40% |
|---|---|
| Markup on cost | $20 ÷ $30 = 66.7% |
Sell 500 units a month with $6,000 in fixed costs and revenue is $25,000, gross profit $10,000, and net after fixed costs $4,000. Break-even is $6,000 ÷ $20 = 300 units.
Pricing for a target margin
Switch to “price needed for a target margin” to work backward from the margin you want:
Price = cost ÷ (1 − target margin ÷ 100)
For a 40% margin on a $30 cost, $30 ÷ 0.60 = $50. Note that a 40% markup would give only $42, a 28.6% margin, which is why it matters which number a supplier or buyer means.
Using the result
- Include every per-unit cost: materials, packaging, payment processing, and shipping you pay for.
- Put overhead in fixed costs, such as rent, salaries, and software, so break-even reflects the real business.
- Compare within your industry. Healthy gross margins differ widely between, say, grocery retail and software.
Frequently Asked Questions
How do I calculate profit margin?
Subtract cost from selling price to get profit, then divide by the selling price. A product costing $40 and selling for $100 earns $60, which is a 60% gross margin.
What is the difference between margin and markup?
Margin is profit as a share of the selling price; markup is profit as a share of the cost. The same $40 cost and $100 price is a 60% margin but a 150% markup, which is why the two are easy to confuse.
What price do I need for a target margin?
Divide the cost by 1 minus the target margin. For a 60% margin on a $40 cost, the price is $40 ÷ 0.40, or $100. Switch the calculator to solve for price and it does the arithmetic.
Does this include fixed costs?
Gross margin covers only unit cost. Add monthly fixed costs such as rent and salaries and the calculator also reports profit after those costs and the units you need to break even.