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
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.
- Profit = 100 − 60 = $40.
- Margin = 40 / 100 = 40%.
- Markup = 40 / 60 ≈ 66.67%.
- 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.
- Price = 80 × 1.50 = $120.
- Profit = $40.
- Markup = 40/80 = 50% (by construction).
- 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.
Related calculations
- DiscountApply one markdown: the original times (1 − p/100). Stacked percents off are not a sum: 20% then 20% leaves 64% of list, a 36% combined cut, not 40%.
- ROIROI here is a simple ratio of gain (or loss) to cash put in. It does not know whether the outcome took a month or a decade. CAGR is the tool that uses years.
- Bill splitTotal, headcount, optional tip. Everyone pays the same share of bill + tip.
- TipFrom a bill and a percent, get the tip, the grand total, and an even per-person share. In many US full-service restaurants people leave about 18–20% of the check; that is a custom, not a legal minimum, and not a rating of the meal.
- Hourly to salaryThree numbers: hourly rate, weekly hours, paid weeks. The tool returns the week, the calendar month (year / 12) and the year.
- Sales tax / VATOne amount and one rate. The tool either adds tax (net → gross) or extracts it (gross → net) and shows the tax slice.
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 ROIMargin 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