Margin Calculator
Calculate profit margin, markup, and gross profit. Find selling price from cost and desired margin percentage.
Educational purpose only. Results are estimates based on standard formulas. This calculator does not constitute financial, tax, legal, or medical advice. For decisions affecting your personal finances or health, consult a qualified professional. How we ensure accuracy →
About the Margin Calculator
A margin calculator computes profit margin, markup, gross profit, and the relationships between cost, selling price, and profit — solving for any one value when the others are known. Profit margin and markup are two of the most fundamental metrics in business pricing, yet they are chronically confused: a 50% markup and a 33.3% profit margin represent the same price-to-cost relationship, expressed from different reference points. Our free margin calculator handles both gross margin (profit as a percentage of selling price) and markup (profit as a percentage of cost), converts between the two, calculates the selling price that achieves a target margin or markup, and shows gross profit in absolute dollar terms. Whether you are pricing products in retail, manufacturing, e-commerce, or services, understanding margins versus markups ensures your pricing strategy actually delivers the intended profitability.
Formula
Gross margin = (Price - Cost) / Price x 100 | Markup = (Price - Cost) / Cost x 100 | Price from margin = Cost / (1 - margin%)
How It Works
Gross profit margin = (Selling price - Cost) / Selling price x 100. Markup = (Selling price - Cost) / Cost x 100. They are related: Margin = Markup / (1 + Markup). Markup = Margin / (1 - Margin). Example: product costs $40, sells for $60. Gross profit = $60 - $40 = $20. Gross margin = $20 / $60 x 100 = 33.3%. Markup = $20 / $40 x 100 = 50%. To find selling price for a target 40% margin: Selling price = Cost / (1 - Margin) = $40 / 0.60 = $66.67. To find selling price for a target 40% markup: Selling price = Cost x (1 + Markup) = $40 x 1.40 = $56.00. Note: these produce different prices because margin and markup use different denominators.
Tips & Best Practices
- ✓Margin versus markup confusion is extremely common: if you want a 50% margin, you need a 100% markup (double the cost). If you apply a 50% markup, you get only a 33.3% margin. Always clarify which metric you are using.
- ✓Gross margin versus net margin: gross margin only accounts for direct cost of goods sold (COGS). Net margin deducts all operating expenses, taxes, and interest. A business with 40% gross margin and 35% operating expenses has only 5% net margin.
- ✓Industry benchmark margins: grocery retail gross margin is typically 25-35%; clothing retail 50-60%; software 70-80%; restaurants 60-70% gross margin but only 5-15% net after labour and overhead.
- ✓Break-even pricing: your minimum viable price must cover variable costs AND make a contribution toward fixed overhead. Below contribution margin pricing (price less than variable cost), every sale increases your losses.
- ✓E-commerce margins: when selling through Amazon or other marketplaces, factor in platform fees (8-15% of sale price), fulfillment costs (FBA fees or shipping), advertising spend, and returns — true net margin for e-commerce is often much lower than gross margin.
- ✓Markdown and discount impact: a 20% discount on a product with 33% gross margin reduces the margin to 20% on the discounted sale. Calculate the margin impact before approving promotional discounts.
- ✓Contribution margin: selling price minus variable costs (before fixed costs). Positive contribution margin means each additional sale contributes to covering fixed costs and eventually generating profit.
- ✓Landed cost: for imported products, landed cost includes the purchase price, freight, insurance, customs duties, and port handling. Always calculate margin on landed cost, not just the supplier invoice price.
Who Uses This Calculator
Retail and e-commerce business owners pricing products to achieve target profitability. Manufacturers setting wholesale prices for distributors and retailers. Entrepreneurs creating pricing models for new product lines. Finance teams analysing product mix profitability. Sales teams evaluating whether to offer discounts while maintaining acceptable margins. Buyers negotiating supplier prices to achieve required margin targets.
Optimised for: USA · Canada · UK · Australia · Calculations run in your browser · No data stored
Frequently Asked Questions
What is the difference between markup and margin?
Margin is profit as a percentage of selling price. Markup is profit as a percentage of cost. A 50% markup equals a 33% margin.