Calculating gross margin in e-commerce: formula and sector benchmarks
A miscalculated gross margin skews all your pricing decisions. Here is the exact formula and the sector thresholds to know where you stand.
- Gross margin = (selling price − cost price) / selling price × 100
- Thresholds vary widely by sector: 20 to 35% in food, 50 to 70% in fashion
- A high gross margin does not guarantee profitability: net margin deducts all operating expenses
- Hidden costs (import, packaging, tied-up stock) can reduce the real margin by several points
The gross margin formula and its components
Gross margin is calculated as follows: (selling price − cost price) / selling price × 100. A product bought for €15 and sold for €40 generates a gross margin of 62.5%. In e-commerce, the cost price must include not only the supplier price, but also import fees, customs duties, specific packaging and labeling: neglecting these items overstates your margin and skews your pricing decisions. A product that seems to generate a 50% gross margin may offer only 35% once all direct costs are accounted for.
Gross margin thresholds by sector: where to position yourself
Food shows an average gross margin of 20 to 35% (high volumes, low unit margin), while fashion reaches 50 to 70% thanks to a low purchase cost relative to the selling price. Electronics sits between 25 and 45%, cosmetics between 50 and 65%, and sports and leisure between 40 and 60%. These averages are only benchmarks: a discount positioning may accept 25 to 35% offset by volume, while a premium positioning often requires at least 50% to cover higher marketing and customer costs.
Gross margin versus net margin: why the distinction matters
A common mistake is to believe that a 50% gross margin means 50% profit. Net margin deducts all operating expenses: staff, hosting, logistics, marketing, marketplace commissions. An e-commerce business with a 45% gross margin but €6,000 in monthly costs for €10,000 in revenue may post a negative net margin. Track both: a minimum gross margin per category that funds your fixed costs, and a positive overall net margin over the year.
Calculating a reliable gross margin is a prerequisite of every e-commerce project at Klickbee, right from structuring the catalog and prices.
Optimizing your gross margin without compromising sales
Two main levers: reducing the cost price (supplier negotiation, order consolidation, alternative sourcing) or raising the selling price, which is riskier if your customers are price-sensitive. A third, often overlooked lever: rebalancing the product mix by pushing high-margin products, via cross-sell, to customers already won over by a low-margin loss leader. Reducing returns and the stock scrap rate also limits hidden costs: a product damaged in storage represents a 100% gross margin lost on that unit.
Measuring and tracking gross margin: tools and hidden costs
Track your overall gross margin, by category and by sales channel (a marketplace charging a 15% commission reduces your real margin on that channel even at an identical displayed price). Factor in hidden costs: customs duties (5 to 25% of the product cost depending on origin), container shipping, custom packaging, management of tied-up stock. A product with a €15 factory cost plus €3 in hidden fees actually costs €18: sold for €50, the true gross margin is 64%, not 70%. This difference of a few points can turn a viable pricing strategy into a loss-making one.
Frequently asked questions
What is a good gross margin in e-commerce?+
It depends on the sector: 20 to 35% in food, 50 to 70% in fashion. Compare yourself to your segment rather than to a general average.
Does a high gross margin necessarily mean a profitable business?+
No, you also need to track net margin, which deducts all operating expenses: a healthy gross margin can coexist with a negative net margin.
Which hidden costs are most often forgotten?+
Customs duties, container shipping, product-specific packaging and the cost of tied-up or obsolete stock.