Cost of Goods Sold

The direct, variable costs tied to producing or purchasing the products you sell, recorded when inventory is sold.

Cost of Goods Sold (COGS)

The direct, variable costs tied to producing or purchasing the products you sell, recorded when inventory is sold.

Why It Matters

COGS determines gross margin and directly affects profitability: a 1% reduction in COGS can increase gross margin and net profit substantially. For an e-commerce store, COGS drives pricing strategy, inventory purchasing, and supplier negotiations; ignoring it leads to mispriced products, eroded margins, and cash-flow issues. Accurate COGS tracking reveals where to cut costs and where to invest for higher lifetime value and competitive advantage.

What is Cost of Goods Sold (COGS)?

Cost of Goods Sold (COGS) is an accounting measure that records the direct costs attributable to the production or acquisition of the goods an online store sells. It includes the purchase price of inventory, inbound freight, customs and import duties, direct manufacturing or assembly labor, and packaging tied to the item β€” but excludes operating expenses like marketing or warehousing overhead unless directly allocable. Historically, COGS has been computed under inventory valuation methods such as FIFO, LIFO, or weighted average; choice of method affects reported margins and taxes. In e-commerce, COGS sits between inventory management, order fulfillment, and financial reporting: it converts inventory outflows into an expense line on the income statement when sales occur. Accurate COGS enables correct gross profit calculation, informed pricing decisions, and reliable forecasting for cash flow and purchasing. Poorly tracked COGS can mask low-margin products and mislead growth investments, while optimized COGS creates room for marketing spend and price competitiveness.

How It Works

1) Record all direct costs into inventory accounts as you purchase or manufacture goods. 2) When an order ships, move the specific cost of that inventory from the balance sheet to COGS on the income statement. 3) Use an inventory valuation method (FIFO, LIFO where allowed, or weighted average) to attribute cost when exact units aren’t tracked. 4) Reconcile regularly with physical counts and integrate ecommerce platform sales data (Shopify, Magento) with accounting software so COGS updates per sale.

Key Components

  • Purchase cost: The price paid to suppliers for each unit; the largest single driver of COGS.
  • Inbound logistics: Freight, customs, and duties to get inventory to your warehouse or 3PL.
  • Direct labor & production: Wages for assembly, customization, or production tied to the item.
  • Packaging & materials: Product-specific boxes, inserts, and materials required to sell the item.
  • Inventory valuation method: FIFO, LIFO (where permitted), or weighted average determine how unit costs flow into COGS.

Best Practices

Negotiate supplier pricing and volume discounts to reduce COGS by 3–10% within 90 days; consolidate inbound shipments to cut freight per unit by 10–30%. Reconcile inventory monthly and integrate your Shopify or ERP platform with accounting so COGS posts per sale automatically to preserve accurate margins.

Example

A Shopify store sells $50,000/mo in revenue. Before changes their COGS averaged 40% ($20,000), giving gross profit $30,000 (60%). After negotiating a 6% lower supplier price and reducing inbound freight per unit, COGS falls to 34% ($17,000). Revenue unchanged at $50,000, gross profit rises to $33,000 β€” a $3,000 improvement, a 10% increase in gross profit. If the supplier negotiation cost $1,000 in setup fees, the ROI in the first month is (3,000 - 1,000) / 1,000 = 200% and the payback occurs in under a month while ongoing margin improvement sustains higher ad spend or net income.

Common Mistakes to Avoid

Failing to include inbound freight and duties in COGS underestimates product cost and inflates margin projections, which can lead to overspending on acquisition and stockouts. Another error is inconsistent inventory valuation (mixing FIFO and weighted average), producing misleading month-to-month gross margins and unpredictable tax liabilities; avoid this by standardizing and documenting your valuation method in accounting policy.