๐Ÿ’ฐ

SaaS COGS vs Operating Expenses: How to Classify Costs in Your Business Plan and Unit Economics

Financial PlanningIntermediate30 minutes

SaaS businesses classify costs differently than traditional businesses โ€” and the classification drives gross margin, unit economics, and investor perception of your business quality. This guide walks through what belongs in COGS vs OpEx for SaaS companies, the gray areas, the benchmarks investors expect, and how to build your P&L for a fundraise.

What You'll Learn

  • โœ“Classify SaaS costs correctly into COGS vs operating expenses
  • โœ“Calculate and interpret SaaS gross margin benchmarks by category
  • โœ“Apply the classification to unit economics (CAC, LTV, payback)
  • โœ“Handle gray-area costs consistently
  • โœ“Structure a SaaS P&L that aligns with investor expectations

Direct Answer: The Classification Rule

In SaaS, Cost of Goods Sold (COGS) includes the costs required to DELIVER the product to paying customers. Operating Expenses (OpEx) include everything else โ€” costs to FIND customers (sales and marketing), BUILD the product (R&D), and RUN the company (G&A). The test: if the cost scales with the number of customers served, it probably belongs in COGS. If it would exist even if you added zero new customers next month, it probably belongs in OpEx. Standard SaaS COGS: - Hosting and infrastructure (AWS, GCP, Azure) for production workloads - Third-party services that scale with usage (Twilio for SMS, SendGrid for email, Stripe for payments) - Customer support salaries and tools - Customer success salaries (the part that keeps customers delivered and renewed) - Implementation and onboarding costs (for customers paying for implementation) - Transaction fees paid to payment processors Standard SaaS OpEx, broken into three categories: - Sales & Marketing: sales salaries and commissions, marketing tools, ad spend, content marketing, events - Research & Development: engineering salaries, product management, design, infrastructure for development/staging - General & Administrative: executive team, finance, HR, legal, office rent, general software (Slack, Notion, etc.) Gross margin = (Revenue โˆ’ COGS) / Revenue. For pure-play SaaS, top-quartile gross margin is 75-85%. Below 60% suggests either a services-heavy model or mis-classified costs. Above 90% is possible but rare and sometimes indicates costs are being buried in OpEx that should be in COGS.

Why the Classification Matters for Investors

Investors model SaaS companies on a specific framework where gross margin is the primary quality indicator. A business with 80% gross margin has 80 cents of every revenue dollar available to spend on growth (S&M), product (R&D), and profit. A business with 50% gross margin has only 50 cents โ€” meaning it has to be extraordinarily efficient in S&M and R&D to reach the same profitability. Two companies with identical revenue can have very different valuations based on gross margin alone: Company A: $10M ARR, 80% gross margin. Investors model strong unit economics potential. Company B: $10M ARR, 55% gross margin. Investors model this as a services company or a SaaS company with problematic delivery costs. Company A at Series A: typically valued at 15-25ร— ARR ($150M-$250M). Company B at Series A: typically valued at 5-10ร— ARR ($50M-$100M). The 3-5ร— valuation difference is driven almost entirely by gross margin classification. This is why investors scrutinize gross margin carefully in diligence. If your stated gross margin is 85% but your customer support team is in OpEx instead of COGS, diligence will re-classify โ€” dropping your effective gross margin to 70% and reducing your valuation. SEC SAB Topic 11.L and ASC 606 both govern how SaaS companies report revenue and associated costs. Reporting consistently with these standards matters for audited financials and for comparability to public SaaS companies. Another implication: stock-based compensation (SBC) classification. SBC for customer support and customer success employees should go in COGS; SBC for engineering, sales, and executives goes in OpEx. Getting this wrong is a common diligence flag and easy to fix before fundraising.

What Goes in SaaS COGS

Hosting and infrastructure: production AWS/GCP/Azure bills for running the customer-facing product. Development and staging environments generally go in R&D (OpEx), not COGS. Data storage, compute, and bandwidth for the production app are core COGS. Third-party SaaS and APIs that scale with usage: Twilio (SMS, voice), SendGrid (transactional email), Stripe/PayPal (payment processing), Datadog (production monitoring), Auth0 (authentication), any API where your cost scales per-customer or per-transaction. Fixed-fee tools (regardless of usage) are usually R&D or G&A. Customer support: salaries, benefits, payroll taxes for support engineers and support managers. Support-specific tools (Zendesk, Intercom). Commonly missed: the manager of the support team โ€” if their job exists because of customers, that salary is COGS. Customer success: this is the gray area. Customer Success Managers (CSMs) who renew and expand customer accounts generate revenue โ€” their salaries are arguably S&M (OpEx). But CSMs who onboard customers, troubleshoot usage, and maintain customer health scores are more COGS-adjacent. The common split: - Onboarding/implementation CS = COGS (delivery cost) - Renewal and expansion CS = COGS in some companies, S&M in others - Strategic CS with named enterprise accounts = S&M (acts more like account management) Pick a policy and apply it consistently. Document the policy in your financial model notes. Implementation and professional services: if you charge customers for implementation (a common enterprise SaaS pattern), the direct costs to deliver implementation (consultant salaries allocated to implementation hours) are COGS. If implementation is free-bundled with the subscription, the costs are still COGS. Payment processing fees: Stripe's 2.9% + $0.30 per transaction, for example. Classify as COGS. Some companies split: credit card fees as COGS, ACH fees as lower COGS, failed payment handling costs as COGS. Content delivery and data costs: CDNs (CloudFlare, Akamai), third-party data feeds your customers consume, any variable data acquisition cost.

What Goes in SaaS Operating Expenses

Sales & Marketing (S&M): - Sales team salaries, commissions, bonuses, benefits - Sales tools (Salesforce, Outreach, Gong, ZoomInfo) - Marketing team salaries - Paid advertising (Google, Meta, LinkedIn, Capterra) - Content marketing (writers, SEO, content tools) - Events and conferences - PR and agency fees - Website development and hosting (separate from production app hosting) - Marketing automation (HubSpot, Marketo) - SDRs, BDRs, AEs, and sales engineers Research & Development (R&D): - Engineering team salaries, benefits, payroll taxes - Product management and product design salaries - Development and staging environment hosting (not production) - Engineering tools (GitHub, Jira, Linear, developer tools) - Third-party libraries and software for development (not production usage) - Stock-based compensation for engineering - External development contractors - Some companies capitalize internal-use software development costs under ASC 350-40 โ€” this is an accounting policy choice with tax and financial statement implications General & Administrative (G&A): - Executive team salaries (CEO, CFO, COO) and board compensation - Finance and accounting team - HR team and recruiting - Legal (internal counsel) and external legal fees - Office rent (in hybrid/in-office companies) - General software (Slack, Notion, 1Password, G Suite) - Insurance - Board and shareholder communications - Audit and tax preparation For Series A onwards, investors often expect a breakdown of each of these three OpEx categories as a percentage of revenue. Typical benchmarks for top-quartile public SaaS: - S&M: 40-50% of revenue (early stage); 35-45% (growth stage) - R&D: 20-30% of revenue (steady state); higher pre-product-market-fit - G&A: 10-15% of revenue - Gross margin: 75-85% Add them up: top-quartile public SaaS operates at ~70% of revenue in OpEx + 20% COGS = 90% of revenue spent, leaving 10% operating margin. Note that this is for mature public SaaS; growth-stage private SaaS typically runs negative operating margin by design (growing faster than they can fund organically).

The Gray Areas

Gray area 1: Customer Success Managers. As discussed, the line between CS-as-COGS and CS-as-S&M is fuzzy. Pick a policy: - Onboarding CS (first 90 days of customer relationship) = COGS - Ongoing CS (health monitoring, adoption coaching) = COGS - Renewal/expansion CS = S&M (they generate revenue) - Strategic enterprise account management = S&M Whatever policy you pick, apply it consistently. Investors care less about exactly where you draw the line than about whether the line is drawn clearly and the company applies it over time. Gray area 2: Executive salaries. If the CEO spends 50% of their time on sales (common in early-stage), should 50% of their salary be S&M? Technically yes, but most companies don't allocate in this granular way. Standard practice: executive salaries fully in G&A. If an executive has a clearly dedicated functional role (CRO = S&M, CPO = R&D), allocate their salary to that function. Gray area 3: Stock-based compensation. SBC should follow the underlying person's function. Engineer SBC โ†’ R&D. Support engineer SBC โ†’ COGS. Sales SBC โ†’ S&M. Commonly mis-classified because SBC is often recorded as one lump line item; break it out. Gray area 4: Cloud spend for R&D vs. production. Development and staging environments are R&D. Production is COGS. But what about observability and logging that happens in both? Common approach: allocate logging/APM costs based on production vs. non-production usage, with production in COGS and non-production in R&D. Gray area 5: Free tier costs. If you offer a free tier, the hosting/infrastructure costs to serve free users are still COGS โ€” they're delivering the product. Some companies argue this is 'customer acquisition' and should be in S&M; most accountants and investors disagree because the cost is related to product delivery, not customer acquisition activity. Count free tier infrastructure as COGS. Gray area 6: Professional services for 'free' implementation. If you include implementation at no additional charge for a subscription customer, the direct implementation costs are COGS. Some founders try to reclassify these to S&M (treating implementation as a marketing cost). This inflates gross margin but diligence usually catches and re-classifies. Gray area 7: Customer-facing content. Documentation, help center articles, product tutorials. Usually written by a mix of support, product marketing, and engineering. If it's primarily customer-facing documentation (user-consumed), costs can be COGS. If it's marketing content (prospect-facing), S&M. Drawing the line at 'who uses this content?' is usually cleanest.

Building Your P&L for Investors

Investor-ready SaaS P&L structure: ``` Revenue $X,XXX,XXX Cost of Revenue (COGS): Hosting & Infrastructure $XXX,XXX Third-Party Services $XXX,XXX Customer Support $XXX,XXX Customer Success (delivery) $XXX,XXX Professional Services Delivery $XXX,XXX Total COGS $X,XXX,XXX Gross Profit $X,XXX,XXX Gross Margin % XX.X% Operating Expenses: Sales & Marketing $X,XXX,XXX Research & Development $X,XXX,XXX General & Administrative $XXX,XXX Total Operating Expenses $X,XXX,XXX Operating Income (Loss) $XXX,XXX Operating Margin % XX.X% Net Income (Loss) $XXX,XXX Net Margin % XX.X% ``` Along with this P&L, provide: 1. Monthly breakdown for the current year and prior year. Annual-only P&Ls are viewed as less trustworthy by investors. 2. Cohort-level gross margin. Break out COGS for different customer cohorts โ€” enterprise vs SMB, for example. Often enterprise has lower gross margin due to higher support costs. 3. Unit economics calculations derived from this P&L: - CAC = S&M expense รท Number of new customers in the period - LTV = ARPU ร— Gross margin รท Monthly churn rate - Payback period = CAC รท (ARPU ร— Gross margin) in months - Magic number = Net new ARR รท S&M from prior quarter 4. Rule of 40: (Revenue growth rate % + Operating margin %) โ‰ฅ 40%. This is a common shorthand for whether a SaaS company balances growth and profitability. 5. Stock-based compensation separately disclosed as a non-cash expense. Most investors look at both GAAP (including SBC) and non-GAAP (excluding SBC) margins. If your current bookkeeping doesn't produce this format, reformat it before pitching. The investor's first diligence question will be 'walk us through your gross margin' โ€” if you can't produce a clean breakdown, the investor loses confidence. For founders raising a seed round: you can start with a simpler P&L. Revenue, COGS (even if rough), S&M + R&D + G&A summed. As you approach Series A, build up to the full format with monthly detail and per-category expense breakdowns. This content is for educational purposes only and does not constitute financial advice. Consult a CPA for tax and accounting decisions specific to your business.

Key Takeaways

  • โ˜…COGS = costs to DELIVER product; OpEx = costs to FIND, BUILD, RUN
  • โ˜…SaaS gross margin benchmarks: 75-85% top-quartile pure SaaS
  • โ˜…Three OpEx buckets: Sales & Marketing, R&D, G&A
  • โ˜…Top-quartile public SaaS: S&M 35-50%, R&D 20-30%, G&A 10-15%
  • โ˜…Customer support salaries = COGS; sales salaries = S&M
  • โ˜…Hosting/infrastructure for production = COGS; dev/staging = R&D
  • โ˜…Rule of 40: Revenue growth + Operating margin โ‰ฅ 40%
  • โ˜…Stock-based compensation follows underlying person's function
  • โ˜…Valuation multiple can be 3-5ร— different based on gross margin classification
  • โ˜…ASC 606 governs SaaS revenue recognition timing

Check Your Understanding

A SaaS company has $10M revenue and 60% gross margin. What does this suggest and how would an investor interpret it?

60% gross margin is below top-quartile SaaS (75-85%). Investor interpretation: either services-heavy delivery model or mis-classified costs (customer support in OpEx instead of COGS). Next diligence step: review COGS composition. If actually a services-heavy business, valuation multiple will be lower (5-10ร— ARR vs 15-25ร— for pure SaaS). If it's mis-classified, re-classify correctly and the reported margin may improve to 75%+.

Where should you classify a Customer Success Manager's salary โ€” COGS or S&M?

Depends on their role. Onboarding CSMs (first 90 days) = COGS (delivery cost). Ongoing adoption/health-monitoring CSMs = COGS. Renewal/expansion CSMs with quotas = S&M (they generate revenue). Strategic enterprise account management = S&M. The cleanest rule: if the CSM has a revenue quota, they're S&M; if they have a customer-health KPI, they're COGS. Apply your policy consistently and document it.

How do operating leases affect the bridge between COGS and OpEx in a SaaS P&L?

Under ASC 842, operating lease liabilities are on the balance sheet. If your EBITDA calculation includes lease expense (post-ASC 842 adjusted), the obligations are already reflected in operating cash flows and shouldn't be double-counted. If you use pre-ASC 842 EBITDA that excluded lease expense, you should add operating lease liabilities to debt in the bridge. Consistency is critical: use the same methodology across periods and comparable companies.

Why do investors scrutinize the classification of Customer Success salaries?

Because misclassification materially affects gross margin and valuation. A $10M ARR company with $2M in customer success could report: (1) 80% gross margin if CS is in OpEx, or (2) 60% gross margin if CS is in COGS. The resulting valuations differ by 3-5ร— ARR. Investors want to see CS classified correctly and consistently so they can compare across companies. Mis-classification is a common diligence finding and re-classification often reduces valuation.

A SaaS company reports 85% gross margin with pure software product. Is this believable?

Sometimes yes, but investigate. 85% is at top of range. Check: (1) Is customer support minimal or outsourced? (2) Is hosting optimized (e.g., multi-tenant architecture)? (3) Are payment processing fees included in COGS? (4) Is customer success properly classified? If the business genuinely has low support and infrastructure needs (e.g., API companies, some enterprise SaaS), 85% is achievable. If common items are mis-classified, the reported number is misleading. Request a detailed COGS breakdown during diligence.

Frequently Asked Questions

Everything you need to know about BusinessIQ

Benchmarks depend on SaaS category. Pure software SaaS with low support and hosting costs: 80-90% gross margin is top-quartile. Vertical SaaS or industry-specific software: 75-85%. SaaS with embedded services (implementation, ongoing professional services): 65-80%. SaaS with embedded payments or fintech components: 50-70% (payment processing is a significant COGS component). If your gross margin is below 60% and you claim to be a SaaS company, expect investor scrutiny on whether the model is actually SaaS or services-heavy.

Under ASC 350-40, companies can (and sometimes should) capitalize internal-use software development costs incurred after the preliminary project stage. This shifts engineering salary expense from the P&L to an amortized asset on the balance sheet. Effects: higher reported operating margin in the current period, amortization expense in future periods, potentially lower R&D % of revenue (which some investors view negatively). Most early-stage startups don't capitalize because the accounting complexity isn't worth it; most public SaaS companies do capitalize. Consult your CPA. Whatever policy you choose, apply it consistently and disclose.

Pick a policy and apply consistently. Most common split: CSMs who onboard customers (first 90 days) are COGS. CSMs who handle ongoing adoption, health monitoring, and support are COGS. CSMs whose primary job is renewal and expansion (quota-carrying) are S&M. The cleanest rule: if the CSM has a revenue quota, they're S&M. If they have a customer-health KPI (adoption, NPS, support tickets), they're COGS. Some companies split a single CSM's cost โ€” e.g., 60% COGS / 40% S&M based on time allocation. This is defensible but complex; most early-stage companies pick one category for simplicity.

For freemium: infrastructure costs to serve free users are COGS. The revenue side shows only paying customer revenue, so gross margin is calculated across all users' delivery costs (free and paid) divided by paid revenue. This can produce very low gross margins early on as free-tier costs are spread over few paying customers. As the paid customer base grows, gross margin improves. For usage-based pricing: revenue scales with usage and COGS scales with usage. Gross margin should be relatively stable across usage volumes. Make sure the P&L clearly shows the usage-driven revenue and the usage-driven COGS.

Revenue recognition under ASC 606 spreads the subscription fee over the service period. COGS should be recognized in the period in which the cost is incurred (hosting this month is a cost this month), not spread over the contract length. This creates a timing difference โ€” you might recognize 12 months of annualized hosting cost against 1 month of revenue in the first month of a 12-month contract if the customer pays annually upfront (revenue recognized over 12 months). Cash basis companies handle this differently. Most SaaS companies use accrual accounting, and the cohort gross margin by month reflects these timing differences. Investors expect to see monthly recognition consistent with ASC 606.

Yes. Describe your SaaS business โ€” pricing, expected customer growth, team composition, cloud stack โ€” and BusinessIQ builds a multi-year P&L with appropriate COGS and OpEx classification. It also calculates unit economics (CAC, LTV, payback period, magic number, rule of 40) and generates the investor-ready financial exhibits expected in a Series A data room. For founders working toward a fundraise, BusinessIQ also flags common diligence issues (mis-classified costs, missing cohort-level margins, SBC categorization) before they become problems in a real investor meeting. BusinessIQ is available as a web app at businessplanai.app for longer-form financial modeling.

Apply This to Your Plan

BusinessIQ turns these concepts into a real business plan tailored to your idea.

Get BusinessIQ

More Guides