How to Calculate Cost of Revenue: Baremetrics vs. ChartMogul for Tracking SaaS Profitability

The fastest way to calculate cost of revenue for a SaaS company is to separate direct delivery costs from operating expenses, then compare those costs against subscription revenue inside Baremetrics or ChartMogul. The target is a clean gross margin number, since many SaaS investors expect gross margins near the 70% to 85% range, depending on company stage and product type [source: SaaS Capital].

TLDR: Cost of revenue equals the direct cost of serving paying customers, including hosting, support, payment fees, customer success tied to retention, onboarding, and third-party software used to deliver the product. For example, if a SaaS company has $120,000 MRR and $28,000 in monthly cost of revenue, its gross margin is 76.7%. Baremetrics is simpler for smaller subscription teams that want fast MRR, churn, and cash visibility. ChartMogul is usually better when finance, RevOps, and leadership need cleaner segmentation across several billing sources.

What Cost of Revenue Means in SaaS

Cost of revenue, often called cost of goods sold or COGS, covers the costs directly tied to delivering the SaaS product. It is not the same as total expenses. Sales salaries, paid ads, office rent, and most admin costs do not belong here.

For SaaS, cost of revenue often includes:

  • Cloud hosting: AWS, Google Cloud, Azure, databases, storage, CDN, and monitoring.
  • Customer support: salaries, help desk software, and support contractors.
  • Customer success: only the direct portion tied to onboarding, retention, renewals, or account care.
  • Payment processing: Stripe, PayPal, chargeback fees, and billing transaction costs.
  • Third-party product costs: APIs, data providers, AI processing, SMS, email sending, or embedded tools.
  • Implementation costs: onboarding labor for customers, especially in B2B SaaS.

The core formula is simple:

Cost of Revenue = Hosting + Direct Support + Direct Customer Success + Payment Fees + Product Delivery Tools + Onboarding Costs

Then:

Gross Profit = Revenue − Cost of Revenue

Gross Margin = Gross Profit ÷ Revenue × 100

A Practical Example

A subscription company earns $120,000 in monthly recurring revenue. Its monthly delivery costs look like this:

  • Cloud hosting: $9,500
  • Support salaries and tools: $8,000
  • Customer success allocation: $5,500
  • Payment fees: $3,600
  • Third-party API costs: $1,400

Total cost of revenue is $28,000. Gross profit is $92,000. Gross margin is 76.7%.

That number gives leadership a sharper view than MRR alone. A SaaS company can grow revenue while quietly losing efficiency. It drives people a bit mad when a shiny MRR chart hides rising API bills or support load.

How Baremetrics Helps Track SaaS Profitability

Baremetrics is built for fast subscription visibility. It connects to billing tools such as Stripe and shows MRR, ARR, churn, LTV, upgrades, downgrades, refunds, and customer movement. It is strong when a team wants answers quickly and does not want a heavy analytics buildout.

For cost of revenue, Baremetrics works best as a revenue and customer behavior layer. A finance manager can use Baremetrics to confirm recurring revenue, expansion, contraction, and churn. Then cost data can be matched from accounting software, cloud bills, payroll, and payment processors.

Baremetrics is useful for:

  • Early-stage SaaS teams that need quick MRR and churn reporting.
  • Founder-led finance where reports need to be readable fast.
  • Stripe-heavy companies with simple billing setups.
  • Teams focused on churn recovery and cancellation behavior.

The weak spot is that cost of revenue still needs judgment. Baremetrics will not magically decide how much customer success salary belongs in COGS. Someone still has to split payroll, classify support costs, and remove sales or account expansion work from the calculation.

How ChartMogul Helps Track SaaS Profitability

ChartMogul is also focused on subscription analytics, but it tends to suit teams with more complex data. It supports subscription reporting, cohorts, segmentation, customer records, plan analysis, and multiple billing sources. Its strength is data structure.

ChartMogul can help a company group revenue by product, plan, region, customer type, acquisition channel, or billing system. That makes cost of revenue analysis more useful. For example, a company may find that enterprise customers have stronger ARPA but also require twice as much onboarding and support.

ChartMogul is useful for:

  • Multi-product SaaS companies with several pricing tiers.
  • Teams using more than one billing source, such as Stripe plus manual invoicing.
  • RevOps and finance teams that need detailed customer segmentation.
  • B2B SaaS companies that care about cohorts, retention, and revenue quality.

Honestly, it can feel like half the job is cleaning plan names, discounts, tax settings, and old subscription records before the reports feel trustworthy. ChartMogul is powerful, but messy source data will still produce messy gross margin analysis.

Image not found in postmeta

Baremetrics vs. ChartMogul for Cost of Revenue

The better tool depends on the company’s billing setup and reporting needs. Neither tool should be treated as a full accounting system. Both are strongest when paired with clean bookkeeping.

Category Baremetrics ChartMogul
Best fit Small to mid-size SaaS teams Data-heavy SaaS and RevOps teams
Revenue tracking Fast and easy to read Detailed and highly segmented
Cost tracking Needs external cost inputs Needs external cost inputs
Setup effort Usually lighter Usually more detailed
Profitability analysis Good for simple gross margin tracking Better for margin by segment or cohort

Recommended Workflow

A SaaS company should not start with the tool. It should start with definitions. Finance and leadership need one shared rulebook for what counts as cost of revenue.

  1. Define COGS categories: hosting, support, payment fees, customer success, onboarding, and product delivery tools.
  2. Separate direct and indirect costs: exclude sales, marketing, product development, and admin expenses.
  3. Pull revenue from Baremetrics or ChartMogul: use MRR, ARR, refunds, credits, and churn-adjusted figures.
  4. Pull costs from accounting: use QuickBooks, Xero, payroll, AWS, Stripe, and vendor invoices.
  5. Calculate monthly gross margin: compare trends, not just one month.
  6. Segment where possible: review margin by plan, customer size, geography, or product line.

Baremetrics is the easier pick when the company wants simple reporting and fewer settings. ChartMogul is the better pick when segment-level profitability matters. If enterprise customers, self-serve users, and legacy plans all behave differently, ChartMogul usually gives finance more room to analyze the spread.

Common Mistakes to Avoid

  • Counting all customer success as COGS: expansion sales work should not sit inside cost of revenue.
  • Ignoring payment fees: small percentages become large numbers at scale.
  • Mixing revenue and cash: collected cash is not always earned revenue.
  • Forgetting usage-based costs: AI tokens, API calls, messages, and storage can crush margins.
  • Skipping segment analysis: a product can look profitable overall while one customer group loses money.

FAQ

What is the simplest formula for cost of revenue?

Cost of Revenue = Direct delivery costs tied to serving customers. For SaaS, that usually means hosting, support, payment fees, onboarding, customer success allocation, and third-party product costs.

Is customer success part of cost of revenue?

Sometimes. The portion tied to onboarding, retention, renewals, and account support may count. Work focused on upsells or sales expansion usually belongs in sales and marketing.

Does Baremetrics calculate cost of revenue automatically?

Not as a full accounting calculation. Baremetrics is useful for subscription revenue metrics, but cost data still needs proper classification from accounting, payroll, cloud bills, and vendors.

Does ChartMogul track SaaS profitability?

ChartMogul helps analyze revenue quality, cohorts, churn, and customer segments. Profitability tracking becomes stronger when its revenue data is matched with clean cost data from accounting systems.

Which is better for SaaS gross margin: Baremetrics or ChartMogul?

Baremetrics is better for simple, fast reporting. ChartMogul is better for segmented margin analysis across products, plans, regions, or customer types.

How often should cost of revenue be reviewed?

Monthly is best. SaaS costs can shift quickly when usage grows, support tickets rise, or cloud infrastructure scales faster than revenue.