Obraz mozaikowy

How to Calculate Gross Margin for a SaaS Company

Autor: Maddalena Ferracin

Sprawdzono przez: Guy Zinger, Dyrektor ds. Przychodów (CRO)

To calculate the marża brutto for a SaaS company, you should first subtract the total cost of goods sold from total revenue, then divide the result by total revenue, and multiply by 100. This mathematical calculation measures the percentage of revenue remaining after covering direct service delivery expenses. Monitoring this financial figure provides information regarding operational performance oraz product scalability.

Following this guide provides the needed formula, expense categories, and process to generate standardized financial metrics.

Zarys koncepcji

Krok 1

Calculate Total Recognized Revenue

Gather all revenue streams earned during the accounting period using standard GAAP Rozpoznanie przychodu reguły. Include recurring subscription fees, usage-based consumption, API add-ons, and professional service charges.

 

There is some evidence from KeyBanc Capital Markets that shows software businesses track subscription revenue and professional services revenue as separate line items. For example, if a business recognizes $500,000 in monthly subscription revenue and $50,000 in custom onboarding services, the total revenue figure equals $550,000.

 

Under GAAP rules, you only recognize revenue as services that are delivered rather than when cash is collected. If a customer signs a $12,000 annual contract upfront, you recognize $1,000 each month over the 12-month period rather than booking the full sum immediately.

 

Revenue Category Example Components Recognition Method
Przychody z subskrypcji Monthly/annual recurring fees, seat upgrades Recognized monthly over term
Usage Revenue Data bandwidth, API call volume, transaction fees Recognized upon consumption
Professional Services Custom onboarding, integrations, training Recognized as work is completed
Add-Ons & Extras Premium SLA support, custom domain hosting Recognized monthly over term
Uwaga

You should not mix fees from custom development or non-recurring setup charges with your recurring subscription revenue line. Maintaining their separation contributes to distinct product-related figures, which may be relevant for future audits.

Free SaaS Gross Margin Calculation & COGS Audit Checklist

Audit your SaaS cost of goods sold and calculate gross margin accurately with this free checklist.

  • Znacznik wyboru

    Complete COGS expense inclusion and exclusion criteria

  • Znacznik wyboru

    Step-by-step GAAP revenue recognition audit workflow

  • Znacznik wyboru

    Formula breakdown for subscription and services margins

  • Znacznik wyboru

    Quarterly expense reallocation framework for CS teams

Pobierz BEZPŁATNĄ listę kontrolną
Krok 2

Sum the Direct Cost of Goods Sold (COGS)

Add every direct cost required to deliver and maintain the production software.

Include infrastrukturę chmury hosting (AWS, Google Cloud), third-party software licenses embedded in product delivery, customer support team salaries, and DevOps personnel maintaining uptime. Exclude sales commissions, marketing campaign spend, product R&D, and general administrative overhead.

Uwaga

Według CloudZero, for over 20% of engineering teams, the distinction between cloud infrastructure resources serving live production customers and those serving internal development staging environments is not consistently apparent. 

 

Included in SaaS COGS Excluded from SaaS COGS (OpEx)
Production hosting (AWS, Azure, GCP) Sales commissions and AE salaries
Embedded APIs (Twilio, Cloudflare) Marketing campaign spend
Customer support & onboarding labor Product feature development (R&D)
DevOps & uptime engineering labor Legal, HR, and executive salaries
Wskazówka

Use the “app access test” when categorizing ambiguous expenses. Evaluate the relationship between payment of this invoice and existing customers’ access to functional software. If the answer is yes, record it in COGS.

Free SaaS Gross Margin Calculation & COGS Audit Checklist

Audit your SaaS cost of goods sold and calculate gross margin accurately with this free checklist.

  • Znacznik wyboru

    Complete COGS expense inclusion and exclusion criteria

  • Znacznik wyboru

    Step-by-step GAAP revenue recognition audit workflow

  • Znacznik wyboru

    Formula breakdown for subscription and services margins

  • Znacznik wyboru

    Quarterly expense reallocation framework for CS teams

Pobierz BEZPŁATNĄ listę kontrolną
Krok 3

Apply the Gross Margin Formula

Insert the calculated revenue and expense totals into the gross margin formula:

Gross Margin (%) = [(Total Revenue – COGS) / Total Revenue] x 100

 

To illustrate this, a company with $1,000,000 in total revenue and $250,000 in COGS would be calculated as follows:

[(1,000,000 – 250,000) / 1,000,000] x 100 = 75%

 

Learning how to calculate gross margin provides a baseline for evaluating wyniku finansowego. Mature software businesses average gross margins between 70% and 85% according to a report from OpenView SaaS Benchmarks.

Research from Graphite Financial shows that software companies maintaining margins above 85% achieve a 27% mnożnik ARR compared to businesses operating under 70%.

 

Etap działalności Average ARR Range Expected Gross Margin Range
Seed / Early Stage Under $1M ARR 60% – 70%
Series A / Growth $1M – $5M ARR 65% – 75%
Late Growth $5M – $20M ARR 70% – 80%
Scale / Pre-IPO $20M+ ARR 75% – 85%+
Uwaga

Gross profit is expressed in raw currency dollars (Revenue-COGS), while gross margin is expressed as a percentage of overall revenue. Investors evaluate both metrics when assessing efficiency.

To select the right evaluation strategy for your business, evaluate these four self-assessment questions before running your calculations:

  1. Does customer onboarding require manual setup or white-glove engineering? If manual labor is involved, evaluate subscription and services margins separately to prevent high service costs from masking core product performance.
  2. Do software feature usage patterns directly drive cloud server costs? High compute workloads require tracking COGS on a per-customer basis to identify unprofitable customer accounts early.
  3. Does your customer success team handle both retention support and sales upsells? Staff splitting duties requires allocating employee payroll expenses proportionally between COGS and sales operating expenses based on actual hours worked.
  4. Are your cloud software vendors billing on usage tiers or flat annual commitments? Volatile vendor costs require running three-month and six-month trailing averages to smooth out sudden billing spikes.

Free SaaS Gross Margin Calculation & COGS Audit Checklist

Audit your SaaS cost of goods sold and calculate gross margin accurately with this free checklist.

  • Znacznik wyboru

    Complete COGS expense inclusion and exclusion criteria

  • Znacznik wyboru

    Step-by-step GAAP revenue recognition audit workflow

  • Znacznik wyboru

    Formula breakdown for subscription and services margins

  • Znacznik wyboru

    Quarterly expense reallocation framework for CS teams

Pobierz BEZPŁATNĄ listę kontrolną
Krok 4

Separate Subscription and Service Margins

Calculate margins for individual revenue streams to isolate product profitability from high-touch services. Apply the formula separately to subscription revenue using hosting and customer support costs, while applying it to professional services revenue using implementation labor costs. 

 

Evaluating how to calculate gross margin for a SaaS company (not applicable to physical hardware lines) ensures that low-margin implementation services do not obscure high-margin software subscriptions. Professional services typically run lower margins between 20% and 35%, whereas subscription software targets margins above 80%. When both streams are consolidated into one calculation, it can be more challenging to determine the scaling efficiency of your core software.

 

Revenue Stream Typical Gross Margin Target Primary Cost Drivers
Pure Subscription 80% – 90% Cloud hosting, automated support, embedded APIs
Professional Services 20% – 35% Implementation labor, consulting, custom setup
Blended Total 70% – 85% Weighted combination of software and labor costs
Wskazówka

Aim to price professional onboarding services at a minimum of 2.0x to 2.5x the fully burdened labor cost of the implementation team to prevent services from eroding total profitability.

Troubleshooting Common Calculation Problems
  • Varying the classification of customer success salaries between operating expenses and COGS across financial quarters can introduce variations in reporting trends. Document a formal expense classification policy and apply it consistently during every monthly close.
  • The practice of integrating staging and R&D server expenditures into production hosting may contribute to a larger calculation of COGS. Separate development cloud invoices from production hosting bills to maintain accurate direct costs.
  • The time of customer success employees is often distributed between product support and expansion sales activities. Allocate payroll expenses based on documented time tracking between COGS and sales operating expenses.

Wniosek

Calculating SaaS gross margin involves subtracting direct service delivery expenses from total revenue and expressing the result as a percentage.

Separating subscription revenue from professional services identifies specific profit drivers across distinct business activities.

Standardizing expense categorization across reporting periods yields reliable financial data for internal forecasting and investor due diligence.

Gotowy do rozpoczęcia?

Byliśmy tam, gdzie Ty. Podzielmy się naszym ponad 20-letnim doświadczeniem i urzeczywistnijmy Twoje globalne marzenia.

 

Obraz mozaikowy

FAQ

pl_PLPolski