Wauvel
Finance 101

Gross margin: what belongs in COGS (and what doesn't)

← All posts
By Blake EkelundAugust 12, 2026 · 8 min read

Two bakeries did $480,000 last year. Same city, same product, same costs to the dollar. One reports a 35% gross margin. The other reports 71%. Neither is lying, and neither made a single different business decision. The only thing that differs is where their bookkeepers filed the flour, the delivery driver, and the card processing fees.

Gross margin is the most quoted number in small-business finance and the most casually assembled. It drives your pricing, your break-even point, and every benchmark you compare yourself against — and it is entirely at the mercy of one judgment call: what counts as cost of goods sold. Get that line in the right place and the number tells you something. Get it wrong and you are comparing yourself to an industry average that uses a different definition of the word.

What COGS actually means

Forget the account names for a second. One question settles almost every case: if you sold one fewer unit — one fewer cake, one fewer job, one fewer subscription — would this cost go away? If yes, it is cost of goods sold. If the cost shows up whether you sell a hundred units or zero, it is an operating expense.

Flour goes away. Rent does not. The baker's hourly wage goes away if there is nothing to bake; the bookkeeper's retainer does not. That single test — does this cost follow the sale — separates the two halves of your income statement, and it is the reason gross margin means anything at all. Gross profit is what is left to run the company after you have paid for the thing you actually sold.

Revenue

$480k

what customers paid

Cost of goods sold

$312k

costs that follow the sale

Gross margin

35%

$168k to cover everything else

The four costs almost everyone misclassifies

Most of the confusion collapses onto the same handful of line items. Here is where each one belongs, and why:

  • Shipping you pay to deliver. Freight out is COGS — no order, no shipping label. Freight in (what you paid to get inventory into your warehouse) is COGS too, but it belongs inside the cost of the inventory itself, not as its own expense.
  • Payment processing fees. The 2.9% + 30¢ a processor takes only exists because a sale happened. It is COGS. Parking it in "bank fees" under operating expenses is the most common margin distortion in online businesses.
  • Payroll — but only some of it. Split it. The people who make the thing or deliver the service are direct labor and belong in COGS. The people who run the company — admin, sales, finance, you — are operating expenses. One payroll account for everyone makes gross margin meaningless.
  • Software. Ask the test. Your hosting bill scales with customers, so it is COGS. Your accounting software costs the same at zero customers, so it is opex. Plenty of software businesses get this backwards and report a margin ten points off.
Same business · two chart-of-accounts choices
Classified properlyAll costs in opex
Revenue$480,000$480,000
Ingredients and packaging$204,000—
Bakers' wages$84,000—
Card processing fees$14,000—
Delivery and freight out$10,000—
= Gross profit$168,000$480,000
Gross margin35%100%
Operating expenses$139,000$451,000
= Net income$29,000$29,000
Nothing changed except which side of the gross profit line each cost landed on. Net income is identical both ways - but the left column describes a 35% margin business and the right describes a 100% one. Only one of those can be compared to an industry benchmark.

Free · no account · no card

Get your 2027 budget built from your QuickBooks — P&L, balance sheet and cash flow, in Excel.

Build my 2027 budget →

Why the line matters more than the number

A wrong gross margin does not just look bad on a report. It feeds four decisions you make with real money:

  • Pricing. If you think you keep 71 cents on the dollar, a 10% discount feels cheap. If you actually keep 35 cents, that same discount just gave away 29% of your gross profit.
  • Break-even. Break-even is fixed costs divided by contribution margin. Inflate the margin and you will calculate a break-even point you are nowhere near hitting.
  • Benchmarking. "Restaurants run 65–70% gross margin" assumes food and kitchen labor are both in COGS. Compare your food-only number against it and you will conclude you are a genius.
  • Hiring and spending. Gross profit is the pool every fixed cost gets paid from. Overstate it and every affordability question you ask gets the wrong answer.

Draw the line once, then stop moving it

There is no universal right answer for every edge case, and accountants genuinely disagree about a few of them. What matters far more than picking the theoretically perfect classification is picking one and holding it. A margin defined slightly unconventionally but measured the same way every month still tells you the truth about direction. A margin whose definition quietly drifts as costs get filed by whoever is doing the books that week tells you nothing at all.

Write your rule down. Two sentences is enough: what goes in COGS, what does not, and how payroll splits. Then check your last three months against it — misfiled costs tend to repeat, so one pass usually fixes the pattern rather than a single entry.

Want to see what your real margin does to your economics? The unit economics calculator takes your contribution margin and shows what each sale actually contributes — pick your business model and it does the arithmetic.

Need your financials for a lender, a buyer or your accountant? Get the free financials pack →

See what an AI CFO says about your own numbers.

$99/mo, everything included. Free for 14 days, no card.

Meet your AI CFO →

Prefer to run the numbers yourself? Try the free Unit Economics Calculator — it’s free.

Keep reading

Finance 101October 23, 2026 · 7 min read

Overhead allocation: charging costs to the jobs that caused them

If overhead is a lump nobody owns, every job looks more profitable than it is and the least efficient work looks the best. Here's how to push shared costs down to jobs without building a costing department.

Read it →
Finance 101October 21, 2026 · 7 min read

Deposits, retainers and progress billing: getting paid before you deliver

The cheapest working capital available to most businesses is their own customers, and the mechanism is billing structure rather than collections. Here's how deposits and progress billing change your cash curve - and how to book them correctly.

Read it →
Finance 101October 17, 2026 · 7 min read

Financing options, ranked by what they actually cost

The advertised rate on small business funding is often nothing like the real annualised cost. Here's how to convert every offer to one comparable number, and roughly where each option lands once you do.

Read it →
Finance 101October 15, 2026 · 6 min read

Your P&L by month tells a story the annual one hides

An annual income statement is twelve months averaged into a single column, which is exactly the wrong shape for spotting anything. Laid out month by month, the same data shows you drift, seasonality, and the exact month a problem started.

Read it →
Finance 101October 13, 2026 · 6 min read

Bad debt: when to write off a customer

Carrying an invoice you'll never collect doesn't preserve the money - it just overstates your assets and flatters the month you booked it. Here's how to decide when a receivable is dead, what writing it off actually does, and how to stop creating more.

Read it →
Finance 101October 11, 2026 · 7 min read

Year-end tax planning: the decisions that expire December 31

Tax planning is not tax filing. Filing reports what happened; planning changes it, and only until December 31. Here are the levers still available to a small business in Q4 and the arithmetic for deciding whether to pull them.

Read it →
Finance 101October 9, 2026 · 7 min read

What "profit" means on four different reports

Your P&L, your tax return, your bank balance and your valuation will all give you a different profit number for the same year. None of them is lying. Here's what each is measuring and which one to use for which decision.

Read it →
Finance 101October 7, 2026 · 7 min read

Fixed vs. variable: why your cost structure decides your risk

Two businesses with identical revenue and identical profit can be completely different risks, depending on how much of the cost base is fixed. Here's how operating leverage magnifies both directions, and how to choose the structure that fits your volatility.

Read it →
Finance 101October 3, 2026 · 7 min read

Contribution margin: the number that decides what to sell more of

Gross margin tells you about a product. Contribution margin tells you what one more sale is worth - and once overhead is in the mix, the two rankings disagree often enough to change what you push.

Read it →