Cost of Goods Sold (COGS) Calculator

Calculate the direct costs attributable to the production of goods sold by your business. COGS is a crucial metric for understanding profitability and managing inventory.

Inventory & Purchase Data

Value of inventory at the start of the period
Total cost of inventory purchased
Labor costs directly tied to production (optional)
Indirect production costs (optional)
Value of inventory at the end of the period
Total sales revenue for the period (for margin calculations)

Results

Enter your inventory and purchase data to calculate COGS

Understanding Cost of Goods Sold (COGS): Complete Guide

Cost of Goods Sold (COGS) is a fundamental accounting metric that represents the direct costs attributable to the production of goods sold by a company. Understanding and accurately calculating COGS is essential for determining profitability, pricing products, and making informed business decisions.

What is Cost of Goods Sold?

COGS includes all direct costs involved in producing goods or acquiring merchandise for sale. These costs are directly tied to the products sold during a specific accounting period. COGS is subtracted from revenue to calculate gross profit, making it a critical component of the income statement.

COGS Formula:

COGS = Beginning Inventory + Purchases - Ending Inventory

Or more comprehensively:

COGS = Beginning Inventory + Purchases + Direct Labor + Manufacturing Overhead - Ending Inventory

Step-by-Step COGS Calculation

  1. Determine Beginning Inventory: This is the value of inventory at the start of the accounting period. It equals the ending inventory from the previous period.
  2. Add Purchases: Include all inventory purchases made during the period, including shipping and handling costs directly related to acquiring goods.
  3. Add Direct Costs: Include direct labor costs and manufacturing overhead if applicable.
  4. Subtract Ending Inventory: Count and value all inventory remaining at the end of the period.
  5. Calculate COGS: Apply the formula to get your final COGS figure.

Example Calculation

A retailer has:

  • Beginning Inventory: $50,000
  • Purchases: $150,000
  • Ending Inventory: $40,000

COGS = $50,000 + $150,000 - $40,000 = $160,000

What's Included in COGS?

COGS typically includes:

What's NOT Included in COGS?

Inventory Valuation Methods

The method you use to value inventory directly affects your COGS calculation:

Method Description Effect on COGS
FIFO (First-In, First-Out) Oldest inventory sold first Lower COGS when prices rise
LIFO (Last-In, First-Out) Newest inventory sold first Higher COGS when prices rise
Weighted Average Average cost of all units Moderate COGS, smooths fluctuations
Specific Identification Track actual cost per item Most accurate but complex

Key Metrics Related to COGS

Gross Profit and Gross Margin

Gross Profit: Revenue - COGS

Gross Margin: (Gross Profit / Revenue) x 100%

Inventory Turnover

Inventory Turnover: COGS / Average Inventory

Days Inventory Outstanding: 365 / Inventory Turnover

Higher inventory turnover indicates efficient inventory management, while lower turnover may suggest overstocking or slow sales.

COGS for Different Business Types

Manufacturing Companies

Include raw materials, work-in-progress, direct labor, and allocated manufacturing overhead. Track inventory at each production stage.

Retail/Wholesale Companies

Focus on purchase cost of merchandise plus freight-in. Generally simpler calculation than manufacturing.

Service Companies

Typically have no COGS or very minimal COGS. May include "Cost of Services" for direct service delivery costs.

Why COGS Matters

Common COGS Mistakes to Avoid

  1. Including Non-Direct Costs: Don't include administrative or selling expenses
  2. Inconsistent Valuation: Stick with one inventory method for consistency
  3. Ignoring Shrinkage: Account for theft, damage, and obsolescence
  4. Timing Errors: Match costs to the period when goods are sold
  5. Missing Freight-In: Include shipping costs to acquire inventory

Industry Benchmark: COGS Ratios

Typical COGS as a percentage of revenue:

  • Grocery Stores: 70-80%
  • Retail Clothing: 50-60%
  • Restaurants: 28-35% (food costs only)
  • Manufacturing: 40-60%
  • Software (Product): 10-20%

Frequently Asked Questions

Q: Is COGS the same as cost of sales?

A: They're often used interchangeably, but some distinguish them: COGS typically refers to product costs, while cost of sales may include service-related costs or be used more broadly.

Q: How does COGS affect taxes?

A: COGS is tax-deductible. Higher COGS means lower taxable income. This is why LIFO is popular in the US during inflationary periods - it results in higher COGS and lower taxes.

Q: Can COGS be negative?

A: No. If your calculation yields a negative number, check for errors. You may have inflated ending inventory or omitted purchases.

Q: How often should I calculate COGS?

A: Most businesses calculate COGS monthly, quarterly, and annually. More frequent calculations help with timely decision-making and inventory management.