Margin and Markup Calculator – Convert Between Cost, Price, Margin and Markup

Move between cost, selling price, gross margin and markup in any direction, including the selling price needed to hit a target margin or the cost ceiling for a target markup.

Free & Instant•Version: v1.0•Formula, examples and assumptions

Calculator InputsFormula v1.0

040%99.99
Calculated Output

Margin = (price − cost) ÷ price × 100; Markup = (price − cost) ÷ cost × 100; price = cost ÷ (1 − target margin); margin = markup ÷ (1 + markup)

Gross margin

40.00%
Markup on cost66.67%
Gross profit per unit40.00
Cost as a share of price60.00%
Profit as a share of cost66.67%
Price needed for a 50% margin120.00
Markup that equals a 50% margin100%
Units needed to make 1,000 in gross profit25
Revenue needed for 1,000 gross profit2500.00
Instant Browser CalculationNo Server Logging

Step-by-Step Mathematical Working

Gross profit = price − cost = 100.00 − 60.00 = 40.00.
Margin = profit ÷ price = 40.00 ÷ 100.00 = 0.40000 = 40.00%.
Markup = profit ÷ cost = 40.00 ÷ 60.00 = 0.66667 = 66.67%.
Margin and markup differ because the denominators differ: price for margin, cost for markup.

Formula and method

Margin = (price − cost) ÷ price × 100; Markup = (price − cost) ÷ cost × 100; price = cost ÷ (1 − target margin); margin = markup ÷ (1 + markup)

Margin and markup describe the same profit from different bases, so they can never be equal unless profit is zero. Margin is always the lower number, which is why pricing to a target markup undershoots a target margin.

Variables

Cost
What the item costs you to acquire or produce
Price
The selling price before tax
Margin
Gross profit as a percentage of the selling price
Markup
Gross profit as a percentage of the cost

Worked example

A 60 cost sold at 100 has a 40 gross profit, 40% margin and 66.67% markup. To achieve a 40% margin on the same 60 cost, the price must be 100; to achieve a 40% markup, only 84 is needed.

Who this calculator is for

Retailers, wholesalers, e-commerce sellers, restaurateurs, and freelancers quoting work, who need to convert the two percentages without mixing them up.

Complete guide to the margin and markup calculator – convert between cost, price, margin and markup

Every figure below comes from this calculator itself. The method is Margin = (price − cost) ÷ price × 100; Markup = (price − cost) ÷ cost × 100; price = cost ÷ (1 − target margin); margin = markup ÷ (1 + markup), applied to the tool's default inputs and then stress-tested one input at a time.

What the Margin and Markup Calculator – Convert Between Cost, Price, Margin and Markup works out

Margin and Markup Calculator – Convert Between Cost, Price, Margin and Markup answers one specific question: Move between cost, selling price, gross margin and markup in any direction, including the selling price needed to hit a target margin or the cost ceiling for a target markup. It is written for retailers, wholesalers, e-commerce sellers, restaurateurs, and freelancers quoting work, who need to convert the two percentages without mixing them up.

The method is Margin = (price − cost) ÷ price × 100; Markup = (price − cost) ÷ cost × 100; price = cost ÷ (1 − target margin); margin = markup ÷ (1 + markup). The inputs are What do you want to calculate?, Cost per unit, Selling price per unit, Target margin (%), Target markup (%). With the default values - What do you want to calculate? = fromCostPrice, Cost per unit = 60, Selling price per unit = 100, Target margin = 40%, Target markup = 66.67% - the result is Gross margin: 40.00%. Raising Cost per unit from 60 to 66.00 moves the headline result from 40.00% to 34.00%.

Working through the reported figures

Alongside 40.00% this method reports 8 supporting quantities: Markup on cost: 66.67%; Gross profit per unit: 40.00; Cost as a share of price: 60.00%; Profit as a share of cost: 66.67%. Taken together they show which input moved the answer and by how much.

The arithmetic as executed: Gross profit = price − cost = 100.00 − 60.00 = 40.00. Margin = profit ÷ price = 40.00 ÷ 100.00 = 0.40000 = 40.00%. Markup = profit ÷ cost = 40.00 ÷ 60.00 = 0.66667 = 66.67%. Margin and markup differ because the denominators differ: price for margin, cost for markup. Run the same substitution yourself; a match confirms the inputs were read as you intended.

How to interpret the answer

Margin and markup describe the same profit from different bases, so they can never be equal unless profit is zero. Margin is always the lower number, which is why pricing to a target markup undershoots a target margin.

Applying that reading here: 40.00% alongside markup on cost of 66.67% describes one specific scenario, not a range of possibilities. Adjust the quantity that is genuinely uncertain in your case, then read both figures again.

Common mistakes to avoid

Adding a 40% markup and believing you have a 40% margin - you actually have 28.57%. Calculating margin on cost, which produces markup instead. Ignoring shipping, payment fees and returns, which reduce the realised margin. Applying margin to a tax-inclusive price, which overstates profit.

Before you act on the result, re-read What do you want to calculate?, Cost per unit, Selling price per unit, Target margin (%), Target markup (%) and confirm each entry matches its label, including whether a percentage is entered as 8 for eight per cent or as 0.08. Change Cost per unit deliberately and check that the result moves the way the formula predicts - here 40.00% should shift smoothly rather than jump.

Limitations and responsible use

Gross margin only; it excludes operating expenses, so it is not net profit. Assumes one unit with fully known cost, before discounts, rebates and volume breaks.

Treat everything above as conditional on those limits. The arithmetic is fully exposed for you to re-derive, though whether the inputs reflect your real position is outside what any calculator can check. For a consequential decision, verify the operative figures against a primary source before relying on the answer.

Frequently asked questions

What is the difference between margin and markup?

Margin divides profit by the selling price; markup divides profit by the cost. A 50% markup is only a 33.3% margin.

How do I convert markup to margin?

margin = markup ÷ (1 + markup). A 0.25 markup is 0.25 ÷ 1.25 = 20% margin.

What price gives a 30% margin on a 70 cost?

price = cost ÷ (1 − 0.30) = 70 ÷ 0.70 = 100.

Related searches for this calculator

People also look for margin calculator, markup calculator, margin vs markup, profit margin calculator and selling price calculator. Everything on this page is calculated in your browser from the formula shown above.

Related Business Calculators

Explore another calculator in this subject.