SaaS gross margin is a key profitability indicator. Successful companies keep it above 75% by controlling direct costs, setting effective pricing, and retaining customers.
Feeling overwhelmed trying to monitor and improve your SaaS gross margin? You are not alone. It’s one of those things that can feel complex, but it plays a big role in your company’s financial health.
I’m Nikola Baldikov, a marketing specialist with over 10 years of experience helping SaaS companies grow through search and content marketing. Over time, I’ve noticed a simple pattern: getting more customers is not enough if the business is not making a healthy profit.
In this article, we will break down what SaaS gross margin is and how to track and improve it in a practical way.
Key Takeaways
- SaaS gross margin shows revenue kept after direct costs.
- Target above 75% for sustainable growth.
- Calculate monthly to spot issues early.
- Control COGS by optimizing cloud spend.
- Early-stage companies have lower margins initially.
What Is SaaS Gross Margin?
SaaS gross margin is the percentage of revenue left after paying all costs directly tied to delivering your product. It measures how efficiently your company converts revenue into profit.
A high gross margin for SaaS means you keep more money from each customer.
A low margin signals that your costs are eating into your revenue.
Why gross margin matters for SaaS businesses
Gross margin directly impacts your ability to scale.
If your margins are thin, you’ll struggle to invest in marketing, sales, and product development.
You’ll also find it harder to attract investors, as they want to see proof that your business model works at scale.
The difference between gross margin and net margin
What does gross profit margin mean vs net profit margin?
Gross margin looks only at revenue minus cost of goods sold. Net margin includes all operating expenses: salaries, marketing, rent, and everything else.
Net margin tells you if the entire business is profitable. Gross margin tells you if your core product economics work.
For SaaS, gross margin is the more important metric early on. Fix that first, then worry about net profitability.
How to Calculate SaaS Gross Margin
To calculate your SaaS gross margin, you need to subtract your cost of goods sold (COGS) from total revenue, divide by revenue, and multiply by 100.
Here’s the standard gross profit margin SaaS formula:
SaaS Gross Margin (%) = [(Revenue – COGS) / Revenue] × 100

Let’s say your SaaS company earns $100,000 in monthly revenue and spends $20,000 on COGS. Your gross margin is:
[($100,000 – $20,000) / $100,000] × 100 = 80%
This means you keep 80% of every dollar earned after covering direct costs.
What makes up the COGS?
The cost of goods sold (COGS) is all the costs that support your revenue-making activities directly.
In SaaS, it accounts only for the expenses directly tied to delivering your product:
- Hosting and infrastructure costs: AWS, Google Cloud, Azure, or other cloud services
- Third-party software and APIs: Tools required to run your product (payment processors, email services, analytics platforms)
- Customer support salaries: If support is essential to product delivery
- R&D amortization: Development costs capitalized and amortized over time
- Royalties and licensing fees: Third-party software licenses built into your product
What doesn’t count as COGS:
- Sales and marketing expenses
- General administrative costs
- Product development for new features (unless capitalized)
What Is a Good Gross Margin for a SaaS Company?
According to KeyBanc Capital Markets’ Private SaaS Company Survey, median gross margins for SaaS companies are around 75%, while higher-performing companies typically reach 80% or more.
So, it’s safe to assume that a good SaaS gross margin is roughly 75%–80%.
What affects SaaS gross margin?
These four factors influence your margins:
- Business model: Pure self-service SaaS scales better than high-touch enterprise models.
- Company stage: Early-stage companies have higher per-customer costs. As you scale, margins improve.
- Infrastructure efficiency: Optimizing cloud spend and automating processes directly impacts COGS.
- Pricing strategy: If your pricing doesn’t keep pace with costs, margins erode over time.
SaaS gross margin benchmarks by company stage

Gross margin benchmarks in SaaS often change as a company grows and becomes more efficient.
In general, higher margins mean the business keeps more revenue after covering the direct costs of delivering its product or service.
Here’s a SaaS gross margin benchmark breakdown:
- Early-stage startups (50%–70%): Companies at this stage are still testing their product, building infrastructure, and attracting their first customers. Costs are higher because operations are smaller and less optimized.
- Growth-stage companies (70%–80%): As the customer base grows, SaaS companies become more efficient. Better processes, automation, and improved cloud spending help reduce costs and increase profitability.
- Mature public SaaS companies (75%–85%): Established SaaS businesses benefit from scale. They already have optimized systems, stable operations, and lower costs per customer, allowing them to keep a larger share of their revenue as profit.
Average gross margin for SaaS across industries
Gross margins can also vary depending on the type of SaaS business you run. Some products are cheaper to deliver and scale, while others require more infrastructure, support, or ongoing service costs.
- Pure software-as-a-service (75%–85%): These companies mainly sell software with little manual support involved. Because the product can be delivered to many customers at a low additional cost, margins are usually higher.
- Vertical SaaS with services (65%–75%): Businesses in this category often include onboarding, consulting, training, or managed services alongside their software. Those extra services increase operating costs, which lowers margins.
- AI SaaS companies (60%–75%): AI products often have higher infrastructure costs due to model training, data processing, and AI-generated responses. As a result, margins are usually lower than traditional SaaS businesses.
If you run an AI SaaS company, it is important to account for costs such as GPUs, cloud infrastructure, and model retraining when setting realistic margin goals.
Why Tracking SaaS Gross Margin Matters
Tracking gross margin in SaaS gives you early warning signs before problems spiral. Here are the three main reasons why it matters.
Reason 1: It shows how much you can reinvest in growth
Gross margin determines how much you have left to invest in growth.
If your margin is 80%, you have $0.80 of every dollar to spend on sales, marketing, and product development. If it’s 60%, you only have $0.60.
That 20% difference compounds quickly at scale.
Reason 2: It helps you measure progress over time
Set a target SaaS gross margin and measure against it monthly.
I recommend the following:
- Monthly tracking: Monitor trends, spot anomalies early.
- Quarterly deep dives: Analyze COGS by category, identify optimization opportunities.
- Annual reviews: Compare against industry benchmarks, adjust pricing, or cost structure.
If you don’t track it, you can’t improve it.
Reason 3: It guides important business decisions
Your gross margin tells you what’s possible.
Want to hire an enterprise sales team? You need healthy margins to support longer sales cycles and higher customer acquisition costs.
Thinking about a freemium model? Make sure your SaaS gross margins support free users without burning cash.
Every strategic decision ties back to whether your unit economics work. Understanding your gross margin alongside other SaaS marketing metrics gives you the complete financial picture.
Strategies to Improve SaaS Gross Margin
Improving SaaS gross margin comes down to two things: cutting COGS or increasing revenue per customer.
Here are the strategies I recommend using:
1. Monitor and optimize cloud costs
Cloud infrastructure is often the biggest COGS line item.
Review your AWS spending monthly using tools like CloudZero or AWS Cost Explorer. Using AWS cloud cost optimization techniques can help you save money without affecting your system’s performance. Look for the following:
- Underutilized instances: Downsize or eliminate servers running at low capacity.
- Reserved instances: Commit to 1–3 year contracts for predictable workloads. It saves around 30 to 50%.
- Auto-scaling policies: Scale down during off-peak hours.
Working with a software development company can also help you design more efficient cloud architectures that reduce costs and scale smoothly as your business grows.
2. Optimize payment processing fees
Payment fees add up quickly. If you’re processing $1M annually and paying 2.9% + $0.30 per transaction, that’s $29,000+ in fees.
Negotiate volume discounts with Stripe or PayPal once you hit scale. Switch to ACH or direct debit for enterprise customers to avoid credit card fees entirely.
3. Increase pricing strategically
Raising prices is the fastest way to improve margins.
Give existing customers advance notice and grandfather them in for a limited time. New customers pay the updated rate immediately.
This allows for a more predictable revenue stream and ensures that costs are covered over time. Additionally, by aligning payment terms with the value delivered to customers, you can better manage cash flow.
“Don’t be afraid to ramp up your prices. Yes, this can be a controversial move, but there are a bunch of companies that did it this year, including all Railsware brands, without suffering huge churn rates. Typically, a churn rate of ~2% is expected, and if you achieve that, you’re golden.
Also, you can try to boost conversions and run different CTR optimizations. However, creating careful tactics to ramp up your prices usually yields the best results. This goes double if there weren’t any price corrections over the past 24 months.
So, keep an eye out for your competitors and their pricing balanced against the features offered. Then, create a strategy and a campaign to increase the prices and notify users about the move well in advance.” — Veljko Ristić, Content Manager, Mailtrap
But, before raising prices, check your NPS SaaS score to measure customer satisfaction. Happy customers are far more likely to accept price increases.
4. Automate customer support
Support costs scale linearly with customers unless you automate.
Invest in the following:
- Self-service knowledge bases: Reduce ticket volume by 30%–50%.
- Chatbots for common questions: Handle tier-1 support automatically.
- In-app tooltips and onboarding flows: Prevent issues before they happen.
Better support also improves your customer retention, which indirectly helps SaaS gross margins by reducing acquisition costs.
5. Shift to annual billing
Annual contracts improve cash flow and reduce churn by locking customers in for longer.
This is a common SaaS pricing tactic. Many SaaS companies offer a discount for annual prepayment (often around 10%–20%) to encourage customers to commit upfront instead of paying monthly. It’s widely used because it increases upfront cash and reduces the risk of customers leaving month to month.
Longer contract terms directly impact your SaaS retention rate, giving you more predictable revenue and lower COGS per customer over time.
6. Renegotiate vendor contracts
Review all vendor contracts once a year and make sure pricing and scope still match your needs. Over time, vendor agreements tend to drift away from how the business operates.
Pay attention to the following:
- If the vendor is still needed or has been replaced.
- If the scope or usage has changed since signing.
- If pricing still reflects the current scale or demand.
- If multiple vendors are solving the same problem.
- If you are paying for services or features that are no longer used.
Use this review to remove unnecessary vendors, resize contracts based on current usage, and consolidate where possible. Bring real usage data into renegotiations to improve pricing or terms.
7. Expand market reach
Expanding your market reach helps you attract new customers and grow revenue. One of the best ways to do this is through creative marketing strategies such as social media campaigns, influencer partnerships, and targeted advertising.
You can also explore new industries or regions where there is demand for your SaaS product. Researching new opportunities helps you focus your marketing efforts on the right audience.
Finally, make sure potential customers can easily find you online. Improving your SEO with relevant keywords and optimized website content can increase your visibility in search results.
“I’d say that Google reviews and ratings from various review platforms have a massive impact on a potential customer’s decision-making process. When a potential customer sees your website on the SERPs, their final “go” signal often lies in the customer reviews.
Positive reviews serve as social proof and build trust, assuring the customer that they’re making the right choice. A prime example is that of HubSpot, another front-runner in the B2B SaaS space. HubSpot has consistently maintained high customer review ratings, which has played a critical role in its ability to attract and convert new users. Therefore, focusing on earning and highlighting positive customer reviews can be a powerful strategy for driving conversions.” — John Pennypacker, VP, Sales and Marketing, Deep Cognition
4 Common Mistakes That Hurt SaaS Gross Margin
I’ve seen SaaS companies make these four SaaS gross margin-killing mistakes:
- Miscalculating COGS: If a cost is required to deliver your product, it belongs in COGS. This includes payment processing fees, third-party APIs, hosting, and support salaries. Excluding these costs inflates your gross margin and gives you a false sense of profitability.
- Ignoring margin trends: If your margin is declining month-over-month, cloud costs might be growing faster than revenue, support tickets might be spiking, or new features might have higher infrastructure demands. Track trends, not just snapshots.
- Underpricing to win customers: Heavy discounts might close deals faster, but they destroy unit economics. If you can’t maintain a 70% margin at standard pricing, your product-market fit needs work.
- Ignoring the connection between retention and margins: Poor SaaS customer retention forces you to constantly acquire new customers, driving up marketing costs relative to revenue. When churn is high, infrastructure and support costs stay elevated because you’re always onboarding new users instead of serving a stable base efficiently.
My Final Thoughts
SaaS gross margin shows whether the business model works at scale.
Companies running above 75% margins have room to invest in growth. Below 70%, the numbers get tight. Costs start eating revenue faster than you can adjust pricing.
Most SaaS businesses chase revenue first and look at margins later. The issue is that margin problems don’t fix themselves as you grow. They get worse.
That’s why this metric matters more than most people realize.