How to Calculate Gross Margin for a SaaS Company
To calculate the 매출 총 이익 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 및 product scalability.
Following this guide provides the needed formula, expense categories, and process to generate standardized financial metrics.
개념 스냅샷
-
카테고리: 재무 관리
-
사용 대상: SaaS platforms, digital providers
-
주요 목적: Measure service delivery efficiency
-
관련 개념: SaaS 매출 총이익, SaaS 매출원가, SaaS 재무 관리, SaaS 가치 평가
-
성장 단계: Early stage to scale
Calculate Total Recognized Revenue
Gather all revenue streams earned during the accounting period using standard GAAP 수익 인식은 규칙. 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 |
| 구독 수익 | 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 |
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.
If a business makes $120,000 upfront for an annual contract in addition to a one-time fee of $30,000 for a completed migration, there will be a total recognized revenue equal to $10,000 (subscription) in one month plus $30,000 (services), totaling $40,000. In the second month, however, recognized revenue will return to $10,000.
Free SaaS Gross Margin Calculation & COGS Audit Checklist
Audit your SaaS cost of goods sold and calculate gross margin accurately with this free checklist.
-
Complete COGS expense inclusion and exclusion criteria
-
Step-by-step GAAP revenue recognition audit workflow
-
Formula breakdown for subscription and services margins
-
Quarterly expense reallocation framework for CS teams
Sum the Direct Cost of Goods Sold (COGS)
Add every direct cost required to deliver and maintain the production software.
Include 클라우드 인프라 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.
In an audit documented by Fiscallion CEO Aleksandar Stojanovic, a B2B 소프트웨어 company generating $14 million in annual recurring revenue reclassified $420,000 in implementation labor from operating expenses into COGS. This correction brought their direct delivery expenses to $4.34 million for the designated period.
~에 따르면 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 |
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.
-
Complete COGS expense inclusion and exclusion criteria
-
Step-by-step GAAP revenue recognition audit workflow
-
Formula breakdown for subscription and services margins
-
Quarterly expense reallocation framework for CS teams
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 재무 성과. 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% ARR 배수 compared to businesses operating under 70%.
| 사업 단계 | 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%+ |
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.
A company generates $500,000 in monthly revenue with $150,000 in COGS. Subtracting COGS yields a gross profit of $350,000. Dividing $350,000 by $500,000 produces a 70% gross margin, meaning $0.70 of every revenue dollar remains to fund operating costs.
To select the right evaluation strategy for your business, evaluate these four self-assessment questions before running your calculations:
- 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.
- 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.
- 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.
- 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.
-
Complete COGS expense inclusion and exclusion criteria
-
Step-by-step GAAP revenue recognition audit workflow
-
Formula breakdown for subscription and services margins
-
Quarterly expense reallocation framework for CS teams
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 |
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.
A business earns $400,000 in subscriptions (COGS: $40,000) and $100,000 in custom setup (COGS: $70,000). The subscription margin is 90%, and the services margin is 30%. Combining them produces a 74% blended margin, masking the 90% software performance.
- 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.
결론
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.
시작할 준비가 되셨나요?
저희는 고객님과 같은 상황을 경험했습니다. 20년 이상의 경험을 공유하여 고객님의 글로벌 꿈을 현실로 만들어 드리겠습니다.
FAQ
-
A solid SaaS company aiming for a strong gross margin would usually fall between 70% and 85%, with top-tier companies reaching 80% or higher. Early-stage startups typically operate with margins in the range of 60% to 70%, a level influenced by initial setup costs and cloud hosting configurations that are not yet fully optimized. The growth of customer volume, in the presence of operating leverage, can influence the margin’s position relative to industry benchmarks.
-
SaaS COGS includes all direct expenses required to host, maintain, and deliver the live software to existing customers. Primary costs consist of cloud hosting infrastructure (such as AWS or Google Cloud), embedded third-party APIs, data storage, and customer support salaries. It also incorporates implementation labor and DevOps personnel who maintain platform uptime.
-
No, core product R&D and new feature engineering should be classified under operating expenses (OpEx) rather than COGS. COGS accounts only for ongoing delivery and maintenance expenses required to serve current paying clients. Costs associated with developing future product capabilities are categorized as Research & Development, given their potential impact on subsequent periods.
-
The payroll allocation for the customer success team depends on the team’s primary daily responsibilities. CS professionals focused primarily on onboarding, technical support, education and account retention belong in COGS because their efforts are essential to service delivery. However, those members of the team that are dedicated to upsells, cross-sells, contract renewals and the like should have their compensation classified under sales operating expenses.
-
Yes, gross profit is an absolute currency dollar value that comes by subtracting total COGS from total recognized revenue, whereas gross margin shows that relationship as a percentage which is calculated by dividing gross profit by total revenue and multiplying by 100. Simply put, gross profit shows the total dollar contribution left to fund operations, and gross margin standardizes efficiency for comparison across companies of different sizes.
-
Investors view gross margin as a primary indicator of product scalability and unit economic health. The gross margin influences the allocation of funds from each incremental dollar of recurring revenue towards sales, marketing, product and expansion. Consequently, software businesses with higher gross margins command higher valuation multiples during fundraising and acquisition processes.
-
Professional services, such as custom implementation or consulting, typically deliver lower margins (20% to 35%) than recurring software subscriptions (80%+). The combination of these two streams can affect a company’s overall gross margin and may obscure the profitability of the product. To present clean unit economics, software businesses should calculate and report subscription margin and services margin separately.
-
SaaS companies can improve gross margins by optimizing cloud infrastructure through right-sizing server capacity and eliminating idle resources. Negotiating vendor pricing for embedded APIs and enforcing strict pricing floors on professional services will directly reduce COGS relative to revenue. Additionally, automating customer onboarding can minimize COGS.