On the income statement, cost of goods sold appears directly beneath net sales and above gross profit. It captures the direct costs of producing or acquiring the specific units a business sold during the reporting period, and subtracting it from net sales produces the gross profit subtotal that the rest of the statement builds on.
Where the Line Sits on the Statement
A multi-step income statement pulls COGS out as its own line right after net sales, which is gross revenue minus returns, allowances, and discounts. The subtraction produces gross profit as a standalone subtotal before any other expense category appears. That placement is the whole point of the multi-step format: anyone reading the report can see, at a glance, the gap between what came in and what it cost to make or buy the products that generated the revenue.
A single-step income statement lumps every expense together and subtracts the total from all revenues in one calculation, so there is no separate gross profit line and COGS is not broken out. Most publicly traded companies use the multi-step format because investors and analysts want gross profit isolated.
For SEC registrants, Regulation S-X Rule 5-03 specifies the line items that should appear on the income statement, including a line for cost of goods sold.1eCFR. 17 CFR 210.5-03 – Statements of Comprehensive Income The SEC has accepted hybrid presentations when a business model does not fit the standard template, and a gross profit subtotal is technically not mandatory under those rules. Almost every company that sells physical products still presents COGS and gross profit prominently, because omitting them would draw immediate questions from analysts and auditors.
What Belongs on the COGS Line
Only costs directly tied to producing or acquiring the units that actually sold during the period qualify. For a manufacturer, the line pulls together three categories of direct cost:
- Raw materials that become part of the finished product.
- Direct labor, meaning wages and benefits for workers who physically assemble, process, or handle the goods on the production floor.
- Manufacturing overhead: factory costs such as electricity for machinery, equipment maintenance, and depreciation on production equipment. These are not traceable to a single unit but are necessary to keep the line running.
Retailers do not manufacture anything, so their COGS is simpler. It consists of the wholesale purchase price of finished goods plus shipping and freight to get inventory into the warehouse. The math changes, but the principle holds: only costs directly connected to the product qualify.
One detail trips people up. COGS only picks up costs for units that actually sold in the period. Inventory still sitting in the warehouse stays on the balance sheet as an asset. When those items eventually sell, their cost moves off the balance sheet and into that later period’s COGS. This matching prevents a company from looking artificially unprofitable in a quarter where it stocked up on inventory but did not sell it all.
Inventory that disappears through theft, damage, or spoilage, commonly called shrinkage, is also recorded as an expense. Small amounts of shrinkage are typically folded into COGS. Larger or unusual losses may appear on a separate line. Either way, the cost leaves the balance sheet because the inventory no longer exists to sell.
How Gross Profit Falls Out of the Number
The formula is plain: net sales minus cost of goods sold equals gross profit. Net sales is gross revenue after returns, allowances, and discounts. Gross profit tells you how much the company kept after covering the direct cost of its products, before paying rent, marketing, executive salaries, or anything else operational.
Gross profit margin, meaning gross profit divided by net sales, is where the figure becomes useful for comparison. A company whose gross margin is shrinking over consecutive periods is either paying more for inputs, cutting prices, or both. That signal often shows up before the trouble reaches the bottom line.
Because so much rides on the subtotal, misstating what goes into COGS distorts the whole picture. Understate direct costs, and gross profit looks better than it is. Overstate them by pulling in expenses that belong further down the statement, and gross profit looks worse than reality.
COGS Versus Operating Expenses
Everything below gross profit on a multi-step statement falls into operating expenses, often labeled selling, general, and administrative costs. The distinction is conceptual. COGS covers the cost of making or buying the product. Operating expenses cover the cost of running the business that sells it.
Operating expenses include office rent, marketing spend, executive compensation, corporate insurance, and legal fees. None of these move with production volume, which is why they sit in a different category. A company could double units off the line without changing its CEO’s salary or its headquarters lease.
Misclassifying costs between the two categories distorts gross profit. If factory wages accidentally land in SG&A, gross profit is overstated and operating income is understated by the same amount. Net income at the bottom is unchanged, but the signal about production efficiency is wrong, and any competitor comparison based on gross margin becomes unreliable.
Inventory Valuation Changes What Lands on the Line
Two businesses with identical inventory and identical sales can report different COGS depending on which valuation method they use. First-in, first-out (FIFO) and last-in, first-out (LIFO) are the two common approaches, and the gap between them widens when input prices are rising.
Under FIFO, the cost assigned to sold goods comes from the oldest inventory purchased. Under LIFO, it comes from the most recent purchase. If a company buys inventory at $30, then $31, then $32, and sells one unit for $40:
- FIFO: COGS is $30 (oldest cost), producing $10 of gross profit.
- LIFO: COGS is $32 (newest cost), producing $8 of gross profit.
LIFO produces higher COGS and lower taxable income during inflationary periods, which is why some companies choose it. The trade-off is a federal conformity requirement: a company that uses LIFO for tax purposes generally must also use it in financial reports to shareholders and creditors.2eCFR. 26 CFR 1.472-2 – Requirements Incident to Adoption and Use of LIFO Inventory Method FIFO has no such restriction. Most small businesses default to FIFO because it is simpler and tracks the physical flow of goods, but any company facing rising input costs should evaluate LIFO with a tax advisor.
Service Businesses Use a Cost of Revenue Line
If a company sells services rather than physical products, there are no goods to cost out. Most service businesses use a line called cost of revenue or cost of services instead. It sits in the same position on the statement, below revenue and above gross profit, and it works the same way, but it captures different direct costs.
For a consulting firm, cost of revenue typically includes consultant salaries, subcontractor fees, and materials or travel tied to delivering client work. For a software-as-a-service company, it may include hosting costs, customer support staff, and licensing fees for third-party tools embedded in the product. The test is the same as traditional COGS: if the cost would not exist without the revenue, it belongs on this line.
Federal Tax Rules That Shape the Calculation
The IRS requires any business where buying, producing, or selling merchandise is an income-producing factor to account for inventories at the beginning and end of each tax year.3eCFR. 26 CFR 1.471-1 – Need for Inventories Section 471 of the tax code sets the general rule: inventories must be taken on a basis that conforms to sound accounting practice and clearly reflects income.4Office of the Law Revision Counsel. 26 USC 471 – General Rule for Inventories
Beyond direct costs, Section 263A, the uniform capitalization rules, requires certain businesses to fold a share of indirect production costs into inventory values. That reaches items such as factory rent, quality control wages, and production-related insurance that might otherwise be deducted as current-year expenses.5Office of the Law Revision Counsel. 26 USC 263A – Capitalization and Inclusion in Inventory Costs of Certain Expenses The effect is to raise the inventory value on the balance sheet and push the deduction into COGS in the later period when the goods sell.
Small Business Exemptions
Smaller companies get meaningful relief. A business that meets the gross receipts test under Section 448(c), meaning average annual gross receipts of $32 million or less over the prior three tax years for 2026, is exempt from the Section 263A capitalization rules altogether.6Office of the Law Revision Counsel. 26 USC 263A – Capitalization and Inclusion in Inventory Costs of Certain Expenses – Section: Exemption for Certain Small Businesses The same test unlocks a simplified inventory method under Section 471(c), which lets qualifying businesses either treat inventory as non-incidental materials and supplies or follow the method used in their financial statements or books.4Office of the Law Revision Counsel. 26 USC 471 – General Rule for Inventories For a small retailer or manufacturer, these exemptions materially simplify how COGS gets calculated for tax purposes.