Free tool · Pricing

Profit margin and markup calculator

Enter your cost and selling price to see margin, markup and profit. Or enter your cost and the margin you want to find the price to charge, with GST or VAT added on top if you need it.

FreeNo sign-upRuns in your browser

I want to
Selling price
Cost
Profit
Margin
Markup
Tax
Customer pays

Make an invoice

Margin and markup are worked out on the price before tax. Rounded to two decimals.

Margin and markup are not the same

Both measure profit, but against a different base, and mixing them up is one of the most common pricing mistakes.

  • Margin = (price − cost) ÷ price × 100. It answers “how much of each sale do I keep?”
  • Markup = (price − cost) ÷ cost × 100. It answers “how much did I add on top of what it cost me?”
  • Price for a target margin = cost ÷ (1 − margin ÷ 100).
MarkupMarginCost 100 sells for
25%20%125
50%33.3%150
100%50%200
300%75%400

A worked example: a shop buys a bag for 600 and sells it for 1,000. Profit is 400, so the margin is 40% and the markup is about 66.7%. To earn a 40% margin you cannot simply add 40% to the cost, because that gives 840 and a margin of only 28.6%.

Adding GST or VAT

Tax you collect is not your income, so it stays out of the margin. Enter the rate and the calculator adds it to the selling price to show what the customer pays. To split an inclusive price back into its parts, use the GST calculator or the UAE VAT calculator.

Common questions

What is the difference between margin and markup?

Both describe profit, but against a different base. Markup is profit as a percentage of cost. Margin is profit as a percentage of the selling price. An item that costs 80 and sells for 100 has a profit of 20, a markup of 25% and a margin of 20%. Markup is always the larger number.

How do I calculate profit margin?

Subtract the cost from the selling price to get the profit, then divide the profit by the selling price and multiply by 100. For example, a cost of 600 and a price of 1,000 gives a profit of 400 and a margin of 40%.

How do I set a price for a target margin?

Divide the cost by (1 minus the margin as a decimal). For a 25% margin on a cost of 600, the price is 600 ÷ 0.75 = 800. Multiplying the cost by 1.25 instead would give 750, which is only a 20% margin, a common mix-up of margin with markup.

Should margin be worked out before or after GST or VAT?

Before. GST or VAT that you collect is passed on to the tax authority, so it is not part of your revenue or your profit. This calculator works out margin on the price before tax and then shows the tax-inclusive price your customer pays. If your cost includes tax you can claim back, use the cost before that tax.

Is this the gross margin or the net margin?

It is a simple gross margin on the cost you enter. Rent, wages, delivery, card fees and other overheads are not included unless you add them to the cost. Net margin comes after all of them.

Is anything I type stored or sent?

No. The calculator runs in your browser and saves nothing. This site has no analytics.

See your real margin on every invoice

Zebill keeps cost and selling price together with your invoices and stock, so you can see what you actually earn on each sale. Free while in early access.