Profit Margin and Markup Calculator

Get profit, gross margin and markup from cost and price, or set a price that hits your target margin.

Profit
Margin
Markup

Runs entirely in your browser. Nothing you enter is sent anywhere.

How it works

Margin and markup use the same profit but different bases. Margin is profit as a share of the selling price; markup is profit as a share of the cost. A 25% markup is only a 20% margin, a common source of underpricing.

To price for a target margin, divide the cost by (1 − margin). Adding the margin percentage to the cost gives a lower price than you intended.

Profit = price − cost
Margin = profit / price
Markup = profit / cost
Price for target margin = cost / (1 − margin)

Worked example

An item costing ₹800 sold for ₹1,000 makes ₹200 profit: a 20% margin and a 25% markup. To earn a 30% margin on the same cost, price it at 800 / 0.70 = ₹1,142.86, not ₹1,040.

Frequently asked questions

Is margin or markup better to track?

Margin relates directly to revenue and profit and loss statements, so it's what most businesses report. Markup is handy for quick pricing from cost.

Should cost include GST?

If you're GST-registered and claim input tax credit, use costs and prices excluding GST so the margin reflects your real profit.

Related tools