How to Calculate Cost of Revenue for SaaS: Baremetrics vs. ChartMogul for Better Financial Reporting

October 16, 2026 by Andrew Smith

The cleanest way to calculate SaaS cost of revenue is to separate direct delivery costs from operating expenses, then connect those costs to subscription revenue by month. For many SaaS firms, a healthy gross margin often sits near 70% to 85%, and SaaS Capital reported a 2024 median SaaS gross margin of 79% [source: SaaS Capital]. Baremetrics and ChartMogul can both support that work, but neither should be treated as a full accounting system.

TLDR: Cost of revenue for SaaS equals the direct costs required to deliver the product, such as cloud hosting, support labor, payment fees, data vendors, and onboarding labor. If a company has $100,000 in monthly revenue and $22,000 in cost of revenue, its gross margin is 78%. Baremetrics is simpler for teams that want quick subscription reporting tied to billing data, while ChartMogul is stronger when revenue data needs deeper segmentation. For better financial reporting, the best pick depends on whether the company values speed or richer data controls.

How SaaS Cost of Revenue Is Calculated

Cost of revenue, often called COR or COGS, includes the direct costs needed to serve customers. It does not include sales salaries, ads, product management, office rent, or general admin costs.

The basic formula is simple:

Cost of Revenue = Hosting + Support + Customer Success Delivery + Payment Fees + Third Party Tools + Implementation Labor + Direct Data Costs

Gross margin follows from that:

Gross Margin = (Revenue – Cost of Revenue) ÷ Revenue × 100

For example, a SaaS company with $250,000 in monthly recurring revenue and $55,000 in direct delivery costs has a gross margin of 78%. That number matters because investors, lenders, and operators use it to judge how efficiently the business delivers its product.

What Should Be Included

  • Cloud hosting: AWS, Azure, Google Cloud, database hosting, storage, bandwidth, and monitoring tied to customer usage.
  • Support costs: Salaries and tools for customer support staff who solve product issues.
  • Customer success delivery: Only the portion tied to onboarding, training, renewals, or direct service delivery.
  • Payment processing fees: Stripe, PayPal, card fees, and chargeback fees.
  • Third party product costs: APIs, email delivery, analytics infrastructure, AI usage fees, or embedded services.
  • Implementation labor: Setup work for customers when it is part of delivery, not sales.

The annoying part is that accounting systems rarely label these costs correctly without help. Hosting may sit under “software.” Support wages may sit under payroll. Payment fees may be buried inside the billing platform. Finance teams usually need a mapping sheet before any tool can produce clean reporting.

Baremetrics for Cost of Revenue Reporting

Baremetrics is built for fast subscription analytics. It connects to billing sources such as Stripe and shows MRR, ARR, churn, customer lifetime value, expansion, refunds, and failed payments. For smaller SaaS firms, that speed is useful. A founder or finance lead can see revenue movement without building a custom dashboard.

For cost of revenue, Baremetrics is most useful when the company wants to compare direct costs against revenue trends. It helps answer questions like:

  • Did gross margin fall after customer growth?
  • Are high usage customers creating lower margin revenue?
  • Are refunds, discounts, or failed payments distorting revenue?
  • Is support hiring growing faster than MRR?

Baremetrics is easier to read than many reporting tools. That is its strength. A team can move from “What is MRR?” to “Why did net revenue drop?” quickly. The catch is that cost data often still needs to come from the accounting system, payroll system, and cloud bills. Baremetrics can show revenue clearly, but finance teams still need discipline around cost classification.

Baremetrics works best for SaaS companies that want speed, simple visuals, and founder friendly reporting. It is less ideal when the company needs complex cohort rules, heavy data cleanup, or multiple billing sources with messy historical changes.

ChartMogul for Cost of Revenue Reporting

ChartMogul is also a subscription analytics platform, but it tends to suit teams that need more control over revenue data. It supports MRR, ARR, churn, cohort analysis, segmentation, plan reporting, and customer level analytics. Its strength is structure. Finance and RevOps teams can slice revenue by plan, region, customer size, channel, or billing source.

That matters for cost of revenue because SaaS margins are rarely equal across segments. Enterprise customers may need onboarding calls and success managers. Small customers may create more support tickets than expected. AI heavy users may create higher infrastructure costs. ChartMogul helps connect these patterns to revenue groups, even if cost data still needs outside support.

For example, a company may learn that its self serve plan has 84% gross margin, while its enterprise plan has 68% gross margin after implementation labor and support costs. That insight can change pricing, packaging, or customer success staffing.

It gets frustrating when a finance team needs three exports just to explain one margin drop. ChartMogul can reduce that pain if revenue data is well tagged from the start. If the source data is messy, setup takes longer.

Baremetrics vs. ChartMogul: Which Is Better?

Criteria Baremetrics ChartMogul
Best fit Founders and small finance teams Finance, RevOps, and data focused teams
Ease of use Very simple and quick More setup, more control
Revenue reporting Clear core SaaS metrics Detailed segmentation and cohort views
Cost of revenue support Useful beside accounting data Useful for segment based margin analysis
Weak spot Less suited to complex data models Can feel heavier for small teams

For better financial reporting, the choice depends on maturity. Baremetrics is often better for early stage SaaS firms that need clean metrics fast. ChartMogul is often better once the company needs margin analysis by customer type, plan, or sales motion.

A Practical Reporting Workflow

  1. Define cost of revenue rules. Decide which costs belong in COR and document them.
  2. Map accounting categories. Split hosting, payment fees, support, and onboarding into clear accounts.
  3. Match costs to revenue periods. Monthly reporting should use monthly direct costs, not random invoice timing.
  4. Segment revenue. Break revenue by plan, customer type, geography, or usage level.
  5. Calculate gross margin monthly. Review total margin and margin by segment.
  6. Investigate spikes. A 5 point margin drop should trigger a review of hosting, support, discounts, and implementation work.

Neither Baremetrics nor ChartMogul replaces proper accounting. The best setup usually pairs one subscription analytics tool with QuickBooks, Xero, NetSuite, or another general ledger. The analytics tool explains revenue behavior. The accounting system proves the costs.

Common Mistakes That Hurt Reporting

  • Putting all customer success costs in COR. Only direct delivery work belongs there. Expansion and account management often belong in sales or operating expenses.
  • Ignoring cloud cost allocation. A growing customer base can hide inefficient infrastructure.
  • Using cash timing instead of accrual logic. Annual cloud contracts and prepaid tools can distort one month.
  • Forgetting payment fees. They are small line items until volume grows.
  • Blending all customers together. Average margin can hide costly segments.

Final Recommendation

Baremetrics is the better choice when the team wants fast, readable subscription metrics with minimal setup. ChartMogul is the better choice when the company needs stronger segmentation, cohort analysis, and more control over revenue data. For cost of revenue, both tools are only part of the answer. Clean cost categories, monthly reconciliation, and segment level reporting matter more than the software label.

FAQ

What is cost of revenue in SaaS?

It is the direct cost required to deliver software to customers. It usually includes hosting, support, payment fees, third party product costs, and direct onboarding labor.

Is cost of revenue the same as operating expenses?

No. Operating expenses include sales, marketing, product development, admin, and general overhead. Cost of revenue is tied directly to delivering the product.

Can Baremetrics calculate SaaS cost of revenue automatically?

Not fully. Baremetrics is strong for revenue analytics, but cost data usually must come from accounting, payroll, hosting bills, and payment processors.

Can ChartMogul replace an accounting system?

No. ChartMogul helps analyze subscription revenue. It does not replace a general ledger or month end accounting process.

Which tool is better for gross margin reporting?

Baremetrics is better for simple reporting and quick visibility. ChartMogul is better when the company needs margin views by segment, plan, or customer group.

How often should SaaS cost of revenue be reviewed?

Monthly review is best. Fast growing SaaS companies should also check hosting and support cost trends weekly or biweekly.