PennyCompass

Margin & Markup Calculator

Free margin and markup calculator. Convert between cost, markup %, margin %, and price. See the relationship that often confuses sellers.

Published

Enter any two of cost, price, margin %, or markup %, the rest are computed.

Gross margin

(Price - Cost) / Price

Markup

(Price - Cost) / Cost

Gross profit per unit

Cost as % of price

Your breakdown

Updates live as you type
Metric Formula Result

Same dollars, two different denominators

Margin and markup describe the exact same profit dollars, but they divide that profit by different bases, and confusing the two is one of the most common pricing errors in small business. Markup measures profit against cost: profit divided by what you paid. Margin measures profit against price: profit divided by what you charged. Because price is always larger than cost on a profitable sale, the margin percentage is always smaller than the markup percentage for the same transaction. This tool takes any cost and price you enter and reports both numbers side by side so the relationship is impossible to mix up.

A 40 dollar item sold for 100

The calculator loads with a cost of $40 and a price of $100. That makes the gross profit $60, and here is how the two ratios diverge from those identical $60.

The same $60 of profit reads as a 60 percent margin or a 150 percent markup depending on which base you use. A merchant who hears 150 percent and a CFO who hears 60 percent are describing the identical product. This is why the gap matters in practice: if a supplier tells you to apply a 50 percent markup and you instead set a 50 percent margin, you will underprice the item and quietly erode your profit on every unit you sell.

Which number to speak to whom

Use margin when you talk to investors, lenders, and accountants, because gross margin and net margin are the standard lines on an income statement and the figures analysts compare across companies. Use markup on the floor and with suppliers, because it answers the operational question of how much to add on top of a known cost. The expert habit worth building is to always state which one you mean. Saying simply "we run at fifty" is ambiguous and has cost plenty of businesses real money. Say "fifty percent margin" or "fifty percent markup" and the confusion disappears. Keep in mind too that these are gross figures. They sit above rent, payroll, marketing, and every other operating cost, so a healthy gross margin does not by itself guarantee the business is profitable at the bottom line.

A quick story shows why the distinction is not academic. Suppose a boutique buys candles for $40 and the owner decides she wants to "make 50 percent." If she means markup, she lists them at $60 and earns $20 a unit, a 33 percent margin. If she means margin, she lists them at $80 and earns $40 a unit, a 100 percent markup. Same $40 cost, same vague instruction, and a $20 swing in profit on every candle. Over a thousand units that is $20,000 of profit hanging on one undefined word. The fix costs nothing: write the metric next to the number on your price sheet, and when a vendor quotes a figure, ask which base they used before you build it into your pricing.

How do I convert markup to margin quickly?

Margin equals markup divided by one plus markup. A 150 percent markup converts to 1.5 divided by 2.5, which is 0.60, or a 60 percent margin, exactly matching the example above. Going the other way, markup equals margin divided by one minus margin, so a 60 percent margin is 0.60 divided by 0.40, which is 1.5, or 150 percent markup. A few familiar pairs are worth memorizing: a 50 percent margin is a 100 percent markup, and a 33 percent margin is a 50 percent markup.

If I want a target margin, what price do I set?

Divide your cost by one minus the target margin expressed as a decimal. To hit a 60 percent margin on a $40 item, divide $40 by 0.40, which gives a $100 price, the same figure the defaults use. A frequent and expensive slip is to instead multiply cost by the target margin, which produces a price far too low. Set price from cost divided by one minus margin and your stated margin will hold.

Frequently asked questions

Markup vs margin?
Markup = (Price - Cost) / Cost. Margin = (Price - Cost) / Price. A 100% markup is a 50% margin. A 50% margin is a 100% markup. Confusing the two creates pricing errors.
Which to use?
Margin is what investors and accountants use. Markup is what merchants use to mark up cost. Communicate both to avoid confusion.
Why do accountants use margin but merchants use markup?
Margin expresses profit as a percentage of the selling price, which aligns with income statement analysis where revenue is the baseline. Markup expresses profit as a percentage of cost, which is natural when you know what you paid and need to add a percentage to price the item. Both measure the same gap between cost and price, just against different denominators. The confusion causes real pricing errors when a buyer and seller assume the other is using the same method.
What is a healthy gross margin for a product business?
It varies significantly by industry. Software and SaaS companies often run 70-90% gross margins. Retail typically runs 30-50%. Grocery and commodity businesses may be 10-20%. The key is whether gross margin after COGS is large enough to cover operating expenses and leave a profit. A 50% gross margin sounds healthy until you factor in rent, salaries, and marketing that consume it entirely.

Related calculators

Embed this calculator on your site (free)

Paste this code into your page. The calculator stays up to date automatically and links back to PennyCompass.

Calculator by PennyCompass