>>> article

COGS vs. OpEx: Founders’ Payroll Mistake Can Skew Margins

Learn how founders classify COGS and OpEx, handle payroll and software, and report margins clearly for forecasting, fundraising, and operating decisions.

Watercolor frame around a clear title area

Cost of goods sold covers the direct costs to produce or deliver what you sell, while operating expenses cover the ongoing overhead to run the business. That split isn’t academic: COGS determines gross margin, OpEx determines operating income, and the line between them gets blurry fast with payroll, software, and shared infrastructure. Get the classification wrong and you’re making pricing and hiring decisions on distorted numbers.


TL;DR:

  • Calculate COGS as beginning inventory plus purchases and production costs, minus ending inventory; FIFO, weighted average, and specific identification can change reported margins.
  • For shared payroll or software, trace whether a cost follows a specific sale, allocate it consistently, and check tax rules that may require inventory capitalization.
  • SaaS businesses typically classify customer hosting, delivery support, and payment processing as Cost of Revenue, while sales, marketing, and research remain OpEx.
  • Founders should review each line against a written policy before external reporting; misclassifying OpEx as COGS inflates gross margin and lowers operating income.

Commerce Catalyst
Get Clearer on What Drives Profitability
Commerce Catalyst helps consumer brand founders turn complex financial realities into actionable insights for clearer decisions on margins and cash flow.
Explore founder advisory

Table of Contents

What Counts as COGS: Formula, Inventory, and Examples

COGS is the direct cost of producing or delivering whatever generates revenue. The standard formula is clear, but applying it consistently is where founders stumble.

  1. Start with beginning inventory value at the start of the period.
  2. Add purchases or production costs incurred during the period.
  3. Subtract ending inventory value at period close.

What belongs in that calculation goes beyond raw materials. Direct production labor, the production-floor overhead tied to making the product, and freight-in costs to get inventory to your warehouse all capitalize into inventory and flow through COGS when sold, not when purchased. A lamp manufacturer’s COGS includes the glass, wiring, and the wages of the people assembling it. A DTC skincare brand’s COGS includes formulation ingredients, co-packer fees, and inbound freight on raw materials.

Your inventory valuation method changes the reported number even when nothing about the business changed. FIFO, weighted average, and specific identification all assign different costs to units sold, which shifts gross margin in periods of rising or falling input prices.

The IRS outlines when businesses must figure COGS for tax purposes and when certain indirect costs must be capitalized into inventory rather than expensed immediately, under uniform capitalization rules. Tax treatment and the way you report COGS internally don’t always match. A cost your management reporting treats as overhead might still need to be capitalized into inventory for tax purposes, and that gap catches founders off guard during their first real audit.

What Counts as Operating Expenses and How They Hit the Income Statement

Operating expenses are the costs of running the business that aren’t tied to producing a specific unit. Investopedia’s breakdown separates OpEx cleanly from COGS: rent and utilities for a corporate office sit in OpEx, while materials and production labor sit in COGS, and both land as distinct lines on the income statement.

Common OpEx categories include:

  • Rent and utilities for office or non-production facilities.
  • Non-production payroll, including sales, marketing, and administrative salaries.
  • Marketing and advertising spend across every channel.
  • Legal, accounting, and other professional services.
  • Software subscriptions not tied directly to product delivery.

Some of these are fixed, like a twelve-month office lease. Others are variable, like performance marketing spend that scales with revenue targets. Many are semi-variable: a customer support team might carry a fixed base headcount plus overtime that moves with order volume.

The income statement flow matters here. Revenue minus COGS gives you gross profit. Gross profit minus OpEx gives you operating income. Say a brand generates $1,000,000 in revenue with $600,000 in COGS, leaving $400,000 in gross profit. If OpEx runs $300,000, operating income lands at $100,000. Every dollar misclassified between the two categories shifts gross margin and operating margin in opposite directions, even though total profit stays the same.

Income statement flow from revenue to operating income

Key Differences at a Glance: Comparison and Checklist

The distinction comes down to what the cost is tied to and where it lands on the statement.

  • Purpose: COGS reflects direct production or delivery cost; OpEx reflects the cost of running the business overall.
  • Typical inclusions: COGS covers materials, direct labor, and production overhead; OpEx covers rent, marketing, admin payroll, and professional fees.
  • Variability: COGS usually scales directly with units sold; OpEx mixes fixed, variable, and semi-variable costs.
  • Accounting impact: COGS affects gross profit and gross margin; OpEx affects operating income and operating margin.

A quick checklist settles most borderline cases:

  • Would this cost disappear if you stopped selling the product entirely?
  • Is the cost traceable to a specific unit, order, or customer?
  • Does the expense scale with production or sales volume rather than with headcount or time?
  • Would an auditor expect this cost capitalized into inventory under current rules?

The same line item can land in different buckets depending on the business. A warehouse lease for a manufacturer handling its own production is often part of COGS, since it houses the manufacturing process. The same warehouse lease for a brand that outsources production but stores finished goods for fulfillment might sit in OpEx, depending on how the space is used. Context, not the label on the invoice, decides.

How to Classify Ambiguous Costs: A Process Founders Can Run

Most classification confusion comes from costs that sit in a gray zone: payroll that touches both delivery and overhead, software that supports both product and operations. A practitioner rule from Bill cuts through most of it: if the cost would exist without the sale, it’s likely OpEx; if it wouldn’t, it’s likely COGS.

  1. Identify directness: does the cost exist because of a specific transaction, or because the business exists at all?
  2. Measure traceability: can you reasonably assign the cost to a unit, order, or customer, or is it shared across the whole operation?
  3. Choose an allocation method for shared costs, such as per-unit, per-headcount, or percentage-of-revenue, and apply it consistently.
  4. Check tax and accounting rules, since capitalization requirements can override your internal preference.

Payroll is the most common gray area. A customer success rep handling order issues and returns for a specific product line often belongs in COGS, since that labor is tied directly to delivering the sale. The same rep spending half their time on general account management or upsell conversations starts to look like OpEx. For SaaS businesses, hosting costs tied to serving paying customers typically sit in Cost of Revenue, while hosting for internal development environments sits in OpEx.

Pro Tip: Write down your classification policy in one page and apply it the same way every quarter, so investors and auditors see consistency rather than numbers that shift to flatter the current period.

SaaS and Service Businesses: Cost of Revenue Conventions

SaaS and service businesses often use “Cost of Revenue” instead of COGS, since there’s no physical inventory to track. The logic still mirrors COGS principles from Wall Street Prep: direct costs tied to delivering the service sit in Cost of Revenue, and everything else sits in OpEx.

Typical inclusions and exclusions look like this:

  • Included: hosting and infrastructure costs tied to serving paying customers, customer support directly tied to product delivery, third-party pass-through fees like payment processing.
  • Excluded: sales and marketing spend, since it drives acquisition rather than delivery.
  • Excluded: research and development, since it builds future product rather than delivering the current one.

This choice directly shapes gross margin and the unit economics investors scrutinize. Treating hosting and delivery-linked support as Cost of Revenue produces a gross margin that reflects what it actually costs to serve each customer, which feeds more honestly into LTV to CAC modeling. The internal rule that matters most is consistency: decide once, document it, and apply the same logic to every cost of the same type going forward. For a deeper look at how these numbers roll up, see our explainer on gross margin mechanics.

Why the Distinction Matters for Forecasting and Fundraising

Misclassification doesn’t just create an accounting headache. It distorts the numbers investors and lenders use to judge the business. Classifying OpEx as COGS inflates gross margin and creates unit economics that don’t hold up under diligence, which is exactly where sophisticated investors look first.

  • Inflated gross margins from misclassified costs mislead both internal decision-making and external reporting.
  • FASB’s disaggregation initiatives are pushing public companies toward more detailed expense disclosure, breaking out components like inventory costs, compensation, and depreciation rather than reporting lump sums.
  • Clean classification directly improves pricing decisions, break-even analysis, and cash planning, since you’re working from a margin number that reflects reality.
  • Before fundraising or any external reporting, review every line item against your documented classification policy rather than assuming last quarter’s treatment still fits.

The trend toward disaggregation matters even for private companies that aren’t subject to FASB rules directly. Investors increasingly expect the same visibility, and founders who can show a consistent, defensible policy move through diligence faster. If you’re preparing for investor conversations, tools like BabyLoveRaise’s investor tracking guidance can help keep your fundraising process as organized as your financials should be. For more on how gross profit decisions ripple into growth planning, see our piece on gross profit and scaling.

Commerce Catalyst: Applying Classification in a Founder Diagnostic

Our DTC Operator Diagnostic reviews how a brand’s costs are currently split between COGS and OpEx and flags the line items most likely to be misclassified, since that’s often where gross margin confusion starts. We walk founders through a 30- to 90-day financial review that mirrors the checklist above: tracing direct costs to units sold, testing payroll allocations, and confirming SaaS or service businesses are applying Cost of Revenue consistently. The goal is a margin picture founders can defend to a lender, an investor, or their own leadership team without having to re-explain assumptions every quarter.

How We Help You Get This Right

Clear COGS versus OpEx classification is one of the first things we untangle with consumer brand founders, because it’s usually the fastest way to find a margin problem that’s been hiding in plain sight.

Commercecatalyst

Our DTC Operator Diagnostic runs $197 and gives you a structured review of where your costs actually sit, including the gray-area items this guide walks through. If you need a faster answer on one specific question, a Founder Hour booked at $500 per hour gets you direct time to work through payroll allocation, hosting costs, or any other line item that’s been nagging at you. For a broader look at margin health across the business, our Financial Health Assessment goes beyond classification into the levers that move gross margin once the numbers are clean. Either way, you walk away with a documented policy you can hand to an investor or auditor without flinching.

FAQ

What Is the Difference Between OpEx and CapEx Costs?

OpEx covers the ongoing costs of running the business, like rent, payroll, and marketing, expensed in the period incurred. CapEx covers purchases of long-term assets, like equipment or buildings, that get capitalized and depreciated over several years rather than expensed immediately.

Is Salary a CapEx or OpEx Cost?

Most salaries are OpEx, since they’re an ongoing operating cost rather than a long-term asset purchase. The exception is payroll directly tied to building a capital asset, such as a development team constructing internal-use software, which can sometimes be capitalized under specific accounting rules.

What Costs Are Not Included in COGS?

Sales and marketing, administrative salaries, rent for non-production space, and research and development are generally excluded from COGS. These costs sit in operating expenses instead, since they don’t tie directly to producing or delivering the specific unit sold.

What Is the Difference Between COGS and Direct Costs?

COGS is a specific accounting line item representing the direct costs of goods sold during a reporting period, calculated from beginning inventory, purchases, and ending inventory. “Direct costs” is a broader term that can include any cost traceable to a specific product, project, or customer, whether or not it flows through the formal COGS calculation.

Sources

>>> next step

Want to see where your business actually stands?

Run the numbers through the diagnostic, or talk it through with someone who has been in your seat.

Get the Diagnostic Book a Founder Hour