Margin Calculator

Calculate gross margin, markup, and profit from cost and selling price. Understand the difference between margin and markup.

Know cost and selling price

$
$
Profit$20.00
Gross Margin20.00%
Markup25.00%

Margin vs. Markup Comparison

Markup %Margin %Cost $100 sells for
10%9.09%$110.00
20%16.67%$120.00
25%20%$125.00
33.33%25%$133.33
50%33.33%$150.00
100%50%$200.00
200%66.67%$300.00

How to Use the Margin Calculator

This calculator has three modes depending on what you know:

  • Margin: Enter your cost and selling price to find profit, gross margin percentage, and markup percentage.
  • Markup: Enter your cost and desired markup percentage to find the selling price, profit, and resulting margin percentage.
  • Profit: Enter your revenue and profit margin percentage to find the cost and profit amount.

The comparison table at the bottom shows the relationship between margin and markup so you can quickly convert between the two.

Margin vs. Markup Formulas

Gross Margin is based on revenue (selling price):

Gross Margin % = (Selling Price - Cost) / Selling Price × 100

Example: Cost $80, Selling Price $100. Margin = ($100 - $80) / $100 = 20%.

Markup is based on cost:

Markup % = (Selling Price - Cost) / Cost × 100

Same example: Markup = $20 / $80 = 25%.

Converting between margin and markup:

Margin = Markup / (1 + Markup) Markup = Margin / (1 - Margin)

A 25% markup = 20% margin. A 50% markup = 33.3% margin. These look similar but are very different. Using the wrong one can lead to mispriced products.

Frequently Asked Questions

Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost. On a product that costs $80 and sells for $100: the margin is 20% ($20 profit / $100 selling price) and the markup is 25% ($20 profit / $80 cost). Retailers and accountants usually prefer margin; manufacturers and wholesalers often use markup. Make sure you know which one you are looking at before setting prices.

Related Calculators