SaaS COGS and Gross Margin: Managing Delivery Costs
In subscription software, Gross Margin is the primary indicator of pure software scalability and enterprise valuation. Separating direct service delivery costs (COGS) from operating overhead (OpEx) provides accurate unit economics.
SaaS COGS include only the expenses required to host, maintain, and support existing paying customers. Typical categories are cloud infrastructure, third-party APIs, customer support payroll, DevOps, and payment processing fees.
Calculation Logic & Core Formulas
- Total Monthly COGS:
Cloud Hosting + APIs + Support + DevOps + Payment Fees - Gross Profit:
MRR - Total COGS - SaaS Gross Margin (%):
((MRR - Total COGS) / MRR) * 100 - Unit COGS per Customer:
Total COGS / Active Customers - Unit Gross Profit:
ARPU - Unit COGS
Practical Example with Realistic Numbers
Consider a B2B SaaS company generating $100,000 in MRR across 500 active customers ($200 ARPU). Monthly delivery costs consist of $6,000 for cloud hosting, $3,000 for LLM APIs, $7,000 for customer support, $2,500 for DevOps, and $1,500 for payment fees.
Total monthly COGS equal $20,000, or $40 per customer. This leaves $80,000 in gross profit, resulting in a healthy 80% Gross Margin.
Common Mistakes & Optimization Tips
A frequent mistake is including new feature engineering (R&D) or sales commissions inside COGS. Both belong in OpEx and would artificially depress your reported gross margin.
To improve margins, lock in cloud Reserved Instances or savings plans and invest in self-serve onboarding to limit support headcount growth. For AI-driven products, caching repetitive prompts significantly reduces variable API spend.