What is COGS & How to Calculate Cost of Goods Sold for Retailers

Audio

Good inventory management helps avoid stockouts and keeps customers satisfied. It’s a balance between not overstocking and not running out. At the core of this balance is Cost of Goods Sold (COGS) — calculated using your starting inventory, sales, and ending inventory to track what you’ve sold during a fiscal period.

However, COGS is more than just a simple formula. COGS affects things like how much inventory you should keep on hand, when to reorder, and even your profit margins.

Even though you may use an accountant to track your balance sheet, understanding COGS is crucial for DTC brand owners. Understanding your balance sheet allows you to make smarter decisions about inventory, and gives you the knowledge you need to make long-term decisions for your business.

Explore more: Wayfindr’s E-commerce Logistics Services

Today, Wayfindr will answer some common questions that retailers have about COGS

Q1. What is the Cost of Goods Sold (COGS)?COGS refers to the direct costs involved in producing and delivering your products to customers. It does not include indirect costs such as marketing, rent, or salaries.

Examples of Direct Costs:

  • Raw materials
  • Manufacturing labor
  • Product packaging
  • Shipping and fulfillment (when billed per unit)

Examples of Indirect Costs:

  • Marketing and ad spend
  • General warehouse rent
  • Management salaries
  • 3PL contracts with fixed monthly fees

Depending on how your business allocates fulfillment expenses, those may fall under direct or indirect costs.

Tip: For DTC brands, knowing which fulfillment costs to include in COGS helps optimize pricing and logistics spend.

Direct Cost: If your fulfillment costs are assessed on a per-order or per-unit basis, such as a fixed fee per item or a pick-and-pack fee, they should be classified as direct costs. These costs can be directly attributed to individual orders and may fluctuate in accordance with the number of units sold.

Indirect Cost: If your fulfillment costs are not directly tied to individual orders or units but instead constitute general operational expenses, they should be categorized as indirect costs. This category encompasses expenditures like warehousing fees, inventory management, and ongoing charges for utilizing third-party logistics (3PL) services.

Explore How to build scalable logistic plans for e-commerce businesses

Q2. How is COGS calculated?

To compute your Cost of Goods Sold (COGS), you’ll need to combine your initial inventory and your inventory purchases, and then subtract your ending inventory from the total. The formula can be represented as follows:

COGS = Starting Inventory + Purchases – Ending Inventory

calculate cost of goods sold

Now that you have your neat little formula, you need to figure out what values to input for your business. Here are the four steps.

Step 1: Establish your starting inventory

For newly established businesses, the starting inventory is typically zero.

If you are an experienced retailer with inventory on-hand, you’ll need to tally up the total value of what you’ve got.

Step 2: Determine Your Purchases

Depending on the nature of your business, whether you manufacture the products yourself or outsource them under a private label, most Ecommerce Entrepreneurs opt for a private label.

Step 3: Calculate Your Ending Inventory

The ending inventory is the stock that remains at the close of the accounting period.

This inventory often carries over to the next accounting period, forming the basis for your starting inventory for that period. However, you might choose to dispose of it at a lower, zero, or even negative margin, whether through sales, charitable donations, or considering it as waste.

To calculate the ending inventory, subtract the inventory sold during the period from the beginning inventory plus purchases.

Step 4: Apply the Cost-of-goods-sold Formula

Allow me to illustrate with an example:

  • Starting Inventory: $0
  • Purchases during Q1: $40,000
  • Ending Inventory: $10,000

➡️ COGS = $0 + $40,000 – $10,000 = $30,000

Q3. What are the typical methods for calculating COGS?

There are 3 popular inventory accounting methods to track COGS:

FIFO (First In First Out)

FIFO operates on the principle that the first goods purchased or produced are the first to be sold. In essence, it means that the oldest inventory is the first to leave the warehouse and be shipped to customers.

Under this method, even if there have been recent changes in the cost of inventory, the cost of the oldest inventory is used to calculate the value of the ending inventory.

Let’s revisit the music box business example. In the first quarter, you initially purchased 1,000 music boxes at a cost of $30 per unit. Later in the same quarter, you decided to acquire an additional 900 music boxes at a cost of $35 each. Over the quarter, you sold 1,100 music boxes. Using the FIFO method, your COGS would be calculated as follows:

Cost of goods sold = (1,000 x $30) + (100 x $35)

COGS = $30,000 + $3,500

COGS = $33,500

Since prices typically increase over time, often due to factors like inflation, a business using the FIFO method typically sells its least expensive products first. In the long run, this practice reduces its COGS and increases its net income.

It’s also usually the best method of valuation for retailers selling perishable goods, as FIFO can help you more efficiently move stock in and out of your warehouse, avoiding spoilage.

first in first out in calculating sogs

LIFO (Last-In, First-Out)

The LIFO method operates on the premise that the most recently purchased or produced goods are the first to be sold. Consequently, it considers the most expensive inventory as the first to be sold, resulting in a higher COGS and, consequently, a lower net income.

This method is typically most favorable to those looking to lower their end-of-fiscal-year taxable income, but it is not legal in every country.

WAC (Weighted Average Cost)

The WAC method calculates COGS by determining a weighted average of all goods in stock, without taking into account the specific date of production or purchase.

This method considers the quantities and costs of all inventory items, assigning a weighted average cost to calculate COGS. As a result, it is less susceptible to the influence of cost fluctuations over time.

Each of these methods carries its own implications for inventory valuation and COGS calculation. Your accountant will make the determination of the most appropriate method to use based on your specific business requirements and the regulations in your jurisdiction.

Q4. Why is it essential to factor in COGS for your business?

The Cost of Goods Sold (COGS) is a crucial metric for DTC brands, and it’s essential to grasp its significance for these key reasons:

Financial Health

COGS helps you assess your DTC brand’s profitability. By calculating it accurately, you can figure out how effectively you’re turning your resources into revenue.

Pricing Strategy

Knowing the direct costs of your products aids in setting competitive and profitable prices. This ensures you cover costs and make a reasonable profit.

Inventory Control

COGS is closely tied to inventory management. It helps you track inventory value, make smart decisions about stock levels, and manage the supply chain processes. Accurate COGS calculations optimize inventory turnover, prevent overstocking or running out of stock, and reduce holding costs.

Financial Reporting

Cost of goods sold is vital for financial statements, like the income statement and balance sheet. It provides a clear picture of costs associated with sold goods, ensuring accurate financial reporting.

However, remember that COGS has its limits. It may not consider all inventory changes, such as losses or donations. To maintain accurate COGS, keep good records and conduct regular inventory counts.

Also, be watchful for any potential COGS manipulation, like altering manufacturing costs or misrepresenting inventory values. Use controls and audits to protect against such practices.

Final Thoughts

wayfindr logistics 4pl

As you’ve explored Cost Of Goods Sold, you’ve seen how important costs are for your business. But not all logistics companies truly understand these costs, especially when it comes to e-commerce and logistics.

In this crowded market, Wayfindr is the partner you can rely on. Our team of experts is ready to provide the logistics services your brand needs. We’re more than just logistics; we’re your strategic logistics partner. If you’re ready to improve your supply chain and boost your brand’s success, we’re here for you. Schedule a meeting with us today and together, we can take your business to the next level.

FAQs on cost of goods sold

Typically, COGS includes:

  • Direct materials and labor
  • Manufacturing costs
  • Shipping and freight
  • Pick-and-pack and per-unit fulfillment fees

Costs like marketing, warehousing rent, and admin salaries are excluded as they’re indirect.

Use the formula:
COGS = Starting Inventory + Purchases – Ending Inventory

You’ll need accurate records of your beginning inventory, purchases made during the period, and remaining stock.

It depends:

  • Direct if charged per item or per order (e.g., pick-and-pack fees)
  • Indirect if it’s a fixed monthly fee (e.g., warehousing or 3PL subscription)

  • FIFO (First-In, First-Out): Assumes oldest inventory is sold first; often lowers COGS, increases profit.
  • LIFO (Last-In, First-Out): Uses latest inventory costs; increases COGS, lowers taxable income (not allowed in many countries).
  • WAC (Weighted Average Cost): Averages inventory costs to smooth out fluctuations.

Chris Crutchley

About Author

Chris Crutchley

Co-founder & Director

As Wayfindr's Director, he draws on 10+ years of experience in corporate finance and cross-border operations across the Asia Pacific region—helping build the systems behind Wayfindr’s global, carbon-neutral 4PL model.

Share with your community!

Schedule A Call Today