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

  • The Blueprint for Measuring Cover

    The Blueprint for Measuring Omnichannel Incrementality in Food & Beverage

    A Strategic Framework for Measuring Omnichannel Incrementality in Food & Beverage

  • MMM Implementation

    An Actionable Checklist for Marketing Mix Modeling

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

  • Enhance marketing mix modeling

    Data Sources Checklist for Marketing Mix Modeling

    Build a robust marketing mix model by identifying and organizing the right data sources.

Discover more from Lifesight

  • MMM vs attribution

    Published on: June 25, 2026

    MMM vs. Attribution: The 2026 Decision Checklist

    When platform ROAS stops matching real revenue, it’s time to rethink attribution and use MMM to uncover what truly drives incremental growth.

  • Aligned Measurement Framework

    Published on: June 24, 2026

    The Next Challenge in Measurement Isn’t Better Models. It’s Better Standards.

    Shared standards can turn fragmented measurement into confident decision-making across the marketing ecosystem.

  • Why MTA Is Broken – And Why Unified Measurement Is the Only Way Forward

    Published on: June 15, 2026

    Why MTA Is Broken – And Why Unified Measurement Is the Only Way Forward

    MTA can show what happened before a conversion, but not what actually caused it. Learn why modern marketers are moving toward causal measurement, incrementality, and unified measurement.