Profit Margin Calculator

Enter a selling price (revenue) and a cost to see the profit, the profit margin, and the markup. Margin is profit divided by the selling price; markup is profit divided by cost. They are not the same number: a cost of 600 and a price of 1,000 is a 40% margin and a 66.67% markup. You can also work backwards from a cost and a target margin or markup to a selling price. The figures are arithmetic, not financial, tax or accounting advice.

By Rashid MehmoodLast updated and reviewed Free, no sign-up

Profit margin calculator

%
–

How to use the profit margin calculator – margin vs markup

  1. Choose what to find. Both margin and markup from a price and a cost, or a selling price from a cost and a target margin or markup.
  2. Enter the figures. Use the same currency for revenue and cost. The symbols on the page are a generic currency format, not a live FX rate.
  3. Read margin and markup together. The two percentages are shown side by side so they are not confused.
  4. Print or copy. Print / Save PDF keeps the inputs and the split of cost and profit. This is not a statement or an invoice.
Embed this calculator

Paste this iframe on your own site. The embed view already includes a visible “Calculator by CalcTen” credit, which must stay visible. See the developers page for the conditions.

Margin and markup are different divisions

Profit on a sale is revenue minus cost. Profit margin divides that profit by the selling price. Markup divides the same profit by the cost. With revenue 1,000 and cost 600:

  • profit = 400
  • margin = 400 / 1,000 = 0.40 (40%)
  • markup = 400 / 600 ≈ 0.6667 (66.67%)

Working backwards:

  • from a target margin: price = cost / (1 − margin)
  • from a target markup: price = cost × (1 + markup)

Those two prices coincide only in special cases, never as a general rule that “40% is 40%.” A shop that marks cost up by 40% and a shop that aims at a 40% margin are not quoting the same ticket price.

The diagram is a simple split of cost and profit on the selling price. It is not a profit-and-loss statement. Taxes, discounts, returns and overheads are outside this page; the discount and sales-tax calculators handle those pieces separately, and you must still decide what belongs in “cost.”

Copy result, Copy link, Reset and Print / Save PDF work as on the other finance tools. None of this is a recommendation to set a price, and none of it is a tax computation. If a figure disagrees with a hand check, report it from the about box.

Frequently asked questions

What is the margin if revenue is 1,000 and cost is 600?

Profit is 400. Margin is 400 ÷ 1,000 = 40%. Markup is 400 ÷ 600 ≈ 66.67%. That is the default example.

How do I get a 40% margin from a cost of 600?

Price = cost ÷ (1 − margin) = 600 ÷ 0.60 = 1,000. A 40% markup on 600 would be a price of 840, which is a lower margin.

What is the difference between margin and markup?

Margin is profit as a share of the selling price. Markup is profit as a share of cost. Quoting one when you mean the other changes the price.

Can cost be zero?

A zero cost with a positive price is a 100% margin and an undefined markup (division by zero). The page says so rather than inventing a percentage.

Does this include tax?

No. Sales tax is a separate calculator. Whether your “cost” is a unit cost, a landed cost or a fully loaded cost is your definition; the arithmetic is the same.

Is this financial advice?

No. It does not set a price, forecast demand, or apply accounting standards. It only converts between price, cost, margin and markup.

Can I enter a margin of 100% or more?

Not when solving for a price from a margin: that would divide by zero or turn the formula inside out. A markup may be 100% or more (price is then twice the cost or higher).

Sources and references

About this calculator

Written and maintained by Rashid Mehmood, founder of CalcTen. The formulas are unit-tested against hand-worked examples, and the content is reviewed whenever product sizes or guidance change. Last updated and reviewed 15 November 2026. See our editorial policy. If you spot a mistake, report it.

This calculator gives general information and is not financial, tax or investment advice. It assumes a fixed rate and ignores fees, taxes and inflation, and real products differ. Check the terms with your bank or lender before making decisions. Read the disclaimer.

Calculator by CalcTen — free online calculators.