Cost of Goods Sold Calculator

Calculate your Cost of Goods Sold (COGS) to analyze inventory costs, gross profit, and profit margins

Home Categories Financial Cost of Goods Sold Calculator

Calculate the Cost of Goods Sold (COGS) using the inventory method. Enter your beginning inventory, purchases, and ending inventory to determine your direct production costs and analyze profit margins.

Quick Examples

Calculation Mode

Inventory Values

Start of period

During period

End of period

Revenue (Optional)

Enter to calculate profit margins

What do you want to find?

Enter Known Values

Cost of Goods Sold

Inventory Flow

Beginning

+

Purchases

Ending

=

COGS

Revenue

Gross Profit

Gross Margin

COGS Ratio

Average Inventory

(Beginning + Ending) / 2

Inventory Turnover

Times inventory sold & replaced

Industry Benchmarks

Industry Typical COGS Ratio Your Ratio
Software/Tech 10-25%
Food Service 28-35%
Manufacturing 50-70%
Retail 60-75%

Required

To achieve COGS of

Calculation

If you like this calculator

Please help us simply by sharing it. It will help us a lot!

Share this Calculator

About Cost of Goods Sold Calculator

What is Cost of Goods Sold (COGS)?

Cost of Goods Sold (COGS) represents the direct costs attributable to the production of goods sold by a company. It includes the cost of materials, direct labor, and manufacturing overhead directly tied to production.

COGS Formula

The basic formula for calculating COGS is:

COGS = Beginning Inventory + Purchases - Ending Inventory

Understanding the Components

  • Beginning Inventory: The value of inventory at the start of the accounting period
  • Purchases: Total cost of inventory acquired during the period (raw materials, finished goods)
  • Ending Inventory: The value of unsold inventory remaining at the end of the period

What COGS Includes

Direct Costs

  • Raw materials and supplies
  • Direct labor costs (wages for production workers)
  • Manufacturing overhead directly tied to production
  • Freight-in costs for inventory
  • Storage costs for production materials

What COGS Excludes

  • Selling, general, and administrative expenses (SG&A)
  • Research and development costs
  • Marketing and advertising expenses
  • Distribution and delivery costs to customers
  • Office rent and utilities (unless production-related)

Related Financial Metrics

Gross Profit

Gross Profit = Revenue - COGS

Gross Profit Margin

Gross Profit Margin = (Gross Profit / Revenue) × 100%

COGS Ratio

COGS Ratio = (COGS / Revenue) × 100%

Inventory Turnover

Inventory Turnover = COGS / Average Inventory
Average Inventory = (Beginning Inventory + Ending Inventory) / 2

Industry COGS Benchmarks

Industry Typical COGS Ratio
Retail 60-75%
Manufacturing 50-70%
Food Service 28-35%
Software/Tech 10-25%
E-commerce 55-70%

Inventory Valuation Methods

The method used to value inventory significantly impacts COGS:

  1. FIFO (First-In, First-Out): Assumes oldest inventory is sold first
  2. LIFO (Last-In, First-Out): Assumes newest inventory is sold first
  3. Weighted Average: Uses average cost of all inventory
  4. Specific Identification: Tracks actual cost of each item

Best Practices for COGS Management

  1. Track Inventory Accurately: Implement inventory management systems
  2. Optimize Purchasing: Negotiate better terms with suppliers
  3. Reduce Waste: Minimize shrinkage, spoilage, and obsolescence
  4. Improve Production Efficiency: Reduce direct labor costs per unit
  5. Monitor Regularly: Compare COGS ratio against industry benchmarks
  6. Consider Automation: Invest in technology to reduce production costs