Skip to content
Free online tool

Profit margin calculator

Enter a cost and selling price to see gross profit, profit margin and markup. Or enter a cost and target margin to find the price you need to charge. Formulas are shown with every result.

Margin from cost and price

Price for a target margin

Gross margin is profit as a share of the selling price. Markup is profit as a share of the cost. A 50% markup equals a 33.3% margin. These figures exclude taxes and overheads unless you include them in the cost.

How to calculate profit margin

  1. In the first panel, enter what an item costs you and what you sell it for.
  2. Read the gross profit, margin and markup, with the formulas below them.
  3. In the second panel, enter a cost and the margin you want, to see the selling price you need.

Margin vs markup

These two figures are often confused, but they answer different questions. Profit margin is profit as a percentage of the selling price: (price − cost) ÷ price × 100. Markup is profit as a percentage of the cost: (price − cost) ÷ cost × 100. If something costs 40 and sells for 65, the profit is 25, the margin is 38.46% and the markup is 62.5%.

To hit a target margin, divide the cost by one minus the margin: price = cost ÷ (1 − margin). A 35% margin on a cost of 40 needs a price of 61.54. The calculator explains why a margin of 100% or more is impossible, flags negative values, and labels results as a loss when the price is below cost. If the price or cost is zero, the margin or markup is shown as not applicable instead of an error.

Who it’s for

Margin to markup conversion

To turn a margin into a markup, use markup = margin ÷ (1 − margin). To go the other way, use margin = markup ÷ (1 + markup). A 50% markup is only a 33.33% margin.

Target margin, equivalent markup and price for a cost of 100
Target marginEquivalent markupSelling price
10%11.11%111.11
20%25.00%125.00
25%33.33%133.33
30%42.86%142.86
40%66.67%166.67
50%100.00%200.00
60%150.00%250.00

Gross margin vs net margin

This calculator gives gross margin: the selling price minus the direct cost of the item. Net margin also subtracts overheads such as rent, wages, advertising, payment fees and tax, so it is lower whenever you have those costs. To estimate a per-item net margin, add your share of those costs to the cost field.

Why discounts eat into margin

An item that costs 60 and sells for 100 has a 40% margin. A 10% discount brings the price to 90, so profit falls from 40 to 30 and the margin drops to 33.33%. The price fell by 10%, but profit fell by 25%.

Profit margin FAQ

What costs should I include?

For gross margin, include the direct cost of the product or service. For a fuller picture, add shipping, fees and packaging to the cost.

What is a good profit margin?

It varies widely by industry. Compare with businesses similar to yours rather than a single benchmark.

Does it include tax?

No. Enter amounts excluding sales tax or VAT for a true margin.

Should I price using margin or markup?

Either works if you are consistent. Margin is easier for comparing profitability and reports; markup is convenient when adding a fixed percentage to cost. Use the table above to switch between them.

Can profit margin be more than 100%?

No. Margin is profit divided by price, and profit can never exceed the price. Markup can be over 100%: selling something that cost 40 for 100 is a 150% markup and a 60% margin.

Last updated: 8 November 2026.

Need another tool?

Browse all 50 free tools for PDFs, images, text, SEO, calculations and development.

Explore All Tools