Practiva Sales
Pricing

Sales margin calculator

Enter the cost and the selling price to see profit, margin and markup. Add a target margin to find the price that reaches it.

Updated 1 December 2026
Profit
Margin
Markup
Price for the target margin

Profit is price minus cost. Margin is profit divided by price. Markup is profit divided by cost. The price for a target margin is cost divided by one minus the margin, so a margin of 100% or more has no price. Everything is calculated in your browser. Nothing is sent anywhere.

What the calculator does

Margin and markup are the two ways to express profit as a percentage, and mixing them up is a common pricing mistake. This calculator takes the cost and the selling price per unit and shows the profit, the margin and the markup together. It can also work backwards from a target margin to the price you need.

The formulas

  • Profit: price minus cost.
  • Margin: profit divided by price.
  • Markup: profit divided by cost.
  • Price for a target margin: cost divided by (1 minus the margin). A margin of 100% or more has no price, because profit can never reach the whole price.

Worked example

A product costs 60 and sells for 100.

Measure Calculation Result
Profit 100 − 60 40
Margin 40 ÷ 100 40%
Markup 40 ÷ 60 66.67%

Now suppose you want a 50% margin on the same cost of 60. The price is 60 ÷ (1 − 0.5), which is 120. At that price the markup is 100%, because the profit of 60 equals the cost.

Margin and markup side by side

The same sale gives these two figures. Use the table to translate between them.

Margin Markup
10% 11.11%
20% 25%
30% 42.86%
40% 66.67%
50% 100%
60% 150%

To convert, markup equals margin divided by (1 − margin), and margin equals markup divided by (1 + markup).

Which one to use

Margin is the figure that fits a profit and loss statement, because it is a share of revenue, the same base as the other lines on the statement. Markup is common in retail and quoting, where a price is built by adding a percentage to a known cost. Pick one and say which one you mean when you quote a figure to a colleague or a customer, since 40% can mean two different prices.

Margin is the share of the price you keep, so a discount cuts it by more than the discount itself. A 10% discount on a product that costs 60 and sells for 100 lowers the price to 90 and the margin from 40% to about 33%. For a salesperson paid on revenue, see the sales commission calculator, and for forecasting revenue from a pipeline, use the sales forecast calculator. If you are choosing a CRM to track deals and prices, see the CRM cost calculator.

Questions and answers

What is the difference between margin and markup?

Both describe profit, but against different bases. Margin is profit divided by the selling price. Markup is profit divided by the cost. For the same sale with a positive profit, the markup is always the larger number.

Why is a 50% markup not a 50% margin?

Because the base is different. At a cost of 60 and a markup of 50%, the price is 90 and the profit is 30. Divided by the price of 90, that profit is a margin of 33.33%.

How do I find the price for a target margin?

Divide the cost by one minus the margin. For a cost of 60 and a target margin of 50%, the price is 60 ÷ 0.5, which is 120. Enter the target margin in the optional field and the calculator does this for you.

Can the margin be negative?

Yes. If the price is below the cost, the profit is negative and so are the margin and markup.

Does the margin include taxes, discounts or shipping?

Only if you put them in the cost or the price. Enter the cost as everything you pay per unit and the price as what you actually receive, after discounts and before tax.

Does the calculator save my numbers?

No. Everything is calculated in your browser and nothing is sent or stored.