{
  "slug": "saas-gross-margin",
  "title": "SaaS Gross Margin Calculator",
  "heading": "SaaS Gross Margin Calculator (with Cloud Costs)",
  "category": "financial",
  "url": "https://www.revenuelab.fyi/toolbox/saas-gross-margin",
  "summary": "Calculate true gross margin including hosting, support, and infrastructure costs.",
  "description": "SaaS gross margin subtracts cost of goods sold — cloud hosting/infrastructure, customer support, implementation, and any third-party licensing costs directly tied to serving customers — from revenue, and it's one of the most closely watched metrics by investors because it caps how profitable the business can ever become at scale. Best-in-class SaaS companies run 75-85% gross margin; AI-heavy products with meaningful inference or compute costs per user often run lower, 50-70%, because the marginal cost of serving each customer is materially higher than a traditional multi-tenant SaaS app; anything under 60% for a non-AI product usually signals either an inefficient infrastructure setup or a services-heavy delivery model that hasn't been productized. Gross margin trends matter as much as the absolute number — a company whose margin is expanding as it scales (from infrastructure efficiency, from moving customers to self-serve support, from renegotiating cloud contracts) is on a healthy trajectory, while compressing margin at scale is a red flag that costs are growing faster than the efficiencies of scale should allow.",
  "formula": "Gross Margin % = (Revenue − COGS) ÷ Revenue × 100, where COGS = Hosting + Support + Implementation + Third-Party Licensing",
  "dateModified": "2026-09-30",
  "run_url": "https://www.revenuelab.fyi/api/public/calc?tool=saas-gross-margin",
  "inputs": [
    {
      "id": "revenue",
      "label": "Monthly revenue",
      "kind": "number",
      "hint": null,
      "default": 500000,
      "unit": "$",
      "min": 1,
      "max": null
    },
    {
      "id": "hostingCost",
      "label": "Monthly hosting/infrastructure cost",
      "kind": "number",
      "hint": null,
      "default": 55000,
      "unit": "$",
      "min": 0,
      "max": null
    },
    {
      "id": "supportCost",
      "label": "Monthly customer support cost",
      "kind": "number",
      "hint": null,
      "default": 35000,
      "unit": "$",
      "min": 0,
      "max": null
    },
    {
      "id": "implementationCost",
      "label": "Monthly implementation/onboarding cost",
      "kind": "number",
      "hint": null,
      "default": 15000,
      "unit": "$",
      "min": 0,
      "max": null
    },
    {
      "id": "thirdPartyLicensing",
      "label": "Monthly third-party licensing/API costs",
      "kind": "number",
      "hint": null,
      "default": 20000,
      "unit": "$",
      "min": 0,
      "max": null
    }
  ],
  "outputs": [
    {
      "id": "grossMargin",
      "label": "Gross margin",
      "format": "percent",
      "hint": null,
      "primary": true
    },
    {
      "id": "grossProfit",
      "label": "Monthly gross profit",
      "format": "currency",
      "hint": null,
      "primary": false
    },
    {
      "id": "annualGrossProfit",
      "label": "Annualized gross profit",
      "format": "currency",
      "hint": null,
      "primary": false
    },
    {
      "id": "cogsAsShareOfRevenue",
      "label": "Total COGS as % of revenue",
      "format": "percent",
      "hint": null,
      "primary": false
    }
  ],
  "worked_example": {
    "inputs": [
      "Monthly revenue: 500000 $",
      "Monthly hosting/infrastructure cost: 55000 $",
      "Monthly customer support cost: 35000 $",
      "Monthly implementation/onboarding cost: 15000 $",
      "Monthly third-party licensing/API costs: 20000 $"
    ],
    "outputs": [
      "Gross margin: 75.0%",
      "Monthly gross profit: $375,000",
      "Annualized gross profit: $4,500,000",
      "Total COGS as % of revenue: 25.0%"
    ]
  },
  "how_to": {
    "title": "How to use this",
    "steps": [
      "Enter monthly revenue ($).",
      "Enter monthly hosting/infrastructure cost ($).",
      "Enter monthly customer support cost ($).",
      "Enter monthly implementation/onboarding cost ($).",
      "Enter monthly third-party licensing/api costs ($).",
      "Read your gross margin on the right — it updates as you type.",
      "Hit Share to keep the scenario or send it to someone."
    ]
  },
  "scenarios": [
    {
      "name": "Conservative",
      "description": "Lower-end numbers — what if things land soft?",
      "values": {
        "revenue": 300000,
        "hostingCost": 33000,
        "supportCost": 21000,
        "implementationCost": 9000,
        "thirdPartyLicensing": 12000
      }
    },
    {
      "name": "Typical",
      "description": "Defaults — the most common real-world setup.",
      "values": {
        "revenue": 500000,
        "hostingCost": 55000,
        "supportCost": 35000,
        "implementationCost": 15000,
        "thirdPartyLicensing": 20000
      }
    },
    {
      "name": "Ambitious",
      "description": "Higher-end numbers — what if things really pop?",
      "values": {
        "revenue": 800000,
        "hostingCost": 88000,
        "supportCost": 56000,
        "implementationCost": 24000,
        "thirdPartyLicensing": 32000
      }
    }
  ],
  "limitations": [
    "Results are estimates before tax, fees, and inflation unless an input explicitly covers them.",
    "Rates are treated as fixed for the whole period — variable-rate products will drift from this projection.",
    "This is educational maths, not financial advice. Check anything contractual with the lender or your accountant."
  ],
  "faq": [
    {
      "q": "What counts as SaaS COGS versus operating expense?",
      "a": "COGS is any cost directly tied to delivering the product to a paying customer: hosting/cloud infrastructure, customer support, implementation/onboarding labor, and third-party API or licensing fees embedded in the product. Sales, marketing, and general R&D that isn't customer-specific belong in operating expenses, not COGS."
    },
    {
      "q": "What's a good gross margin benchmark?",
      "a": "75-85% is the classic healthy range for traditional multi-tenant SaaS. AI products with real inference costs per query often run 50-70% and that's increasingly seen as acceptable given the category, as long as margin is trending up with scale and model-cost optimization, not flat or declining."
    },
    {
      "q": "Why is margin trend more important than the snapshot number?",
      "a": "A single quarter's gross margin doesn't tell you whether the cost structure scales well. Improving margin over time signals infrastructure efficiency gains and successful cost management; flat or declining margin at growing scale suggests costs are outpacing the efficiencies you'd expect from higher volume, which erodes long-term profitability potential."
    },
    {
      "q": "How do implementation costs distort gross margin for enterprise deals?",
      "a": "Heavy, custom implementation work for large enterprise deals can look like a one-time cost but often recurs every renewal cycle with account changes, and if it's not amortized properly it can make gross margin look artificially healthy in the deal's first year and artificially weak whenever a wave of new large deals closes simultaneously."
    }
  ],
  "related": [
    "https://www.revenuelab.fyi/toolbox/ltv-to-cac-ratio",
    "https://www.revenuelab.fyi/toolbox/cac-payback-period",
    "https://www.revenuelab.fyi/toolbox/rule-of-40"
  ],
  "license": "CC-BY-4.0",
  "citation": "RevenueLab — SaaS Gross Margin Calculator (https://www.revenuelab.fyi/toolbox/saas-gross-margin)"
}