Early Access: Get 3 Months Free β€” Limited SpotsJoin now
← GlossaryAccounting

Cost of Goods Sold (COGS)

Cost of Goods Sold (COGS) is the direct cost of producing or purchasing the products a company sells. It includes materials, labor, and manufacturing costs directly tied to the goods sold during a specific period. COGS is subtracted from revenue to calculate gross profit.

The COGS Formula

COGS = Beginning Inventory + Purchases - Ending Inventory

Beginning Inventory

Value of inventory on hand at the start of the accounting period.

Purchases

Total cost of inventory purchased or manufactured during the period.

Ending Inventory

Value of inventory remaining at the end of the accounting period.

Example Calculation

Let's calculate COGS for a retail business:

ComponentValue
Beginning Inventory (Jan 1)$50,000
Purchases During Year$200,000
Goods Available for Sale$250,000
Less: Ending Inventory (Dec 31)($60,000)
Cost of Goods Sold$190,000

In this example, the business had $250,000 worth of goods available to sell. After subtracting the $60,000 still in inventory at year end, COGS is $190,000 β€” the cost of the goods actually sold.

COGS Calculator

Enter your inventory and purchase values to calculate your Cost of Goods Sold.

$

Value at start of period

$

Total inventory bought

$

Value at end of period

Goods Available for Sale

$250,000

Beginning + Purchases

Ending Inventory

$60,000

Still on hand

Cost of Goods Sold

$190,000

COGS

COGS = Beginning Inventory + Purchases - Ending Inventory
COGS = $50,000 + $200,000 - $60,000
COGS = $190,000

Interpretation: Your Cost of Goods Sold is $190,000 for this period. This represents the direct cost of the inventory you sold. Subtract this from your revenue to calculate gross profit.

COGS by Business Type

Retail / Ecommerce

COGS includes: Cost of merchandise purchased for resale, freight-in costs, import duties.

Typical range: 60-80% of revenue

Manufacturing

COGS includes: Raw materials, direct labor, manufacturing overhead (factory rent, equipment, utilities).

Typical range: 40-70% of revenue

Service Business

COGS includes: Direct labor costs, materials used to deliver services. Many service businesses have minimal or no COGS.

Typical range: 0-40% of revenue

COGS vs Operating Expenses

Understanding the difference is critical for accurate financial reporting:

Cost TypeIncluded in COGSOperating Expense
Raw materials / Merchandiseβœ“-
Direct labor (factory workers)βœ“-
Factory rent / utilitiesβœ“-
Freight-in (shipping to you)βœ“-
Office rent / utilities-βœ“
Marketing / Advertising-βœ“
Sales commissions-βœ“
Shipping to customers-βœ“
Administrative salaries-βœ“

How COGS Affects Your Financials

Gross Profit

Revenue - COGS = Gross Profit

Lower COGS means higher gross profit margin. This is the first indicator of business efficiency.

Tax Implications

COGS is a deductible expense. Accurate COGS tracking ensures you are not overpaying on taxes. Choosing FIFO vs LIFO affects your tax liability.

Inventory Valuation

COGS and ending inventory are linked. Overstate COGS and you understate inventory (and profit). Accurate inventory counts are essential.

Pricing Decisions

Understanding your COGS per unit helps you set profitable prices. If COGS is 60% of price, you have a 40% gross margin to cover expenses and profit.

Track inventory costs with StockZip

StockZip inventory management gives you real-time visibility into stock levels, purchase costs, and valuation β€” the data you need to calculate accurate COGS. Track every item from receipt to sale.

Need help? We've got answers

Common questions about scanning, offline mode, pricing, and migration.

Cost of Goods Sold (COGS) represents the direct costs of producing or purchasing the goods that a company sells during a specific period. It includes the cost of materials, direct labor, and manufacturing overhead directly tied to production.