How to use
- 1Choose what you know: cost and price, cost and target margin, cost and markup, or price and margin.
- 2Enter the amounts and, optionally, the VAT or sales-tax rate.
- 3If your price includes VAT, tick the box so the tax is removed first.
- 4Read the margin, markup, gross profit and the price including tax.
Profit margin formula
Gross profit = selling price − cost. Profit margin is gross profit divided by the selling price: margin = (price − cost) ÷ price × 100. Markup is gross profit divided by cost: markup = (price − cost) ÷ cost × 100. Buy for 80 and sell for 100 and the gross profit is 20, the margin 20 % and the markup 25 %. These are the definitions used by Penn State Extension in its markup-versus-margin guide.
Price from a target margin
Adding the margin percentage to cost does not give that margin. The correct formula is price = cost ÷ (1 − margin). For a 20 % margin on a cost of 80, the price must be 80 ÷ 0.80 = 100; pricing at 80 × 1.20 = 96 leaves only a 16.7 % margin. With markup the formula is price = cost × (1 + markup). If price and margin are fixed, the maximum cost you can afford is price × (1 − margin).
VAT, sales tax and other costs
VAT and sales tax are collected for the tax authority, so margins are calculated on net (tax-exclusive) prices. To turn a tax-inclusive price into a net price, divide by (1 + tax rate); the checkbox does that for you. Marketplace fees, shipping, packaging and payment fees belong in the cost — leave them out and your real margin is lower than it looks.
Frequently asked questions
What is the difference between margin and markup?
Margin divides profit by the selling price, markup divides it by cost. For the same sale the margin is always smaller: a 25 % markup equals a 20 % margin.
How do I price for a 30 % margin?
Price = cost ÷ (1 − 0.30). A cost of 70 gives a price of 100. Multiplying cost by 1.30 gives a 30 % markup, which is only about a 23 % margin.
Is profit margin calculated with or without VAT?
Without. The VAT you collect is not yours; use the net selling price and the net cost.
Can a profit margin exceed 100 %?
No — because it is measured against the price, margin can only approach 100 %. Markup has no ceiling: selling at double the cost is a 100 % markup and a 50 % margin.
Add this tool to your website
Paste the code below into your site’s HTML; the tool runs on your page and stays up to date automatically.
Not happy with the results?
Talk to Webin Agency about fast, SEO-friendly websites, e-commerce and Google Ads management.