Cost of Goods Sold (COGS) Calculator

Calculate COGS, gross profit, and margins for your business. Analyze inventory costs with multiple accounting methods.

COGS Formula: COGS = Beginning Inventory + Purchases - Ending Inventory

Gross Profit Formula: Gross Profit = Revenue - COGS

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

$
Value of inventory at start of period
$
Total inventory purchases in the period
$
Value of inventory at end of period
$
Total sales revenue for the period
Include additional costs
Retail Store
Manufacturing
Restaurant
E-commerce
Service Business
Calculating...

Understanding Cost of Goods Sold (COGS)

Cost of Goods Sold (COGS) refers to the direct costs attributable to the production of goods sold by a company. This amount includes the cost of materials and labor directly used to create the product. It excludes indirect expenses such as distribution costs and sales force costs.

Importance of COGS:

  • Profitability Analysis: COGS is subtracted from revenue to determine gross profit.
  • Tax Calculation: Lower COGS means higher taxable income.
  • Inventory Management: Helps businesses track inventory efficiency.
  • Pricing Strategy: Understanding COGS helps set appropriate pricing.

COGS Calculation Methods

Method Description Best For Impact on COGS (During Inflation)
FIFO (First-In, First-Out) Assumes oldest inventory is sold first Perishable goods, trending prices Lower COGS, higher profits
LIFO (Last-In, First-Out) Assumes newest inventory is sold first Non-perishable goods, rising prices Higher COGS, lower profits
Weighted Average Averages cost of all inventory Homogeneous goods, stable prices Moderate COGS
Specific Identification Tracks each item individually High-value, unique items Varies by actual cost

What's Included in COGS?

Direct Costs (Included):

  • Raw materials
  • Direct labor
  • Factory overhead
  • Freight-in costs
  • Manufacturing supplies

Indirect Costs (Excluded):

  • Sales and marketing
  • Administrative salaries
  • Rent and utilities
  • Distribution costs
  • Depreciation (non-manufacturing)

How to Reduce COGS

1

Negotiate with Suppliers: Seek better pricing, bulk discounts, or payment terms with your suppliers to reduce material costs.

2

Improve Inventory Management: Reduce excess inventory, minimize spoilage/waste, and implement just-in-time inventory systems.

3

Optimize Production: Increase manufacturing efficiency, reduce labor costs through automation, and minimize production errors.

4

Source Alternatives: Consider alternative materials or suppliers that offer comparable quality at lower costs.

Frequently Asked Questions

COGS includes only the direct costs associated with producing or purchasing the goods sold. Operating expenses include indirect costs like rent, salaries (non-production), marketing, utilities, and administrative expenses. COGS is subtracted from revenue to calculate gross profit, while operating expenses are subtracted from gross profit to calculate operating income.

During periods of inflation, FIFO results in lower COGS (because older, cheaper inventory is counted as sold) and higher taxable income. LIFO results in higher COGS (because newer, more expensive inventory is counted as sold) and lower taxable income. The choice of inventory method can significantly impact a company's tax liability and reported profits.

Service businesses typically don't have traditional COGS since they don't sell physical products. However, they may have "Cost of Services" or "Cost of Revenue" which includes direct costs related to providing services, such as labor costs for service providers, materials used in service delivery, and direct overhead. These costs are similarly subtracted from revenue to calculate gross profit.

For internal management purposes, many businesses calculate COGS monthly to track profitability trends and make timely business decisions. For financial reporting, COGS is calculated quarterly and annually. Retail and manufacturing businesses with significant inventory should monitor COGS more frequently (weekly or even daily) to maintain optimal inventory levels and pricing strategies.

Gross margin varies significantly by industry. Generally, 20-30% is considered good for retail, 30-40% for manufacturing, and 50%+ for software and technology companies. However, what's "good" depends on your business model, industry norms, and growth stage. A higher margin isn't always better if it comes at the expense of sales volume or market share.