Margin Calculator

Profit margin and markup from cost and price.

Your numbers

I know
$
$
Gross margin 40%
Selling price
$100.00
Profit
$40.00
Markup
66.67%

About the Margin Calculator

Margin is profit as a share of the price; markup is profit as a share of the cost. A 50% markup is only a 33.3% margin. Enter any two to get the rest.

Formula

Margin = (price − cost) ÷ price. Markup = (price − cost) ÷ cost.

Questions

Frequently asked

How does the Margin Calculator work?

Margin = (price − cost) ÷ price. Markup = (price − cost) ÷ cost. Results update as you type.

Is this Margin Calculator free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way