Margin vs. Markup: What's the Difference and How to Calculate Them

Margin and markup are often confused because both express the difference between cost and selling price as a percentage. The key difference is the base: margin is measured against selling price, while markup is measured …

07/09/2026 0 comments
Share:
Margin vs. Markup: What's the Difference and How to Calculate Them

Margin and markup are often confused because both express the difference between cost and selling price as a percentage. The key difference is the base: margin is measured against selling price, while markup is measured against cost. That means the same sale will usually have different margin and markup percentages. This guide explains the formulas, worked examples, conversions, and the correct way to set a selling price for a target margin or markup.

Cost, selling price, and gross profit

A basic margin-and-markup calculation uses three quantities. Cost is the amount you choose to treat as the cost base for the item or service. Selling price is the price charged to the customer. Gross profit in this simplified model is the difference between selling price and cost.

Gross profit = Selling price − Cost

If cost is 60 and selling price is 100, gross profit is 40. That same 40 is used in both the margin and markup formulas, but each formula divides it by a different base.

What is margin?

Margin shows what share of the selling price is gross profit. The denominator is therefore the selling price.

Margin = (Selling price − Cost) ÷ Selling price × 100%

Using the 60 → 100 example:

(100 − 60) ÷ 100 × 100% = 40%

The margin is 40%. In this simplified calculation, 40% of the selling price is gross profit and the remaining 60% corresponds to cost.

What is markup?

Markup shows gross profit relative to cost, so the denominator is cost.

Markup = (Selling price − Cost) ÷ Cost × 100%

For the same numbers:

(100 − 60) ÷ 60 × 100% = 66.6667%

The same transaction therefore has a 40% margin and approximately 66.67% markup. The different denominators are the entire reason the percentages do not match.

Why margin and markup are not the same percentage

When a sale is profitable, selling price is higher than cost. Margin divides profit by the larger base, selling price. Markup divides the same profit by the smaller base, cost. As a result, markup is usually numerically higher than margin for a profitable sale.

CostPriceProfitMarginMarkup
601004040%66.6667%
801002020%25%
1001202016.6667%20%
1001505033.3333%50%

This is why a request such as “we need 30%” is incomplete. You need to know whether the target is 30% margin or 30% markup because the required selling price is different.

How to calculate selling price for a target margin

If cost is known and you need a specific margin, you cannot simply add that percentage to cost. Margin is based on the future selling price, so the equation must be rearranged.

Selling price = Cost ÷ (1 − Margin)

Use margin as a decimal in the formula. For example, 40% = 0.40. With cost of 60 and target margin of 40%:

60 ÷ (1 − 0.40) = 60 ÷ 0.60 = 100

The result is a selling price of 100, gross profit of 40, and markup of 66.6667%. A 100% target margin has no finite selling price in this model because the denominator becomes zero, so the calculator rejects 100% or more in Target Margin mode.

How to calculate selling price for a target markup

Target markup is more direct because markup is measured from cost.

Selling price = Cost × (1 + Markup)

With cost of 60 and target markup of 40%:

60 × (1 + 0.40) = 84

Gross profit is 24. Markup is exactly 40%, while margin is approximately 28.5714% because the 24 profit is divided by the selling price of 84.

To test your own numbers, open the LUKIK Margin & Markup Calculator. It has separate modes for cost and price, target margin, and target markup.

How to convert margin to markup and markup to margin

If one percentage is already known, the other can be calculated without entering cost and price again.

Markup = Margin ÷ (1 − Margin)
Margin = Markup ÷ (1 + Markup)

Percentages are entered into these formulas as decimals. A useful control example is:

50% margin = 100% markup
100% markup = 50% margin

If cost is 50 and selling price is 100, profit is 50. That profit is half the selling price, so margin is 50%. At the same time, profit equals the entire cost base, so markup is 100%.

Quick margin-to-markup reference

MarginEquivalent markup
10%11.1111%
20%25%
25%33.3333%
30%42.8571%
40%66.6667%
50%100%

A reference table is useful for a quick check, but the exact formula or calculator is better for arbitrary percentages. Avoid rounding intermediate values too early, especially when calculating a target selling price from a margin percentage.

Common mistake: adding target margin directly to cost

A frequent pricing mistake is to take cost and increase it by the desired margin percentage. Suppose cost is 60 and someone adds 40%, producing 84. That calculation actually creates a 40% markup, not a 40% margin.

Check the result:

Profit = 84 − 60 = 24
Margin = 24 ÷ 84 × 100% = 28.5714%

To achieve a true 40% margin on a cost of 60, the selling price must be 100. Always identify which percentage the pricing rule uses before applying it.

What happens when selling price is below cost?

Cost & Selling Price mode can also describe a loss. If cost is 100 and selling price is 80, gross profit becomes negative:

Profit = 80 − 100 = −20
Margin = −20 ÷ 80 = −25%
Markup = −20 ÷ 100 = −20%

Negative values are not a calculation error. They show mathematically that selling price is lower than the entered cost. This can be useful when reviewing discounts, clearance pricing, or other below-cost scenarios, provided the cost base itself is defined correctly.

What should be included in cost?

The calculator does not decide what your cost base should contain. It treats the number you enter as the cost for the calculation. For a product, that may be purchase cost or a chosen production cost. For a service, it may be a selected direct-cost amount. The correct choice depends on what you are trying to measure.

Do not treat the gross profit from this basic tool as automatic net business profit. Version 1 deliberately does not model VAT or sales tax, shipping, marketplace fees, payment-processing fees, advertising or CAC, fixed overhead allocation, commissions, discounts, ROI, inventory, or break-even analysis.

If those costs matter to your decision, include or analyze them separately according to your own costing model rather than assuming they are built into the calculator.

How to use the LUKIK calculator

  • Cost & Selling Price: enter both values to calculate gross profit, margin, and markup.
  • Target Margin: enter cost and desired margin to find the required selling price and equivalent markup.
  • Target Markup: enter cost and desired markup to find selling price and equivalent margin.
  • Currency: the selected currency is display metadata only. No currency conversion is performed.

The calculator avoids intermediate rounding before the final displayed result. This matters for formulas that involve division, particularly target-margin pricing.

Frequently asked questions

Are 30% margin and 30% markup the same?

No. With the same cost, a 30% markup produces a lower selling price than a 30% margin. Markup is based on cost; margin is based on selling price.

Why can markup be higher than 100%?

Because markup is measured from cost. If gross profit is greater than the cost base, markup exceeds 100%. For example, selling at 150 with a cost of 50 produces profit of 100 and markup of 200%.

Can margin be exactly 100%?

Not with positive cost and a finite selling price. The target-price formula divides by 1 − margin, so at 100% the denominator becomes zero.

Does the calculator include tax, shipping, or fees?

No. The current version works from the entered cost and price and does not automatically add tax, shipping, platform fees, advertising, or overhead.

Does choosing a currency change the formula?

No. Currency is only a label. The formulas are the same for UAH, USD, EUR, and other currencies as long as all monetary inputs use the same currency.

Conclusion

Margin and markup describe the same profit difference from two different bases. Margin divides profit by selling price; markup divides profit by cost. That is why 40% margin is not the same as 40% markup, while 50% margin corresponds to 100% markup.

For a target margin, use Cost ÷ (1 − Margin). For a target markup, use Cost × (1 + Markup).

Calculate margin, markup, and selling price with LUKIK.