Use profit margin to understand each sales dollar.
Gross profit margin answers: “What percentage of the selling price remains after the direct item cost?” It is useful for reviewing product economics, comparing prices, and checking whether gross profit can contribute enough toward overhead and operating profit.
This calculator starts with cost and selling price. It reports the dollar gross profit, gross margin, and equivalent markup so you can see how the two percentage conventions describe the same transaction differently.
Different questions need different denominators.
Profit margin uses selling price as the denominator. Markup uses cost as the denominator, so a 40% margin is not a 40% markup. ROI compares an investment outcome with initial investment, while break-even uses unit contribution to calculate required sales volume.
Formula and calculation method.
Gross margin (%) = (Selling price − Cost) ÷ Selling price × 100Selling price minus cost is gross profit per item. Dividing that profit by selling price shows the share of revenue left after the entered direct cost. Equivalent markup divides the same profit by cost instead.
See the business meaning, not just the math.
$48 item cost and $80 selling price
Working: ($80 − $48) ÷ $80 × 100
Result: 40% margin, $32 gross profit, 66.67% markup
Interpretation: Forty cents of each sales dollar remains after the entered item cost, before overhead, payment fees, taxes, and other expenses.
$75 cost and $100 selling price
Working: ($100 − $75) ÷ $100 × 100
Result: 25% margin, $25 gross profit, 33.33% markup
Interpretation: The markup is higher than the margin because $25 is divided by the smaller $75 cost base.
$60 cost and $50 selling price
Working: ($50 − $60) ÷ $50 × 100
Result: −20% margin and a $10 gross loss
Interpretation: A negative margin is a valid warning that the selling price does not recover the entered direct cost.
Put the number in context.
Gross margin is not the same as net profit margin. This calculator uses one direct cost and does not subtract payroll, rent, advertising, payment processing, returns, taxes, or other operating expenses.
A target margin can guide pricing, but customer demand and competitive conditions still matter. Use the Markup Calculator when your pricing rule starts with cost; use Break-Even when fixed costs and sales volume also matter.
Assumptions and common mistakes.
What the calculation assumes
- Cost and selling price refer to the same single unit and use the same selected denomination without exchange-rate conversion.
- The cost entered is the direct cost you want included in gross profit.
- No sales tax collected on behalf of a government is included in selling price.
- The calculation represents one price and cost point without quantity tiers or returns.
Mistakes to avoid
- Using markup and margin percentages interchangeably.
- Leaving freight, packaging, platform fees, or direct labor out of cost when they belong in product economics.
- Treating gross margin as net business profit.
- Using a tax-inclusive customer price when tax is passed through rather than retained as revenue.
What unusual inputs mean.
Gross profit and margin are both zero.
The result is a negative margin and gross loss, which is valid output.
Margin is undefined because the formula divides by selling price, so the calculator returns an error.
Margin is 100%, while markup is undefined because markup would divide by zero cost.
What this calculation leaves out.
This is a per-unit gross margin calculation. It does not calculate net margin, blended product mix, discounts, sales tax, inventory write-offs, returns, overhead, or income tax. Use consistent accounting definitions when comparing margins across products or reporting periods.
Questions people ask.
How do I calculate profit margin?
Subtract cost from selling price, divide the gross profit by selling price, and multiply by 100.
What is the difference between margin and markup?
Margin divides profit by selling price. Markup divides the same profit by cost, so the percentages are different unless profit is zero.
Can profit margin be negative?
Yes. If cost exceeds selling price, gross profit and gross margin are negative.
Is gross margin the same as net margin?
No. Gross margin subtracts the entered direct cost. Net margin also reflects operating expenses, interest, taxes, and other gains or losses.
What does a 40% margin mean?
It means gross profit equals 40% of selling price. On an $80 sale, a 40% margin is $32 of gross profit.
Why is markup higher than margin for the same sale?
Markup divides profit by cost, while margin divides by the higher selling price. Dividing by the smaller base produces the larger percentage.