Skip to main content
x

What is COGS for Retail and E-commerce Businesses and Why Should You Care About it?

What is COGS for Retail and E-commerce Businesses and Why Should You Care About it?
COGS in Retail and E-commerce: What It Is and Why It Matters
Admin

 

COGS (Cost of Goods Sold​)​ is the sum of all direct costs you incur to bring a product to the point of sale. Simply put, it’s the money you spend to buy or make the items you sell. This includes supplier invoices for finished goods, raw materials for manufactured items, inbound freight and customs, and any essential packaging or handling that makes the product saleable. COGS is recorded against the revenue from items sold and directly determines your gross margin.

While many costs overlap, e-commerce introduces additional direct cost layers: packaging for individual online orders, fulfilment, more frequent returns or reverse logistics, possibly split shipments, higher shipping costs to end consumers, and in many cases extra handling, assembly or kitting. Brick-and-mortar retail may have less of those but may include costs of display, shrinkage, store-level handling, and local transport from warehouse to store.

It is more than an accounting entry. For businesses with both physical stores and online channels, understanding COGS can demarcate sustainable growth from margin leakage.

COGS is vital for three core areas:

  • Profitability: Gross Profit = Sales – COGS
    If it is underestimated, you may think you're making profit when you're not.
  • Pricing Strategy: To price products to cover costs + desired margins + competitive dynamics, you need accurate costing.
  • Financial Reporting & Compliance: For financial statements, regulatory compliance including GST, inventory valuation, and tax filings, all require an accurate view of COGS.

Components of COGS: What’s In & What’s Out

To manage COGS effectively, you must know exactly which cost elements belong, and which do not, including how inventory valuation methods and stock adjustments affect your numbers.

What is included:

  • Purchase cost / raw materials: The supplier invoice amount for purchased products, or the raw material costs for manufactured goods.
  • Direct labour: Wages and other labour costs directly tied to manufacturing or assembling products.
  • Inbound freight, customs, and import duties: Transport from supplier to warehouse, along with duties and port charges necessary to bring goods into stock.
  • Packing and essential packaging: The necessary packaging to make the product sale-ready; in e-commerce this may include individual order packaging.
  • Other direct costs: Expenses such as inspection, quality control, or special handling needed to prepare goods for sale.

What is excluded:

  • Selling expenses: Marketing, advertising, promotions, store decoration, and branding costs.
  • General overheads: Rent, utilities, salaries of administrative staff, accounting, and legal fees.
  • Distribution costs beyond direct shipping: Post-sale delivery costs not directly tied to inventory, unless explicitly allocated to product cost.
  • Customer service and refunds: Typically excluded, unless directly tied to goods sold (e.g., warranty replacement goods).

Inventory Valuation Methods: FIFO, LIFO, Weighted Average

Your choice of valuation method significantly impacts how COGS is calculated, particularly when purchase prices fluctuate.

  • FIFO (First-In, First-Out)
    • Oldest inventory units are assumed to be sold first.
    • In periods of rising input costs, FIFO results in lower COGS (using older, cheaper costs) and therefore higher gross profit.
  • LIFO (Last-In, First-Out)
    • Newest inventory units are assumed to be sold first.
    • Rising costs lead to higher COGS and lower profits.
    • LIFO is less commonly permitted in many jurisdictions and may not comply with Indian accounting or tax regulations.
  • Weighted Average
    • Costs of all units are averaged to calculate COGS.
    • Produces smoother swings and reduces volatility.
    • However, it may be less precise in reflecting actual cost trends compared to FIFO or LIFO.

Stock Adjustments, Returns, and Spoilage

  • The calculation of COGS follows the formula:
    COGS = Beginning Inventory + Purchases (or Production) – Ending Inventory
    If the ending inventory is recorded incorrectly, the resulting COGS will also be inaccurate.
  • Returns must be factored into your calculation. When customers, distributors, or channels return goods, adjustments are required. If the returned items are in sellable condition, they reduce COGS. However, if they are damaged or unsellable, they are treated as a loss or classified under spoilage.
  • Spoilage or obsolescence must also be accounted for. Damaged, expired, or outdated stock typically reduces the value of your ending inventory. This, in turn, increases COGS and can reduce overall profitability.

Inventory & Stock Management for Accurate COGS

Even with correct definitions, poor inventory management often leads to inaccurate COGS. To prevent this, businesses need strong upstream practices.

Tracking Beginning & Ending Inventory Properly

  • Conduct regular physical stock counts and cycle counts to ensure recorded figures match actual stock.
  • Record goods receipts and shipments promptly; delays here can create mismatches in cost recognition.

Managing Reorder Points, Safety Stock, SKU Rationalization & Forecasting

  • Reorder points and safety stock: If safety stock is set too high, capital is tied up. If set too low, stockouts may lead to lost sales and switching costs. Both scenarios increase costs through either holding costs or lost opportunities.
  • SKU rationalization: Retaining slow-moving or obsolete SKUs increases the risk of spoilage or obsolescence, which inflates COGS through write-downs.
  • Demand forecasting: Leveraging sales data, seasonality, and trends improves forecasting, which helps reduce overstocking, markdowns, and expired or obsolete stock.

Stock Movement Visibility

  • Ensure visibility of goods across warehouses, in transit, and in stores. If transfers are not recorded, ending inventory, and thus COGS, will be inaccurate.
  • Track returns from stores, including damaged and unsold stock, to maintain accurate inventory and COGS.

Multichannel Inventory Management

  • Maintain one single source of truth for inventory across physical stores, warehouses, e-commerce platforms, and marketplaces.
  • Without this, discrepancies can result in phantom inventory (stock shown but not available), overselling, undercounting stock, and miscalculated COGS.

Supply Chain, Purchasing & Cost Control Upstream

Many cost leaks in COGS happen before stock reaches the shelves. Managing upstream is critical.

Vendor Negotiation, Bulk Discounts, Lead Time

  • Buy in larger volumes often gives per-unit cost savings. However, that needs balancing against holding costs.
  • Negotiate better payment terms, rebates, or conditional discounts.
  • Shorter lead times reduce the need for large safety stock and the risk of cost increases, spoilage, etc.

Freight, Duties, Supply Variability

  • Freight charges, import duties, customs inspection delays add unexpected costs.
  • When quality is lower than expected, more rejections or rework, or even returns from customers increases the cost per good sold.
  • If importing, currency fluctuations can inflate costs.

Procurement Workflows & Demand Forecasting

  • Have a disciplined procurement workflow (purchase orders, approvals, receiving inspection) to avoid over-ordering, incorrect items, or mispriced invoices.
  • Forecast demand not just by past sales but including promotions / seasonality / channel activity. Demand forecasting ties into purchasing to avoid mismatch between purchase pricing and actual demand, which leads to dead stock that needs markdowns, indirectly increasing effective COGS.
COGS for Retail and E-commerce

E-Commerce & Multi-Channel Nuances in Inventory & COGS

E-commerce, especially in combination with physical stores, introduces complexity in how COGS are managed.

Returns, Packaging, Fulfilment Complexity

  • Online orders often have higher return rates. The cost of reverse logistics, restocking, quality checks, possibly refurbishing or disposal needs accounting.
  • Each shipped item requires individual packaging, cushioning, and protective material, which is often more than what is used for bulk shipments to stores.
  • Fulfilment costs are often variable and sometimes overlooked when counting COGS.

Real-Time Inventory Synchronization

  • If your online inventory is not synced, you might oversell products or incorrectly report stock. Overselling doesn't simply hurt customer trust; it also raises COGS by speeding up shipping and refunds that aren't necessary.
  • Phantom stock i.e. inventory shown but not actually available leads to customer disappointments, returns or cancellations which also impacts cost.

Multichannel Inventory Management & Unified Costing

  • Having a unified view ensures that whether a sale happens via marketplace, web store, or physical store, the system uses the same costing logic.
  • Costs like fulfilment, packaging, and shipping need to be allocated and apportioned correctly across channels.

Marketplace Integrations in India

  • ERP integration with marketplaces like Amazon, Flipkart, and Myntra ensures that when you sell on these platforms, your inventory and cost data update in near real time. This prevents delays or miscounts that distort COGS.
  • Marketplaces often charge fees such as commission and fulfillment fees. While some of these are overhead/selling expenses, some may be direct to the product cost, for example, when marketplace fees are unnaturally large or include packaging or other handling you must absorb.

Common COGS Mistakes and How to Fix Them

  1. Inventory Counting Errors
    • Shrinkage: Damage, loss, misplacement must be discovered via regular audits / cycle counts.
    • Wrong valuation of ending inventory: Mis-labelling items, mixing buying batches, or ignoring damaged stock.
  2. Mixing Up Indirect and Direct Costs
    • Putting overhead or nice-to-have costs into COGS, such as marketing, brand packaging, without clear rules causes inconsistency.
    • Using inconsistent costing methods. Switching between FIFO, Weighted average, etc., without adjusting past data erodes comparability.
  3. System Mismatches
    • Different systems such as POS, warehouse management, and accounting not talking to each other.  
    • Lag in stock updates from warehouses to stores. 

GST and Regulatory Impact of Incorrect COGS  

In India, COGS errors are more than a business risk. There are regulatory, tax & compliance consequences.

Under- or Over-stating COGS & Taxable Income

  • If COGS is understated, gross profit is overstated, leading to higher taxable income. Conversely, overstating COGS lowers taxable profits but may attract scrutiny.
  • Errors in inventory valuation, purchase cost, returns etc. feed into this.

Consequences for GST / ITC Claims

  • If your purchase records (invoices, bills of supply) are not properly matched, you may lose Input Tax Credit (ITC). If costs feeding into COGS have GST that is not claimed because invoice is missing, or supplier has not filed returns or has wrong GSTIN etc., your net GST cost increases.
  • Under Section 122, 73, and 74 of the CGST Act, penalties or interest may be applied where ITC is wrongly claimed, fraudulent invoices used, or incorrect/mismatched documents are discovered.

Invoices, HSN Codes & Documentation

  • Maintaining proper invoices, correct HSN / SAC codes, correct GSTINs, tax rates is critical. Any mismatch in those between your purchase invoices, your stock records, sales invoices filed in returns can cause compliance risk.
  • E-invoicing / e-way bills where applicable also demand accurate documentation, which ties back to detailed inventory & cost records.

Audits & Penalties

If tax authorities suspect misrepresentation or suppression of income because of intentionally incorrect COGS or stock valuation, audits are triggered. Penalties can include interest on tax shortfalls, monetary penalties and in severe cases criminal liability.  

How Ginesys Can Help with COGS Management & Compliance

Ginesys One is a unified retail ERP and omni-channel platform designed for modern retailers and e-commerce businesses. It brings together inventory management, POS, order fulfilment, purchasing, warehouse operations, accounting, and GST compliance in one system. By removing data silos, Ginesys ensures that every cost, from supplier purchase to customer sale, is consistently tracked and recorded.

Accurate COGS begins with visibility. With Ginesys, retailers see real-time stock across warehouses, stores, and online channels. Each movement, receipts, transfers, sales, returns, automatically updates the cost base, preventing negative stock and ensuring costs reflect reality.

Smarter procurement further reduces leakage. Ginesys streamlines purchase workflows, vendor management, and invoice integration while optimizing procurement and replenishment through sales and stock insights Retailers can plan purchases more accurately, secure better terms, and avoid excess stock that inflates carrying costs.

Compliance is also simplified. Ginesys integrates GST, e-invoicing, and e-way bill tools, enabling compliant invoices, correct HSN codes, and seamless ITC tracking. Audit-ready reports align costs and purchases, reducing the risk of penalties or disputes.

How Retailers Restored Margins with Ginesys

Today, Ginesys powers thousands of retail businesses nationwide, spanning verticals such as fashion and apparel, lifestyle, and supermarkets. Renowned brands like Manyavar, Mufti, Soch, and BIBA rely on the platform to strengthen their operations and ensure cost accuracy.

Baazar Kolkata, which uses Ginesys for real-time inventory management and reporting across its stores. This has helped reduce discrepancies and shrinkage, directly supporting more accurate cost tracking. Ginesys has also proven especially valuable for Tier-2 city retailers, enabling them to adopt omnichannel management with better inventory flows, pricing control, and GST compliance, critical factors in maintaining COGS accuracy.

Customer feedback consistently highlights the same core benefits: more accurate stock management, improved inventory turnover, unified costing, and stronger reporting capabilities. Together, these improvements translate into more reliable cost calculations and healthier profit margins.

In retail and especially in omnichannel or e-commerce combined operations, COGS is not just an accounting line item but a central lever for profitability, pricing, compliance and cash flow.

Key Takeaways:

  • Accurate, unified real-time inventory tracking across all channels is essential to true COGS.
  • Choose and stick to consistent inventory valuation methods and ensure your system supports them.
  • Understand the upstream cost levers: procurement, freight, supplier negotiation, quality, lead times all feed into your cost base.
  • Recognize the regulatory importance in India: correct invoices, HSN codes, GST, ITC, proper documentation, to avoid penalties or loss of credit.
  • Systems like Ginesys One that integrate inventory, POS, procurement, order management, online marketplaces, and GST compliance provide a single source of truth, reduce manual errors, and surface anomalies early.

If you’re a retail or e-commerce business operating in India, or planning to scale, neglecting accurate COGS can mean margin erosion, compliance risk, cash flow strain. Managing it efficiently with good systems, good data, and a good process can be a defining competitive advantage.