Business

Profit Margin Calculator

Measure gross profit as a share of sales revenue and see the difference from markup on cost.

Private, in-browser calculationUpdated

Let’s work it out

Enter your numbers. We’ll show the working.

How to use this calculator

  1. Enter sales revenue and the other values for your scenario.
  2. Check the units, rate convention, and assumptions below; replace every example with your own figures.
  3. Select Calculate, then compare the result and breakdown. Reset restores the example.

The formula

Gross margin = (revenue − cost) / revenue × 100

Gross profit is sales revenue less the entered cost. Margin divides that difference by revenue. The optional equivalent markup divides it by cost when cost is positive.

PUTTING IT INTO PRACTICE

A worked example

Selling for 100 with a cost of 60 produces 40 profit and a 40% margin. Markup on cost is 40/60 × 100 = 66.6667%.

How to interpret your result

A negative margin indicates a loss before any additional costs excluded from your input. Use consistent totals for the same product, order, or period.

Assumptions and limitations

Revenue is positive; cost is nonnegative. Inputs cover the same scope and currency.

This is gross margin, not necessarily operating or net margin. Shipping, returns, overhead, tax, and other costs must be included deliberately if relevant. Zero revenue has undefined margin.

For informational purposes only. This calculator does not provide financial, tax, legal, or investment advice. Results are estimates.