Formula
Gross Margin = (Revenue − COGS) / Revenue · Net Margin = (Revenue − COGS − OpEx) / Revenue
FAQ
What's a good e-commerce gross margin?
It depends on the model — private label typically needs 50%+ to absorb ads and fulfillment, while dropshipping can work with less because it carries less inventory risk.
Is shipping part of COGS?
Inbound shipping to get products to you is usually COGS. Outbound shipping to customers is typically an operating cost — either way, be consistent so your margins are comparable over time.