3 min read

Calculating the Cost of Goods Sold (COGS)

Calculating the Cost of Goods Sold (COGS)

Calculating the Cost of Goods Sold (COGS) is an essential process in accounting and finance that helps businesses determine the direct costs associated with producing or purchasing the goods they sell. Accurate COGS calculations allow for proper gross profit assessment and inform pricing, profitability, and inventory decisions. Here’s a technically specific guide on calculating COGS, including formulas and step-by-step breakdowns.


Step 1: Understand the COGS Formula

The standard formula for COGS is:

COGS=Beginning Inventory+Purchases During the Period−Ending Inventory\text{COGS} = \text{Beginning Inventory} + \text{Purchases During the Period} - \text{Ending Inventory}

Where:

  • Beginning Inventory is the inventory value at the start of the accounting period.
  • Purchases During the Period includes all purchases made during the period, such as raw materials, manufacturing costs, and any other direct costs.
  • Ending Inventory is the inventory value at the end of the accounting period.

This formula applies to companies using the periodic inventory method. For those using perpetual inventory systems, COGS is calculated continuously as each sale occurs.


Step 2: Gather Data for Each Component

Here's an explanation step by step.

1. Beginning Inventory

  • Use the previous period’s ending inventory as the beginning inventory for the current period.
  • Ensure accuracy by verifying this amount on the balance sheet, as discrepancies can lead to incorrect COGS.

2. Purchases During the Period

  • Include all purchases of materials, parts, and any other direct production costs. If you manufacture goods, this could include:
    • Raw Materials: Costs for materials that go directly into the production.
    • Direct Labor: Wages paid to employees involved in production.
    • Manufacturing Overhead: Indirect costs like utilities for production facilities, machine maintenance, and factory rent.

3. Ending Inventory

  • Perform a physical inventory count at the end of the period or use perpetual inventory records if available.
  • Use costing methods (FIFO, LIFO, or Weighted Average Cost) to assign a value to the ending inventory:
    • FIFO (First-In, First-Out): Assumes the oldest inventory items are sold first.
    • LIFO (Last-In, First-Out): Assumes the most recently acquired items are sold first.
    • Weighted Average Cost: Averages the cost of all units available for sale.

New call-to-action


Step 3: Applying the COGS Formula with Example Calculation

Let’s go through an example to calculate COGS for a quarterly period:

  1. Beginning Inventory (from the previous period): $10,000
  2. Purchases During the Period:
    • Raw Materials: $5,000
    • Direct Labor: $3,000
    • Manufacturing Overhead: $2,000
    • Total Purchases: $10,000
  3. Ending Inventory (determined through FIFO method): $8,000

Using the formula:

COGS=Beginning Inventory+Purchases During the Period−Ending Inventory\text{COGS} = \text{Beginning Inventory} + \text{Purchases During the Period} - \text{Ending Inventory} COGS=10,000+10,000−8,000=12,000\text{COGS} = 10,000 + 10,000 - 8,000 = 12,000

The COGS for this period is $12,000.


Step 4: Consider Additional Adjustments

In some cases, additional adjustments are required for an accurate COGS calculation:

  • Freight-In Costs: Include any shipping costs for materials purchased.
  • Purchase Returns and Allowances: Subtract any returns or allowances received on defective goods.
  • Discounts: Subtract any purchase discounts received to reduce the COGS.

For instance, if the purchases were adjusted by $500 in freight-in costs, $200 in returns, and a $300 discount, your adjusted purchases would be:

Adjusted Purchases=10,000+500−200−300=10,000\text{Adjusted Purchases} = 10,000 + 500 - 200 - 300 = 10,000


Step 5: Accounting for COGS in Financial Statements

After calculating COGS, it’s essential to report it on the Income Statement. COGS is typically listed directly under revenue, and it’s subtracted from revenue to determine the Gross Profit:

Gross Profit=Revenue−COGS\text{Gross Profit} = \text{Revenue} - \text{COGS}

For instance, if your revenue for the period is $25,000 and your COGS is $12,000:

Gross Profit=25,000−12,000=13,000\text{Gross Profit} = 25,000 - 12,000 = 13,000

This gross profit figure is a key indicator of profitability and efficiency.


Step 6: Periodic vs. Perpetual Inventory Systems

The method of inventory tracking affects COGS calculations:

  • Periodic Inventory: COGS is calculated at the end of the period using the formula above.
  • Perpetual Inventory: Inventory records are updated in real time, and COGS is recorded each time a sale is made. A perpetual system often involves point-of-sale (POS) systems to automate inventory and COGS tracking.

Step 7: COGS and Tax Implications

COGS directly impacts taxable income. A higher COGS results in lower gross profit, reducing taxable income. However, businesses must adhere to the Generally Accepted Accounting Principles (GAAP) and IRS regulations when calculating COGS for tax purposes, as this calculation influences the tax deduction a company can claim.


Calculating COGS accurately is essential for understanding profitability and managing taxes. By following these steps and ensuring proper adjustments, businesses can make informed decisions on pricing, profitability, and production.

Best Free Email Marketing Services

Best Free Email Marketing Services

Email marketing is a powerful tool for connecting with customers and driving growth. One of its standout features is that you own the channel—unlike...

Read More
Gen Z Companies & Founders Who Are Crushing It

Gen Z Companies & Founders Who Are Crushing It

Generation Z, known for its entrepreneurial spirit and deep understanding of digital platforms, has been reshaping the business landscape. With the...

Read More
E-commerce Marketing Guide

E-commerce Marketing Guide

E-commerce has never been more competitive or more opportunity-rich. With global e-commerce sales projected to reach $7.4 trillion by 2025,...

Read More