Accounting

Cost of Goods Sold (COGS)

The direct costs of producing the goods or services a company sells, such as raw materials, factory labor, and manufacturing overhead. Subtracting COGS from revenue gives gross profit, the first measure of profitability on the income statement.

What Is Cost of Goods Sold (COGS)?

Cost of goods sold captures the expenses directly tied to producing whatever a company sells. For a manufacturer that means materials, production wages, and factory costs; for a software company it typically means hosting, infrastructure, and customer support tied to delivering the product.

COGS deliberately excludes indirect costs like corporate salaries, marketing, and research, which appear lower on the income statement as operating expenses. The dividing line matters because it determines gross profit and gross margin.

How It Works

For companies that carry inventory, COGS is calculated as Beginning Inventory + Purchases - Ending Inventory, so it reflects only the cost of units actually sold during the period. Inventory accounting methods like FIFO and LIFO can change reported COGS when input prices are moving.

COGS is mostly a variable cost, meaning it rises and falls with sales volume. That makes the relationship between revenue growth and COGS growth a quick test of whether a company is gaining or losing production efficiency.

Example

A sneaker brand sells 100,000 pairs at $100 each, generating $10 million of revenue. If each pair costs $40 in materials and factory labor, COGS is $4 million, gross profit is $6 million, and gross margin is 60%. If material costs jump to $45 per pair, COGS rises to $4.5 million and gross margin compresses to 55%.

Why It Matters

COGS is the single biggest determinant of gross margin, one of the fastest ways to compare business quality across companies and industries. A software business with 20% COGS and an airline with 80% COGS are fundamentally different economic machines.

Analysts watch COGS trends closely for signs of input cost inflation, supply chain problems, or improving scale, all of which flow straight into profitability.

Join the free newsletter

A free weekly email on breaking into banking and building your career in finance. Read by 30,000+ people.