Cost of goods sold is an expense in the practical sense that it reduces your revenue, but it isn’t grouped with your other business expenses. On the income statement, COGS is subtracted from revenue first, before operating expenses, to produce gross profit. For tax purposes, the IRS treats it as a reduction of gross receipts rather than a deduction you claim like office supplies or advertising. The distinction affects how you report it, how you calculate taxable income, and how you read your own financials.
Where COGS Sits on the Income Statement
The income statement draws a hard line between costs tied to producing what you sell and costs tied to running the business generally. Revenue minus COGS equals gross profit. Gross profit minus operating expenses equals operating income. Those are two separate questions about the business: can you make money on each unit you sell, and can you keep enough of that money after paying for everything else?
Operating expenses cover the costs of keeping the lights on regardless of how many units move. Rent for your office, accounting fees, executive salaries, and general marketing all fall here. A company could sell zero units in a given month and still owe all of these. COGS, by contrast, scales with sales volume. Sell more products, and COGS rises. Sell nothing, and COGS is zero.
A business can have a healthy gross margin and still lose money overall if operating expenses run too high. Tracking the two figures separately tells you whether the problem sits in your production economics or in your overhead. That is why the income statement bothers to separate them, and why COGS gets its own line above the gross profit total instead of being lumped with everything else you spend money on.
Why the IRS Treats COGS Differently From a Deduction
The IRS doesn’t treat COGS as a deduction you claim on a tax form. It’s subtracted from your gross receipts before you arrive at gross income. The end result reduces what you’re taxed on, but the mechanics differ: you don’t itemize COGS the way you would a business deduction for supplies or advertising. When selling merchandise is a core part of your business, the tax code requires you to maintain inventories and account for cost of goods sold so your reported income accurately reflects what you earned.1Office of the Law Revision Counsel. 26 U.S.C. 471 – General Rule for Inventories
Section 263A reinforces this treatment through the uniform capitalization rules. If you produce property or buy it for resale, you have to capitalize certain direct and indirect costs into your inventory rather than deducting them immediately.2Office of the Law Revision Counsel. 26 U.S. Code 263A – Capitalization and Inclusion in Inventory Costs of Certain Expenses Costs like factory rent, production-related insurance, and portions of administrative overhead that support manufacturing get folded into the cost of your inventory. You only recover those costs when the inventory sells, through COGS. The rules exist to stop businesses from writing off production costs upfront while the resulting inventory sits unsold on a shelf.
Some costs can never be routed through COGS no matter how you frame them. Personal expenses, commuting costs, fines, penalties, and political contributions are nondeductible and can’t be used to inflate your COGS figure.3Internal Revenue Service. Publication 529, Miscellaneous Deductions Capital expenditures on equipment with a useful life beyond the current tax year aren’t recovered through COGS either; they’re depreciated over time. In a sole proprietorship, the owner’s own salary isn’t part of COGS, because the IRS treats that as a distribution of profit rather than a cost of production.
What Belongs in COGS and What Doesn’t
COGS captures every cost directly tied to making or acquiring the products you sell. The three main categories are direct materials, direct labor, and manufacturing overhead.
- Direct materials are the raw inputs that become part of the finished product. For a furniture maker, that’s lumber and hardware. For an electronics manufacturer, it’s circuit boards and wiring.
- Direct labor is the wages paid to workers who physically produce the product. Assembly line workers, machine operators, and kitchen staff in a food business all count. Administrative salaries do not.
- Manufacturing overhead covers indirect production costs like factory electricity, equipment depreciation, and maintenance on production machinery. These costs support the production process even though they don’t attach to a single unit.
Freight-in charges, meaning what you pay to ship raw materials to your facility, also belong in COGS, along with storage costs for work-in-progress inventory. The test is whether the cost is directly connected to getting a product ready for sale. If the cost would exist even if you never made a single product, it probably belongs in operating expenses instead.
One area where people frequently stumble is selling costs. Sales commissions, outbound shipping to customers, and advertising for specific products feel like they’re connected to selling goods, but they land in operating expenses, not COGS. The logic is that these costs come after the product is already made and ready to go. COGS only captures what happens before the product reaches the point of sale.
How Inventory Timing Changes When COGS Hits
Under accrual accounting, the matching principle requires you to recognize costs in the same period as the revenue they helped generate. When you buy inventory, that money doesn’t immediately hit your income statement. It sits on your balance sheet as an asset, sometimes for weeks or months, until a customer actually buys the product. Only then does the cost move from the balance sheet to the income statement as COGS.
This timing matters more than most business owners realize. If you bought $80,000 in inventory in November but only sold $50,000 worth of it in December, your December income statement should show $50,000 in COGS, not $80,000. The remaining $30,000 stays on the balance sheet as an asset heading into the next period. Claiming the full $80,000 as an expense in December would understate profit that month and overstate it the next, which is exactly the distortion the matching principle prevents.
The standard calculation reflects that logic: beginning inventory plus purchases during the period, minus ending inventory, equals COGS. Whatever inventory you carried in, plus what you added, minus what’s still sitting there at the end, is what actually moved out the door.
COGS for Service Businesses
Service companies don’t sell physical inventory, but they still incur direct costs to deliver what they sell. A consulting firm’s equivalent of COGS includes the salaries and benefits of consultants doing the actual client work. A law firm counts its attorneys’ billable time. A spa would include the cost of products used during treatments along with therapist wages.
On financial statements, service businesses often label this line “cost of revenue” or “cost of services” rather than cost of goods sold, since there are no goods involved. The accounting logic is identical: separate the direct costs of delivering your service from the overhead of running the business, and subtract direct costs first to calculate gross profit. The trickier part is deciding where direct labor ends and overhead begins. A software company’s developers writing code for a client project are a direct cost. The same company’s IT staff maintaining internal servers are overhead.
The Small Business Exemption That May Let You Skip Inventory Accounting
The uniform capitalization rules and formal inventory accounting requirements impose real compliance costs. The tax code provides a significant exemption. If your business has average annual gross receipts of $32 million or less over the preceding three tax years (for tax years beginning in 2026), you qualify as a small business taxpayer and can skip both the formal inventory requirements of Section 471(a) and the capitalization requirements of Section 263A.4Internal Revenue Service. Revenue Procedure 2025-32 – 2026 Adjusted Items5Office of the Law Revision Counsel. 26 U.S. Code 471 – General Rule for Inventories
Under this exemption, you have two options for handling inventory. You can treat it as non-incidental materials and supplies, effectively deducting inventory costs when you use or consume the items rather than when you sell them. Or you can follow whatever inventory method you use in your own financial statements or books and records.6Internal Revenue Service. Publication 538, Accounting Periods and Methods Either approach is acceptable as long as it clearly reflects your income.
The exemption covers most small businesses, but tax shelters are excluded regardless of their gross receipts, and businesses that are part of a controlled group must aggregate their receipts across all related entities when testing the threshold.6Internal Revenue Service. Publication 538, Accounting Periods and Methods If you fall under the ceiling and outside those carve-outs, the practical effect is that inventory costs behave much more like ordinary expenses for tax purposes, which simplifies the treatment considerably without changing the underlying fact that COGS still reduces what you’re taxed on.