What is Gross Margin

Gross margin shows how much revenue a business keeps after subtracting the direct costs associated with delivering its products or services. For a SaaS company, these costs may include cloud hosting, infrastructure, third-party services used to deliver the product, and support or operations costs included in cost of revenue under the company’s accounting policy.

Gross margin is usually expressed as a percentage. It helps a team understand how efficiently it delivers its service before operating expenses such as sales, marketing, product development, and general administration.

How Is Gross Margin Calculated?

Formula

Gross margin (%) = (Revenue − Cost of Goods Sold) ÷ Revenue × 100

For example, if a SaaS business earns $200,000 in revenue during a period and records $50,000 in cost of goods sold (COGS), its gross profit is $150,000. Its gross margin is $150,000 ÷ $200,000 × 100 = 75%.

The result depends on how the company defines and classifies COGS or cost of revenue. Use a consistent accounting policy when comparing periods or companies.

What Costs Affect SaaS Gross Margin?

Common direct delivery costs may include:

  • Cloud hosting and infrastructure: Compute, storage, networking, and other resources used to run the service.
  • Third-party services: External tools or APIs that are part of delivering the product to customers.
  • Customer support: Support labor and systems when these costs are included in cost of revenue.
  • Service operations: Direct costs associated with maintaining service availability and delivery.
  • Payment or delivery fees: Transaction-related costs when the company classifies them as direct costs.

Cost classification differs across businesses and accounting policies. Some expenses, such as customer success, implementation, or support, may be classified differently depending on the work performed and the company’s reporting approach.

Why Gross Margin Matters for SaaS

Shows delivery efficiency

Gross margin helps leaders understand how much revenue remains after the direct cost of serving customers. If revenue grows but infrastructure and service costs grow faster, margin may come under pressure.

Supports pricing decisions

Knowing the cost of delivering each plan or usage level can help teams assess pricing, packaging, and the economics of discounts. Price changes should also account for customer value and market conditions.

Helps assess scalability

SaaS products can often serve additional customers without a matching increase in every cost, but hosting, support, and third-party usage can still rise with adoption. Gross margin helps reveal whether delivery economics are improving as the business grows.

Informs financial planning

Gross profit contributes to the funds available for research and development, sales and marketing, and general operations. It is an important input to planning, but it does not show whether the company is profitable overall.

Gross Margin vs. Gross Profit vs. Operating Margin

Metric Meaning
Gross profit Revenue minus the direct costs classified as COGS or cost of revenue.
Gross margin Gross profit expressed as a percentage of revenue.
Operating income Profit after operating expenses are deducted, under the company’s accounting presentation.
Operating margin Operating income expressed as a percentage of revenue.
Net profit margin Net income expressed as a percentage of revenue after relevant expenses, including interest and taxes.

How to Improve SaaS Gross Margin

  1. Monitor infrastructure use. Review compute, storage, data transfer, and database costs by customer, feature, workload, or plan where practical.
  2. Improve resource efficiency. Optimize inefficient queries, reduce unnecessary processing, and select infrastructure that fits the workload.
  3. Review third-party costs. Understand usage-based vendor pricing, identify unused capacity, and negotiate terms when volume and contract conditions support it.
  4. Align plans with delivery costs. Check whether high-usage customers are on suitable plans and whether limits or usage pricing are clear and fair.
  5. Reduce avoidable support demand. Improve onboarding, documentation, product reliability, and self-service help without making human support hard to reach when needed.
  6. Track unit economics. Where data is reliable, compare delivery costs across customer segments, product features, and service tiers.
  7. Keep service quality in view. Cost reduction should not create outages, slower performance, security gaps, or a worse customer experience.
  8. Use consistent reporting. Document which costs are included in cost of revenue so trends are meaningful.

Common Gross Margin Mistakes

  • Confusing gross margin with overall profitability.
  • Comparing companies that classify hosting, support, or customer success costs differently without noting the difference.
  • Ignoring cloud usage and third-party costs as the customer base grows.
  • Reducing service capacity in ways that harm reliability or customer outcomes.
  • Using revenue from one period with costs from another period.
  • Assuming a single benchmark applies to every SaaS product, customer segment, or delivery model.

Frequently Asked Questions

What is a good gross margin for SaaS?

There is no universal target that fits every SaaS business. Margin depends on product architecture, hosting needs, support model, service commitments, customer mix, and accounting classifications. Compare the company with relevant peers and track its own trend consistently.

Does gross margin include sales and marketing?

Usually, sales and marketing are operating expenses rather than direct cost of revenue. The exact presentation depends on the company’s accounting policies and reporting framework.

Can revenue grow while gross margin falls?

Yes. Revenue may increase while infrastructure, vendor, or direct service costs grow faster. Reviewing cost drivers by workload and customer segment can help explain the change.

Is gross margin the same as markup?

No. Gross margin expresses gross profit as a share of revenue. Markup expresses profit relative to cost. They use different denominators and should not be treated as interchangeable.

How often should gross margin be reviewed?

Many businesses review it monthly as part of financial reporting, with more frequent monitoring of cloud or usage costs when those costs change quickly. Choose a cadence that supports timely decisions and reliable data.

Related Terms