Skip to calculator

Finance · Price and margin

Separate margin on price from markup on cost

Margin puts profit over selling price; markup puts profit over cost. With $60 cost and $100 price, margin is 40% and markup is 66.7%. You cannot swap the two percents.

Calculate

Unit cost (or cost of the line). Cannot be zero (markup divides by cost).

Price or revenue for the same unit/line. Must be positive.

How the calculator works

Profit = price − cost. Margin = profit / price (percent of the selling price). Markup = profit / cost (how much you “mark” cost to get price). A 50% margin means profit is half the price, so cost is the other half: price is double cost, and markup is then 100%, not 50%.

Formula and method

Profit = prix − coût

May be negative if price is below cost (negative margin).

Marge = profit / prix

Denominator = selling price (or that line’s revenue). Shown as a percent.

Marque = profit / coût

Denominator = cost. Also called markup.

Two basic accounting ratios on a single cost and a single price. Whether your “cost” is wholesale, fully loaded, or with freight is your choice; the price must use the same convention. No inventory layers, no overhead allocation, no volume. ROI uses invested capital as the denominator, which need not equal this unit cost. A later discount changes margin after the fact; this tool does not compute the discount, it observes a known cost/price pair.

Worked example

Cost $60, price $100

Cost $60, selling price $100.

  1. Profit = 100 − 60 = $40.
  2. Margin = 40 / 100 = 40%.
  3. Markup = 40 / 60 ≈ 66.67%.
  4. If someone says “50% margin” while meaning “add 50% to cost,” that is a 50% markup: price = 60 × 1.5 = $90, margin 30/90 ≈ 33.3%, not 50%.

40% margin, 66.67% markup, $40 profit. This triplet is the usual mix-up.

50% markup is not 50% margin

Cost $80, apply a 50% markup.

  1. Price = 80 × 1.50 = $120.
  2. Profit = $40.
  3. Markup = 40/80 = 50% (by construction).
  4. Margin = 40/120 ≈ 33.33%.

50% markup, 33.33% margin. A 50% margin on $80 cost would need a $160 price (100% markup).

Input notes

Cost
Markup’s denominator. Cost 0 is rejected. It need not be catalog wholesale; it is whatever you set against price.
Selling price
Margin’s denominator. Unit price or line revenue, one amount, no separate quantity field.

Assumptions and limits

Assumptions

  • One cost and one price, same convention (both pretax or both with tax, same currency).
  • No inventory or allocated overhead.
  • Cost and price strictly positive.

Limits

  • Does not solve for a target price at a required margin (it starts from a known price).
  • Ignores sales tax, year-end rebates, and freight not in the typed cost.
  • Not a company profitability diagnosis and not tax advice.

How to read the result

Quote “40% margin” only if you mean profit over price. Quote “67% markup” if you mean profit over cost. Using the wrong word with a buyer or a cost-plus contract is how bids go sideways. ROI on the $40 versus some other capital outlay is yet another ratio.

Common mistakes

  • Calling a 50% add-on to cost a 50% margin.

    That add-on is markup. Margin on that deal is 33.3% in the $80 → $120 example.

  • Comparing margin to ROI as if the denominator matched.

    ROI divides by capital invested. Margin divides by price.

Methodology · Sources

Related calculations

Frequently asked questions

Which number do retailers usually mean by “margin”?

Often profit divided by selling price, but you should still ask.

Cost-plus shops talk markup. This page prints both so the sentence can be checked. There is no single US legal definition applied here.

Can margin be negative?

Yes, if price is below cost.

Markup is then also negative, but the two percents still differ because the denominators differ.

How do I hit a 40% margin from cost?

Price = cost / (1 − 0.40). This form does not invert for you.

For $60 cost and 40% margin, price = 60 / 0.60 = $100. That is the first example run backwards. Type the resulting price here to confirm.

Author and update

Written by Rédaction HexaCalc (editorial team). Content last updated: August 25, 2026. No third-party medical or financial review is claimed.

This calculation uses a standard mathematical identity. See also the methodology.

Return on cash in, not on price

If the question is gain versus money invested, ROI uses a different denominator and ignores selling-price language.

Calculate ROI

Margin and markup on one cost and one price. Not a full P&L and not tax advice. This is a calculator, not financial, tax, or credit advice, and not a loan or investment offer. Lenders and brokers apply their own rounding, fees, insurance, and APR. Check the actual contract and disclosures.

Category: Finance