Cost of Goods Sold (COGS)
Cost of goods sold (COGS) is the direct cost of producing or purchasing the products a business sells, calculated as Beginning Inventory + Purchases − Ending Inventory.
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:
• 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 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:
• Raw materials / Merchandise — Included in COGS: ✓; Operating Expense: —
• Direct labor (factory workers) — Included in COGS: ✓; Operating Expense: —
• Factory rent / utilities — Included in COGS: ✓; Operating Expense: —
• Freight-in (shipping to you) — Included in COGS: ✓; Operating Expense: —
• Office rent / utilities — Included in COGS: —; Operating Expense: ✓
• Marketing / Advertising — Included in COGS: —; Operating Expense: ✓
• Sales commissions — Included in COGS: —; Operating Expense: ✓
• Shipping to customers — Included in COGS: —; Operating Expense: ✓
• Administrative salaries — Included in COGS: —; Operating Expense: ✓
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.
Frequently asked questions
What is Cost of Goods Sold (COGS)?
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.
What is the COGS formula?
The basic COGS formula is: COGS = Beginning Inventory + Purchases During Period - Ending Inventory. For manufacturers, it also includes direct labor and manufacturing overhead costs.
What costs are included in COGS?
COGS includes: cost of raw materials, cost of merchandise purchased for resale, direct labor costs, manufacturing overhead (factory rent, utilities, equipment depreciation), and freight-in costs. It excludes selling, general, and administrative expenses.
What costs are NOT included in COGS?
COGS excludes: marketing and advertising expenses, administrative salaries, office rent and utilities, sales commissions, shipping to customers, and research and development costs. These are operating expenses, not cost of goods.
How does COGS affect taxes?
COGS is deducted from revenue to calculate gross profit, which reduces taxable income. Higher COGS means lower gross profit and lower taxes. This is why accurate COGS calculation is important for both financial reporting and tax purposes.
What is the difference between COGS and expenses?
COGS are costs directly tied to producing or purchasing products you sell. Operating expenses are costs of running the business (rent, marketing, salaries) that are not directly tied to specific products. COGS appears above gross profit; operating expenses appear below.
How do I calculate COGS for a service business?
Service businesses typically do not have COGS since they do not sell physical products. However, some service businesses track "cost of services" which includes direct labor and materials used to deliver services.
What is a good COGS ratio?
COGS as a percentage of revenue varies by industry. Grocery stores might have 75-80% COGS, software companies might have 10-20%. Compare to your industry benchmarks. Lower COGS means higher gross margins and profitability.
How does inventory valuation method affect COGS?
The inventory valuation method (FIFO, LIFO, or weighted average) affects which costs are assigned to COGS versus ending inventory. FIFO assigns older (often lower) costs to COGS. LIFO assigns newer (often higher) costs. The choice impacts both COGS and taxes.
How often should I calculate COGS?
Most businesses calculate COGS monthly for management reporting and annually for tax purposes. Retail and e-commerce businesses with perpetual inventory systems can calculate COGS in real-time for each sale.


