Product Metrics

Search

Glossary

Gross margin

Gross margin is the share of revenue left after subtracting the cost of goods sold, shown as a percentage.

By Berend Vrakking, founder of Product Metrics. Updated 7 October 2026.

Formula

Gross margin % = (revenue − cost of goods sold) ÷ revenue

Revenue minus cost of goods sold is gross profit, in euros. Gross margin is that gross profit as a percentage of revenue. What counts as cost of goods sold depends on your accounting rules.

Example

One month, €50,000.00 of revenue
StepValue
Revenue (excl. VAT)€50,000.00
Cost of goods sold€30,000.00
Gross profit (€50,000.00 − €30,000.00)€20,000.00
Gross margin (€20,000.00 ÷ €50,000.00)40%

Of every €1.00 of revenue, €0.40 is left after the cost of goods sold. Illustrative data.

For one product, and for an account

Per product, gross margin is price minus product cost, divided by price. The shop figure blends every product’s gross margin, weighted by how much each sells, so one bestseller can carry the whole number.

Gross margin stops at product cost. Shipping, payment fees and returns come off later, in contribution margin. A product that sells for €100.00 with €45.00 of product cost has a gross margin of 55% and a break-even ROAS of 1 ÷ 0.55 = 1.82. If shipping, fees and packaging take another €10.00, the contribution margin is 45% and the break-even ROAS is 2.22. Illustrative data.

Common mistake

Setting a ROAS target from gross margin. It ignores shipping, payment fees and returns, so the target comes out too low and products that lose money pass as profitable.

Questions

What does a 40% gross margin mean?

The products themselves took €0.60 of every €1.00 of revenue, leaving €0.40. That €0.40 is not profit yet: ads, shipping, fees and fixed costs still come out of it.

What is the difference between gross profit and gross margin?

Gross profit is an amount: revenue minus cost of goods sold, such as €20,000.00. Gross margin is that amount as a percentage of revenue, such as 40%.

What is the difference between gross margin and net margin?

Gross margin takes off only the cost of goods sold. Net margin takes off all other costs as well, such as ad spend, shipping, staff and rent, so it is lower.

Keep reading