The line that separates "cost to make it" from "cost to run the shop"

Open any profit & loss statement and the first thing under revenue is cost of goods sold (COGS) — the direct cost of producing or buying exactly the things you sold during the period. Subtract it from revenue and you get gross profit, the number that tells you whether the core thing you sell is even profitable before overhead. Everything below that line — rent, software, the owner's salary — is the cost of running the business, not the cost of making the product.

Drawing that line in the right place is what makes the rest of your reporting honest. Put a cost in the wrong section and your gross margin lies to you, which means your pricing and your sense of which products actually pay off lie to you too. This guide walks through what belongs in COGS, what doesn't, and why the distinction matters far beyond bookkeeping tidiness. (General education, not tax or accounting advice.)

What counts as a direct cost

The test for COGS is simple to state and easy to get wrong: a cost belongs in COGS if it goes directly into the specific units you sold. No sale, no cost. Typical examples:

  • The product itself — what you paid your supplier for the goods you resold, or the inventory you pulled to fill an order.
  • Raw materials that become part of the finished product.
  • Direct labor — the wages of the people physically making the product or directly delivering the billable service.
  • Freight-in and packaging that's part of getting the product saleable and out the door.

For a service business the idea still holds: the direct, billable labor and any materials consumed on a specific job are the service equivalent of COGS — sometimes called cost of services or cost of revenue. A consultancy's COGS is the time of the people doing the client work; the office manager's salary is not.

What does not count

The most common bookkeeping error is dragging operating costs up into COGS, which inflates your apparent cost of production and quietly distorts margin. These almost always belong below the gross-profit line, as operating expenses:

  • Rent, utilities, and insurance for the business as a whole.
  • Administrative and sales salaries — the people who aren't directly making or delivering what you sold.
  • Marketing and advertising.
  • Office software, accounting fees, and general overhead.

A useful gut check: if the cost would still exist in a month where you sold nothing, it's overhead, not COGS. Rent shows up whether or not you make a sale; the materials in a specific order don't.

The formula, and why inventory is in it

For a business that holds stock, COGS isn't just "what we bought this period" — it's what we sold, which the accounting backs into through inventory:

Beginning inventory + purchases − ending inventory = COGS

You start with what was on the shelf, add what you bought, and subtract what's still on the shelf at period end. Whatever's missing got sold — that's your COGS. This is exactly why your inventory valuation method (FIFO, weighted average) feeds straight into this number: the cost you assign to ending inventory directly sets the cost that flows into COGS. Two businesses with identical sales can report different gross profits purely from how they value the stock left over.

A pure service business with no inventory skips the inventory math entirely — its cost of services is just the direct labor and materials consumed on delivered work in the period.

Why getting the line right actually matters

This isn't accounting pedantry. Where you draw the COGS line changes the numbers you make decisions on:

  • Gross margin becomes trustworthy. Gross margin is revenue minus COGS, as a percentage. If overhead is leaking into COGS, your margin looks worse than it is on every product; if direct costs are hiding down in operating expenses, it looks better than it is. Either way your pricing math is built on a false floor.
  • You can tell products apart. Clean COGS lets you see which products or services actually earn their keep and which are busy work dressed up as revenue.
  • Your reports compare cleanly over time. Consistent classification is what makes this quarter's margin comparable to last quarter's — the same discipline behind a well-built chart of accounts.
  • Break-even and contribution math depend on it. Knowing your true break-even point requires knowing which costs are variable (largely COGS) and which are fixed (largely overhead). Misclassify and the whole model tilts.

The one rule to keep it consistent

The single most valuable habit isn't picking the theoretically perfect classification for every borderline cost — it's classifying the same cost the same way every period. A cost that bounces between COGS and overhead from month to month makes your margin trend meaningless even if every individual entry is defensible. Decide where freight, packaging, and direct labor live, write it into your chart of accounts, and apply it the same way every close.

Cost of goods sold is where a P&L starts telling the truth about whether your core business works. Hosting Books maps your direct costs to COGS and your overhead to operating expenses on the same chart of accounts, so gross margin is computed on a clean line every period without you re-sorting costs by hand.

This article is general educational information about accounting concepts and is not tax or accounting advice for your specific situation.