COGS Meaning: What Is Cost of Goods Sold?

COGS, short for cost of goods sold, is what a business paid for the products it actually sold during a period, including materials, inbound freight and the labor of making them. It sits right below sales on the profit and loss statement, and subtracting it from sales gives you gross profit.

When a plumbing supply shop pays $40 for a faucet and sells it for $65, the $40 becomes COGS in the month the faucet sells rather than the month it arrived, and faucets still on the shelf aren't COGS yet.

  • George Mahoney
  • 9 min read

What goes into COGS

The profit and loss statement (P&L) is the report of income and costs for a period. COGS is usually its first cost line, and it answers one question: what did the things we sold cost us?

Until a product sells, its cost sits in inventory, the goods you hold to sell. Inventory is an asset on the balance sheet, the report of what the business owns and owes. At the sale, the cost moves over to the P&L. In the books, that's a debit that raises COGS and a credit that lowers Inventory.

What counts depends on how you get your goods:

  • A reseller counts the purchase price, less discounts and returns, plus freight to get the goods in the door.
  • A manufacturer also counts raw materials, the labor that makes the product, and factory overhead such as power and supervision.

Office rent, marketing, sales staff and bookkeeping stay out. Those are operating expenses, the cost of running the company rather than the cost of what it sold. Many direct costs, the ones you can trace to one job or product, end up in COGS, but the two terms don't mean the same thing.

The cost of goods sold formula

Beginning inventory + purchases - ending inventory = COGS

What you started with plus what you bought is everything you could have sold. Whatever isn't there at the end has left the building, so its cost belongs to the period.

Beginning inventory is last period's ending inventory. Purchases are what you bought to resell, net of returns and discounts. Ending inventory is the cost, not the retail price, of what's left, usually from a physical count.

Manufacturers add a few steps in the middle. The IRS layout on Schedule C, the small-business page of a sole proprietor's tax return, runs through beginning inventory, purchases, cost of labor, materials and supplies, and other costs, then subtracts ending inventory.

Worked example: an electrical supply shop

An electrical supply shop in Ohio closes its year. It started with $85,000 of stock, bought $304,000 more and paid $6,000 in inbound freight. The December 31 count finds $92,000 on the shelves, at cost.

LineCalculationAmount
Beginning inventoryLast year's ending count$85,000
Purchases, with freight$304,000 + $6,000$310,000
Goods available for sale$85,000 + $310,000$395,000
Ending inventoryDecember 31 count($92,000)
Cost of goods sold$395,000 - $92,000$303,000

Say the count misses $5,000 of wire in a back room. Ending inventory reads $87,000, COGS rises to $308,000, and profit falls by $5,000. The wire is still there, and if next year's count is right, next year's COGS comes in $5,000 too low.

Where COGS shows up on the P&L

Here is the same shop's year, with $480,000 of sales and $118,000 of operating expenses:

P&L lineAmount
Sales$480,000
Cost of goods sold($303,000)
Gross profit$177,000
Operating expenses($118,000)
Operating income$59,000

Gross profit is what's left from sales after paying for what you sold, and it has to cover rent, office wages and whatever you hope to keep. Divide it by sales and you get gross margin, 36.9% here.

Cost of sales and cost of revenue

These are wider labels for the same line. COGS fits a business that sells products. A company selling services or a mix of work usually says cost of sales or cost of revenue, because it has no goods to count.

On a small company's books, no single rule fixes what these labels include, so settle the mix with your CPA and keep it the same each year. Companies filing with the SEC have stricter wording: Regulation S-X, Rule 5-03, has them state cost of tangible goods sold and cost of services separately.

In practice, the line tends to look like this:

  • A field service company counts tech wages with payroll taxes, installed parts and any subcontractors.
  • A contractor counts job costs such as materials, field labor, subcontractors, equipment rentals and permits. Some also add job-site overhead.
  • A property management company may show little or no cost of sales at all, because building repairs and utilities sit on the owner's books and its own costs are mostly office, staff and software.

A roofing contractor with $1,500,000 of revenue and $1,020,000 of job costs has $480,000 of gross profit. On a job still in progress, some costs may wait on the balance sheet until revenue catches up, depending on your accounting method.

Your tax return may not match that line. IRS Publication 334, the 2025 small business guide, says a business doesn't have to figure COGS if selling merchandise isn't an income-producing factor.

The guide's chapter on COGS excludes personal service businesses, naming carpenters and painters, unless they also sell or charge for the materials they use. It also says labor is usually part of COGS only in manufacturing or mining. So the crew wages in a contractor's cost of sales may land elsewhere on the return. Contractors with long-term contracts also have separate rules under section 460, so have your CPA map one to the other.

COGS on your federal tax return

Sole proprietors figure COGS in Part III of Schedule C, lines 33 through 42, and carry the result to line 4. The 2025 Schedule C instructions, the latest edition, say that in most cases a business where merchandise is an income-producing factor must take inventories into account at the start and end of the tax year, valued at cost, the lower of cost or market, or another method the IRS approves.

Corporations and partnerships use Form 1125-A (November 2024 revision). Filers of Forms 1120, 1120-C, 1120-F, 1120-S and 1065 attach it if they report a deduction for COGS.

Small business taxpayers get a break. For tax years beginning in 2026, you are one if your average annual gross receipts (total sales before costs) for the three prior tax years don't exceed $32,000,000, under the section 448(c) test in Revenue Procedure 2025-32. The 2025 instructions show $31 million, that year's figure. Tax shelters don't qualify, and businesses under common control combine their receipts.

A small business taxpayer can choose not to keep an inventory, but its method must still clearly reflect income. It can treat inventory as non-incidental materials and supplies, meaning it doesn't count the goods as inventory and instead deducts them as they go out to customers. Or it can follow its treatment in an applicable financial statement (such as CPA-audited statements) or, without one, its books and records.

The first route has a catch: the cost is deducted in the year you provide the goods to customers or the year you pay for or incur the cost, whichever is later, so a pallet bought in December and sold in February belongs to next year. It also doesn't have to add indirect costs to inventory under section 263A, the rule larger businesses follow.

Changing your method takes Form 3115. These are federal rules, and your state may differ, so ask your CPA how they apply to your entity.

Common COGS mistakes

  • Booking stock to COGS when the bill arrives. Gross profit then swings with your buying, not your sales.
  • Carrying last year's inventory number forward instead of counting.
  • Valuing the count at retail price, which shrinks COGS and inflates profit.
  • Moving a cost, like a supervisor's pay, in and out of the line from month to month, so margins stop being comparable.

Getting job costs into the line

For a contractor, most of this line starts as a swipe at the supply house or a bill from a sub. Job costing in Clyr puts that swipe and that bill on the right job and cost code (the category of work on the job), and budget versus actual shows where the job stands against its budget. The guide to job costing for contractors covers setting up cost codes and reconciling them each week.

FAQs

What is the difference between COGS and cost of sales?

In everyday use they name the same line, and cost of sales is more common where services are mixed in. What matters is what's inside. Two contractors doing identical work can show different gross margins if one counts project managers in cost of sales and the other treats them as overhead. Before you compare yours with a peer's, ask what each one includes.

Is COGS an operating expense?

Not on a standard P&L, which lists it separately above operating expenses. Both get subtracted before operating income, though, so moving a cost from one to the other changes gross profit and leaves operating income alone.

Does FIFO or LIFO change COGS?

Yes, when prices move. FIFO (first in, first out) assumes the oldest stock sells first, and LIFO (last in, first out) assumes the newest does. Buy 100 fittings at $10, then 100 at $12, and sell 100. COGS is $1,000 under FIFO and $1,200 under LIFO. The sale and the cash are the same, and LIFO shows $200 less profit. To adopt LIFO for tax, you file Form 970 with your return for the first year you use it. You generally have to use LIFO in reports to owners and lenders too.

What happens to COGS if inventory is stolen or damaged?

Missing goods aren't in the ending count, so their cost flows into COGS by itself. For federal tax, IRS Publication 538 (January 2022 edition) says you can leave a casualty or theft loss there, or claim it separately and adjust opening inventory or purchases so it isn't counted twice. Insurance money is taxable if you leave the loss in COGS. If you claim the loss separately, the reimbursement reduces it.

Can an owner include their own pay in COGS?

On Schedule C, no. Line 37 says not to include amounts paid to yourself, so a sole proprietor's draw stays out, however many hours went into the product. Corporations differ, because an owner can also be on payroll as an employee. If you own an S corporation and work on jobs yourself, ask your CPA where those wages belong.