Profit Margin Calculator: Margin % & Price for Target Margin

Find your profit margin from the selling price and cost, or work backward from a target margin to the price you need to charge. Enter two numbers and the calculator returns profit, margin percent or the required price.

Pricing & Margin Calculators

Profit Margin Calculator

Profit margin (gross margin %) from revenue and cost, or the selling price needed to hit a target margin.

$
$

Starting values: a $100 selling price and a $65 cost, which gives $35 of profit and a 35 percent margin. Margin is measured against the selling price, so it is always lower than the markup on the same sale.

How profit margin is calculated

Profit = selling price − cost

Margin % = (selling price − cost) ÷ selling price × 100

To find the price that delivers a target margin, rearrange the same formula:

Selling price = cost ÷ (1 − target margin)

Where the target margin is written as a decimal, so 25 percent is 0.25. The result is the gross margin on the cost you enter, so what the margin means depends on which costs you include.

Worked examples

Margin from price and cost

Price $100 and cost $65: profit = 100 − 65 = $35, and margin = 35 ÷ 100 = 35 percent.

Price for a target margin

A product costs $40 and you want a 25 percent margin: price = 40 ÷ (1 − 0.25) = 40 ÷ 0.75 = $53.33. Check: profit is 13.33, and 13.33 ÷ 53.33 = 25 percent. Adding 25 percent to the cost would give only $50, which is a 20 percent margin, so the two are not interchangeable.

A negative margin

If you sell at $80 something that cost $100, profit = −$20 and margin = −20 ÷ 80 = −25 percent. A loss shows up as a negative margin.

Gross margin and net margin

A business has $100,000 of revenue and $62,000 of product costs. Entering 62,000 as the cost gives a gross margin of 38,000 ÷ 100,000 = 38 percent. Adding $28,000 of operating costs makes the cost 90,000, and the margin becomes 10,000 ÷ 100,000 = 10 percent, a net margin before interest and tax. Run the calculator twice to see both.

Margin and markup are different

Margin is profit as a share of the selling price. Markup is profit as a share of the cost. The $100 sale on a $65 cost has a 35 percent margin but a 35 ÷ 65 = 53.8 percent markup. Margin can never reach 100 percent, while markup can go well beyond it. If you price by adding a percentage to cost, use the markup calculator, which also converts between the two.

Which costs belong in the calculation

Use every cost that comes with making the sale: the product or materials, freight in, packaging, and fees charged on each sale. Fees matter more than they look. A 3 percent payment fee on a $100 sale is $3, which raises the cost from 65 to 68 and cuts the margin from 35 percent to (100 − 68) ÷ 100 = 32 percent. Overheads such as rent and salaries do not scale with each sale, so they belong in the net margin or in a break-even calculation.

Mistakes that distort the margin

  • Mixing up markup and margin. A 30 percent markup does not produce a 30 percent margin.
  • Ignoring discounts. A 10 percent discount takes the $100 price to $90. With the $65 cost, margin falls from 35 percent to 25 ÷ 90 = 27.8 percent.
  • Leaving out fees and returns. They are small per sale but add up.

Once you know your margin, the break-even point calculator shows how many sales it takes for that margin to cover your fixed costs.

Setting prices from a margin target

Once you know the margin you need, the price for any cost follows directly. On a $65 cost, a 20 percent margin needs 65 ÷ 0.80 = $81.25, a 30 percent margin needs 65 ÷ 0.70 = $92.86 and a 40 percent margin needs 65 ÷ 0.60 = $108.33. Each extra ten points of margin costs the customer a bigger price step than the last, which is worth knowing before you promise a high margin.

Margin across several products

You cannot average margins by adding them and dividing. Suppose product A brings in $60,000 at a 30 percent margin and product B brings in $40,000 at 50 percent. Profit is 18,000 + 20,000 = $38,000 on $100,000 of revenue, so the combined margin is 38 percent, not the simple average of 40. The product with more revenue pulls the result toward its own margin.

Margin against fixed costs

A margin only tells you what each sale leaves after its own costs. To see whether that covers your fixed costs, divide the fixed costs by the margin. With a 35 percent margin and $30,000 of fixed costs for the period, you need 30,000 ÷ 0.35 = $85,714 of sales just to break even. Below that, the business loses money even though every sale has a positive margin.

Frequently asked questions

How do I calculate profit margin?

Subtract the cost from the selling price, divide by the selling price and multiply by 100. For a $100 sale with a $65 cost, that is 35 ÷ 100 = 35 percent.

How do I find the selling price for a target margin?

Divide the cost by one minus the target margin as a decimal. A $40 cost with a 25 percent target needs a price of 40 ÷ 0.75 = $53.33.

Is profit margin the same as markup?

No. Margin is a percentage of the selling price and markup is a percentage of the cost. The same sale always shows a higher markup than margin, for example 53.8 percent against 35 percent.

What is a good profit margin?

There is no single answer because it varies by industry and cost structure. A useful test is whether your margin, across the sales you expect, covers your fixed costs with something left over, which the break-even calculation shows.

Mark Danny

Mark Danny

Mark Danny builds and maintains the free calculators and guides on Area of Irregular Shapes Calculator. Every calculator page explains its formula and shows a worked example, so you can check the working yourself. Spotted a mistake or have a suggestion? Email gulsher.hingoro101@gmail.com.

Articles: 559