ThisCalculator

Business

Margin Calculation vs Markup: Formula and Examples

Updated · Standard formula, shown below

Profit margin 40.00 %
Markup
66.67 %
Result
Profit
40.00 $
Result
Cost
60 $
You entered

Margin Calculation vs Markup: Formula and Examples

Margin calculation shows what share of a selling price remains as profit after subtracting cost; markup calculation shows how much the selling price exceeds cost, expressed as a share of cost. Enter your cost and selling price to calculate both percentages and the profit amount, then compare what each measure tells you.

Formula

Both calculations start with the same profit amount, but divide it by different figures:

  • Profit = selling price − cost
  • Profit margin (%) = (selling price − cost) ÷ selling price × 100
  • Markup (%) = (selling price − cost) ÷ cost × 100

Here, cost is the amount treated as the item’s cost, in the currency entered; price is its selling price in the same currency. Profit is the difference between them, also in that currency. Margin and markup are percentages. The calculator assumes the selling price is greater than zero and cost is greater than zero, and uses the same currency and cost basis for both values.

Worked Example

Using the calculator defaults, cost is $60 and selling price is $100.

  1. Profit = $100 − $60 = $40.
  2. Margin = $40 ÷ $100 × 100 = 40.00%.
  3. Markup = $40 ÷ $60 × 100 = 66.67%.

The result is a 40.00% profit margin, a 66.67% markup, and $40.00 profit. The percentages differ because margin uses the selling price as its denominator, while markup uses cost.

Why the Percentages Differ

Margin and markup describe the same profit from two different reference points. A $40 profit is 40% of a $100 selling price but about 66.67% of a $60 cost. Neither percentage is inherently more accurate; each answers a different question.

Margin asks, “What portion of revenue is left after this cost?” It is commonly used to assess profitability relative to sales. Markup asks, “How much was added to cost to reach this price?” It is useful when setting prices from a known cost. Confusing their denominators is the central source of errors.

Convert Margin to Markup and Back

If you know one percentage, you can calculate the other, provided they refer to the same cost and selling price:

  • Markup from margin: markup = margin ÷ (1 − margin), when margin is written as a decimal.
  • Margin from markup: margin = markup ÷ (1 + markup), when markup is written as a decimal.

For example, a 40% margin is 0.40 as a decimal. Its corresponding markup is 0.40 ÷ (1 − 0.40) = 0.6667, or 66.67%. Conversely, a 50% markup gives a margin of 0.50 ÷ 1.50 = 0.3333, or 33.33%.

These conversions require decimals in the formulas. Using 40 instead of 0.40, or applying the formula to percentages based on different cost definitions, will give an incorrect result.

How to Use the Measures When Pricing

For a target markup, multiply cost by one plus the markup expressed as a decimal. For a target margin, divide cost by one minus the target margin expressed as a decimal:

  • Price from markup: price = cost × (1 + markup).
  • Price from margin: price = cost ÷ (1 − margin).

Suppose cost is $60 and the target margin is 40%. The price is $60 ÷ (1 − 0.40) = $100. Simply adding 40% to cost would instead produce $84, which has a $24 profit and a margin of about 28.57%, not 40%.

These are arithmetic relationships, not a complete pricing strategy. A business still needs to decide what belongs in “cost,” consider operating expenses and other relevant factors, and check whether the resulting price suits its circumstances. A margin calculated from product cost alone is not automatically the business’s net profit margin.

Common Mistakes and Limits

  • Using cost as the margin denominator: that calculates markup, not margin.
  • Adding the target margin to cost: this does not produce that target margin; use the price-from-margin formula instead.
  • Mixing cost definitions: calculations are only comparable when the included costs are consistent. A product-only cost and a cost that includes additional expenses will produce different results.
  • Rounding too early: keep full precision during calculations and round the final percentage for display.
  • Assuming positive profit: if cost exceeds selling price, profit is negative and both measures will be negative under these formulas. If cost is zero, markup is undefined because it requires division by cost.

Currency does not change the percentage formulas, but cost and selling price must be expressed in the same currency and on a comparable basis. The calculator also does not account for taxes, discounts, returns, overhead, or other items unless those are already included in the values you enter. It reports the result implied by the two inputs, not a full accounting statement.

Frequently Asked Questions

Is a 50% margin the same as a 50% markup?
No. A 50% margin means profit is half the selling price; it corresponds to a 100% markup on cost. A 50% markup corresponds to a 33.33% margin.

Can markup be higher than 100%?
Yes. If profit is greater than cost, markup exceeds 100%. For example, a $60 cost and $130 price produce $70 profit and a markup of 116.67%.

Can profit margin be over 100%?
Not under the ordinary definition here when cost is nonnegative and selling price is positive, because profit cannot exceed the full selling price. A reported figure over 100% may use a different definition or indicate an input or interpretation problem.

Which should I use to set a selling price?
Use markup when your pricing method adds a percentage to cost. Use margin when you have a target share of selling revenue you want to retain after the specified cost. Apply the matching formula rather than treating the percentages as interchangeable.

Does margin mean net profit?
Not necessarily. It means profit relative to selling price using the cost included in the calculation. If that cost excludes expenses such as overhead, the result is not net profit margin.

Related

Formula used
in cost | Cost | $ | 60 | 0
in price | Selling price | $ | 100 | 0
out margin | Profit margin | % | (price - cost) / price * 100 | 2
out markup | Markup | % | (price - cost) / cost * 100 | 2
out profit | Profit | $ | price - cost | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.