Invite-only betaFirst 100 SaaS founders: 3 months freeNo credit card · Zero dark patterns
BoolBul
BOOLBUL.The Retention Interceptor
09100% Free · Browser Native · Zero Sign-up

SaaS Gross Margin & COGS Calculator

Calculate your SaaS gross margin percentage after deducting hosting, customer support, and payment processing COGS. Free interactive tool.

Interactive CalculatorReal-time browser computation
$
$
$
$

Calculated Results

Gross Margin

83.3%

Gross Profit Dollars

$33,300

Total COGS

$6,700

About this tool

Gross margin measures the percentage of revenue remaining after deducting the direct Cost of Goods Sold (COGS) required to deliver your software service to customers. For pure software companies, high gross margins—typically between 75% and 85%—are the foundational superpower of the SaaS business model, leaving substantial profit to fund product development and marketing. However, with the rise of third-party AI APIs (OpenAI, Anthropic), complex cloud infrastructure (AWS, Cloudflare), customer support staffing, and merchant payment fees, SaaS COGS can quickly inflate if left unmonitored. Accurately segregating COGS from operating expenses (OpEx) is crucial for accurate financial reporting and investor diligence. Use this calculator to determine your true gross margin.

How It Works

  1. 1Input your total monthly subscription revenue.
  2. 2Input direct hosting and cloud infrastructure costs (AWS, Cloudflare, database hosting).
  3. 3Input direct customer support payroll and tooling allocated to servicing active accounts.
  4. 4Input merchant payment processing fees (Stripe, Dodo Payments).
  5. 5Inspect your calculated gross profit in dollars, gross margin percentage, and total COGS breakdown.

Formula & Math

Transparent Logic
Gross Margin (%) = ((Total Revenue - Total COGS) / Total Revenue) × 100

Worked Practical Example

A SaaS generates $50,000/mo. COGS: $4,000 hosting, $3,000 customer support, $1,500 payment fees ($8,500 total).

Calculation / Steps

Gross Profit = $50,000 - $8,500 = $41,500. Margin = ($41,500 / $50,000) × 100 = 83.00%.

Expected Result

83.00% gross margin ($41,500 gross profit; $8,500 COGS).

Frequently Asked Questions

What should be categorized as COGS in SaaS?+

Direct cloud hosting, third-party API query costs, customer support agent salaries, merchant processing fees, and software used directly to deliver the product.

Are software engineers included in COGS?+

No. Core software engineers building new features belong in Research & Development (R&D) under Operating Expenses (OpEx). Only site reliability engineers (SRE) maintaining live uptime are occasionally allocated to COGS.

What is an acceptable gross margin for venture-backed SaaS?+

Target 80%+ for pure software. SaaS products with heavy third-party AI LLM API costs often operate between 65% and 75%.

BoolBul Retention Engine

Automate retention on your cancel button

BoolBul is ultra-lightweight and computes entirely in the browser, adding zero server overhead or third-party AI costs to your COGS.

From the MIACIA Studio Journal