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
- The cost of goods sold formula (COGS) calculates the direct cost of products sold during a period.
- The basic formula is: Beginning Inventory + Purchases − Ending Inventory = COGS
- COGS includes only direct production costs like raw materials and direct labor.
- COGS does not include marketing, administrative, or operating expenses.
- COGS directly affects gross profit, pricing decisions, and taxable income.
- Inventory valuation methods (FIFO, LIFO, Weighted Average) change your reported COGS.
- Accurate COGS calculation is essential for financial reporting and profitability analysis.
Table of Contents
- Introduction: What COGS Is & Why It Matters
- Quick COGS Formula Cheat Sheet
- What Is the Cost of Goods Sold (COGS)?
- How Do You Calculate COGS? (Step-by-Step)
- What Is the Extended COGS Formula?
- How Inventory Valuation Methods Affect COGS
- What Costs Are Included vs Excluded in COGS?
- How COGS Impacts Your Business (Profit, Pricing, Tax)
- Common COGS Mistakes to Avoid
- Frequently Asked Questions (FAQs)
- Summary & Next Steps
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:
- FIFO (First In, First Out)
- LIFO (Last In, First Out)
- Weighted Average Cost
COGS Is Used For:
- Calculating gross profit
- Determining profit margins
- Filing taxes
- Evaluating business performance
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:
- Raw materials
- Direct labor (production workers)
- Manufacturing supplies
- Factory overhead directly tied to production
- Freight-in or shipping related to inventory purchases
COGS does NOT include:
- Marketing expenses
- Administrative salaries
- Office rent
- Sales commissions
- Distribution costs after sale
COGS appears on the income statement and is subtracted from revenue to determine gross profit.
Avoid the Top 5 Mistakes Wholesale Distributors Make
How Do You Calculate COGS? (Step-by-Step)
Step 1: Determine Beginning Inventory
Step 2: Add Purchases
Step 3: Add Direct Production Costs
Step 4: Subtract Ending Inventory
Final Formula:
COGS = Beginning Inventory + Purchases − Ending Inventory
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
1. FIFO (First In, First Out)
- In inflation: Lower COGS
- Higher reported profit
- Higher taxes
2. LIFO (Last In, First Out)
- In inflation: Higher COGS
- Lower reported profit
- Lower taxes
3. Weighted Average Cost
Inventory cost is averaged.
- Smooths price fluctuations
- Moderate COGS impact
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
What Costs Are Included vs Excluded in COGS?
Included in COGS
- Raw materials
- Production labor
- Manufacturing overhead
- Packaging directly tied to products
- Freight-in costs
Excluded from COGS
- Marketing and advertising
- Office rent
- Executive salaries
- Legal fees
- Distribution shipping to customers
Only direct production-related expenses count.
How COGS Impacts Your Business (Profit, Pricing, Tax)
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:
Including indirect costs like rent or marketing
Forgetting to subtract ending inventory
Using inconsistent inventory valuation methods
Misclassifying labor costs
Ignoring inventory shrinkage or damage
Failing to update inventory counts regularly
These mistakes distort profitability and tax calculations.
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.