100% Free · No sign-up
🧮

← All calculators

Profit Margin & Markup Calculator

Margin and markup describe the same profit from two different bases, and mixing them up is one of the most common pricing mistakes. Margin divides profit by the selling price. Markup divides profit by the cost. Because the selling price is always higher than the cost (when you make a profit), the markup percentage is always higher than the margin percentage — and treating one as the other quietly underprices your product.

Profit Margin & Markup Calculator

Work out profit, margin and markup from cost and selling price — the two percentages every seller mixes up.

Your result

Formula

Profit = selling price - cost. Margin = profit / selling price x 100. Markup = profit / cost x 100.

How to use this calculator

Enter what the item cost you and what you sell it for. Margin tells you what share of the selling price is profit; markup tells you how much you added on top of cost.

Worked example

Example: cost €60, selling price €100 gives €40 profit — a 40.00% margin and a 66.67% markup. Same €40 profit, two different percentages: margin divides by price, markup divides by cost.

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 40% margin on a €100 sale equals a 66.67% markup on a €60 cost — they describe the same profit from different bases.
Can the selling price be lower than the cost?Yes — the calculator then shows a negative profit, margin and markup, i.e. a loss. The selling price must still be greater than zero.

Take the default example: an item costs €60 and sells for €100. The profit is €40. The margin is €40 divided by €100, which is 40%. The markup is €40 divided by €60, which is 66.67%. Same €40 profit, two very different percentages. If you wanted a 40% margin and instead added a 40% markup to a €60 cost, you would price at €84 and earn only a 28.57% margin — a shortfall that adds up across every sale.

Margin is the number to use when you set pricing targets, because it tells you what share of each sale you keep. Markup is useful when you work from costs upward, for example when a supplier raises prices and you need to adjust your selling price by the same proportion. When you plan a discount, check the margin after the discount, not before: a 20% discount on a €100 item with a 40% margin leaves a 25% margin, not 20%.

The calculator also handles losses honestly. If the selling price is below the cost, profit, margin and markup all come out negative — that is a loss, shown plainly rather than hidden. The selling price must still be greater than zero, and the cost must not be negative. If the cost is zero, the markup is shown as not applicable, because dividing by zero has no meaningful answer, while the margin is still correct.