Free online tools
English EN, Choose a language

Profit margin calculator

Profit margin from selling price and cost, with profit and markup, or the price needed for a target margin.

Result

—

Enter the selling price and the cost.

Runs in your browser. Nothing you type is sent.

Related tools

All calculators →

How to use this profit margin calculator

Enter the selling price and the cost to get the profit margin: the share of each sale you keep as profit. You can also start from the cost and a markup, or from a price and a target margin to find the cost you can afford. The card shows profit, markup and the cost and price, and a table converts markup to margin. Runs in your browser.

Profit margin formula

Margin = (price − cost) ÷ price × 100. A product that costs $40 and sells for $60:

  1. Profit = selling price − cost = $60.00 − $40.00 = $20.00.
  2. Margin = profit ÷ selling price × 100 = $20.00 ÷ $60.00 × 100 = 33.333%.
  3. Markup = profit ÷ cost × 100 = $20.00 ÷ $40.00 × 100 = 50%.

A cost of $40.00 and a selling price of $60.00 give a profit of $20.00: a 33.33% margin and a 50% markup.

Target margin, working backwards

To keep a 25% margin on a $200 sale the cost must not exceed $150.00, leaving $50.00 profit. Multiplying a cost by 1.25 does not give a 25% margin; it gives a 20% margin. Use the price as the base.

Margin vs markup

A 100% markup (selling at double cost) is only a 50% margin. Margin ranges from below 0 up to just under 100%; markup has no upper limit. Quoting the wrong one can mean underpricing by a lot, so say which you mean. For the markup view use the markup calculator.

Gross, operating and net margin

This calculator uses whatever cost you enter. With the product cost only it gives gross margin (for $1,250 sales and $900 cost: 28%). Subtract wages, rent and marketing as well for operating margin, and interest and tax for net margin. A margin that looks healthy on product cost can disappear once overheads are counted. Not financial advice.

Related calculators and converters

Profit margin calculator FAQ

How do I calculate profit margin?

Subtract the cost from the selling price, divide by the selling price and multiply by 100. ($60 − $40) ÷ $60 = 33.33%.

What is a good profit margin?

It depends on the industry. Many retailers work on 20-50% gross margins, software and services often higher, grocery much lower. Compare with your own sector.

How do I convert markup to margin?

Margin = markup ÷ (1 + markup). A 50% markup is 0.5 ÷ 1.5 = 33.3%.

What price gives a 30% margin on a $70 cost?

Price = cost ÷ (1 − margin) = 70 ÷ 0.7 = $100.

Is profit margin the same as profit?

Profit is a money amount; margin is that amount as a percentage of the selling price.

Can the margin be negative?

Yes. If the cost is above the price the margin is negative, a loss on each sale.

Missing something in the profit margin calculator?Suggest an idea. It takes 20 seconds and we read every one.Suggest an idea

Sends only what you type here, never the text you work with. Your email is used only to reply about this idea.

Free online tools