What is gross margin: formula, margin vs markup, and how much is really left

Contents
  1. When people ask what gross margin is
  2. Gross margin formula
  3. Margin vs markup: what is the difference
  4. Margin vs profit: how much of the margin is left for you
  5. What gross margin your store needs
  6. How to calculate the gross margin of a category or a store
  7. How to increase your profit margin
  8. When margin should not live in a spreadsheet
  9. Frequently asked questions
  10. Sources

Gross margin is the share of the selling price you keep after paying for the goods: gross margin % = (selling price − cost of goods) ÷ selling price × 100. An item that sells for €100 and cost you €60 has a gross margin of €40, or 40%: out of every euro of sales, 40 cents are left to pay marketplace fees, ads, salaries and your profit.

Two mistakes are common: treating margin and markup as the same number, and treating 40% gross margin as profit, although much less of it reaches your pocket. Below, one product goes from gross margin to profit, with a markup-to-margin chart, a margin for a whole category, and a way to work out which margin your store actually needs.

When people ask what gross margin is

Usually there are sales, but at the end of the month there is less money than expected. Or a supplier, an accountant or a marketplace talks about "margin" while you have been counting "markup". The search starts with "what is gross margin" or "profit margin", and then goes on to "how do I calculate margin as a percentage", "is 30% markup the same as 30% margin", "margin vs profit" and "what is a good profit margin".

There is no ready answer to the last question, and someone else's percentage will not help you. It is more useful to break your own price into parts: then you can see which margin you need to keep a profit.

Gross margin formula

Gross margin in money is the selling price minus the cost of goods. Gross margin as a percentage, often called the gross profit margin, is the same amount divided by the selling price. People use "margin" for both, so check whether they mean euros or percent.

Gross margin, € = selling price − cost of goods
Gross margin, % = (selling price − cost of goods) ÷ selling price × 100
Example: (100 − 60) ÷ 100 × 100 = 40%.

Cost of goods is everything you paid to get the item into stock: the supplier's price, inbound shipping, import duties and taxes you cannot reclaim. The international accounting standard IAS 2 counts the same things in the cost of inventory: all costs of purchase and the other costs of bringing the goods to their present location and condition. If you use only the price from the supplier's list, your margin will look higher than it is.

If you are VAT-registered, count the margin on the price without VAT. A shopper in Germany pays €119 for the headphones from the example, but €19 of that is VAT at the 19% standard rate and goes to the tax office, so the margin is counted on €100.

Gross margin on three products (illustrative numbers)
ProductCost, €Price, €Margin, €Gross margin
Headphones601004040%
Phone case12301860%
Laptop9001,00010010%

Gross margin can never reach 100%, and a negative one means you sell below cost. Look at both numbers: the phone case with a 60% margin brings €18, the laptop with 10% brings €100 per sale.

Margin vs markup: what is the difference

Both start from the same difference, price minus cost, but divide it by different numbers: markup by the cost, margin by the selling price. That is why the markup on the same item is always higher than its margin.

Same €40 difference: markup 40 / 60 = 66.7%, margin 40 / 100 = 40%
MarkupMargin
Formula(price − cost) ÷ cost × 100(price − cost) ÷ price × 100
Counted onthe costthe selling price
Limitnone, 200% and more is possiblealways below 100%
Used toset a pricesee how much of the revenue is left
Headphones €60 → €10066.67%40%

The typical mistake: you want a 30% margin and add a 30% markup. An item that costs €100 goes on sale at €130, the profit is €30, and the margin is 30 ÷ 130 = 23.08%. A 30% margin needs a 42.86% markup and a price of €142.86.

Markup = margin ÷ (1 − margin)
Margin = markup ÷ (1 + markup)
Example: margin 0.3 → 0.3 ÷ 0.7 = 0.4286, so the markup is 42.86%.
Which markup gives the margin you need
Margin you needMarkupPrice at a €100 cost
10%11.11%€111.11
20%25%€125
25%33.33%€133.33
30%42.86%€142.86
40%66.67%€166.67
50%100%€200

How to go from here to a price that covers fees, VAT and rounding is shown in the markup calculator with formulas and examples.

Margin vs profit: how much of the margin is left for you

Less than half of the gross margin, if you sell on a marketplace and pay for ads: variable order costs and the store's fixed costs are paid out of it. Walk through the price from top to bottom, from gross margin to profit.

Illustrative example for the arithmetic, not market prices or fees. Headphones at €100 without VAT, cost €60, sold on a marketplace with a 12% fee, card payment fee 2%, €6 of ads per order, and the store's fixed costs (rent, salaries, software) at €10 per order.

One product from price to profit (illustrative numbers)
LineAmount, €Share of price
Selling price (without VAT)100100%
Cost of goods−60
Gross margin4040%
Marketplace fee 12%−12
Payment fee 2%−2
Ads per order−6
Contribution margin2020%
Fixed costs per order−10
Profit before income tax1010%
Steps from 40% gross margin to 20% contribution margin and 10% profit

Three lines, three different measures that people often call by one word, "margin":

  • Gross margin is the price minus the cost of goods. It shows how much you earn on the product itself.
  • Contribution margin is the price minus all variable costs, the ones that come with every sale: cost of goods, fees, ads per order, shipping you pay for. It shows how much each order brings to cover fixed costs.
  • Net profit margin is the profit after all costs as a share of revenue. In the example it is a quarter of the gross margin.

Hence a practical rule: track gross margin for every product, and contribution margin for every sales channel separately. The same headphones on your own website, without the marketplace fee, would bring €32 of contribution margin instead of €20. To check your own revenue and costs, use the profit margin calculator: it shows gross, operating and net margin.

What gross margin your store needs

One that covers all costs and leaves the profit you planned; there is no universal "good" margin. You can work it out by putting all costs as a percentage of the price.

Required gross margin, % = variable channel costs, % + fixed costs, % of revenue + target profit, %
Example: 12 + 2 + 6 + 10 + 10 = 40%.

In the example above, €6 of ads is 6% of the price, fixed costs are 10%, and the target profit is 10%. So on this channel the product must have at least a 40% gross margin. If your supplier's price leaves only 30%, your options are a cheaper channel, less ad spend per order, or a different product.

Required margin of 40%: marketplace fee 12%, payment 2%, ads 6%, fixed costs 10%, profit 10%

For online stores in the EU, add one more line: shoppers can cancel an online purchase within 14 days without giving a reason. If you pay for return shipping or resell returned items at a discount, include an average return cost per order in the variable costs.

How to calculate the gross margin of a category or a store

Divide the total margin by the total revenue for the period. A simple average of the percentages of separate products gives the wrong number, because it ignores how many of each were sold.

Gross margin of a category (illustrative numbers)
ProductPrice, €Cost, €Units soldRevenue, €Margin, €Gross margin
A10080101,00020020%
B4020301,20060050%
C25022541,00010010%
Category443,20090028.13%

The average of the percentages, (20 + 50 + 10) ÷ 3 = 26.67%, understates the result: the most profitable product B sells the most. If sales of B drop, the category margin goes down although no price has changed. That is why category margin is watched together with the sales mix.

How to increase your profit margin

Lower the cost or raise the price, and both give more than it seems. A discount to the shopper, on the other hand, takes more than its percentage. Illustrative example: an item at €100 with a €70 cost, margin 30%.

ActionPrice, €Cost, €Margin, €Gross margin
As is100703030%
5% supplier discount10066.5033.5033.5%
Price +5%105703533.33%
10% discount to the shopper90702022.22%

A 10% discount cuts the margin per unit by a third, from €30 to €20. To earn the same €60, you need three sales instead of two, 1.5 times more. Before you give a discount, work out how much sales must grow: divide the old margin per unit by the new one.

10% off: instead of 2 sales with €30 margin you need 3 with €20 to earn the same €60
  • Compare suppliers. The same product costs differently in different price lists, and every percent saved on purchasing goes straight into margin.
  • Count the full cost. Inbound shipping and exchange rates that are not built into the price quietly eat the margin.
  • Use different markups for cheap and expensive items. On a cheap item, the fixed costs of an order take a larger share of the price.
  • Review the range. Products with a low margin and few sales tie up cash in stock.
  • Keep a price floor. The price should not fall below cost plus a minimum buffer, even after the supplier changes the price list.

When margin should not live in a spreadsheet

When you have hundreds of products and supplier prices change every week: a margin spreadsheet goes out of date the day a new price list arrives, and an item that got more expensive at the supplier quietly sells with a smaller margin or at a loss.

In Elbuz, margin is calculated from the cost inside the catalog: the product card shows the margin in percent and in money next to the price, and prices from supplier price lists are recalculated by pricing rules with a floor of "not below cost plus N%". Sales analytics shows revenue, profit and average margin for completed orders, filtered by category and source. One note: the rules set a markup, not a margin, so for a 30% margin you set about 43%.

Who does not need it: if you have a few dozen products and purchase prices rarely change, a spreadsheet with the formulas from this article is enough. How rule-based pricing works is described on the markup pricing page.

Margin and markup by rules in ElbuzPrices recalculated with every price list, a floor keeps the margin

Frequently asked questions

What does a 30% gross margin mean?

That 30% of the selling price is left after paying for the goods. On a €100 sale, €70 went to the cost of goods and €30 remains for fees, ads, fixed costs and profit.

Is 30% markup the same as 30% margin?

No. A 30% markup on a €100 cost gives a €130 price and a 23.08% margin. A 30% margin needs a 42.86% markup and a price of €142.86.

Is 25% markup 20% margin?

Yes. An item that costs €80 and sells for €100 has a €20 profit: 20 ÷ 80 = 25% markup and 20 ÷ 100 = 20% margin.

Does 20% margin mean 20% profit?

No, if it is gross margin: fees, ads and fixed costs are still to be paid out of it. In the illustrative example, a 40% gross margin leaves 10% profit.

What is a good gross margin?

It depends on your costs. A good margin covers your variable and fixed costs and leaves the profit you planned; in the example above that takes 40%.

What is the difference between gross margin and contribution margin?

Gross margin subtracts only the cost of goods. Contribution margin also subtracts every other cost that comes with each sale, such as marketplace and payment fees, ads per order and shipping you pay for.

Is margin calculated before or after VAT?

If you are VAT-registered, after VAT is taken out: use the net selling price. The VAT you charge is passed on to the tax office and is not part of your revenue.

Sources

Checked on October 31, 2026. All other numbers in the article are illustrative examples for the arithmetic.

Save a link to this article Telegram Facebook X LinkedIn Viber WhatsApp
Learn more about Elbuz with AI Ask your question — pick a chat and let AI study this page for you:

Discussion of the topic – What is gross margin: formula, margin vs markup, and how much is really left

0 comments

There are no reviews for this product.

Write a comment

Your email address will not be published. Required fields are checked

Next

Try Elbuz free