Gross Margin

Gross margin is the share of net revenue left after the cost of the goods sold: (net revenue − COGS) ÷ net revenue. In e-commerce it is the CM1 margin, before fulfilment, shipping, payment fees, returns and marketing, which is why it overstates what ads can earn.

Daniel Busch
Written by Daniel Busch · Chief of Staff · Updated

In short

  • Formula: gross margin = (net revenue − COGS) ÷ net revenue; in euros, the same is gross profit
  • Gross margin subtracts product costs only; contribution margin also subtracts order costs (CM2) and marketing (CM3); net margin subtracts everything
  • Margin is not markup: a 100% markup on cost is a 50% gross margin
  • Use gross margin for pricing, sourcing and the range, not for ROAS targets: a break-even ROAS on it leaves out every order cost

What gross margin is

Gross margin answers one question: of each euro of net revenue, how much is left once the goods are paid for? Gross margin = (net revenue − COGS) ÷ net revenue. A table lamp that sells for €150 net of VAT and has a landed cost of €60 makes €90 of gross profit, a gross margin of 60%.

Both inputs need care. Net revenue is revenue after VAT, discounts and refunds (gross vs. net revenue); COGS is the landed cost of the units sold, inbound freight and import duties included (COGS). In the e-commerce scheme, gross profit is CM1 and gross margin the CM1 margin. In an income statement by function, it is the gross profit line under the cost of sales.

The term is used loosely. Some use “gross margin” for the margin after shipping and payment fees as well, which is closer to CM2. When a break-even formula says “gross margin”, check which costs it subtracts.

Gross margin vs. contribution margin vs. net margin

MarginSubtracts from net revenueAnswers
Gross margin (CM1)COGSDo prices and sourcing work?
CM2 marginAlso fulfilment, shipping, payment fees, returnsWhat does an order earn before acquisition?
CM3 marginAlso marketingDo orders pay for their acquisition?
Net marginAlso fixed costs, interest and taxesDoes the company make money?

How one shop’s month falls through these levels, in euros, is worked through in contribution margin.

Margin vs. markup. Markup is calculated on cost, margin on price. A product bought for €20 and sold for €40 net has a markup of 100% and a gross margin of 50%. Margin = markup ÷ (1 + markup); markup = margin ÷ (1 − margin). A 65% gross margin is a markup of 186%. Mixing the two is the classic pricing error: a buyer who plans a “50% margin” with a 50% markup ends up at 33%. The markup calculator converts one into the other, and the profit margin calculator works out the price a target margin needs.

Why break-even ROAS on gross margin is too optimistic

Gross margin leaves out packing, shipping, payment fees and returns, so a break-even ROAS of 1 ÷ gross margin, 1.67 for the lamp, sits below the ROAS its orders really need: the break-even ROAS entry shows why gross margin gives a threshold that is too low. Our view: use gross margin for pricing, sourcing and the product range, and CM2 for every marketing target.

What is a good gross margin?

One that leaves room for everything below it, so work backwards from your costs. Our panel gives you the marketing share: paid ads take 1 ÷ MER of gross revenue, and the median D2C brand runs at an MER of 4.60 (September 2026). At an MER of 4, ads take 25% of gross revenue, about 30% of revenue net of 19% VAT. Add order costs of 20% and fixed costs of 10%, and a gross margin below 60% leaves no profit.

The same arithmetic shows why thin gross margins and paid acquisition rarely go together: at a 30% gross margin and order costs of 20%, the CM2 margin is 10%, and ads would have to bring ten times their cost in net revenue just to break even.

How adtribute shows gross margin

In adtribute’s marketing attribution and analytics platform, gross margin in percent is a ratio of two report metrics, CM1 and net revenue, so it is set up with Add Field under Definitions › Fields, not as an attribute of each order (docs: Getting Started with Definitions). CM1 is built as in how adtribute calculates contribution margin, and the product costs behind it reach your orders as the COGS entry’s section on product costs in adtribute describes.

FAQ about Gross Margin

What is the difference between gross margin and gross profit?

Gross profit is the amount in euros, net revenue minus COGS. Gross margin is the same as a share of net revenue. €90 of gross profit on €150 of net revenue is a gross margin of 60%.

Is gross margin the same as contribution margin?

Only at the first level: gross margin is the CM1 margin. CM2 and CM3, which most teams mean by contribution margin, also subtract order costs and marketing.

Why does my gross margin in Shopify differ from my own calculation?

Usually because the two don’t cover the same sales: Shopify’s profit reports leave out every sale whose product had no cost per item at the time, as the COGS entry’s answer on Shopify explains. Discounts, refunds and VAT explain the rest: compare figures built on the same net revenue.