Buyer Guide 9 min read

Mastering Gross Margin Analysis: The Key to Valuing SaaS Businesses

Most buyers overpay because they look at revenue in isolation. True profitability is determined by gross margin. Here is how to protect your capital.

2026-08-27  ·  By Sophal Lanh, Founder of Deal Alert AI

Deal Alert AI is reader-supported. We earn commissions from affiliate links at no cost to you.

This post is based on a video from our Deal Alert AI YouTube channel. Watch the original or read the full breakdown below.

Buying a SaaS business is not like buying a used car. You are not just paying for the asset; you are paying for the cash flow that asset will generate for the next five, ten, or twenty years. Over the last decade, I have seen too many buyers fall in love with big revenue numbers and blind themselves to the reality of the cost structure. A company generating $1 million in annual recurring revenue (ARR) with a 40% gross margin is fundamentally different from one generating the same revenue with a 90% gross margin. One is a struggle; the other is a machine.

When I advise clients on Deal Alert AI, the first thing I tell them is that revenue is a vanity metric, but gross margin is a sanity metric. If your gross margins are low, you are in a race to the bottom. You are spending every dollar of efficiency just to stay afloat, leaving very little room for innovation, marketing, or owner compensation. In this post, we are going to break down exactly how to perform a deep-dive gross margin analysis. We will look at what goes into the calculation, what to watch out for, and how to use this data to negotiate a better price.

Let us get straight to the point. If you are serious about acquiring a profitable online business, you need to understand the relationship between your cost of goods sold (COGS) and your top-line revenue. This analysis is not optional. It is the foundation of your entire due diligence process. Whether you are browsing listings on Flippa or working with a broker like Empire Flippers, the gross margin number will dictate whether the deal makes sense mathematically. If the margin is too thin, no amount of EBITDA manipulation will save you from a bad investment.

Defining Gross Margin in the SaaS Context

For many buyers, the concept of gross margin feels abstract until they see the line items. In a traditional retail business, gross margin is the money left after paying for the physical product. In SaaS, there are no physical products, but there are significant variable costs. The first step is to define what we actually include in COGS for a software company. This is where many novice investors make their first mistake: they assume COGS is zero. It is not. SaaS businesses have direct costs associated with serving each customer, and these costs scale directly with revenue.

True gross margin is calculated by taking total revenue and subtracting the direct costs of delivering the service. These direct costs typically include hosting expenses, cloud infrastructure usage, software licenses required to run the product, transaction fees from payment processors, and in some cases, sales commission or support staff dedicated solely to the product itself. If you can trace a cost directly to the act of serving a customer, it belongs in COGS. If a cost is incurred regardless of how many customers you have, it is an operating expense, not a COGS item. This distinction is critical for accurate modeling.

Why does this distinction matter? Because variable costs limit leverage. In a high-margin SaaS business, if you double your revenue, your direct costs might only increase by 20% or 30%. This is the magic of software scalability. However, if your costs are structured poorly, or if you are selling a hybrid product with heavy service components, your costs may scale linearly with revenue. That means doubling revenue doubles your costs, effectively killing your margin of safety. You must identify which costs are truly variable and ensure they are being categorized correctly in the seller's financial statements.

Key Insight

A SaaS gross margin below 70% should trigger immediate caution. While some enterprise-heavy deals might operate on lower margins, the standard benchmark for scalable, high-growth SaaS software sits between 75% and 85%. If you are looking at a "software" business with 50% margins, you are likely buying a service business that calls itself SaaS. They burn cash with every new customer.

Identifying Hidden Costs in the P&L

Get Free Deal Alerts Every Morning

We scan Empire Flippers, Flippa, Acquire.com and Quiet Light daily — scoring every listing. Start free.

Sellers are often very good at cleaning up their income statements to look impressive. They will classify costs to make their margins look higher. Your job as a buyer is to peel back these layers and find the true cost of serving a customer. One of the most common places for hidden COGS is in the "General and Administrative" or "Product Development" lines. Sellers will sometimes bill internal engineering time to customer-specific projects but classify that labor as product development to keep the gross margin high.

Another area to scrutinize is third-party integrations. Many SaaS products rely on expensive APIs, such as data providers, telephony services, or email marketing platforms. If the cost of these API calls changes based on usage, they are variable costs. If a seller has locked in a cheap deal for three years that is about to expire, you need to re-estimate the margin at current market rates. Assuming the old, lower rate will continue is a dangerous trap that has destroyed many deals. You must model the margin using forward-looking prices, not historical averages.

Labor arbitrage is another sneaky way to inflate margins. Some founders build their product in-house using cheap local development teams or even their own unpaid labor. When they sell the business, they stop working there, and the new owner has to hire and pay for maintenance and support. The "gross margin" on the seller's books might be 95% because the founder did the work for free. But the true economic margin, for a new owner who has to pay market-rate developers to keep the lights on, might be closer to 80%. You must adjust the historical financials to reflect the ongoing cost of resources that were previously substituted by the owner's free labor.

The Impact of Churn on Margin Stability

Gross margin is not a static number. It fluctuates based on the composition of your customer base. This is where the concept of churn comes into play. If you have a high churn rate, you are constantly replacing customers. New customers often come with lower initial margins because you might offer introductory discounts, or the cost of onboarding might be higher. Conversely, long-term customers may have negotiated lower prices or simpler package tiers that yield lower margins.

Consider a scenario where a SaaS company has a 12-month churn rate of 10%. Every year, 10% of their revenue is "new" revenue that might be subject to different pricing or higher discounting. If you analyze only the steady-state margins of retained customers, you will overestimate the true gross margin of the business. You must blend the margins of new logos with the margins of retained logos based on the growth rate and churn rate. This blended gross margin is the only number that should be used for valuation purposes. A high-margin business with high churn is less stable than a mid-margin business with rock-solid retention.

Common Buyer Mistake

Do not accept a "steady-state" gross margin figure without context. If a business is growing 50% year-over-year, the "steady-state" margin is irrelevant for the next 12 months. The margin will be depressed by the high volume of new customers. Valuing the business based on a future, stabilized margin is speculative. You must pay for the margins you can see and verify, not the ones the seller promises will arrive in year two. If you pay for year-two margins but receive year-one margins, you are building in a loss.

Calculating Customer Acquisition Cost Impact

While Customer Acquisition Cost (CAC) is typically considered an operating expense, it has a deep, derivative effect on the health of your gross margin over time. There is a concept called "CAC payback period," and it is intimately linked to unit economics. If your marketing spend is incredibly inefficient, you are essentially subsidizing your customers' first months of usage. This does not change the monthly gross margin line item, but it changes the cumulative cash flow attached to each customer.

If your CAC is $1,000 and your customer lifetime value (LTV) is $2,000, your gross margin might look healthy on the P&L, but you are burning cash on every new signup until they stay longer than 12 months. This cash burn acts as a de facto drag on profitability. When analyzing a deal, you must look at the "total cost of ownership" per customer. If the seller has been burning millions in marketing budget to mask poor retention, the apparent gross margin is a illusion. The business is not efficient; it is just loud. You need to normalize the margin by factoring in the ongoing need to replace churning users.

Furthermore, some SaaS companies sell through sales teams. Sales commissions are often recorded as COGS in some industries or operating expenses in others. Regardless of where they sit on the P&L, they are a cash outflow directly tied to revenue generation. If you are buying a business with a high-touch sales model, your "true" margin is the gross margin minus the fully loaded cost of the sales team. Ignoring this will leave you underestimating the capital required to maintain the revenue stream. The more manual the revenue generation, the lower the effective margin for your investment purposes.

Negotiating Price Based on Margin Metrics

Now that you have your true gross margin, how do you use it to negotiate? The multiple you pay for a SaaS business is often correlated to its margins. High-margin businesses command higher EBITDA multiples because they are more scalable and less operationally complex. A business with 80% gross margins might go for 8x-10x EBITDA, while one with 50% might only fetch 4x-6x. But be careful: the multiple is not just a function of the margin percentage. It is a function of the *trust* in that margin.

If your due diligence reveals that the seller has been misclassifying costs, you have two options. First, you can adjust the purchase price down to reflect the lower, corrected margin. Second, you can negotiate an "earn-out" structure where a portion of the purchase price is deferred and tied to future margin targets. This shifts the risk back to the seller. If they claim the margin is 90% but it is actually 75%, the earn-out protects you. You only pay for the high margin if it actually materializes in the post-close period. This is a powerful tool for buyers who are skeptical of the seller's financial hygiene.

Building a Detailed Margin Model

Don't rely solely on the seller's provided numbers. You need to build your own bottom-up model. Start by listing every single cost item from the last 12 months. Categorize each one as Fixed, Variable, or Owner-Specific. Then, project these costs forward for the next 36 months. For variable costs, apply a growth rate that matches your expected revenue growth. For fixed costs, apply an inflation rate. For owner-specific costs, replace the dollar amount with a market-rate salary for the role if that role needs to be filled by an employee after the sale.

This model will reveal the "run-rate" gross margin. It will show you what the margin will be in year one, year two, and year three post-acquisition. Often, buyers are shocked to see that the margin drops significantly in the first year due to increased infrastructure costs or the removal of owner discounts. This is normal, but it must be planned for. Your cash reserves must cover the delta between the historical margin and the projected run-rate margin until the business stabilizes. The model is not just for valuation; it is for cash flow planning.

Pro Tip

Always stress-test your margin model. Run scenarios where your revenue grows 20%, 50%, or 100%. Does the margin hold? If your API costs double when you scale, your margin will erode. Many SaaS businesses hit a "margin wall" at scale because their infrastructure is not built for efficiency. Ask the engineering team about their current system architecture. If they are using a shared database or inefficient code, scaling them will hurt your margins. Technical debt is a margin killer.

The Role of Technical Debt in Margin Erosion

Software is not a static asset; it is a living entity that requires maintenance and upgrading. Technical debt is the future cost of fixing a broken codebase. If the founder built the SaaS product quickly to gain traction, they likely took shortcuts. These shortcuts often mean that the system is slow, fragile, or expensive to run in the cloud. As the user base grows, the cost of these inefficiencies compounds. A server that costs $100 a month with 100 users might cost $1,000 a month with 1,000 users, not $1,000 a month with 10,000 users if it were optimized. But with bad architecture, it might cost $5,000 a month.

This exponential cost increase is a direct hit to your gross margin. When interviewing the technical team or hiring a third-party auditor, ask about their cloud spending breakdown. Are they overpaying for resources? Are they using legacy services that are being deprecated? If the business is running on infrastructure that is archaic, you should assume that the first 12-18 months of ownership will require significant capital expenditure on optimization. This capital expenditure should be deducted from the available cash flow when calculating your return on investment. You are not just buying the revenue; you are buying the burden of the codebase.

Checklist for Gross Margin Due Diligence

To ensure you do not miss any of these critical factors, I have compiled a comprehensive checklist. I use this exact list before signing any Letter of Intent for a SaaS acquisition. Walk through every single item and have the seller sign off on the disclosures. If they get defensive about a specific item, that is a red flag. The goal is to have a complete, transparent view of the costs associated with delivering the product.

  1. Extract all cost center reports from the last 12 months and categorize each line item as Fixed, Variable, or Owner-Specific.
  2. Verify that all cloud hosting, server, and infrastructure costs are included in COGS and not buried in operating expenses.
  3. Review third-party vendor contracts to identify any auto-renewing services that are critical to product delivery.
  4. Analyze the trend of COGS as a percentage of revenue over the last 24 months to identify inflationary pressures.
  5. Cross-check marketing spend against customer source data to ensure sales commissions are properly recorded.
  6. Request a detailed breakdown of API usage costs and project future costs based on expected user growth.
  7. Interview the lead engineer to discuss technical debt and potential infrastructure upgrades required for scaling.
  8. Confirm that any custom support services or onboarding services are priced correctly and are not subsidizing the SaaS core.
  9. Model a 3-year scenario with 20% and 50% growth rates to see how margins behave under stress.
  10. Compare the adjusted gross margin against industry benchmarks for similar SaaS verticals to identify outliers.

Final Thoughts on Smart Acquisition

Buying a SaaS business is a calculated risk, not a lottery ticket. The difference between a great deal and a disaster usually comes down to how well you understood the unit economics before you signed the wire. Gross margin analysis is not just an accounting exercise; it is a strategic tool. It tells you how resilient the business is, how much room for improvement exists, and how much capital you need to deploy to unlock the value.

At Deal Alert AI, we have seen dozens of deals fall apart because buyers ignored the true cost structure. They focused on the headline revenue and the EBITDA add-backs, only to discover that the underlying engine was inefficient and expensive to run. By mastering gross margin analysis, you separate yourself from the crowd of unprepared buyers. You become the one who knows exactly what they are buying. You know where the leaks are, and you know how to plug them. This knowledge gives you the confidence to negotiate harder and the insight to operate better post-close.

Do not skip the homework. The financial statements are a map, but the gross margin breakdown is the terrain. If you do not drive a car that knows the terrain, you will crash. Take the time to dig into the COGS, challenge the classifications, and model the future. Your future portfolio depends on it. If you want to connect with a network of serious investors and see a curated list of pre-vetted deals that have passed initial margin checks, explore the listings on Empire Flippers. But remember, no broker can do your due diligence for you. You must be the one to ask the hard questions about margin. You must be the architect of your own safety margin. Good luck, and may your margins be high and your costs be low.

As you continue your journey in online business acquisition, keep in mind that every deal is unique. The principles of gross margin analysis remain the same, but the application changes based on the vertical, the stage of the company, and the size of the deal. Stay curious, stay skeptical, and always let the data guide your decision-making. The numbers do not lie, though they can be hidden. Your job is to uncover them. That is how you build wealth in the digital asset class. Now, go find your next opportunity and strip it down to its financial bones before you buy it.

By Sophal Lanh, Founder of Deal Alert AI: Sophal built Deal Alert AI after years of analyzing online business acquisitions and missing time-sensitive deals. The platform tracks and scores 100+ listings daily across Empire Flippers, Flippa, Acquire.com, and Quiet Light. Learn more →

Get Deals Before Other Buyers

We scan Empire Flippers, Acquire, Flippa, and Quiet Light daily. The best sub-$500K businesses are gone within 48 hours.