Margin Calculator

Compare margin and markup without mixing up the two percentages.

Your inputs

Calculation details

All calculations run locally in your browser. No data is stored.

Gross profit$40.00
Markup66.67%
Revenue$100.00

Margin is profit divided by revenue; markup is profit divided by cost.

How this calculator works

Gross profit is revenue minus cost. Margin divides profit by revenue, while markup divides the same profit by cost.

Change any input to update the estimate instantly. Your entries never leave your device.

Frequently asked questions

What is the difference between margin and markup?

Margin is profit as a percentage of revenue. Markup is profit as a percentage of cost.

Does this include operating expenses?

No. It is a gross margin estimate using only the revenue and cost you enter.