Cost of Goods Sold

Cost of goods sold is the carrying amount of inventory recognized as expense when the related goods are sold.

Cost of goods sold (COGS) is the carrying amount of inventory recognized as an expense when the related goods are sold. For a retailer, it normally includes the acquisition and other inventory costs assigned to merchandise sold. For a manufacturer, it also includes production costs accumulated in finished goods, such as direct materials, direct labor, and allocated production overhead.

COGS is matched with the related sales to calculate gross profit. It is not simply every cash payment made to produce or buy goods, and it is not limited to costs that are directly traceable to one unit.

Key Takeaways

  • COGS transfers inventory cost from the balance sheet to expense when goods are sold.
  • A retailer can reconcile COGS from beginning inventory, net purchases, and ending inventory.
  • Manufacturing COGS includes the cost of goods manufactured plus the change in finished-goods inventory.
  • Production overhead can be part of inventory cost even though it is indirect; selling and general administrative costs are usually outside inventory cost.
  • COGS, cost of revenue, and operating expenses are related but not interchangeable labels.
  • Inventory quantity, valuation, ownership, and cutoff errors can materially distort both gross profit and current assets.

How COGS Is Calculated

For a merchandising business, a common inventory reconciliation is:

$$ \text{COGS} = \text{Beginning Inventory} + \text{Net Purchases} - \text{Ending Inventory} $$

Net purchases may include freight-in and other costs needed to bring inventory to its present location and condition, less purchase returns, allowances, and discounts, according to the applicable accounting policy.

For a manufacturer, finished-goods inventory provides the final bridge:

$$ \text{COGS} = \text{Beginning Finished Goods} + \text{Cost of Goods Manufactured} - \text{Ending Finished Goods} $$

Cost of goods manufactured is itself built from direct materials, direct labor, and manufacturing overhead, adjusted for the change in work-in-process inventory. A complete manufacturing schedule therefore reconciles raw materials, work in process, and finished goods rather than treating purchases as immediate COGS.

What Is Included and Excluded

The exact boundary depends on the business, accounting framework, and presentation policy.

ItemTypical treatmentWhy judgment is needed
Merchandise purchase costIncluded in inventory, then COGS when soldPurchase discounts, rebates, duties, and freight require consistent treatment
Direct materials and production laborIncluded for manufactured inventoryOnly costs relating to production belong in inventory
Production overheadAllocated to inventory under the applicable frameworkAllocation should reflect normal capacity and a supportable method
Abnormal wasteGenerally expensed rather than inventoriedAbnormal loss does not bring inventory to its present condition
StorageOften expensed unless necessary in the production processOrdinary warehousing after production is not automatically inventoriable
Selling and distributionUsually outside inventory costThese activities occur after inventory is ready for sale
General administrationUsually outside inventory costSome production administration may require separate analysis
Inventory write-downRecognized as expense; presentation can varyIt is not the cost of units sold in the ordinary physical-flow sense

Under IFRS Accounting Standards, IAS 2 includes costs of purchase, conversion, and other costs incurred to bring inventory to its present location and condition. It excludes specified items such as abnormal waste, many storage costs, unrelated administrative overhead, and selling costs. U.S. financial-reporting and tax inventory rules have their own detailed requirements, so a financial-statement COGS amount should not be assumed to equal tax COGS.

Worked Example: Retail Inventory Bridge

A retailer reports the following annual amounts:

InputAmount
Beginning inventory$120,000
Purchases$515,000
Purchase returns and discounts($15,000)
Freight-in$20,000
Ending inventory$140,000
Net sales$800,000

Net purchases plus freight-in are $520,000, so goods available for sale are:

$$ \$120{,}000 + \$520{,}000 = \$640{,}000 $$

COGS is:

$$ \$640{,}000 - \$140{,}000 = \$500{,}000 $$

Gross profit and gross margin are:

$$ \text{Gross Profit} = \$800{,}000 - \$500{,}000 = \$300{,}000 $$
$$ \text{Gross Margin} = \frac{\$300{,}000}{\$800{,}000} = 37.5\% $$

The calculation is only as reliable as the inventory records. The company still needs evidence that ending inventory exists, is owned by the company, is recorded in the correct period, and is not carried above the amount permitted by its reporting framework.

COGS vs. Cost of Revenue vs. OpEx

MeasureCommon useMain caution
COGSCost assigned to inventory sold, especially for retailers and manufacturersCompanies can use different line-item labels and classifications
Cost of revenueBroader cost directly associated with generating revenue, often used by service, software, or mixed businessesMay include service delivery, hosting, support, or amortization that is not inventory COGS
Operating expensesCosts of operating the business that are presented outside gross profitDepreciation, labor, and occupancy can appear in different functions depending on their use

Analysts should read the accounting policy and note disclosures rather than compare labels alone. A software company may report hosting and customer-support costs in cost of revenue, while another entity may classify some similar costs elsewhere. Gross margin comparisons are meaningful only after checking the underlying boundary.

Inventory Errors and Gross Profit

If ending inventory is overstated by $10,000, current-period COGS is understated by $10,000 and gross profit is overstated by $10,000. If the error is not corrected, the overstated ending inventory becomes next period’s overstated beginning inventory, reversing the profit effect in the following period.

This two-period reversal does not make the first-period statements acceptable. The error can distort assets, margins, taxes, covenants, bonuses, forecasts, and trend analysis when decisions are made.

Common causes include:

  • counting goods twice or omitting locations
  • including consigned goods that the company does not own
  • recording purchases or sales in the wrong period
  • using an unsupported overhead allocation rate
  • failing to record shrinkage, damage, obsolescence, or write-downs
  • applying one cost-flow assumption inconsistently across records

How to Analyze COGS

Start by reconciling the inventory roll-forward to the general ledger and physical or perpetual records. Then review changes in purchase prices, product mix, freight, labor efficiency, production volume, overhead absorption, write-downs, and accounting policy.

A lower COGS percentage is not automatically favorable. It can result from price increases, a shift to higher-margin products, delayed write-downs, capitalization errors, or incomplete accruals. A higher percentage can reflect input inflation, markdowns, mix changes, abnormal waste, or a deliberate investment in product quality. Use gross margin together with unit volumes, selling prices, inventory turnover, and disclosures.

This page is educational and does not provide accounting, audit, tax, legal, or investment advice. Classification and tax treatment depend on the entity’s facts, jurisdiction, and applicable reporting rules.

FAQs

Is all direct labor included in COGS?

No. Labor used to manufacture inventory can enter inventory cost and later COGS, but selling, administrative, research, and other labor is classified according to its function and the applicable accounting rules. Even production labor remains in inventory until the related goods are sold.

Can a service business report COGS?

Some service businesses use COGS or cost of revenue for direct service-delivery costs, but there may be little or no inventory. Readers should examine the company’s stated policy and the costs included rather than infer a universal definition from the line-item label.

Does reducing COGS always improve the business?

No. Sustainable sourcing and process improvements can help, but lower reported COGS can also result from lower quality, deferred maintenance, inventory overstatement, aggressive capitalization, or a change in product mix. The source of the change matters.

Authoritative Sources

  • Inventory is the asset whose carrying amount moves to COGS when sold.
  • Gross Profit equals net sales minus COGS under the common presentation.
  • Net Sales is the revenue base used in the gross-profit calculation.
  • Gross Profit Method estimates COGS and ending inventory when a count is unavailable.
  • Operating Expenditure covers operating costs outside or across the gross-profit boundary.
  • Cost Driver helps explain and allocate production overhead and other indirect costs.
Browse Accounting