COGS (Cost of Goods Sold)
Cost of Goods Sold (COGS) is the total direct cost incurred to produce or acquire the products a business sells during a defined period. It encompasses every cost that is directly tied to bringing a product into existence and making it available for sale raw materials, manufacturing labor, packaging, and inbound freight but excludes indirect costs like marketing, rent, and administrative overhead.
Updated on May 14, 2026
COGS is the first and most fundamental deduction from revenue in any income statement. Revenue minus COGS equals gross profit the starting point for every other profitability calculation in the business. Without an accurate understanding of COGS, every downstream financial metric gross margin, contribution margin, unit economics, pricing strategy is built on an unreliable foundation.
What Is Included in COGS?
The specific components of COGS vary by business model, but the defining principle is consistency: only costs that are directly and variably linked to the production or acquisition of sold units belong in COGS.
For product-based e-commerce brands, COGS typically includes the cost of purchasing or manufacturing the product, inbound freight and import duties to get the product to the fulfillment location, packaging materials used to prepare the product for sale, and any direct labor involved in production or assembly.
For brands that manufacture their own products, COGS expands to include raw material costs, direct manufacturing labor, factory overhead directly attributable to production equipment depreciation, utilities consumed in production, quality control costs and any costs incurred to transform raw inputs into finished goods.
What COGS does not include is equally important to understand. Marketing and advertising spend, warehouse rent, customer service labor, platform fees, payment processing fees, and outbound shipping costs are not COGS they are operating expenses that live below the gross profit line. The distinction is not academic it directly affects how gross margin is calculated and how the business's unit economics are understood.
COGS vs. Operating Expenses
The line between COGS and operating expenses is one of the most consequential distinctions in e-commerce financial management:
COGS | Operating Expenses | |
|---|---|---|
Nature | Direct production and acquisition costs | Indirect costs of running the business |
Variability | Scales directly with units sold | Largely fixed or semi-fixed |
Examples | Product cost, inbound freight, packaging | Marketing, salaries, rent, platform fees |
Income statement position | Deducted from revenue to get gross profit | Deducted from gross profit to get operating income |
Misclassifying operating expenses as COGS or vice versa distorts gross margin, creates misleading unit economics, and produces financial statements that obscure rather than illuminate the true profitability structure of the business.
How to Calculate COGS?
The standard COGS formula for a product-based business is:
COGS = Beginning Inventory + Purchases During Period Ending Inventory
Example: Beginning inventory of $50,000, purchases of $120,000 during the period, ending inventory of $40,000 → COGS = $130,000
This formula captures the cost of inventory that was actually sold during the period not all inventory purchased, and not all inventory on hand. The cost of unsold inventory remains on the balance sheet as an asset, not on the income statement as an expense.
COGS and Gross Margin
Gross margin is the percentage of revenue remaining after COGS is deducted. It is the most widely used top-line profitability metric in e-commerce:
Gross Margin = (Revenue - COGS) ÷ Revenue × 100
Example: $500,000 revenue, $200,000 COGS → Gross Margin = 60%
Gross margin varies significantly by category, business model, and sourcing strategy. General benchmarks for e-commerce:
Fashion and apparel: 50% to 70%, driven by the gap between manufacturing cost and retail price
Beauty and skincare: 60% to 80%, reflecting high perceived value relative to formulation cost
Electronics: 20% to 40%, compressed by high component costs and competitive pricing pressure
Food and consumables: 30% to 50%, influenced by perishability, regulation, and commodity input costs
Private label brands: typically higher than resellers of branded products, because the brand captures the full retail margin rather than sharing it with a manufacturer
COGS in the Context of Unit Economics
COGS per unit the direct cost to acquire or produce a single sellable unit is the foundation of unit economics analysis in e-commerce. It is the starting point for calculating contribution margin, which determines whether each incremental sale actually generates profit after all variable costs are accounted for:
Contribution Margin = Revenue per Unit Variable Costs per Unit
Where variable costs include COGS per unit plus other variable costs like outbound shipping, payment processing fees, and packaging costs specific to the order.
A product with strong gross margin but high variable costs below the gross margin line may have a contribution margin that is far thinner than the gross margin suggests. Understanding COGS at the unit level is what prevents brands from scaling products that appear profitable at the gross margin level but destroy value at the contribution margin level.
COGS and Inventory Valuation Methods
When a business holds inventory purchased at different costs over time due to price changes, currency fluctuations, or supplier negotiations it must choose an inventory valuation method that determines which costs are assigned to sold units and which remain in ending inventory:
FIFO (First In, First Out) assumes the oldest inventory is sold first. During periods of rising input costs, FIFO assigns lower historical costs to COGS and higher current costs to ending inventory producing higher gross profit and higher inventory asset values.
LIFO (Last In, First Out) assumes the most recently purchased inventory is sold first. During periods of rising costs, LIFO assigns higher current costs to COGS and lower historical costs to ending inventory producing lower gross profit but potentially reducing taxable income. LIFO is permitted under US GAAP but prohibited under IFRS.
Weighted Average Cost calculates an average cost per unit across all inventory and applies that average to both COGS and ending inventory. Simpler to administer than FIFO or LIFO and produces results that fall between the two in most cost environments.
The choice of inventory valuation method affects reported gross margin, taxable income, and balance sheet asset values making it a financially significant decision that should be made deliberately and maintained consistently.
COGS Optimization in E-Commerce
Reducing COGS without compromising product quality is one of the highest-leverage paths to improving gross margin and profitability. The primary levers available to e-commerce brands include:
Supplier negotiation and volume leverage. Unit costs are almost always negotiable at sufficient volume. A brand that has grown from 1,000 to 10,000 units per order has meaningful negotiating leverage that many operators fail to exercise. Renegotiating terms annually or whenever order volumes reach a new threshold systematically reduces COGS over time.
Manufacturing diversification. Sourcing from a single supplier creates pricing dependency. Introducing a second qualified supplier creates competitive tension that prevents price increases and opens negotiation leverage that a single-source relationship cannot generate.
Packaging optimization. Packaging is frequently a larger component of COGS than brands realize particularly for products where the unboxing experience has driven premium packaging investment. Auditing packaging costs and testing whether simpler or lighter packaging maintains the customer experience at lower cost is a high-ROI COGS reduction exercise.
Inbound freight optimization. Shipping terms, carrier selection, consolidation strategies, and port routing all influence inbound freight cost a component of COGS that many brands accept passively rather than manage actively.
Private label vs. branded resale. Reselling branded products shares the margin with the brand owner. Developing private label equivalents when feasible and legal captures the full retail margin and dramatically improves COGS as a percentage of selling price.
Key COGS Metrics to Track
COGS as a percentage of revenue: the inverse of gross margin, tracked over time to identify cost pressure or improvement
COGS per unit: the direct acquisition or production cost of a single unit, the foundation of unit economics
COGS by SKU: identifying which products carry the highest and lowest direct costs relative to their selling price
COGS trend: monitoring whether input costs are rising, stable, or declining over time, and the drivers behind each movement
Gross margin by channel: COGS is fixed per unit, but revenue varies by channel. A product sold direct-to-consumer generates a different gross margin than the same product sold wholesale or through a marketplace with commission fees
💡 Pro tip: Build your COGS calculation at the SKU level before aggregating to the product line or catalog level. A blended COGS across your entire catalog obscures the margin structure of individual products and in most e-commerce businesses, a small number of SKUs generate a disproportionate share of gross profit while others quietly destroy it. SKU-level COGS visibility is what allows you to make rational decisions about which products to scale, which to reprice, and which to discontinue.
Ready to build a millions dollars brand ?
.avif)


.avif)