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

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.

Need another tool?

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

Explore All Tools