COGS (Cost of Goods Sold)

The direct costs of delivering your product to customers. For SaaS, COGS typically includes hosting, third-party software, customer support, and payment processing fees.

What Is COGS in SaaS?

COGS (Cost of Goods Sold) represents the direct costs of delivering your software product to customers. In SaaS, this typically includes hosting and infrastructure (AWS, GCP, Azure), third-party software and API costs, customer support and success team costs, payment processing fees, and DevOps/site reliability costs directly tied to service delivery.

How to Calculate SaaS COGS

COGS = Hosting + Third-Party Software + Support + Payment Processing + DevOps

Exclude sales, marketing, R&D, and general administrative costs — those are operating expenses (OpEx), not COGS. The distinction matters because gross margin (Revenue - COGS) is the first profitability metric investors examine.

SaaS COGS Benchmarks

Healthy SaaS companies target COGS at 15-30% of revenue, resulting in 70-85% gross margins. If your COGS exceeds 30%, look for hosting optimization opportunities, renegotiate third-party contracts, or examine whether your support model is efficient. Professional services revenue typically has much higher COGS (50-80%) and should be reported separately.

Frequently Asked Questions

Yes. Customer support and success costs directly tied to serving existing customers are typically included in COGS. However, support costs associated with onboarding new customers are sometimes classified as sales expenses. Follow GAAP guidelines and be consistent.
Start with your largest cost categories. Optimize cloud infrastructure (right-size instances, use reserved capacity, implement auto-scaling). Renegotiate third-party API and software contracts as volume grows. Invest in self-serve support (knowledge bases, in-app guidance) to reduce support headcount per customer. Even small COGS reductions have an outsized impact on gross margin.
No. Research and development is an operating expense (OpEx), not COGS. COGS only includes costs directly tied to delivering the product to current customers — hosting, support, payment processing, and third-party service costs. Keeping R&D separate ensures your gross margin accurately reflects delivery economics.

Ready to grow your SaaS business?

Get personalized insights and funding options.

Go beyond calculators. Connect your data to get real-time metrics, benchmark against similar companies, and discover non-dilutive funding options tailored to your business.

Monitor cash flow, burn rate, runway, and key financial metrics in one dashboard that updates automatically. Make data-driven decisions about spending and fundraising.

Compare your SaaS metrics — CAC, payback period, growth rate, and compensation — against industry benchmarks from hundreds of real companies.

Get personalized funding recommendations based on your company metrics and growth trajectory. Grow your business without giving up equity.

Set competitive salaries that attract top talent while maintaining healthy cash flow and runway. Access real compensation data from SaaS companies at your stage.

Generate professional reports and insights that investors want to see — no manual work required. Show how your metrics stack up against industry benchmarks.