SaaS is a competitive sector, so finding ways to win on gross margin is increasingly crucial. By finding sustainable strategies that either increase your revenue or minimize your cost of goods sold (COGS), your SaaS company can gain a competitive advantage.
Every SaaS brand wants to be profitable, but the definition of profitability varies greatly. The gross margin measures the difference between the revenue generated from a product (in this case, the software) and the costs associated with its production and delivery.
The gross margin provides a focused approach to evaluating the profitability of a product. In this article, weâll share what you need to know about SaaS gross margin and how you can improve yours.
What Is SaaS Gross Margin?
SaaS Gross Margin â also referred to as SaaS gross profit margin â represents the difference between revenue and the cost of goods sold (COGS). For SaaS companies, revenue â defined as positive income from the sale of goods or services â is typically generated from the sale of software or software subscriptions.Â
COGS is a term used to describe the direct costs associated with producing and distributing the corresponding product(s).
Usually, the term âgross marginâ refers to all revenues and direct production and distribution expenses accrued by a company over a specific period. However, gross margin can also be itemized by different sectors, different products, and other variables, thus allowing for direct comparisons.
SaaS Gross Margin is different from the commonly used âprofit marginâ because while profit margin simply compares revenues and expenses, gross margin only accounts for the expenses accrued from selling an additional unit of a good or service. Fixed costs, such as office space and (some) salaries, are excluded from the gross margin calculation.
Essentially, looking at the gross margin can help answer the question, âIf we were to produce and sell one additional unit, how much revenue would we generate and how much more money would we need to spend?â
There are two ways to calculate gross margin. A unit margin tells you how much you can make in dollars by selling one more unit, while a margin percentage tells you how much you can make per dollar by selling one more unit (margin as a ratio).
Report
Finance needs to prove AIâs return: CloudZero report
260 senior finance leaders (more than half CFOs) told us why the speed of seeing AI spend, not the size of it, separates who pulls ahead on AI from who gets burned.
Why Is SaaS Gross Margin Important to Monitor?
Paying close attention to gross margins is especially important in the SaaS industry, where many businesses have a lifecycle and profit structure that differ notably from those of their more traditional counterparts. Some reasons it is crucial to track your SaaS gross margin include:
The net profit margin isnât always ideal for SaaS
For example, in SaaS, the costs of delivering a product from conception to the end-user are usually heavily concentrated upfront (particularly in Research and Development). That means, only looking at the net profit margin might not accurately illustrate the companyâs true earning potential.
The digital, pseudo-physical nature of the âproductâ (software subscription) also yields a situation in which it makes more sense to separate fixed costs and costs categorized in the actual selling of goods (COGS).
It can help you calculate your cost of goods sold accurately
Many SaaS companies report weaker margins because they overreport their COGS. As weâll see in the next section about how to calculate your SaaS gross margin, you have to accurately consider what to include as your COGS and what to exclude, if you are to find your true SaaS gross margin figure.
If you are wondering what really counts as COGS for SaaS, check out our guide on What To Consider In Your Cost Of Goods Sold.
It helps assess a companyâs scalability potential
Once you are forced to understand your COGS, youâll know metrics such as your per-unit costs. Modern cloud cost optimization platforms, such as CloudZero, enable you to view cloud costs in granular SaaS dimensions, including Cost per Customer.
Using this example, you can use your Cost per Customer metric to answer questions such as:
- If we onboard 10 more customers tomorrow, how will our costs change?
- How should we set our pricing to protect our margins?
- What kind of discounts can we afford to give our customers to encourage signups and renewals without eating into our margins?
Check out our guide to the Common Cloud Cost Questions To Expect From Finance to see how understanding your COGS and SaaS gross margin can give you the answers you need.
Your SaaS gross margin impacts your valuation and investor attractiveness
It is essential to note that even a slight margin of a few percentage points can have a significant impact on a companyâs valuation. In turn, an undervaluation can impact your ability to attract investors to finance your growth. And this can hurt your overall growth and success.
An interesting chart we got from Villie Itche of Two Sigma Ventures shows how gross margins correlate with valuation.

It more accurately illustrates a companyâs sustainability potential
Furthermore, many SaaS companies start operating with significant losses, hoping to overcome them in the future. The question that leadership needs to ask is, âIf we were to keep expanding and selling more of our product, could we sustain our business model?â
This is not a question that can always be answered by the net profit margin, especially in a SaaS companyâs earlier years. The SaaS Gross Margin, on the other hand, can help illustrate the organizationâs sustainability potential.
Hereâs an example.
If gross margins are low (or even negative), this means that even in the âbest-case scenarioâ, the business will continue facing financial challenges.
On the flip side, the more a business can do to widen the gap between marginal revenue and marginal COGS, the better positioned that business will be.
Investors use the SaaS gross margin to gauge the suitability for financing
Additionally, Gross Margin is one of the first metrics that banks, venture capitalists, angel investors, and other individuals consider when making critical funding decisions.
It is a measure of a SaaS companyâs profitability potential and, therefore, its ability to generate a good return on investment. Investors also often evaluate gross margin alongside metrics like the rule of 40 when assessing overall financial health.
On the margin, excelling in this component of your income statement can help your company distinguish itself from possible alternatives or competitors.
Related read: Critical SaaS Metrics To Monitor For Success
How To Calculate SaaS Gross Margin
Calculating your SaaS gross margin percentage is relatively simple:

Gross Margin Percentage = (Revenue â COGS)/(Revenue) x 100 percent
It is very similar to many other common ratios, including the formula for calculating net profit margin. But letâs break down its components real quick:
Revenue
Revenue for a SaaS company refers to the total income generated from its subscription-based software services. This income typically arises from monthly or annual subscription fees that its subscribers/users pay.
In the context of SaaS gross margin calculation, this revenue is crucial because itâs compared against the direct costs of delivering the service (such as hosting, support, and license fees) to determine the efficiency and profitability of the companyâs SaaS business model.
COGS
Cost of Goods Sold represents the direct costs associated with delivering digital services to customers. These costs include server costs, software licensing fees, and direct support and customer service costs.
When calculating your SaaS gross margin, deduct COGS from revenue to assess your gross profit. This is an indicator of how efficiently the company produces its software products or services.
Examples of costs included in COGS are hosting expenses and salaries for customer support. Costs not included are marketing, sales, and research and development expenses. Learn more about what to account for in COGS (and what not to report) in our guide here.
So, what does the SaaS gross margin say?
SaaS gross margin can be positive or negative (though it is usually positive). When the margin is negative, it means that the cost of creating and delivering a product exceeds the revenue it generates from sales.
As suggested, some managers also like to look at the unit margin in addition to the gross margin. The formula for calculating the unit margin is:
Unit Margin = Selling Price â Cost Per Unit
Once again, this metric can yield a negative number; likewise, a negative value likely indicates something is wrong with the company.
Knowing how to calculate and interpret the gross margin makes it easier for leadership to make informed, profitable decisions.
When the difference between revenue and COGS is high, this suggests that the company is currently operating a high markup. The combination of higher markups and higher sales volume can maximize profit.
Example SaaS gross margin calculation
Letâs use a Company Xâs financials for a given period (and no, we arenât referring to Muskâs new acquisition here):
1. Revenue: Company X earns $500,000 from its subscription-based software services.
2. Cost of Goods Sold (COGS):
Hosting Costs: $50,000
Software Licensing Fees: $20,000
Customer Support Salaries: $30,000
Total COGS: $50,000 (Hosting) + $20,000 (Licensing) + $30,000 (Support) = $100,000
Calculating Xâs SaaS Gross Margin:
1. Gross Profit: Revenue â COGS = $500,000 â $100,000 = $400,000
2. Gross Margin Percentage: Gross Profit/Revenue âÃ100 = ($400,000/$500,000) X 100 = 80%
From this example, we can see that Company Xâs SaaS gross margin is 80%. This indicates that after subtracting the direct costs of delivering its service, Company X retains 80% of its revenue as gross profit, which is a healthy margin in the SaaS industry.
SaaS Gross Margin Benchmarks: What’s The Ideal Target?
In 2026, most SaaS companies operate with gross margins between 70% and 85%, with best-in-class firms closer to 80% or more. Startups often see lower margins (around 50%) until they gain scale.
Benchmarks can vary widely by product and business model. Complex, infrastructure-heavy platforms usually face higher COGS than lightweight apps. Enterprise SaaS often spends more on onboarding and support, while self-serve tools scale more efficiently.
Pricing models also matter â usage-based revenue can carry different margin dynamics than seat-based licensing. Learn more about SaaS pricing models here.
5 Ways To Improve Gross Margin
Now that you know how to calculate gross margin, you can have a better understanding of your companyâs current financial and operational situation.
However, understanding how to calculate gross margins is one thing; knowing how to improve gross margins is another.
The best ways to improve gross margins will depend on your companyâs stage in the business cycle, its size and structure, its target market, and numerous other factors.
However, even keeping these nuances in mind, there are still a few things that virtually all SaaS organizations can do to increase gross margins:
1. Measure and monitor cloud costs
As a SaaS enterprise, your access to and implementation of cloud technology and data can help you establish a competitive edge.
In addition to gross margin, several broader metrics will need to be monitored, including cost per transaction, lifetime customer value, and others.
Using platforms like CloudZero makes it easier to take a deep dive into your cloud usage, map costs to products and features, and develop a sustainable, high-yielding business model.
2. Restructure payment
When all else is equal, your business would obviously prefer to be paid today rather than a year from now.
Finding ways to encourage upfront payment (such as discounts or âbonusâ features), rather than defaulting to monthly payments, will accelerate your cash flow cycles and provide the capital you need to advance gross margins.
Additionally, decreasing the âtrial periodâ will also help your margins. The difference between a 15-day and 30-day trial may not affect subscription rates, but it can affect your cash flow cycle.
3. Itemize cost of goods sold (COGS)
The term âcost of goods soldâ encompasses various expenses. On any given income statement, there are potentially many different expenses that can be bundled, reduced, or eliminated outright.
Itemizing the broader categories makes it easier to spot potential opportunities. If you have not taken a deep dive into your financials this year, it might be time to take a look.
4. Expand markets
Because your company relies on a subscription model, it can be challenging to sell to existing clients. Rather than focusing on your current network, it may be helpful to look outward in search of new opportunities.
Implementing an international, digital, and multifaceted marketing campaign can help increase exposure and lead to more conversions.
Offering specialized versions of your existing product (e.g., enterprise, platinum, office, student) can also help increase your reach.
5. Use creative marketing techniques
The more your business can do to increase revenue without significantly increasing COGS, the better your gross margin will be. Many short-term marketing techniques have proven to be effective.
Creating a referral program, expanding your social media presence, implementing a content marketing campaign, and investing in better branding can all deliver real results.
Optimize COGS And Improve Your SaaS Gross Margin The Smarter Way
While there is no way to âautomaticallyâ improve your SaaS gross margins, there are certainly several steps you could take to put your enterprise in a much better position.
Your gross margin calculation, after all, is simply a derivative of revenues and the costs of goods sold. Any measure you can take to increase revenues or reduce your cost of goods sold will lead to an improvement.
For SaaS companies, cloud costs are a large component of COGS.
To design architectures that maximize profitability, you will need a strong understanding of how much you spend on specific cloud services and how those costs translate to your business (e.g., how much your features or products drive your cloud costs or how much it costs you to serve specific customers).
Contemporary cloud cost management tools focus on total and average costs; they donât help you understand your per-unit costs. This is where a robust cloud cost optimization platform, such as CloudZero, can be particularly helpful.
CloudZeroâs Cloud Cost Intelligence approach empowers you to:
Get hourly, granular, and immediately actionable insights into your cloud costs, such as cost per customer, cost per team, cost per software feature, and cost per environment.

Having a clear understanding of who, what, and why your cloud costs are changing allows you to optimize usage and avoid overspending (which reduces your SaaS gross margin).
Allocate 100% of your cloud spend in minutes or a few hours, regardless of the complexity of your cloud environment.
By doing this, you can immediately begin to understand your cost drivers (COGS) and how they impact revenue generation. Understanding your Cost per Feature, for instance, can help you determine if a feature is profitable or if you should repurpose, refactor, or decommission it to prevent it from eroding your margins.
Use the cost per customer metric to pinpoint your most profitable and most expensive customers.

To maximize your margins, you can then focus more on profitable segments and less on expensive ones. Or, at renewal, you can revise the contracts of your most costly customers to better reflect the value you deliver (improving your gross margin).
Companies like Remitly, Wise, and MalwareBytes use CloudZero to understand their unit economics, such as cost per customer. You can, too.
to see how CloudZero helps you make sense of and improve your SaaS gross margin.