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

Competitor Ad Spend Estimation Guide 2026

Estimating competitor ad spend in 2026 requires combining data from multiple sources since no single tool provides exact figures: Semrush and SimilarWeb provide traffic-based spend estimates for search and display, Meta Ad Library provides impression range data for paid social, LinkedIn Campaign Manager's competitive insights show share of voice for B2B ads, and SEC filings or earnings calls reveal total S&M budgets for public companies. A well-triangulated estimate can get within 20%–35% of actual spend for large advertisers spending $1M+ annually. For competitors spending under $500,000/year on paid media, estimate accuracy degrades to within 40%–60% due to lower data signal density. Use MetricRig's Ad Spend Optimizer at metricrig.com/marketing/adscale to model how your current spend compares against estimated competitor levels and identify where increasing or concentrating budget produces the highest competitive return.

Read More

USPS Priority Mail cubic divisor vs standard

Standard USPS divisor is 166. However, specifically for small heavy packages (<0.5 cu ft), Cubic Pricing is used which bills by volume tier, not weight.

Read More

Standard forklift aisle width requirements?

Standard 3-wheel sit-down forklifts need 12-foot aisles. Reach trucks need 9-10 feet. VNA (Very Narrow Aisle) turret trucks can operate in 5.5 to 6-foot aisles.

Read More

How many loading docks for 100k sqft warehouse?

Rule of thumb: 1 dock per 5,000-10,000 sqft. A 100k sqft DC typically needs 10-20 dock doors.

Read More

FedEx Oversize Charge 2026 triggers: Length vs Weight

FedEx oversize triggers at 96 inches length or 130 inches length + girth. Adds + surcharge in 2026.

Read More

Calculate CBM for air freight rate quotes

CBM = L × W × H in meters. Volumetric weight = CBM × 167 kg. Air carriers bill whichever is greater: actual or volumetric weight.

Read More