Margin Calculator

Price products with confidence. Enter cost and selling price to get the profit margin, the markup, and the profit per unit — and never confuse margin with markup again.

Updated November 13, 2026 ·

Margin formula

Margin = (Price − Cost) ÷ Price × 100. Markup = (Price − Cost) ÷ Cost × 100.

Worked example

A product costing 60 and sold at 100 makes 40 profit: a 40% margin but a 66.67% markup.

Frequently asked questions

What is the difference between margin and markup?

Markup is profit relative to cost; margin is profit relative to price. A $60 cost sold at $100 has a 66.7% markup but a 40% margin. Mixing them up under-prices products.

What is a good profit margin?

It varies wildly: groceries run 1–3%, restaurants 5–15%, software often 70%+. Compare against your industry, not a universal number.

Is this margin calculator free and private?

Yes — completely free with no sign-up, and every calculation runs in your browser. Nothing you type is transmitted or stored.