Finance

SaaS Cost of Goods Sold: What to Include in 2026

Read the complete guide below.

Launch Calculator

The Short Answer

SaaS COGS includes all direct costs required to deliver and support your product to customers — primarily cloud hosting, third-party API fees, customer support payroll, and onboarding costs. Unlike a product company, SaaS has no physical inventory, but COGS still directly drives your gross margin. Best-in-class SaaS companies target gross margins of 75–85%, meaning COGS should run 15–25% of revenue. Getting this line item right is critical for unit economics analysis, investor diligence, and pricing decisions.

Understanding the Core Concept

The standard formula is straightforward: Gross Profit = Revenue minus COGS, and Gross Margin = (Revenue minus COGS) / Revenue x 100. The harder question is what actually belongs in that COGS line. SaaS companies are notorious for getting this wrong — either understating COGS (making gross margins look artificially high) or overstating it (burying operational expenses that belong in OpEx).

Launch Calculator
Privacy First • Data stored locally

A Real-World COGS Calculation for a $2M ARR SaaS Company

Let's walk through a concrete example. Imagine a B2B SaaS company with $2,000,000 in Annual Recurring Revenue, roughly $167,000 per month. They run on AWS, charge a flat per-seat price, and include onboarding and Tier 1 support in every subscription.

Real World Scenario

Getting SaaS COGS right is not just about clean accounting. It cascades directly into three high-stakes business decisions: pricing, unit economics, and fundraising.

Strategic Implications

Understanding these implications allows you to proactively manage your operational efficiency. Utilizing our specific tools provides the exact data points required to prevent margin erosion and optimize your strategic approach.

Actionable Steps

First, audit your current numbers using the calculator above. Second, identify the largest gaps between your actuals and the standard benchmarks. Third, implement a tracking system to monitor these metrics weekly. Finally, review your process every quarter to ensure you are continually optimizing.

Expert Insight

The biggest mistake companies make is relying on generalized industry data instead of their own precise calculations. When you map your exact costs and parameters into a standardized tool, you unlock compounding efficiencies that your competitors often miss.

Future Trends

Looking ahead, we expect margins to tighten as market pressures increase. The companies that build automated, real-time calculation workflows into their daily operations will be the ones that capture the most market share in the coming years.

Stop Guessing. Start Calculating.

Run the numbers instantly with our free tools.

Launch Calculator

Historical Context & Evolution

Historically, these calculations were done using rudimentary spreadsheets or expensive proprietary software, making it difficult for smaller operators to accurately predict costs. Modern, web-based tools have democratized this process, allowing immediate, precise calculations on demand.

Deep Dive Analysis

A rigorous analysis of this topic reveals that small percentage changes in these core metrics produce exponential changes in overall profitability. By standardizing your approach and continuously verifying against your specific constraints, you build a resilient operational model that can withstand market fluctuations.

3 Rules for Clean SaaS COGS Accounting

1

Audit customer success allocation quarterly

Split CS payroll by actual time spent on retention versus expansion activities every quarter. Even a rough 70/30 split prevents gross margin from being materially misstated, and that split tends to shift as your product and customer base mature.

2

Track hosting costs per customer, not just in aggregate

Set up cost allocation tags in AWS, GCP, or Azure so you can see hosting spend by account or cohort. This exposes low-margin accounts you might be cross-subsidizing and informs tiered pricing or infrastructure optimization decisions.

3

Lock in your COGS methodology before fundraising

Document exactly what you include in COGS, why each line item belongs there, and how you handle edge cases like dual-purpose engineering teams. A one-page COGS policy memo shared in a data room eliminates a predictable line of investor questioning and demonstrates CFO-level financial maturity.

4

Automate Tracking Integrate your calculation process into your weekly operational review to spot trends early.

5

Validate Assumptions Check your base numbers against actual invoices and costs quarterly to ensure accuracy.

Glossary of Terms

Metric

A standard of measurement.

Benchmark

A standard or point of reference.

Optimization

The action of making the best use of a resource.

Efficiency

Achieving maximum productivity with minimum wasted effort.

Frequently Asked Questions

Generally, no. Engineering payroll belongs in R&D (operating expenses) unless engineers are directly delivering the product to customers — for example, a professional services team that builds custom integrations as part of a paid implementation contract. Standard product development, bug fixes, and feature work are R&D costs, not COGS. Some companies allocate a portion of DevOps or infrastructure engineering to COGS, but this requires documented time-tracking to withstand investor scrutiny.
Most Series A investors expect SaaS gross margins of 70–80% or higher. If your gross margin is below 65%, investors will probe whether the business is truly software-led or whether it has significant service delivery costs embedded. Companies with strong NRR above 120% can sometimes justify lower gross margins, but the expectation is that margins improve as the company scales and automates delivery.
Payment processing fees — typically 2.2–2.9% of revenue for Stripe or similar providers — are generally classified as COGS in SaaS because they are a direct cost of collecting revenue from customers. Some finance teams book them in G&A, but COGS is the more conservative and investor-preferred classification. At scale, it is worth negotiating custom rates with your processor; at $5M+ in payment volume, Stripe and Braintree both offer negotiated pricing that can reduce this COGS line by 20–40%.
By optimizing this metric, you directly improve your operational efficiency and bottom line margins.
Yes, these represent standard best practices, though exact figures will vary by your specific market conditions.

Disclaimer: This content is for educational purposes only.

Related Topics & Tools

Best Free Commission Calculators for Sales 2026

The best free sales commission calculators in 2026 are MetricRig's Commission Calculator at metricrig.com/finance/commission (no login, handles flat rate, tiered structures, and OTE modeling with quota attainment), Salesflare's free commission template, and HubSpot's Sales Commission Calculator (browser-based, handles tiered and accelerator structures). MetricRig's tool is the only no-account option that models OTE (On-Target Earnings) alongside commission payout at different quota attainment levels — 50%, 75%, 100%, 125%, and 150% — making it the most complete free tool for sales comp plan design and individual rep payout verification. Commission structures vary significantly: flat rate plans pay a fixed percentage on all revenue (typically 5–12% for SaaS AEs), tiered plans accelerate the rate at quota thresholds (e.g., 8% below quota, 10% at quota, 14% above quota), and draw-against-commission plans advance a recoverable or non-recoverable base against future commission earnings.

Read More

Anti-Dilution Provisions: Ratchet vs Broad-Based

Anti-dilution provisions protect investors in a down round — a financing at a lower price per share than a previous round — by adjusting the conversion ratio of their preferred shares so they convert into more common shares, effectively reducing the price they paid. There are two main types: full ratchet, which adjusts the investor's price all the way down to the new lower price regardless of how many shares were issued at that price; and broad-based weighted average, which adjusts the price proportionally based on how many new shares were issued relative to the total existing shares. Broad-based weighted average is the market standard for reputable venture investors in 2026, and any term sheet proposing full ratchet anti-dilution should be treated as a significant red flag — a $10M Series A at $2.00 per share with full ratchet protection can, in a down round at $0.50 per share, result in investors receiving four times as many shares as originally issued, potentially wiping out all founder and employee equity at any realistic exit valuation.

Read More

409A Valuation: When You Need One and Cost 2026

You need a 409A valuation before granting any employee stock options, and the valuation must be refreshed at least every 12 months or within 90 days of a material event — whichever comes first. Skipping a 409A or granting options without one exposes employees to immediate ordinary income tax on the discount between the strike price and fair market value, plus a 20% excise tax penalty under IRS Section 409A. The cost of an independent 409A valuation in 2026 is $1,500 to $5,000 for most early-stage companies, with most seed and Series A stage valuations falling in the $2,000 to $3,500 range. The IRS safe harbor for 409A compliance requires the appraisal to be performed by an independent qualified appraiser using recognized valuation methods. Use the Business Valuation Calculator at metricrig.com/finance/valuation to develop your own pre-appraisal valuation estimate before engaging a provider.

Read More

Sale-Leaseback Transaction Explained 2026

A sale-leaseback is a transaction where a company sells an asset, usually real estate or equipment, and then immediately leases it back for continued use. It converts illiquid owned assets into cash while preserving operational access, which can be attractive when a company wants to reduce debt, fund growth, or improve return metrics. The economic tradeoff is simple: you gain liquidity today but give up ownership economics and future appreciation. A good sale-leaseback only works when the implied lease cost is cheaper than the business value of keeping the asset on the balance sheet.

Read More

How much cash to raise for 18 month runway?

Formula: Net Monthly Burn × 18 + 20% Buffer. If your Net Burn is $50,000/month, you need $1.08M. Most investors expect 18-24 months of runway post-close.

Read More

Revenue Per Employee Benchmarks by Industry 2026

Revenue per employee (RPE) ranges from $80,000–$200,000 in labor-intensive service industries to $300,000–$500,000 in manufacturing, $400,000–$700,000 in financial services, and $500,000–$1,500,000+ in software and technology. Elite SaaS companies like Veeva, HubSpot, and Zoom have historically exceeded $400,000–$600,000 RPE at scale. Benchmark your team's productivity using the free employee cost calculator at /finance/employee-cost.

Read More