The formula and its components
Gross Margin (%) = (Revenue − COGS) / Revenue × 100%
Gross Profit ($) = Revenue − COGS
COGS (cost of goods sold) in e-commerce covers:
– The purchase price of the item from the supplier
– Shipping from the supplier to the warehouse
– Packaging, where it forms part of the unit cost
COGS excludes marketing spend, salaries, warehouse rent and payment processing fees — all of
those are operating expenses that sit below gross profit in the P&L.
Typical values by vertical
| Vertical | Gross margin |
|---|---|
| Grocery | 10–25% |
| Electronics | 5–15% |
| Fashion / apparel | 40–60% |
| Beauty / cosmetics | 50–70% |
| DIY / building materials | 25–40% |
| Furniture | 30–50% |
That spread explains why “a 10% GMV lift” is worth something entirely different to a grocery
retailer than it is to a fashion retailer.
Gross margin and personalization
Calculate ROI the right way
The wrong calculation: personalization delivered +8% GMV → ROI = 8% of revenue / cost of platform.
The right calculation:
Real profit gain = +8% GMV × Gross Margin %
At $500M GMV and a 20% gross margin:
+8% GMV = +$40M of additional GMV
Gross profit gain = $40M × 20% = $8M
It is that $8M that gets set against the annual cost of the platform.
Margin mix improvement
Personalization affects not only the volume of sales but their composition. If the recommendation
engine surfaces high-margin products more often (private label, accessories, complementary
assortment), the average gross margin % across the basket rises.
Tip: when configuring merchandising rules in a recommendation engine, product margin can be
included as one of the sorting signals. It is a legitimate way to improve gross margin and keep
recommendations relevant at the same time — provided the quality of the selection does not degrade.
Gross margin in unit economics
The full e-commerce unit-economics chain:
GMV
− Returns = Net Revenue
− COGS = Gross Profit
− Marketing, logistics, CS = Contribution Margin
− Fixed costs = EBITDA
Gross margin is the second line of that chain. Every metric below it (contribution margin, EBITDA)
is smaller in percentage terms. Which is why any tool that increases revenue is assessed on its
contribution to gross profit, not to GMV.