Orders In Seconds

cost of goods sold formula

Cost of Goods Sold Formula (COGS): Definition, Calculation & Examples

Picture of By <span style="font-weight:bold;color:#F63C47; font-style: italic;">Oscar Guerrero</span>

By Oscar Guerrero

Published October 17, 2025

Introduction: What COGS Is & Why It Matters

The cost of goods sold (COGS) formula calculates the direct costs required to produce or purchase the products a business sells during a specific period.

COGS matters because it directly impacts:

  • Gross profit

  • Pricing decisions

  • Tax calculations

  • Financial reporting accuracy

  • Inventory valuation

If you don’t calculate COGS correctly, your profit margins and tax obligations will be inaccurate.

Key Takeaways

Quick COGS Formula Cheat Sheet

Here’s the fast version.

Basic COGS Formula:

Beginning Inventory + Purchases − Ending Inventory = COGS

Extended Version:

Beginning Inventory + Purchases + Direct Costs − Ending Inventory = COGS

Inventory Methods That Affect COGS:

COGS Is Used For:

A business owner is seated at a desk, reviewing financial documents and inventory reports that include the cost of goods sold

What Is the Cost of Goods Sold (COGS)?

Cost of goods sold (COGS) represents the direct costs tied to producing or purchasing the goods a company sells.

It includes only costs directly related to inventory.

COGS typically includes:

COGS does NOT include:

COGS appears on the income statement and is subtracted from revenue to determine gross profit.

Avoid the Top 5 Mistakes Wholesale Distributors Make

Avoid the Top 5 Mistakes Wholesale Distributors Make

Are you making one of the top 5 mistakes that plague wholesale distributors? Download our free eBook to find out. We’ve also included tips and guidance to help you save time and avoid costly mistakes.

How Do You Calculate COGS? (Step-by-Step)

Here is the step-by-step process:

Step 1: Determine Beginning Inventory

This is the value of inventory at the start of the accounting period.

Step 2: Add Purchases

Include all inventory purchases made during the period.

Step 3: Add Direct Production Costs

If you manufacture products, include direct labor and manufacturing overhead.

Step 4: Subtract Ending Inventory

Ending inventory is the value of unsold inventory at the end of the period.

Final Formula:

COGS = Beginning Inventory + Purchases − Ending Inventory

The image features a calculator next to an accounting spreadsheet that outlines the steps for calculating the cost of goods sold (COGS)

Example Calculation

Beginning Inventory: $20,000
Purchases: $15,000
Ending Inventory: $10,000

COGS = 20,000 + 15,000 − 10,000
COGS = $25,000

This means the business spent $25,000 on goods that were actually sold during the period.

What Is the Extended COGS Formula?

The extended formula includes additional production costs beyond simple inventory purchases.

COGS = Beginning Inventory + Direct Materials + Direct Labor + Manufacturing Overhead − Ending Inventory

This version is used mainly by manufacturers.

It provides a more accurate picture of production costs and helps businesses analyze cost efficiency.

How Inventory Valuation Methods Affect COGS

Inventory valuation changes your COGS number — especially during inflation.

1. FIFO (First In, First Out)

Oldest inventory is sold first.

2. LIFO (Last In, First Out)

Newest inventory is sold first.

3. Weighted Average Cost

Inventory cost is averaged.

Choosing the right method affects profit margins and tax liability.

Speed Up Your Warehouse Operations. A Simple Guide: How to Label Your Warehouse Bin Locations

Speed Up Your Warehouse Operations

A Simple Guide: How to Label Your Warehouse Bin Locations

Discover the simple yet powerful system that can transform how you manage your warehouse, reduce errors, and boost efficiency.

What Costs Are Included vs Excluded in COGS?

Included in COGS

Excluded from COGS

Only direct production-related expenses count.

A warehouse worker is seen conducting a physical inventory count, meticulously checking and recording items on shelves, which is essential for calculating the cost of goods sold

How COGS Impacts Your Business (Profit, Pricing, Tax)

COGS directly influences your financial health.

1. Gross Profit

Gross Profit = Revenue − COGS

If COGS increases, gross profit decreases.

2. Pricing Strategy

Knowing your COGS ensures you don’t underprice products.

Selling below COGS leads to losses.

3. Taxes

Higher COGS reduces taxable income.
Lower COGS increases taxable income.

Accurate COGS reporting is essential for tax compliance.

Common COGS Mistakes to Avoid

Here are frequent errors businesses make:

  1. Including indirect costs like rent or marketing

  2. Forgetting to subtract ending inventory

  3. Using inconsistent inventory valuation methods

  4. Misclassifying labor costs

  5. Ignoring inventory shrinkage or damage

  6. Failing to update inventory counts regularly

These mistakes distort profitability and tax calculations.

The image depicts a manufacturing facility where various production processes are taking place

Frequently Asked Questions

  • Does COGS include shipping?

    Only shipping related to purchasing inventory (freight-in) is included. Shipping to customers is not included.

  • Is COGS the same as operating expenses?

    No. COGS includes only direct production costs. Operating expenses include indirect business costs.

  • Can service businesses calculate COGS?

    Yes. Instead of inventory, service businesses include direct labor and materials used to deliver services.

  • How often should COGS be calculated?

    Most businesses calculate COGS monthly, quarterly, and annually for accurate financial reporting.

  • What happens if ending inventory is zero?

    If ending inventory is zero, COGS equals beginning inventory plus purchases.

Summary & Next Steps

The cost of goods sold formula is essential for understanding profitability.

To recap:

  • Use the basic formula for trading businesses

  • Use the extended formula for manufacturers

  • Choose the right inventory valuation method

  • Keep accurate inventory records

  • Separate direct and indirect costs correctly

Mastering COGS helps you improve pricing, manage taxes, and increase profit margins.

B2B Wholesale Distributors: 5 Step Guide to Doubling Your Sales Orders
B2B Wholesale Distributors 5 Step Guide to Doubling Your Sales Orders

Double Your Sales Orders in 5 Steps

This exclusive eBook is packed with real-world, data-driven concepts
that can help maximize your store visits and double your sales.
Get it for FREE – Today!

FREE In-Depth Guide for B2B Wholesale Distributors

Double Your Sales Orders in 5 Steps

This exclusive eBook is packed with real-world, data-driven concepts that can help maximize your store visits and double your sales.
Get it for FREE – Today!

Related Posts