SaaS COGS

SaaS Cost of Goods Sold (COGS) Calculator

Calculate direct COGS, cloud hosting expenses (AWS/Azure), and SaaS gross profit margins.

Disclaimer: All calculations and figures are provided for informational purposes only and without warranty. This does not constitute legal, tax, or financial advice. Liability for any decisions made based on this calculator is disclaimed.
Scenarios:

1. Monthly Recurring Revenue (MRR) & User Base

ARPU:$200.00/usr.
$/mo.
usr.

2. Monthly Cost of Goods Sold (COGS) Breakdown

$17,200.00/mo.
$/mo.
$/mo.
$/mo.
$/mo.
$/mo.
SaaS Gross Margin
78.5 %

Delivers $62,800.00/mo. ($753,600.00/yr.) in gross profit after deducting $17,200.00 monthly COGS (21.5% of MRR).

Gross Margin Rating:🟢 Healthy SaaS (70–80%)
COGS / usr.:$43.00/mo.
Gross Profit / usr.:$157.00/mo.
Annual Total COGS
$206,400.00

$17,200.00/mo.

COGS to Revenue
21.5 %

of monthly MRR

Annual Gross Profit
$753,600.00

pre-OpEx

Paying Base
400

$200.00 ARPU

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.

Frequently Asked Questions (FAQ)

What expenses are included in SaaS Cost of Goods Sold (COGS)?

SaaS COGS consists strictly of direct costs required to deliver, maintain, and support software for existing paying customers: 1. Cloud infrastructure and hosting (AWS, GCP, Azure, Vercel). 2. Third-party software & API licenses (OpenAI, Twilio, SendGrid). 3. Customer support & onboarding personnel payroll. 4. Production DevOps/SRE operations. 5. Payment gateway transaction fees (Stripe).

What costs belong in Operating Expenses (OpEx) instead of COGS?

Sales representative salaries/commissions, marketing ad spend (Google/LinkedIn Ads), executive salaries, office rent, and core product feature engineering (R&D) must be classified as Operating Expenses (OpEx) and excluded from COGS.

What is considered a healthy SaaS Gross Margin benchmark?

Based on Bessemer Venture Partners and OpenView industry data: 80%+ Gross Margin: Elite SaaS tier. 70% to 80%: Healthy baseline standard for pure-play B2B software. 60% to 70%: Moderate (often seen in AI-heavy SaaS with large API bills). Below 60%: High delivery drag indicating heavy professional services overhead.

How is SaaS Gross Margin calculated?

Formula: Gross Margin (%) = ((Monthly Recurring Revenue − Total Monthly COGS) / MRR) × 100. On $100,000 MRR with $20,000 in direct delivery COGS, the gross profit is $80,000, yielding an 80% Gross Margin.

Why do venture capital investors scrutinize SaaS Gross Margins?

Gross Margin directly reflects software scalability: An 80% margin ensures 80 cents of every incremental revenue dollar flows to fund R&D and customer acquisition. Low-margin software businesses trade at severe discounts on ARR valuation multiples.

How can SaaS founders reduce unit COGS per customer?

Primary operational levers include: 1. Purchasing AWS/GCP Reserved Instances and optimizing container autoscaling. 2. Scaling self-serve onboarding and AI knowledge bases to minimize live support headcount. 3. Caching repetitive LLM API responses.