What Is Cost of Goods Sold (COGS)?
Cost of Goods Sold (COGS) represents the direct costs attributable to the production or acquisition of goods sold by a company. It includes raw materials, direct labor, and manufacturing overhead directly tied to production. COGS is subtracted from revenue to calculate gross profit, making it one of the most important line items on the income statement.
Understanding COGS is essential for pricing decisions, profitability analysis, and tax reporting. The IRS requires businesses that sell products to calculate COGS for tax purposes. Accurately tracking COGS ensures your gross margin reflects true production efficiency.
COGS includes only DIRECT costs of production: materials, direct labor, factory overhead. It does NOT include selling expenses, administrative costs, or marketing. Those are operating expenses and affect operating margin, not gross margin.
COGS Formulas
- 1COGS = $50,000 + $120,000 - $45,000 = $125,000
- 2Gross Profit = $250,000 - $125,000 = $125,000
- 3Gross Margin = $125,000 / $250,000 = 50%
- 4COGS as % of Revenue = $125,000 / $250,000 = 50%
What Is Included in COGS?
| Business Type | Included in COGS | NOT Included in COGS |
|---|---|---|
| Manufacturer | Raw materials, direct labor, factory rent, equipment depreciation | Admin salaries, marketing, office rent |
| Retailer | Purchase cost of inventory, freight-in, import duties | Store rent, cashier wages, advertising |
| Service Business | Direct labor for services, materials consumed | Overhead, admin, sales costs |
| E-commerce | Product cost, packaging, inbound shipping | Website hosting, marketing, customer service |
Inventory Valuation Methods
- FIFO (First In, First Out): Oldest inventory costs are used for COGS first. Results in lower COGS during inflation.
- LIFO (Last In, First Out): Newest costs used first. Results in higher COGS during inflation, reducing taxable income. Not allowed under IFRS.
- Weighted Average: Average cost of all inventory used for COGS. Smooths cost fluctuations.
- Specific Identification: Each item tracked individually. Used for high-value, unique items (jewelry, cars, real estate).
How to Calculate COGS Accurately
The IRS requires businesses with inventory to use an accrual method for COGS. Your choice of inventory valuation method (FIFO vs. LIFO) directly affects taxable income. LIFO reduces COGS taxes during inflation but is not reversible once elected. Consult a tax professional before choosing.
COGS in Financial Statements and Valuation
Cost of Goods Sold (COGS) is the direct cost of producing the goods or services a company sells. On the income statement, COGS is subtracted from revenue to arrive at gross profit. The gross margin (gross profit / revenue) is one of the most important indicators of a business's pricing power and operational efficiency. High gross margins enable businesses to absorb operating expenses (SG&A, R&D, marketing) and still generate strong net income. For investors, declining COGS as a percentage of revenue (expanding gross margins) is a bullish signal, while rising COGS (margin compression) can indicate pricing pressure, rising input costs, or operational inefficiency.
COGS accounting methods significantly affect reported profitability and tax liability. FIFO (First In, First Out) assumes the oldest inventory is sold first — in inflationary environments, FIFO results in lower COGS (older, cheaper inventory sold first) and higher reported gross profit, but also higher taxes. LIFO (Last In, First Out) assumes the newest inventory is sold first — in inflation, LIFO produces higher COGS and lower taxable income, reducing taxes but also reducing reported profits. LIFO is allowed under U.S. GAAP but prohibited under IFRS (used internationally). Weighted average cost averaging is a middle-ground approach. The choice of inventory accounting method is a significant business and tax decision.
COGS for Service Businesses vs. Product Companies
While COGS is straightforward for product companies (raw materials + direct labor + manufacturing overhead), service businesses have a different cost structure often called Cost of Revenue or Cost of Services. For a SaaS company, COGS includes hosting costs, customer support, and payment processing fees, but not salaries of engineers building new features (those go to R&D). For a consulting firm, COGS is primarily the salaries and benefits of billable consultants. For a staffing agency, COGS is the wages paid to temporary workers. Understanding which costs belong in COGS vs. operating expenses is essential for accurate gross margin reporting and management decision-making.
For product-based businesses, tracking COGS in real-time helps manage cash flow and profitability proactively. When material costs rise (due to inflation or supply chain disruptions), you need to either raise prices, find cheaper suppliers, or accept margin compression — decisions that require immediate visibility. Inventory management systems integrated with your accounting software (QuickBooks, Xero, NetSuite) can calculate COGS automatically as you sell, giving you real-time gross margin visibility by product, SKU, and category.



