CalcUnit Logo

How to Calculate Margin

Calculate gross profit margin and markup percentage.

The Formula

Margin = (Revenue - Cost) / Revenue × 100

The margin formula uses the mathematical relationship: Margin = (Revenue - Cost) / Revenue × 100. Each variable in the formula represents a measurable quantity that affects the final result.

What Each Variable Means

Every value in the margin formula, what it measures, and the value used in the worked example on this page:

VariableTypeExample value
Cost PriceInput (you provide)$60
Selling PriceInput (you provide)$100
Gross ProfitResult (calculated)—
Profit MarginResult (calculated)—
MarkupResult (calculated)—

Step-by-Step Method

  1. 1Write down the values you know: Cost Price, Selling Price.
  2. 2Substitute your known values into the formula: Margin = (Revenue - Cost) / Revenue × 100.
  3. 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
  4. 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
  5. 5Verify your answer with the interactive Margin Calculator — it solves the same formula instantly.

Worked Example

Take a concrete case: cost price = $30, with the other inputs at the typical values from the variables table above. Substituting into the formula gives gross profit = 70.00, profit margin = 70.00, markup = 233.33. These numbers are solved by the same engine that powers the Margin calculator, so you can reproduce them exactly by entering the same inputs there.

Cost PriceGross ProfitProfit MarginMarkup
$2080.0080.00400.00
$3070.0070.00233.33
$5050.0050.00100.00
$6040.0040.0066.67
$8020.0020.0025.00
$9010.0010.0011.11
$1000.000.000.00
$200-100.00-100.00-50.00

How each result changes as cost price changes, holding the other inputs constant.

Practice Problems

1. Retail product: Given Cost Price $60, Selling Price $100, what does it come out to?

Answer: The calculator returns Gross Profit $40.00, Profit Margin 40.00%, Markup 66.67% for Cost Price $60, Selling Price $100.

2. You enter Cost Price $10, Selling Price $25 — what does the calculator return?

Answer: With Cost Price $10, Selling Price $25, the results are Gross Profit $15.00, Profit Margin 60.00%, Markup 150.00%.

Frequently Asked Questions

What is the formula for margin?

The formula is: Margin = (Revenue - Cost) / Revenue × 100. Calculate gross profit margin and markup percentage.

What values do I need to calculate margin?

You need cost price, selling price. The calculator produces gross profit, profit margin, markup from those inputs.

What is the margin when cost price is $30?

With cost price = $30, the result is gross profit = 70.00, profit margin = 70.00, markup = 233.33. This is worked through in full in the example on this page.

Related Topics

marginprofitmarkup

Use the Interactive Calculator

Skip the manual math — get instant results with our free Margin calculator.

Open Calculator

Related Calculators