Margin & Markup Calculator

Calculate margin, markup, gross profit and the selling price required for a target percentage.

Calculation parameters

Currency is a display label only. No currency conversion is performed.

Result

Gross profit
Cost
Selling price
Gross profit
Margin
Markup
Margin formula: Margin = Profit / Selling price × 100% Margin measures profit as a share of the selling price.
Markup formula: Markup = Profit / Cost × 100% Markup measures profit as a share of cost.

Margin and markup are not the same

Margin and markup use the same profit amount but divide it by different bases, so an equal margin percentage and markup percentage do not mean the same thing.

Margin is based on selling price. Markup is based on cost.

For example, if cost is 60 and selling price is 100:

Profit = 40 · Margin = 40% · Markup = 66.67%
For a 40% target margin on a cost of 60, the required selling price is 100.
Useful checks 60 → 100: profit 40, margin 40%, markup 66.67%A 50% margin equals a 100% markupA 40% markup on 60 gives a price of 84 and a 28.57% marginCost 100, price 80: loss 20 and margin −25%
What is the difference between margin and markup?

Margin divides profit by selling price, while markup divides profit by cost. For example, a 50% margin equals a 100% markup.

How do I find a selling price for a target margin?

Divide cost by 1 minus the margin as a decimal. For cost 60 and margin 40%: 60 / 0.60 = 100.

How do I find a selling price from markup?

Multiply cost by 1 plus markup as a decimal. For cost 60 and markup 40%: 60 × 1.40 = 84.

Can the calculator show a loss?

Yes. In Cost & selling price mode, selling price may be below cost, producing negative profit, margin and markup.

Does the calculator include VAT, fees or shipping?

No. This is a basic gross margin and markup calculator. Tax, fees, shipping, advertising and other costs must be handled separately.

Articles and explanations

Go to blog
Margin vs. Markup: What's the Difference and How to Calculate Them Margin and markup are often confused because both express the difference between cost and selling price as a percentage. The key difference is the base: margin is measured against selling price, while markup is measured against cost. That means the same sale will usually have different margin and markup percentages. This guide explains the formulas, worked examples, conversions, and the correct way to set a selling price for a target margin or markup. Cost, selling price, and gross profit A basic margin-and-markup calculation uses three quantities. Cost is the amount you choose to treat as the..