Profit Margin & Markup Calculator
Calculate profit margin and markup from cost and selling price. Understand the critical difference between margin on cost vs margin on sale. Free, instant.
- Data verified · June 2026
- Edited by Martín Rodríguez
- Formula verified by automated tests
- Private — runs on your device
See step-by-step calculation
See this calculation step by step
See period-by-period detail
How to use this calculator
Follow this tool’s steps, then review its formula, assumptions, and limits below.
When to use this calculator
- You have a product that costs $X and want to know the selling price for a 40% margin.
- You buy wholesale and want to calculate the implied markup in the list price.
- You're building a P&L and need to report gross margin correctly.
- You're offered a '30% discount' off the selling price and want to see how much margin remains.
- You want to compare the profitability of two products with different prices and costs.
Typical Gross Margins by Industry (USA)
| Industry | Gross Margin Range | Markup Equivalent | IRS Category |
|---|---|---|---|
| Grocery / Supermarket | 20–25% | 25–33% | Retail Trade |
| Convenience Stores | 25–35% | 33–54% | Retail Trade |
| Electronics Retail | 15–25% | 18–33% | Retail Trade |
| Clothing & Apparel | 50–65% | 100–186% | Retail Trade |
| Cosmetics & Beauty | 50–70% | 100–233% | Retail Trade |
| Restaurants (food) | 60–75% | 150–300% | Accommodation & Food |
| Restaurants (beverages) | 70–85% | 233–567% | Accommodation & Food |
| SaaS / Software | 70–90% | 233–900% | Information |
| Professional Services | 70–90% | 233–900% | Professional Services |
Fuente: U.S. Census Bureau Annual Retail Trade Survey + SEC 10-K gross profit disclosures (2024–2026). Markup = Gross Margin / (1 − Gross Margin).
How it works
The Critical Difference Between Markup and Gross Margin
Many business owners use 'margin' and 'markup' interchangeably -- they are not the same. They're two percentages with different mathematical bases that measure the same profit.
Markup Formula (Margin on Cost)
Markup % = (Price - Cost) / Cost x 100This tells you how much you added to the cost to arrive at the selling price. Used for setting prices from cost: if your cost is $1,000 and you want a 100% markup, the price is $2,000.
Gross Margin Formula (Margin on Sale)
Gross Margin % = (Price - Cost) / Price x 100This tells you what percentage of revenue is profit. This is the KPI that appears in financial statements and that banks, investors, and analysts look at. Used for comparing profitability across businesses.
Equivalence Table
| Markup % | Gross Margin % | Price/Cost Ratio |
|---|---|---|
| 10% | 9.1% | 1.10x |
| 20% | 16.7% | 1.20x |
| 25% | 20.0% | 1.25x |
| 33% | 25.0% | 1.33x |
| 50% | 33.3% | 1.50x |
| 75% | 42.9% | 1.75x |
| 100% | 50.0% | 2.00x |
| 150% | 60.0% | 2.50x |
| 200% | 66.7% | 3.00x |
| 300% | 75.0% | 4.00x |
Quick rule: markup is always higher than gross margin for the same transaction.
Setting Price from a Target
I Want X% Markup on Cost
Price = Cost x (1 + markup / 100)Example: cost $1,000, target markup 50% = Price = 1,000 x 1.5 = $1,500.
I Want X% Gross Margin on Sale
Price = Cost / (1 - margin / 100)Example: cost $1,000, target gross margin 40% = Price = 1,000 / (1 - 0.40) = 1,000 / 0.60 = $1,667.
Typical Gross Margins by Industry
| Industry | Typical Gross Margin | Equivalent Markup |
|---|---|---|
| Grocery/Supermarket | 20 - 25% | 25 - 33% |
| Convenience stores | 25 - 35% | 33 - 54% |
| Clothing retail | 50 - 65% | 100 - 185% |
| Electronics | 15 - 25% | 18 - 33% |
| Restaurants (food) | 60 - 75% | 150 - 300% |
| Restaurants (beverages) | 70 - 85% | 233 - 567% |
| Cosmetics | 50 - 70% | 100 - 233% |
| SaaS / Software | 70 - 90% | 233 - 900% |
| Professional services | 70 - 90% | 233 - 900% |
Why Confusing Markup With Margin Ruins Your Pricing
The classic mistake: 'I want to earn 30% so I multiply cost by 1.30'. That gives you markup of 30% = gross margin of only 23%. If you wanted 30% gross margin, you need to multiply by 1/0.70 = 1.428, not 1.30.
Discounts and Their Impact on Margin
Discounts always shrink margin more than intuition suggests. Example: product with 50% gross margin.
| Discount | New Gross Margin | Margin Loss |
|---|---|---|
| 10% off | 44.4% | -11% |
| 20% off | 37.5% | -25% |
| 30% off | 28.6% | -43% |
| 40% off | 16.7% | -67% |
| 50% off | 0% (break-even) | -100% |
That's why 50% off clearance sales only work for products with 65%+ original margin.
Common Mistakes
1. Multiplying cost by (1 + desired_margin): this gives markup, not margin. For margin, divide cost by (1 - margin).
2. Comparing margins across industries: a 20% margin in grocery is excellent; in SaaS it's terrible.
3. Including taxes in the margin calculation: margin should be calculated on pre-tax (net) prices.
4. Not accounting for all costs: cost should include product cost + shipping + duties + packaging for accurate margin.
Example: T-shirt, cost $15, selling price $40
40 - 15 = $25.25 / 15 x 100 = 166.7%.25 / 40 x 100 = 62.5%.(32-15)/32).Frequently asked questions
Why are markup and gross margin different numbers?
Which should I use: markup or gross margin?
If I want to earn 40%, how much do I multiply the cost by?
1 / (1 - 0.40)). Cost $1,000 = price $1,667. (2) Markup of 40% (add 40% to cost) = multiply by 1.40. Cost $1,000 = price $1,400, but gross margin is only 28.6%. Most people saying 'earn 40%' mean gross margin.Does profit margin include sales tax (VAT)?
What is a good gross margin for retail?
How does a 20% discount impact my margin?
What is the difference between gross margin and net margin?
How do I calculate the selling price to achieve a target gross margin?
700 / (1 - 0.30) = 700 / 0.70 = $1,000. Do not multiply $700 by 1.30 -- that gives you a markup of 30%, which is only a 23% gross margin.Sources & references
Methodology & trust
Business calculator with its formula verified automatically against US Small Business Administration (SBA) - Set Pricing Guidance, per our editorial policy and methodology.
Updated: June 2026. Parameters are verified periodically against the cited sources.
Calculations run 100% in your browser. We do not store or transmit your data.
Indicative results. For critical decisions, consult a professional.
Rodríguez, M. (2026). Profit Margin & Markup Calculator. Hacé Cuentas. https://hacecuentas.com/en/profit-margin-calculator
Content licensed under CC-BY 4.0 — reuse it citing the source with a link to Hacé Cuentas.