Educational content only — not investment adviceAdvertiser disclosure
Investing Basics

Cost of Goods Sold (COGS)

Cost of goods sold is the cost assigned to goods sold during a reporting period and is deducted from revenue to calculate gross profit.

Updated 2026-09-02 · Foundation

Core relationship

Revenue − COGS = Gross profit

If:

  • revenue: $200 million
  • COGS: $120 million

gross profit is:

$80 million

Gross margin:

40%

COGS therefore directly determines the first major profitability layer.

Inventory connects COGS to the balance sheet

For inventory businesses, a simplified relationship is:

Beginning inventory + purchases/production − ending inventory = COGS

Assume:

  • beginning inventory: $50 million
  • purchases: $140 million
  • ending inventory: $60 million

Simplified COGS:

$130 million

The exact accounting can be more complex, but the bridge explains why inventory and COGS are linked.

Real 2026 example

A 2026 SEC filing reported:

  • net revenue: $33.805 million
  • COGS: $24.371 million
  • gross profit: $9.434 million.[2]

COGS represented the majority of sales dollars in that quarter.

What can be included

Manufacturing COGS can include:

  • raw materials
  • direct labor
  • factory overhead
  • production depreciation
  • freight-in
  • inventory write-downs

Retail COGS often focuses on merchandise cost.

The exact composition varies.

What is usually excluded

Broader operating costs often sit outside COGS, such as:

  • corporate administration
  • sales and marketing
  • research and development
  • financing costs
  • income taxes

But classification practices can differ.

A company-specific income statement is the source of truth.

Cost of revenue

Software, subscription and services businesses often report:

cost of revenue

Possible components include:

  • hosting
  • customer support
  • implementation labor
  • third-party service fees
  • payment processing
  • amortization tied to delivery

Comparing gross margins across industries requires understanding those classifications.

COGS and inventory method

Inventory accounting methods can affect:

  • COGS
  • ending inventory
  • gross profit
  • taxes

during periods of changing prices.

Two businesses with similar physical economics can report different COGS because of permitted accounting methods and cost-flow assumptions.

Inflation can raise COGS

If input costs rise:

  • materials cost more
  • freight rises
  • labor rises

COGS can increase before the company fully raises selling prices.

Gross margin compresses.

The speed of price adjustment determines how much inflation reaches profitability.

Volume affects total COGS

If unit cost remains constant and sales volume doubles:

total COGS rises.

That is not a deterioration.

A useful review separates:

  • unit cost
  • total volume
  • selling price
  • product mix

Dollar growth in COGS alone says little.

Mix can change COGS percentage

Suppose a business sells:

  • hardware at 70% cost ratio
  • software at 20% cost ratio

A shift toward software can lower consolidated COGS as a percentage of revenue.

The cost structure of each product may be unchanged.

Mix caused the improvement.

Inventory write-downs can enter COGS

Obsolete or excess inventory can require write-downs.

Those charges can increase COGS or otherwise reduce gross profit depending on presentation.

A sudden gross-margin decline can therefore reflect an inventory-quality problem rather than ordinary production cost.

COGS and inventory turnover

Inventory turnover commonly uses:

COGS ÷ average inventory

COGS is aligned with inventory because both are measured at cost.

Using revenue instead can mix selling price with inventory cost.

COGS and cash are not identical

COGS recognized this period can relate to inventory purchased in an earlier period.

Cash paid to suppliers can occur:

  • before purchase
  • at purchase
  • after purchase

That is why COGS and cash paid for inventory can differ materially.

Working-capital analysis bridges the timing.

Common mistakes

"COGS equals cash paid to suppliers this period."

No.

"Lower COGS is always better."

Not if lower cost comes from lower sales volume.

"Every company includes the same costs."

No.

"COGS applies only to manufacturers."

Retailers and many other product businesses use it; services may use related labels.

Example

Beginning inventory of $50 million plus $140 million of purchases minus $60 million of ending inventory produces simplified COGS of $130 million.

Professional note

Break COGS changes into price, volume, product mix, input cost and accounting classification. Compare the line with inventory, gross margin and cash flow. A percentage improvement is most valuable when it comes from durable unit economics rather than temporary accounting or mix effects.

Related terms

  • Inventory Turnover

    Inventory turnover measures how many times inventory is sold or otherwise consumed relative to average inventory during a period. A common formula is cost of goods sold divided by average inventory.

  • Inventory

    **Inventory** consists of goods, materials and production costs held for sale or for use in producing goods that will be sold. Common categories include raw materials, work in process and finished goods. Inventory is a current asset for many businesses, but book value does not guarantee full cash realization.

Related ROIStreet guides

  • What Is the Rule of 55?

    The Rule of 55 is an informal name for a federal exception to the 10% additional tax on certain early retirement-plan distributions. It can apply when a worker separates from the employer maintaining a qualified plan in or after the calendar year the worker reaches age 55. This guide explains the age test, eligible plans, IRA differences, taxes, rollovers and special public-safety rules.

  • Stocks vs. Bonds: A Practical Comparison

    Stocks represent ownership in companies; bonds generally represent lending to an issuer. This comparison explains how the two differ in return sources, volatility, income, maturity, priority, credit risk and liquidity.

  • What Is a 401(k) Recordkeeper?

    A 401(k) recordkeeper maintains the participant-level ledger: contributions, investments, gains and losses, fees, loans, distributions and account balances. The recordkeeping role is distinct from holding plan assets, writing the plan document or serving as the legal plan administrator, even when one financial company bundles several of those services.

  • What Compensation Counts for a 401(k)?

    There is no single universal 401(k) compensation number. A plan can use different definitions for deferrals, matching, profit sharing and testing, while statutory definitions govern limits such as Sections 401(a)(17), 414(s) and 415.