When to use this calculator
Gross profit equals selling price minus cost. Gross margin expresses that profit as a percentage of selling price, not cost. Include the relevant direct costs consistently; this tool does not calculate net income, taxes or overhead separately.
Worked example
Cost is 80 and selling price is 100. Gross profit is 20. Divide 20 by 100 and multiply by 100: a gross margin of 20%.
Formulas and examples
Profit margin
(Selling price − cost) ÷ selling price × 100Example: Cost: 80, Selling price: 100 → 20 %
Cost ≥ 0; selling price > 0. Gross margin excludes taxes and other expenses.
Evaluate the effect of a sale
An item costs 60 and sells for 100: gross profit is 40 and gross margin is 40%. At a promotional price of 80, gross profit is 20 and margin is 25%. Use the selling price as denominator and keep direct costs consistent.
Frequently asked questions
Can gross margin be negative?
Yes. Selling below cost produces a negative gross profit and margin, provided the selling price is positive.
Is a 25% markup a 25% margin?
No. A cost of 80 with a 25% markup gives a price of 100, which is a 20% margin.