Overview

Cost of Goods Sold (COGS) is an accounting metric used to calculate the cost of any goods sold in an ecommerce business.

What is Cost of Goods Sold?

Cost of Goods Sold (COGS) is used in accounting when analyzing the profitability of an ecommerce business. It quantifies the cost associated with the inventory or products sold to customers. COGS includes all costs associated with producing and distributing products, such as materials, direct labour, packing costs, goods in transit, freight-in, and more. The concept of COGS helps to accurately assess and track the profitability and true cost of goods sold.

Formula

COGS = Opening Inventory + Purchases during the period – Closing Inventory

Example

Let’s consider an ecommerce business called “TechGadgets” that sells electronic gadgets. Here’s a simplified example to calculate COGS:

  • Opening Inventory (at the beginning of the period): $50,000
  • Purchases during the period: $100,000
  • Closing Inventory (at the end of the period): $30,000

Using the formula, we can calculate the COGS:

COGS = $50,000 (Opening Inventory) + $100,000 (Purchases) – $30,000 (Closing Inventory)

COGS = $120,000

Therefore, in this example, the Cost of Goods Sold for TechGadgets would be $120,000. This represents the total cost of the inventory that was sold during the given period.

Why is COGS important?

The Cost of Goods Sold metric is essential for evaluating and comparing the profitability of different products or lines of business within an ecommerce business. By tracking the cost of goods sold, businesses can identify what inventory can be improved and optimize their pricing strategies. Additionally, this metric serves to accurately assess profitability, determine the true cost associated with goods sold, and analyze performance against other competitors in the market.

Which factors impact COGS?

The cost of goods sold is influenced by various factors such as materials costs, labour costs, freight costs, and in some cases other miscellaneous expenses. Other key factors include inventory levels, market conditions, pricing, and customer demand.

How can COGS be improved?

To improve Cost of Goods Sold, businesses should identify and analyze trends in purchasing cycles, inventory, current market conditions, and pricing. These are key factors that can help a business better understand the true cost of making and selling their goods and optimize their pricing. Additionally, businesses can also look into automating their supply chain and using technology to monitor their inventory levels and costs more closely.

What is COGS’s relationship with other metrics?

The Cost of Goods Sold is related to other ecommerce metrics such as gross margins, operating costs, and customer lifetime value. By tracking the cost of goods sold, businesses can more accurately assess their profits and losses within a specific time period and evaluate the impact of any changes in their operations.

Free essential resources for success

  • Your Guide to Modern Measurement thumbnail

    Your Guide to Modern Measurement – the Causal Revolution

    Measure true marketing impact with incrementality, MMM, and causal analytics in a privacy-first world

  • MMM Implementation

    An Actionable Checklist for Marketing Mix Modeling

    Build and scale your marketing mix model with a structured, step-by-step implementation checklist.

  • Marketing Mix Modeling Vendor Onboarding Checklist

    Marketing Mix Modeling Vendor Onboarding Checklist

    Simplify vendor onboarding with a comprehensive checklist for selecting and evaluating marketing mix modeling partners.

Discover more from Lifesight

  • The BFCM Trap: Waiting Until Q3 Kills Your Q4

    Published on: May 11, 2026

    The BFCM Trap: Waiting Until Q3 Kills Your Q4

    Start testing in Q2 or risk gambling your entire Q4 on unproven channels when costs are at their peak.

  • Agentic Unified Marketing Measurement Manifesto

    Published on: May 5, 2026

    The Agentic Unified Marketing Measurement Manifesto

    Why marketing measurement, in the age of AI agents, needs a new standard.

  • Building the AI Agent Brain

    Published on: April 29, 2026

    Building the AI Agent Brain

    Context Graphs with Self-Improving Memory. A Production Architecture with Spanner Graph, Hindsight, Vertex AI, and ADK