Gross Margin Calculator

Calculate your profit margin and understand the difference between margin and markup.

Calculate Margin
Enter cost and selling price to calculate your margin
$
$

Gross Margin

50.00%

Markup

100.00%

Profit

$50

Price Breakdown
Understanding Margin vs Markup

What is Margin?

Gross margin is the percentage of the selling price that is profit. Calculated as: (Price - Cost) / Price × 100

If you sell at $100 and your cost is $60, your margin is 40%

What is Markup?

Markup is the percentage added to cost to get the selling price. Calculated as: (Price - Cost) / Cost × 100

If your cost is $60 and you add 66.7% markup, your price is $100

Key Difference

A 50% margin is not the same as a 50% markup. A product with $50 cost and 100% markup sells for $100 (margin = 50%).

What is Gross Margin?

Gross margin is a financial indicator that shows the percentage of revenue remaining after deducting the direct costs of producing or acquiring a product (COGS - Cost of Goods Sold). It's a fundamental metric for evaluating your business's profitability and pricing strategy efficiency.

For example, if you sell a product for $100 and it costs $60 to produce or acquire, your gross margin is 40%. This percentage is what you have available to cover operating expenses (rent, salaries, marketing) and generate net profits.

Margin vs Markup: The Critical Difference

Margin

Percentage of SELLING PRICE

Margin = (Price - Cost) / Price

Example: Cost $60, Price $100 → Margin = 40%

Markup

Percentage of COST

Markup = (Price - Cost) / Cost

Example: Cost $60, Price $100 → Markup = 66.7%

Confusing margin and markup is one of the most costly mistakes in business. If you want a 40% margin but apply a 40% markup, you'll end up with a real margin of only 28.6%. Our calculator helps you avoid this common error.

Margin ↔ Markup Conversion Table

MarginMarkupMultiplier
15%17.6%1.18x
20%25%1.25x
25%33.3%1.33x
30%42.9%1.43x
40%66.7%1.67x
50%100%2.00x

Typical Margins by Industry

Retail / E-commerce: 25-50%

Varies significantly by product. Electronics: 15-25%. Apparel: 40-60%. Jewelry: 50-70%.

Software / SaaS: 70-90%

High margins because the marginal cost of each additional unit is nearly zero after initial development.

Restaurants: 60-70%

High gross margin but operating expenses (staff, rent) typically consume much of it, leaving net margins of 3-9%.

Manufacturing: 20-35%

Tighter margins due to raw material costs, labor, and equipment.

How to Use This Calculator

Our calculator offers three modes to adapt to different needs:

  1. Calculate Margin: Enter cost and selling price to get the resulting margin and markup.
  2. Price by Margin: Enter cost and desired margin, and we calculate the required selling price.
  3. Price by Markup: Enter cost and desired markup, and we calculate the resulting price and margin.

You can also add variable expenses (commissions, shipping, payment processing) that are included in the total cost calculation for a more accurate analysis.

Related Calculators

Frequently Asked Questions