Gross Margin
Gross margin is the percentage of revenue left after subtracting cost of goods sold, showing how much each sale contributes before operating expenses.
Gross margin is the percentage of revenue that remains after subtracting the direct costs of producing or purchasing the goods sold, before any operating expenses are deducted.
What Gross Margin Means in Marketing
Gross margin is the foundational number in e-commerce economics. It tells you how much of every sale you actually keep to cover your business costs. If you sell a product for 1,000 and it costs you 400 to produce or buy, your gross margin is 60%. From that 600, you pay for marketing, operations, salaries, warehouse costs and everything else. What is left is your operating profit.
For marketers, gross margin is the boundary condition for acquisition spending. You cannot sustainably spend more acquiring a customer than you will earn from them after product costs. If your gross margin is low, your acquisition budget is constrained, your tolerance for wasted spend is lower, and your brand must work harder on retention to make the economics work.
The practical reason marketers need to know their gross margin: any customer acquisition cost analysis that does not account for gross margin is incomplete. A 500 CAC against a 5,000 average order value looks great. Against a 10% gross margin, it means you are spending 500 to earn 500 in gross profit. There is nothing left for the rest of the business.
How Gross Margin Works
The formula. Gross margin (%) = ((Revenue - Cost of Goods Sold) / Revenue) x 100. Cost of Goods Sold (COGS) includes the cost of the product itself and any direct costs of getting it to a saleable state: manufacturing or wholesale cost, inbound freight, raw materials and packaging.
What is excluded. Marketing spend, warehouse operating costs, salaries, platform fees and office expenses are operating expenses, not COGS. They are not part of gross margin but are deducted later to arrive at operating margin and net margin.
Contribution margin. Some businesses calculate a “contribution margin” that includes variable costs like fulfilment and returns (since these vary with each order). Contribution margin is a more conservative measure of how much each sale contributes. For e-commerce, where shipping and returns are significant variable costs, contribution margin is often more operationally useful than gross margin alone.
Category differences. A 40% gross margin in electronics may be outstanding. In fashion, it may signal a structural problem. Context matters: compare your gross margin against your category, not an abstract ideal.
Gross Margin Example
An apparel brand sells its average item for 2,000. The product cost (manufactured in Tirupur) is 600. Packaging is 50. Inbound freight per item averages 50. COGS = 700. Gross margin = (2,000 - 700) / 2,000 = 65%. From the 1,300 gross profit per item, the brand covers fulfilment (150), returns provisions, paid media, salaries and other overheads. The gross margin headroom of 65% gives them meaningful room for marketing spend.
Why Gross Margin Matters for Marketers
Marketing budgets are funded by gross margin. A business with a 30% gross margin cannot afford to spend what a business with a 70% gross margin can on the same revenue. Understanding your gross margin is not just a finance task: it is the constraint that determines how aggressively you can acquire customers, how much you can spend on brand building, and what level of efficiency your performance marketing must achieve to produce a profitable business.
Frequently Asked Questions
What is a good gross margin for e-commerce?
It depends heavily on the category. Software and digital products typically have very high gross margins (70 to 90%) because the cost to deliver an additional unit is close to zero. Physical goods vary: fashion brands often run 50 to 60% gross margins; electronics retailers run lower margins, sometimes 20 to 30%, because component and manufacturing costs are higher relative to selling price. For DTC brands, a gross margin below 40% makes it very hard to build profitable marketing because there is not enough room to cover customer acquisition costs and operating expenses.
What goes into cost of goods sold for e-commerce?
COGS includes: product cost (manufacturing or wholesale purchase price), inbound freight (cost to get the product to your warehouse), packaging, and in some calculations, fulfilment costs (picking, packing, shipping to customer). What you include affects your gross margin calculation, so consistency matters more than a universal definition. Marketing costs are not part of COGS and are excluded from gross margin. They show up lower in the profit and loss statement.
How does gross margin relate to marketing spend?
Gross margin sets the ceiling for how much you can spend on customer acquisition and still be profitable. If your gross margin is 50% (you keep 50 of every 100 in revenue after product costs), your [customer acquisition cost](/marketing-glossary/customer-acquisition-cost/) and operating expenses must fit within that 50. If your CAC is 30 and your operating expenses per order are 10, you have 10 left for profit. That leaves little room for error. Understanding your gross margin is a prerequisite for setting rational CAC targets.
Want help with this for your brand? See my services.
Need help putting this concept into practice on your campaigns? Share your current targets and I will suggest the right approach.