How profit margin is calculated
Profit margin = (selling price − cost) ÷ selling price × 100
Gross profit = selling price − cost
- Selling price is the price without VAT.
- Cost is what a unit has cost you by the time it is in your warehouse, without VAT: the purchase or production price plus inbound freight and duties. The entry on COGS (cost of goods sold) lists what belongs in it.
- Profit margin is the gross margin here, because only the product's cost is taken off.
Example. A product sells for €59.50 and costs €30.00. Without VAT the price is €50.00, the gross profit €50.00 − €30.00 = €20.00 and the margin €20.00 ÷ €50.00 = 40.0%.
Gross profit formula
Gross profit = net revenue − cost of goods sold (COGS)
Gross margin (GM%) = gross profit ÷ net revenue × 100
For a month or a year, the calculation runs on totals. Net revenue is what customers paid without VAT, after discounts and refunds, and COGS is the cost of the units those orders contained. A shop with €48,000 of net revenue and €19,200 of COGS in a month makes €28,800 of gross profit, a gross margin of 60.0%. Enter the two totals as selling price and cost and untick the VAT box under More options, and the calculator shows the same numbers.
A month's margin is the average of your products' margins, weighted by what sold. It moves when the mix changes, even if no price and no cost did: a campaign that sells more of a low-margin product lowers it.
Selling price for a target margin
Selling price without VAT = cost ÷ (1 − margin)
Selling price with VAT = selling price without VAT × (1 + VAT rate)
Switch the calculator to Selling price and it turns the formula around. For a 40% margin, the product that costs €30.00 needs a price of €30.00 ÷ (1 − 0.40) = €50.00 without VAT, which is €50.00 × 1.19 = €59.50 with 19% VAT. Adding 40% to the cost instead gives €42.00 and a margin of 28.6%, because a percentage added to the cost is a markup.
How to read your margin: what the gross profit still has to pay
If fulfilment, shipping and payment fees take €8.00 of the example's €20.00 gross profit, say, €12.00 is left: 24% of the price without VAT, not 40%, and only that can pay for ads. The contribution margin calculator starts where this one stops: your gross profit is its CM1, and it goes on to CM2 and CM3. What to decide on gross margin and what on CM2 is the gross margin entry's view on pricing with gross margin and setting marketing targets on CM2.
Traps when you calculate a margin
- Leaving the VAT in the price. On €59.50 with VAT, the example's margin reads 49.6% instead of 40.0%.
- Dividing by the cost. €20.00 ÷ €30.00 is 66.7%: that is the markup, and it is always the higher of the two numbers.
- Forgetting the discount. A 20% voucher lowers the price without VAT from €50.00 to €40.00. The cost stays, so the whole discount comes out of the gross profit, and the margin falls from 40.0% to 25.0%.
- Taking the supplier's invoice for the cost. Freight, duties and the packaging you buy with the product belong in the cost. Left out, the margin looks higher than it is.
Related glossary entries and calculators
- Gross margin: how it differs from contribution margin and net margin, and what it has to cover
- Contribution margin (CM1, CM2, CM3): the margins after order costs and after marketing
- Contribution margin calculator and ROAS calculator: from gross margin to CM2 and the break-even ROAS
Profit margin calculator: frequently asked questions
What's the formula for calculating profit margin?
Profit margin = (selling price − cost) ÷ selling price × 100, with both amounts without VAT. A tote bag that sells for €24.00 without VAT and costs €9.00 leaves €15.00, a margin of 62.5%. Because only the product's cost is taken off, this is a gross margin; a net profit margin takes off every other cost of the business as well.
How do you calculate GM%?
GM% is the gross margin in percent: gross profit ÷ net revenue × 100. A quarter with €150,000 of net revenue and €67,500 of cost of goods sold has €82,500 of gross profit and a GM% of 55.0%.
What is a 30% margin on $100?
At a selling price of $100, a 30% margin is $30 of gross profit, so the product may cost $70. If $100 is your cost and you want a 30% margin, the selling price is $100 ÷ (1 − 0.30) = $142.86. The calculator shows euros, and the percentages are the same in any currency.
What is the difference between profit margin and markup?
Margin is the gross profit as a share of the selling price, markup the same profit as a share of the cost. The markup calculator converts one into the other.
Do I calculate the margin with or without VAT?
Without. VAT passes through you to the tax office, so it is no part of your revenue. Under More options you set your own VAT rate, or untick the box if tax is added on top at checkout and the price you enter has none in it. Enter the cost without VAT too if you reclaim the VAT your supplier charges.