Skip to main content

How to calculate profit margin

The formula, worked examples, and the mistake that makes many shops price too low.

Profit margin tells you how much of every sale you keep after paying for what you sold. A 25% margin means you keep 25 out of every 100 you sell for, before rent, salaries and other running costs.

The formula

Margin % = (selling price − cost) ÷ selling price × 100. Example: you buy an item for 60 and sell it for 100. Profit is 40, and 40 ÷ 100 = 40% margin.

Margin is not markup

Markup divides the profit by the cost, not the price. In the same example, markup is 40 ÷ 60 = 66.7%. If you add 40% to your cost (60 + 24 = 84), your margin is only 24 ÷ 84 = 28.6%, not 40%. Mixing the two is the most common reason prices come out too low.

Set a price for the margin you want

Price = cost ÷ (1 − target margin). For a 40% margin on a cost of 60: 60 ÷ 0.60 = 100. Include every cost of getting the item to the customer in the cost: purchase price, shipping, customs and packaging.

Watch discounts

A discount comes straight out of your profit. On the item above, a 10% discount (100 → 90) cuts profit from 40 to 30, so margin falls from 40% to 33%. Know your floor price before you agree to a discount.

Frequently asked questions

What is a good profit margin?

It depends on the trade. Grocery and electronics often run on thin gross margins, while services and specialised products can carry much higher ones. Compare against your own running costs: your gross profit must cover rent, salaries and other expenses before anything is left for you.

Should VAT be included when I calculate margin?

No. Where VAT applies, it is collected for the government, so calculate margin on the price and cost before tax.

Is gross margin the same as net margin?

No. Gross margin uses only the cost of what you sold. Net margin also takes off running costs such as rent, salaries and fees, so it is always lower.

Do this in Hamesh for free

Create a free account and Hamesh does these sums for you on every invoice.

Start free

Free tools

Business basics

This article is general information, not tax or accounting advice. Check with your accountant or the tax authority for your case.