How to Calculate COGS
Accurately determine your Cost of Goods Sold to understand your business profitability.
Total Cost of Goods Sold (COGS)
This is the direct cost of producing or purchasing the goods you sold.
Visual breakdown of Total Goods Available vs. Final COGS.
What is Cost of Goods Sold?
If you want to know how to calculate COGS, you must first understand that Cost of Goods Sold (COGS) represents the direct costs associated with producing the goods sold by a company. This figure includes the cost of the materials used in creating the good along with the direct labor costs used to produce the good. It excludes indirect expenses, such as distribution costs and sales force costs.
Business owners, accountants, and investors use COGS to determine the gross profit of a company. By subtracting COGS from total revenue, you arrive at the gross margin. Anyone involved in retail, manufacturing, or wholesale should use a COGS calculation to monitor their inventory management efficiency.
A common misconception is that COGS includes all business expenses. In reality, it only includes costs that are directly tied to the production or acquisition of inventory. Rent for an office building, for instance, is an operating expense, not part of COGS.
How to Calculate COGS Formula and Mathematical Explanation
The standard cost of goods sold formula is a fundamental part of financial statements. It measures the value of inventory that moved out of the business and into the hands of customers during a specific accounting period.
To calculate this effectively, you need to track your inventory levels at the start and end of your reporting period (monthly, quarterly, or annually). Here is the breakdown of the variables involved:
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Beginning Inventory | Value of stock carried over from the previous period. | Currency ($) | Varies by business size |
| Purchases | Cost of new stock or raw materials acquired. | Currency ($) | Based on sales demand |
| Other Direct Costs | Freight-in, direct labor, and manufacturing overhead. | Currency ($) | 5% – 20% of purchases |
| Ending Inventory | Value of stock remaining at the close of the period. | Currency ($) | Varies by inventory turnover |
Practical Examples (Real-World Use Cases)
Example 1: A Small Retail Boutique
Imagine a boutique owner starts the month of January with $10,000 worth of clothing (Beginning Inventory). During January, they buy $5,000 more in stock and pay $200 in shipping (Purchases + Other Costs). At the end of January, they count their stock and find they have $8,000 left (Ending Inventory).
Calculation: ($10,000 + $5,000 + $200) – $8,000 = $7,200. The COGS for January is $7,200.
Example 2: A Manufacturing Plant
A furniture manufacturer starts the year with $500,000 in raw wood and finished chairs. Throughout the year, they spend $1,200,000 on new timber and $300,000 on direct factory labor. By December 31st, their inventory value is $400,000.
Calculation: ($500,000 + $1,200,000 + $300,000) – $400,000 = $1,600,000. In this case, cost accounting shows a significant investment in direct labor contributed to the COGS.
How to Use This Cost of Goods Sold Calculator
Using our tool to figure out how to calculate COGS is straightforward:
- Enter Beginning Inventory: Look at your balance sheet from the end of the last period. This is your starting point.
- Input Purchases: Add up all invoices for inventory bought during the current period.
- Add Other Direct Costs: Include shipping costs to get items to your warehouse and any direct labor.
- Enter Ending Inventory: Perform a physical count or check your inventory valuation software at the end of the period.
- Analyze Results: The calculator immediately updates your COGS, showing your total goods available and the consumption ratio.
Decision-making guidance: If your COGS is rising as a percentage of sales, you may need to renegotiate with suppliers or raise your prices to maintain your gross margin.
Key Factors That Affect COGS Results
- Inventory Valuation Method: Whether you use FIFO (First-In, First-Out) or LIFO (Last-In, First-Out) significantly impacts the value of ending inventory and COGS.
- Supplier Pricing: Increases in the cost of raw materials directly inflate COGS unless you find tax deductions or efficiencies elsewhere.
- Shrinkage and Theft: Lost, stolen, or damaged inventory reduces your ending inventory value, which effectively increases your COGS.
- Manufacturing Efficiency: For makers, the amount of waste in the production process changes the "Other Direct Costs" component.
- Freight and Shipping: "Freight-in" (cost of getting goods to you) is part of COGS, while "Freight-out" (shipping to customers) is usually an operating expense.
- Economic Inflation: During periods of high inflation, the cost of replacing inventory rises, often leading to a higher COGS depending on the accounting method used.
Frequently Asked Questions (FAQ)
No. COGS only includes direct costs of production. Operating expenses (OPEX) include rent, utilities, marketing, and administrative salaries.
Beginning inventory is essential because it represents capital already tied up in goods that are ready to be sold at the start of the period.
A high COGS reduces your gross profit. If COGS is too high, you may not have enough money left over to cover your operating expenses and net profit.
Technically, most service businesses use "Cost of Services" (COS). This includes direct labor and costs specifically tied to delivering the service, though they don't have "inventory" in the traditional sense.
Most businesses calculate it monthly to stay on top of their retail accounting, but it is required at least annually for tax purposes.
Only direct labor salaries (like assembly line workers) are included. The salary of an accountant or a CEO is not included in COGS.
This means you bought more stock than you sold. It results in a lower COGS for that period but means more cash is tied up in inventory management.
Yes, purchase discounts and returns/allowances reduce the "Purchases" figure, thereby lowering the total COGS.
Related Tools and Internal Resources
- Inventory Valuation Guide: Learn the differences between FIFO, LIFO, and WAC.
- Financial Statement Basics: How COGS flows from the income statement to the balance sheet.
- Retail Accounting Tips: Best practices for managing high-volume inventory.
- Gross Margin Calculator: Calculate your profit percentage after COGS.
- Tax Deduction Checklist: Ensure you are accounting for all deductible inventory costs.
- Cost Accounting Methods: A deep dive into standard vs. actual costing.