Product

RECOMMENDED

FREE TRIAL

Integrations

UNIFIED CONNECTIONS

View all your subscriptions together to provide a holistic view of your companies health.

Resources

Gross Margin

Business Academy

Tracking a business’s revenue sounds straightforward, but there are often plenty of moving pieces and it’s important to understand how all the puzzle pieces fit together so you can better understand your profit, costs, and cash flow. 

If you want to have a firm grasp on how much your business is actually making— and your scalability potential after the costs involved— then you’ll want to understand those metrics.

An important one to track is your gross margin. 

 

Understanding Gross Margin  

Gross Margin is expressed as a percentage, and it tells you how much revenue you retain after considering your other costs. The higher a company’s gross margin is, the more capital they retain after costs. This means more profit, and it can allow for brands to scale more aggressively. 

“Good” gross margins vary significantly by industry. 

The average gross profit margin for auto manufacturers, for example, is only 11.1%, while it’s closer to 44.6% for non-alcoholic beverages.

Why Gross Margin Matters 

Your gross margin matters because it directly impacts how much profit you walk away with at the end of the day.

It’s great to make $500,000 in sales… but if you’re looking at $495,000 in costs, there’s not exactly much left over for scalability.

The higher your gross margin percentage is, the more room you have in your budget. Cash flow improves, profit increases significantly, and there’s plenty of room in the budget to invest in growing the company. 

Whether you want to grow your team, invest in new training, develop new products, or build your customer base, it’s always good to have room in the budget to do that. Plus, when there’s extra left over, there’s more opportunity for bonuses and pay raises for the team and executives that worked hard to build your product to begin with.

A low gross margin percentage can spell trouble for a SaaS business, so it’s best to avoid when possible. 

How to Calculate Gross Margin 

Calculating your gross margin does involve several different steps and formulas, but the good news is they’re all relatively straightforward, and having that gross margin information is well worth the effort.

Let’s walk step by step through the entire process of calculating gross margin. 

1. Calculate Cost of Goods Sold (COGS)

First, you need to calculate your COGS. 

Your COGS includes any direct costs of producing and delivering the products you sell.

For SaaS businesses, common costs included in this metric may be:

  • Software developing and engineering
  • Q&A testing 
  • Marketing and sales teams
  • App development 
  • Payment processing fees 
  • Online servers

You can calculate COGS by adding up all of your expenses within a set time period. 

2. Understand Monthly Recurring Revenue vs. Revenue 

One thing that trips up some SaaS businesses is understanding the difference between monthly recurring revenue (MRR) and plain old revenue.

Monthly recurring revenue tells you how much revenue your business generates monthly. For subscription-based businesses, this number will be calculated by the number of active, paying subscriptions and the value of those subscriptions. 

Your revenue, on the other hand, is any income generated by the business. It does not necessarily have to be recurring revenue. You may, for example, want to compare revenue (which includes all purchases in that time period) to monthly recurring revenue, which features active subscriptions with predictable income. 

(As a note: Make sure that your subscription analytics platform is only calculating MRR when using active customers whose subscriptions aren’t paused or delinquent— not all platforms do this, but here at Baremetrics, it’s a priority.) 

3. Calculate Gross Margin 

Once you’re familiar with the monthly cost of goods sold, you can calculate your gross margin by using this formula: 

(MRR - COGS) / MRR = Gross margin %

What is the difference between gross margin and net margin?

Gross margin measures the percentage of revenue that remains after deducting the cost of goods sold (COGS), while net margin measures the percentage of revenue that remains after all expenses, including operating expenses and taxes, have been deducted. 

Net margin, on the other hand is a more comprehensive measure of profitability, as it takes into account all expenses, while gross margin only considers COGS.

What’s a “good” gross margin for a SaaS company?

It’s basic math – if you want to make money, you need to sell your products for more than they cost to make. The more profit you make on each item, the better.

Generally, you want to increase your gross margin as you grow. A higher gross margin means each $1 of revenue is more valuable to your business.

Compare Company A with a 10% gross margin to their competitor Company B with an 80% gross margin. Company A will be able to reinvest 10 cents of every dollar of sales back into the company. Company B will have 80 cents on the dollar.

That’s a huge advantage when it comes to marketing or R&D spending. It’s a big reason why a company with $10 million in revenue might be worth more than a company with $20 million in revenue.

SaaS Gross Margin Benchmarks 

Industry research indicates that the median gross margin for SaaS companies is around 73%, although this figure can vary significantly depending on the nature of the business. As an example, enterprise SaaS companies tend to have higher gross margins compared to non-enterprise companies. 

Most VCs and SaaS experts suggest SaaS companies aim for a gross margin of around 80%.

Suggested Gross Margin Targets

How to Improve Gross Margin

Most businesses want to improve (read: raise) their gross margin percentage. The higher it is, the more revenue you keep.

While the “how” can vary from business to business, these tips are a good bet regardless of company size or SaaS industry:

    • Look at scaling. In many cases, scaling can lead to “bulk” discounts that can actually lower your COGS.
    • Consider your current pricing structure. Is your pricing currently high enough for you to make the profit that you need to? And does your pricing model itself work for you, or would you be better off with add-on products instead of an all-in-one suite to maximize profit? 
    • Find variable costs impacting your COGS. You may realize that making a few quick changes (like outsourcing some work to third-party vendors or switching server companies) can drastically lower costs and increase your gross margin.
  • Ensure you’re accounting for all costs in COGS. It’s easy for SaaS brands to leave out costs they forget are lumped into the COGS, including app development or customer support systems. In order to improve your gross margin, you need to have an accurate understanding of what you’re currently working with, first.


Strong analytics are essential for understanding everything about your revenue— including gross margin.
See how Baremetrics can help you track your revenue to maximize your gross margin and your profit.

 

FAQ

  • What is gross margin for a SaaS company?
    Gross margin is the percentage of revenue a SaaS company retains after subtracting the direct costs of delivering its product.

    For subscription businesses, those direct costs include engineering, hosting, payment processing fees, and customer support infrastructure. The higher your gross margin, the more of each dollar of MRR you keep to reinvest in growth, hiring, or product development. Most SaaS experts recommend targeting a gross margin of 80% or above, with the industry median sitting around 73%.
  • How do you calculate gross margin for a subscription business?
    Gross margin for a subscription business is calculated by subtracting COGS from MRR, then dividing that result by MRR.
    • Add up all direct costs for the period: hosting, engineering, payment processing, support tools
    • Subtract total COGS from your MRR to get gross profit
    • Divide gross profit by MRR and multiply by 100 to get your gross margin percentage
    • Track this monthly in Baremetrics alongside MRR to spot cost creep early
    Monitoring gross margin over time gives you a clear signal of whether your unit economics are improving as you scale.
  • What is a good gross margin percentage for a SaaS company?
    A good gross margin for a SaaS company is generally 70% or higher, with the best-in-class benchmark sitting around 80%.

    The industry median hovers near 73%, but enterprise SaaS companies often exceed that due to lower marginal delivery costs at scale. Investors and VCs typically use 80% as the target threshold when evaluating SaaS businesses. If your gross margin is well below 70%, it is worth auditing your COGS line closely, because low margins compress the budget available for acquisition, R&D, and team growth.
  • What is the difference between gross margin and net margin?
    Gross margin measures profitability after cost of goods sold only, while net margin measures profitability after every expense the business incurs.

    Gross margin strips out direct costs like hosting, engineering, and payment processing fees, but leaves operating expenses, sales and marketing costs, and taxes in the picture. Net margin deducts all of those too, giving you the truest read on bottom-line profitability. For early-stage SaaS founders, gross margin is usually the more actionable number because it reveals how efficiently the product itself is delivered before overhead enters the equation.
  • What costs belong in COGS for a SaaS business?
    SaaS COGS includes every direct cost tied to delivering and supporting the product: hosting, engineering, payment processing, QA, and customer support.

    Founders often undercount COGS by leaving out costs like app development, third-party integrations, or the tooling used to run their support function. Undercounting COGS inflates your reported gross margin and gives you a false picture of scalability. Getting this number right is the first step toward understanding whether your pricing model actually supports the margin profile your business needs.
  • How can a SaaS company improve its gross margin?
    SaaS companies improve gross margin by reducing COGS, tightening pricing, and eliminating variable costs that do not scale with revenue.
    • Audit COGS line items to find costs that have crept up quietly, like server or tooling fees
    • Review your pricing structure to ensure it reflects the value you deliver
    • Negotiate bulk rates with infrastructure or third-party vendors as you scale
    • Use Baremetrics to track MRR alongside cost trends so margin changes are visible in real time
    Even a few percentage points of improvement in gross margin compounds significantly as your subscriber base grows.
  • Why does gross margin matter more than revenue for valuing a SaaS business?
    Gross margin reveals how much of each revenue dollar actually fuels growth, which is why a high-margin SaaS business is often worth more than a larger low-margin one.

    A company with $10 million in revenue at 80% gross margin has far more capital to reinvest than a competitor with $20 million in revenue at 10% margin. Investors evaluate gross margin because it predicts how efficiently the business can scale, fund sales and marketing, and reach profitability. Tracking MRR and gross margin together in a platform like Baremetrics gives you the visibility to make the case that your growth is sustainable, not just large.

Upcoming Lesson

Setting Goals

Goals! Knowing what your MRR is, but setting realistic goals and taking steps to meet them is another. We’re going to show you how to do just th...

Join the Academy!

Enter your email address below and get instant updates as soon as new lessons are published. Sounds pretty great, eh?