COGS
COGS (Cost of Goods Sold)
Quick Definition
Cost of Goods Sold (COGS) is the direct cost attributable to the production of the goods or services a company sold during a period. It is the first expense subtracted from revenue on the income statement, and its relationship to revenue determines gross profit and gross margin.
Gross Profit = Revenue - COGS Gross Margin = Gross Profit / Revenue
What It Means
COGS captures what it actually costs to produce what was sold — not overhead, not administrative salaries, not marketing. Just the direct production costs: raw materials, direct labor, and manufacturing overhead directly tied to production.
Understanding COGS is essential for evaluating business quality. A company with a high gross margin (low COGS relative to revenue) has pricing power or a scalable business model. A company with thin gross margins has little room to absorb cost increases or competitive price pressure.
What COGS Includes
| COGS Component | Description | Examples |
|---|---|---|
| Direct materials | Raw materials and components in the finished product | Steel in cars, flour in bread, screens in phones |
| Direct labor | Wages of workers directly producing the goods | Assembly workers, machinists, chefs |
| Manufacturing overhead | Indirect costs tied to production | Factory rent, utilities, equipment depreciation |
| Inbound freight | Shipping costs to receive materials | Delivery to the factory |
| Inventory write-downs | Loss from obsolete or damaged inventory | Expired food, discontinued products |
What COGS Does NOT Include
| Excluded Item | Where It Goes |
|---|---|
| Selling expenses (commissions, ads) | SG&A — below gross profit |
| Administrative salaries | SG&A — below gross profit |
| R&D spending | R&D expense — below gross profit |
| Interest payments | Below operating income |
| Outbound shipping to customers | Sometimes in COGS, sometimes in SG&A (varies by company) |
COGS Calculation Methods
For companies that carry inventory, the method used to cost that inventory affects COGS and profit:
| Method | Description | COGS in Rising Price Environment | Tax Implication |
|---|---|---|---|
| FIFO (First In, First Out) | Oldest inventory sold first | Lower COGS; higher profit | Higher taxes |
| LIFO (Last In, First Out) | Newest inventory sold first | Higher COGS; lower profit | Lower taxes (allowed for U.S. tax, not IFRS) |
| Weighted Average Cost | Average cost of all inventory | Between FIFO and LIFO | Between the two |
| Specific Identification | Tracks each item individually | Matches actual cost | Used for high-value unique items |
LIFO reserve: Companies using LIFO disclose the "LIFO reserve" — the difference between LIFO and FIFO inventory values — so analysts can compare across methods.
COGS Examples by Industry
| Industry | Major COGS Components | Typical COGS as % of Revenue |
|---|---|---|
| Grocery retail | Food products, packaging | 70-75% |
| Automotive manufacturing | Steel, parts, direct labor | 75-85% |
| Semiconductor | Raw materials, fab costs | 35-50% |
| Software (SaaS) | Hosting, support, licensing | 15-30% |
| Restaurant | Food, beverages, kitchen staff | 25-35% |
| Pharmaceutical | API, packaging, manufacturing | 20-35% |
| Fast fashion retail | Garments, sourcing | 40-55% |
Software companies have among the lowest COGS ratios because their products can be distributed digitally with near-zero marginal cost once developed.
The COGS-Inventory Connection
COGS = Beginning Inventory + Purchases - Ending Inventory
This formula links the income statement (COGS) to the balance sheet (inventory):
| Amount | |
|---|---|
| Beginning inventory (Jan 1) | $50,000 |
| + Purchases during year | $300,000 |
| = Goods available for sale | $350,000 |
| - Ending inventory (Dec 31) | $60,000 |
| = COGS | $290,000 |
If the company sold $500,000 of goods: Gross Profit = $500,000 - $290,000 = $210,000 (42% gross margin)
Gross Margin Analysis: Why It Matters
Gross margin is the most direct measure of a business's pricing power and cost efficiency:
| Company | Revenue | COGS | Gross Profit | Gross Margin |
|---|---|---|---|---|
| Apple | $383B | $214B | $169B | 44% |
| Microsoft | $212B | $65B | $147B | 69% |
| Amazon (product) | $255B | $237B | $18B | 7% |
| Nvidia | $61B | $17B | $44B | 72% |
| General Motors | $172B | $150B | $22B | 13% |
Nvidia's 72% gross margin reflects proprietary chips with minimal competition and strong pricing power. GM's 13% margin reflects commodity manufacturing with thin pricing power and high input costs.
COGS and Economies of Scale
One of the most important dynamics in business is how COGS behaves as volume increases. For many businesses:
- Fixed production overhead (factory lease, equipment) stays constant while revenue grows
- Variable costs (materials, direct labor) scale with volume
- As revenue grows, fixed costs spread over more units, reducing per-unit COGS
Example: A manufacturer with $1M in fixed overhead and $5/unit variable cost:
| Units Sold | Variable Cost | Fixed Cost | Total COGS | Revenue ($20/unit) | Gross Margin |
|---|---|---|---|---|---|
| 100,000 | $500K | $1,000K | $1,500K | $2,000K | 25% |
| 200,000 | $1,000K | $1,000K | $2,000K | $4,000K | 50% |
| 500,000 | $2,500K | $1,000K | $3,500K | $10,000K | 65% |
Gross margin expands dramatically as volume grows, because fixed overhead gets spread more thinly. This is operating leverage — a core value driver for scalable businesses.
Key Points to Remember
- COGS = direct costs of producing what was sold (materials, direct labor, manufacturing overhead)
- Gross Profit = Revenue - COGS; Gross Margin = Gross Profit / Revenue
- The inventory costing method (FIFO, LIFO, average) directly affects reported COGS
- Low COGS as a % of revenue signals pricing power, scalable business model, or proprietary products
- Software and digital businesses have extremely low COGS because marginal reproduction cost is near zero
- COGS trends over time reveal whether input cost inflation or production efficiency is improving or worsening
Common Mistakes to Avoid
- Confusing COGS with operating expenses: SG&A, R&D, and marketing are below the gross profit line — not part of COGS.
- Ignoring inventory method when comparing companies: A company using LIFO in a rising-cost environment reports higher COGS and lower profits than an identical company using FIFO.
- Overlooking COGS trends: Revenue growth with expanding COGS (falling gross margins) is a red flag — the business may be losing pricing power or facing input cost inflation.
Frequently Asked Questions
Q: What is the difference between COGS and operating expenses? A: COGS includes only direct production costs. Operating expenses (SG&A, R&D) are indirect costs not tied to production. Together, COGS + Operating Expenses = Total operating costs. The dividing line between the two determines gross margin.
Q: Do service companies have COGS? A: Service companies often use "Cost of Revenue" or "Cost of Services" instead of COGS, which includes direct labor and other costs directly tied to delivering the service. The concept is identical — direct service delivery costs that determine gross margin.
Q: How does inflation affect COGS? A: Rising input costs (materials, energy, labor) increase COGS directly. Companies with strong pricing power can pass these cost increases to customers, maintaining gross margins. Companies without pricing power absorb the increases, compressing gross margins. Gross margin trends are the clearest signal of pricing power in inflationary periods.
Related Terms
Gross Margin
Gross margin is the percentage of revenue remaining after subtracting the direct cost of goods sold, measuring how efficiently a company produces its products and how much pricing power it has.
Depreciation
Depreciation is the systematic allocation of the cost of a tangible asset over its useful life, reducing taxable income and reflecting the gradual decline in an asset's value on financial statements.
Book Value
Book value is the net worth of a company as recorded on its balance sheet — total assets minus total liabilities — representing what shareholders would theoretically receive if the company were liquidated at accounting values.
EBIT
EBIT measures a company's operating profitability before accounting for how it is financed (interest) or taxed — making it ideal for comparing operating performance across companies with different capital structures and tax situations.
Fair Value
Fair value is the estimated worth of an asset based on rational analysis and market conditions — the price at which it would exchange between a willing buyer and seller, used in both accounting and investment analysis.
Gross Profit Margin
Gross profit margin measures the percentage of revenue remaining after subtracting the cost of goods sold — revealing how efficiently a company produces its products and how much money is available to cover operating expenses and generate profit.
Related Articles
Can a Teenager Start a Business? What You Need to Know
Teenagers can legally run a business in the U.S. - but there are real legal, tax, and practical rules you need to understand first. Here's the honest guide to starting a business before 18.
Tax Loss Harvesting: A Simple Strategy Most Investors Ignore
When investments lose value, most people feel only the loss. Tax loss harvesting turns that loss into a tax benefit that can save you real money today and for years to come.
What Is a W-4 Form and How Should You Fill It Out?
The W-4 determines how much federal tax is withheld from every paycheck. Fill it out wrong and you either owe a surprise bill in April or give the government an interest-free loan all year.

How to Negotiate Your First Salary (And Why It Matters for Retirement)
Most people accept the first offer they get. That single decision can cost them hundreds of thousands of dollars over a career. Here's how to negotiate — and why the stakes are higher than they appear.
How Much Do You Actually Need to Retire? A Realistic Calculator Guide
The answer isn't one number — it's a calculation built from your specific spending, income sources, and timeline. Here's how to find your real retirement number and what to do with it.
