Free online tool

Profit Margin Calculator

See how much revenue remains as profit after subtracting cost.

Instant calculation

Calculate profit margin

Compare profit with total revenue.

Calculation inputs are processed in your browser. Copying or sharing a result is your choice. See our privacy policy for advertising and technical logs.

Tool and explanation maintained by Leslie. Report an incorrect result.

Input steps

How to use this calculator

  1. 01

    Choose the calculation

    Use Margin for an existing sale or Target margin to price an item.

  2. 02

    Enter amounts for the selected tab

    For Margin, enter revenue and cost. For Target margin, enter cost and the desired margin as a percentage of the selling price.

  3. 03

    Read the result

    Calculate margin for a completed sale, or Calculate selling price to recover the price needed for your target.

The formula

How this calculation works

Subtract cost from revenue to find profit, then divide profit by revenue and multiply by 100.

Profit Margin Calculator

Profit margin % = (Revenue − Cost) ÷ Revenue × 100

Check the method

Worked examples

Each example follows the same formula used by the calculator.

What is the margin on 200 revenue and 120 cost?

(200 − 120) ÷ 200 × 100 = 40%40% margin; profit 80

What price gives a 30% margin on a cost of 175?

175 ÷ (1 − 0.30) = 250. Profit = 250 − 175 = 75.Selling price 250. Profit is 30% of that price.

Margin uses revenue as the base

Revenue 100 with cost 80 gives profit 20 and margin 20%. To target a 25% margin on cost 90, revenue must be 90/(1-0.25) = 120. Adding 25% to cost would produce a lower margin.

Choose current margin or target price

In Margin mode, revenue 250 with cost 175 gives profit 75 and margin 30%. In Target margin mode, cost 175 and a 30% target give 175/0.7 = 250. The reverse calculation is a check, not a second profit source. A 100% target cannot produce a finite selling price for positive cost.

Keep revenue net of relevant reductions

Suppose an item is listed at 100 but sells for 90 after a discount, with cost 60. The realized margin is (90 − 60)/90 = 33.33%, not 40% based on the list price. Choose whether your figures represent product gross margin or a broader profit measure. Sales tax collected for an authority and unrecorded business costs should not silently change that definition.

Further reading

These references explain the underlying concepts. They do not endorse this website or verify an individual result.

Method notes updated by Leslie.

Common questions

Questions about this calculation

Why can a margin be negative?

If cost exceeds revenue, the difference is a loss and the margin is negative. Revenue must not be zero. Use matching periods and decide whether cost means product cost or all operating expenses.

How is profit margin calculated?

Subtract cost from revenue, divide the profit by revenue, and multiply by 100.

Can profit margin be negative?

Yes. A negative margin means cost is greater than revenue, producing a loss.

Why must revenue be greater than zero?

Revenue is the divisor in the margin formula, so zero revenue makes the percentage undefined.

How is margin different from markup?

Margin divides profit by revenue, while markup divides profit by cost. They answer different business questions.