AI costs and cloud spending are reshaping software economics, making sustainable margins a crucial test for SaaS growth and scalability.
SaaS companies with highest gross margins are getting all the attention because of the balancing act that software companies have to achieve in 2026 between growth, artificial intelligence expenditures, cloud expenses and becoming efficient. The reason for their popularity is easy to understand. A SaaS can be produced once and sold to thousands of people without any production cost.
The margins cannot be taken for granted. Expenses such as hosting costs, customer support, third party services, data and AI processing cost could easily turn out to be expensive. The gross margins are a great starting point for understanding operational efficiency.
According to recent benchmark figures of 342 B2B SaaS and AI-native businesses, the software gross margin is 80%, measured on software sales. Public companies have a software gross margin of 74.4%, based on the figures of 159 SaaS businesses measured by SaaSDB. Both benchmarks are helpful, although they are not quite the same thing.
What is a good SaaS gross margin?
Gross margin for SaaS companies is the portion of sales revenue that remains after the direct expenses of providing the company’s service have been deducted. It answers a basic question: how much money is left after serving customers and before operating expenses? For example, if a SaaS business has revenues of $10 million and direct delivery costs are $2 million, gross profit will be $8 million with gross margins at 80%. This does not mean that the net profit is 80%, since there are still operating expenses to be incurred.
How are SaaS revenue and gross profit different?
The SaaS revenue is the income generated through subscriptions, usage fees, licenses and other services. The gross profit is the amount that results from deducting the cost incurred from generating that revenue. Revenue is capable of expanding rapidly while gross profits expand more slowly. This comparison provides a better understanding of business economics.
How is SaaS gross margin calculated?
The standard formula is:
SaaS gross margin = (Revenue − Cost of Goods Sold) ÷ Revenue × 100
If revenue is $5 million and COGS is $1 million, gross profit is $4 million and gross margin is 80%. The challenge is deciding which costs belong in COGS.
In case of SaaS businesses, direct costs like cloud infrastructure, hosting, bandwith, storage, payment gateway and customer service along with some delivery costs can be included. Selling & marketing expenses, administrative expenses and product development are considered to be operating expenses. It is important to know that Stripe mentions that non-GAAP numbers can also be reported by companies.
What does SaaS revenue and gross profit tell investors?
SaaS revenue reveals demand for services by customers, while gross profit is an indicator of how much value is left after the delivery of services. If a company generates $20 million worth of revenues with an 85 percent gross margin, then it will generate $17 million in gross profit, as opposed to $11 million with a 55 percent margin.
Why SaaS companies have high gross margins?
Gross margin in the software industry is extremely high due to the nature of digital distribution. There is no need to produce additional products since once the software is made, one more subscription does not imply production of another physical piece.
Scale is also important since the costs involved in building the platform can be distributed over an expanding base of users. However, cloud computing, support services, external APIs, security features and AI inference may drive up the cost of direct delivery.
What affects SaaS gross margins?
Several factors can move SaaS gross margins up or down:
-
Cloud and infrastructure costs: Computing, storage, bandwidth and data processing can rise with usage.
-
Customer support: High-touch support models require more employees.
-
Professional services: Implementation and consulting generally carry lower margins than recurring software.
-
Pricing model: Usage-based products can have different economics from fixed subscriptions.
-
Third-party services: APIs, payment processors, security tools and external data services add direct costs.
-
AI workloads: Model inference can become significant at high usage.
-
Scale: Higher revenue can spread fixed infrastructure costs across a larger base.
This explains why two companies selling software can report very different margins even when both call themselves SaaS businesses.
What is a good SaaS gross margin in 2026?
The typical gross margin benchmark for a software company in the year 2026 is somewhere between 75% and 85%, but again this varies according to the model. As per the Aleph Benchmark for the month of October 2026, which used the full-year 2025 performance of 342 SaaS and AI companies in the business-to-business space, the software gross margin was at 80%, while that of the top quartile software margin was at 86% or more. The blended total-revenue margin was at 76%.
A comparison of publicly available SaaS data is another perspective. The SaaSDB shows that the median for 159 public SaaS companies is 74.4%. The 2026 annual report from Software Equity Group revealed that 60% of companies in their tracked list had more than 70% gross margin in Q4 of 2025 and 17% had more than 80%. Comparisons should be done on companies with similar business models and revenue structures.
What are the SaaS margin trends 2026?
SaaS margin trends 2026 are being shaped by two conflicting factors: scale efficiency and increased need for infrastructure from AI. Conventional subscription software will see gains from automation, pricing power and larger customer bases. On the other hand, AI capabilities may lead to increased costs of computation and inference, especially for products relying heavily on external models or processing massive amounts of data.
The case of ServiceNow highlights the reasons for the difference between margins for subscription and the entire company. In the Q2 of 2026, ServiceNow reported a 73.5% GAAP gross margin for subscriptions and a 70.5% GAAP gross margin for the total company, whereas the gross margin for professional services was negative in the quarter.
Which companies have the highest software margins?
Companies with highest software margins include enterprise SaaS companies and niche software firms. Margins can be high when subscription revenue dominates and delivery costs remain controlled.
ServiceNow is one such company. In its financial year 2025, ServiceNow had 80% GAAP subscription gross margin and 77.5% total gross margin. Its 2026 guidance included 75% GAAP subscription gross margin and 82% non-GAAP subscription gross margin.
Other software firms may also experience high margins, but comparisons will require caution due to differences in the cost structure of licensing, design, infrastructure software finance and technology software. Any list that contains the highest gross margin SaaS companies requires an understanding of revenue mix and the cost of revenue.
What is the SaaS gross margin benchmark for different business models?
There is no single SaaS gross margin benchmark for all types of software. In recent reference ranges for 2026, pure self-serve SaaS is higher than the SaaS with lots of services or infrastructure SaaS. According to SaaS Price Lab, median ranges of gross margin for pure self-serve SaaS fall between 80% and 85%. SaaS with some services ranges from 70% to 78%, while SaaS with heavy services is between 60% and 70%, as well as infrastructure SaaS. Median ranges for its AI/ML SaaS are lower, at 65% to 75%.
Young companies may have weaker margins because fixed infrastructure costs are spread over a smaller base.
How SaaS companies improve gross margins?
Increasing gross margin involves eliminating unnecessary costs of delivering products without harming customer experience. Companies can begin by establishing the causes of COGS instead of setting a certain percentage.
Common actions include:
-
Optimize cloud usage: Right-size computing resources and monitor consumption.
-
Automate support: Self-service tools can reduce repetitive support work.
-
Improve architecture: Efficient code and data processing can lower infrastructure requirements.
-
Review pricing: Pricing should reflect high-cost usage patterns.
-
Control third-party costs: Companies can negotiate contracts or replace expensive services where practical.
-
Separate services from software: Tracking implementation separately makes the underlying software margin easier to understand.
Strong improvements often come from several operational changes.
Why do top SaaS companies protect their margins?
The top SaaS businesses defend their margins because gross profit makes the next step in the process possible. With a high gross margin, the management is able to use their discretion to allocate resources towards product development, sales, security, artificial intelligence and customer retention.
Pursuit of the maximum margin may be deceptive when cost reductions result in unreliability or dissatisfaction among customers. The best kind of margin is one that is sustainable.
What is the future of SaaS gross margins?
The gross margin future of SaaS depends not so much on the traditional concept of very high margins being generated by software but rather on the efficiency of creating intelligent software. The reason is that artificial intelligence affects the cost equation because now computation is directly related to each customer service.
AI can also generate chances for automation, more efficient management of infrastructure and value-added products. Organizations that derive recurring revenues from these advantages by managing their delivery costs will be safeguarding good economics.
Business Fortune expects the next phase of SaaS battles is likely to shift its focus from just growing revenues to growing efficiently. Although it will still be important to track SaaS firms with the best margins, the key point will be if these margins can sustain themselves amid the smarter products, sophisticated consumption and greater value expectations from each subscription dollar.















Comments