Financial research concept

Cost of Goods Sold (COGS): Formula, Accounting, and Investor Use

Cost of goods sold is the cost assigned to products or services delivered during a period. Learn how COGS connects revenue to gross profit, why inventory accounting can change it, and what investors should check before comparing companies.

By Lee BaileyPublished Sep 10, 2026

What is cost of goods sold?

Cost of goods sold, usually shortened to COGS, is the cost assigned to the goods or services a company delivered during an accounting period.

On a simple income statement:

text
1Revenue - Cost of goods sold = Gross profit

The SEC's beginner guide describes the line after net revenue as the cost of sales, or the amount spent to produce the goods or services sold during the period. Subtracting that amount from revenue produces gross profit.

COGS matters because it is the first major cost layer between sales and profit. A company can grow revenue quickly and still create weak economics if the direct cost of delivering that revenue rises just as fast.

COGS is not a universal bucket with identical contents at every company. The label may appear as cost of sales, cost of revenue, cost of products sold, or another industry-specific name. Investors should read the accounting policy and footnotes before assuming two companies classify the same costs the same way.

A simple COGS example

Suppose a hypothetical manufacturer reports:

text
1Revenue                     $500 million
2Cost of goods sold          $320 million
3Gross profit                $180 million

The arithmetic is:

text
1Gross profit = $500m - $320m
2             = $180m

The related gross margin is:

text
1Gross margin = $180m / $500m
2             = 36%

If revenue rises to $550 million the next year while COGS rises to $374 million, gross profit becomes $176 million and gross margin falls to 32%.

Revenue grew 10%, but the company kept fewer gross-profit dollars from each dollar of sales. That is the type of change investors miss when they focus on revenue growth alone.

What usually goes into COGS?

For a manufacturer or seller of physical goods, COGS can include costs such as:

  • purchased merchandise or raw materials;
  • direct production labor;
  • manufacturing overhead allocated to production;
  • inbound freight or other acquisition costs, depending on accounting policy; and
  • inventory-related adjustments that are properly included in product cost.

For service and software businesses, the equivalent line may be called cost of revenue and can include hosting, customer-support labor, payment-processing costs, third-party data, implementation labor, or other costs tied closely to delivering the service.

The classification boundary matters. A cost included in COGS reduces gross profit. The same cost classified as selling, general, and administrative expense leaves gross profit unchanged but lowers operating profit later in the statement.

That is one reason gross-margin comparisons are strongest when companies have similar business models and accounting classifications.

COGS versus operating expenses

COGS is generally tied more directly to producing or delivering what the company sells. Operating expenses such as corporate administration, research, sales, and marketing usually appear below gross profit.

A simplified income statement looks like this:

text
1Revenue
2- COGS
3= Gross profit
4- Operating expenses
5= Operating income

The SEC notes that operating expenses differ from cost of sales because they generally cannot be linked directly to producing the goods or services sold.

This distinction helps explain why gross margin and operating margin answer different questions. Gross margin focuses on the economics of delivering the product or service. Operating margin includes the broader cost of running the business.

A company can have a high gross margin but a low operating margin if it spends heavily on research, sales, marketing, administration, or other operating functions.

For inventory businesses, COGS is closely connected to the inventory account.

A common conceptual roll-forward is:

text
1Beginning inventory
2+ Purchases or production costs
3- Ending inventory
4= Cost of goods sold

The formula is useful for understanding the flow of costs, but public-company accounting can be more complicated because of manufacturing overhead, write-downs, acquisitions, currency effects, and other adjustments.

The important idea is that buying or producing inventory does not necessarily create COGS immediately. Costs can first sit on the balance sheet as inventory and move into COGS when the associated product is sold.

That timing is why COGS analysis should be connected to working capital, inventory trends, and the cash conversion cycle.

FIFO, LIFO, and weighted-average cost can change reported COGS

Inventory accounting can materially affect COGS when purchase costs are changing.

Under FIFO, first-in, first-out, older inventory costs are assigned to COGS before newer costs. Under LIFO, last-in, first-out, newer inventory costs are assigned first. Weighted-average costing spreads total available cost across units.

Imagine a company buys one unit for $10 and later buys another for $14, then sells one unit.

Under a simplified FIFO example:

text
1COGS = $10
2Ending inventory = $14

Under a simplified LIFO example:

text
1COGS = $14
2Ending inventory = $10

The physical sale could be economically identical, yet reported gross profit differs because the accounting method assigns a different historical cost to the sold unit.

Investors comparing gross margins across companies should therefore check inventory accounting methods when the difference could be material.

COGS can rise for good or bad reasons

Higher COGS is not automatically negative. If sales are growing rapidly, direct costs will usually grow too.

The more useful question is how COGS changes relative to revenue and why.

Possible explanations for rising COGS as a percentage of revenue include:

  • commodity or component inflation;
  • wage pressure in production or service delivery;
  • unfavorable product mix;
  • discounting or weaker pricing power;
  • supplier disruption and expedited freight;
  • underutilized production capacity;
  • inventory write-downs or obsolescence; or
  • accounting reclassification.

Possible explanations for falling COGS as a percentage of revenue include better pricing, lower input costs, scale efficiencies, favorable mix, manufacturing productivity, or a shift toward higher-margin products.

A single percentage movement does not identify the cause. Read management discussion, segment reporting, and the financial-statement notes.

COGS, gross margin, and pricing power

Gross margin is simply the share of revenue left after COGS:

text
1Gross margin = (Revenue - COGS) / Revenue

That makes COGS a useful place to study pricing power.

Suppose input costs rise 8%. If a company can raise prices without losing much volume, it may preserve gross margin. If competition prevents price increases, more of the higher cost flows through COGS and compresses the margin.

Gross-margin stability can therefore reveal something about price, product mix, cost control, and customer willingness to pay. It is not proof of any one of those factors by itself.

COGS and operating leverage

COGS can contain both variable and fixed production costs. The exact mix matters for operating leverage.

A business with large fixed manufacturing costs may see gross profit expand rapidly once factories are well utilized because incremental units absorb relatively little additional fixed cost. The same cost structure can hurt badly when volume falls and fixed production costs are spread over fewer units.

That is why a declining COGS percentage during strong growth can reflect genuine scale efficiency, but investors should ask whether the benefit would reverse in a downturn.

When COGS comparisons break down

COGS is most comparable among businesses with similar products, revenue recognition, supply chains, and accounting policies.

Comparisons can be weak when:

  • one company manufactures while another outsources production;
  • one company includes depreciation in COGS while another reports it separately;
  • one company classifies customer-support or fulfillment labor as cost of revenue while another treats it as operating expense;
  • business mix shifts between products with very different margins;
  • acquisitions change accounting classifications; or
  • inventory methods differ materially.

For that reason, COGS should usually be analyzed through trends and peer context rather than a universal target percentage.

COGS is not cash spending

COGS is an accrual-accounting expense. It is not the same thing as the cash paid to suppliers during the period.

A company can recognize COGS from inventory purchased in an earlier quarter. It can also buy large amounts of inventory today without recognizing those costs in COGS until the inventory is sold.

The timing difference appears through working-capital adjustments in operating cash flow.

If inventory rises faster than sales, cash may be tied up even when the reported gross margin looks healthy. That is one reason investors should read the income statement, balance sheet, and cash flow statement together.

A practical investor review

When analyzing cost of goods sold:

  1. Confirm the company's label and accounting definition for cost of sales or cost of revenue.
  2. Calculate COGS as a percentage of revenue and compare the trend with gross margin.
  3. Read the inventory accounting policy when inventory is economically important.
  4. Check whether depreciation, freight, support, fulfillment, or other material costs are classified consistently across peers.
  5. Separate revenue growth from gross-margin expansion or contraction.
  6. Investigate major changes in input prices, product mix, pricing, utilization, and inventory write-downs.
  7. Reconcile inventory growth with working capital and operating cash flow.
  8. Compare peers only when their cost classifications and business models are sufficiently similar.

The Grizzly Bulls stock screener and company comparison can help place margins, growth, asset efficiency, leverage, and cash generation side by side after the accounting definition is understood.

Sources and further reading

Continue Research

Continue from the concept into the Grizzly Bulls research surface that best matches the next question. These links are research continuations, not recommendations or required steps.

Company research

Screen cost structure with margins

Continue from COGS into company margin, growth, cash flow, and return measures to see whether direct-cost changes are strengthening or weakening the business economics.

Company comparison

Compare direct-cost economics

Put gross profitability beside operating performance, growth, cash generation, and returns across comparable companies.

Explore more topics in the Financial Research Encyclopedia.