FinOps 1015 min read
ByJubril Oyetunji
FinOps 101: SaaS unit economics
Calculate cloud and AI costs per customer or completed task, include shared infrastructure, and understand how those costs affect your margins.
Unit economics compares the revenue and costs associated with one customer, product, or transaction. For a SaaS team, it helps answer whether serving a customer brings in more than it costs.
This post explains how to choose a unit, calculate cloud and AI costs per customer or completed task, and use those figures to understand your margins.
Why is this important for teams?
A higher cloud bill can reflect more customers, more expensive work, or unused capacity. Unit economics helps you compare spend with the work it supports.
Our chargebacks and showbacks article explained how teams take ownership of their share of the bill.
Naturally, the next question is what our spend delivers. The FinOps Foundation's unit economics guidance connects technology costs to business output. For an agent service, that could mean comparing the cost per completed task with what you charge, so you can see how much of each task's revenue goes toward running it.
Choose a unit that matches your product
- Cost per customer helps you review account margins.
- Cost per request helps you price an API call.
- Cost per completed task helps you understand the cost of successful agent work.
Keep the reporting period and cost categories consistent. Compare similar customer groups or workloads so a change in the mix doesn't hide what happened to costs.
Calculate cost per completed task
Imagine an agent service spending $900 in a month and completing 10,000 tasks. Its costs include model calls, sandbox compute, and a share of its database and network bill.
Here's an example breakdown of the monthly costs.
- Model usage
- $600
- Sandbox compute
- $200
- Shared infrastructure
- $100
$900 / 10,000 completed tasks
Cost per completed task is the attributed cost divided by the number of completed tasks. Keep the cost of retries and failed attempts in the total, even when those attempts don't produce a result.
For customer reporting, start with the costs attributed to an account in that period. To calculate an average for a customer group, divide the group's total by its customer count.
Connect unit costs to revenue
If you charge $0.20 per task and the tracked infrastructure costs $0.09, you have $0.11 left before other delivery costs and company expenses. Include all cost of goods sold when calculating SaaS gross margin.
Track total spend alongside unit cost. A growing bill can accompany a falling cost per task as more customers use the service. You can then investigate whether a change comes from usage, pricing, retries, or idle capacity.
Connect spend to customers and tasks
In CostGraph, virtual tags group spend by customer or product. Showback lets you include each group's share of common infrastructure, giving you a cost to compare with its revenue.
For agent workflows, you can review estimated model and compute costs by run. Combine those list-price estimates with completed-task counts from your application for the same period to calculate cost per task.
Frequently asked questions
Unit economics measures the revenue and costs of a single business unit. SaaS unit economics usually focuses on a customer or subscription. A transaction, API request, or completed agent task can also be a useful unit.
SaaS unit economics includes acquiring, serving, and retaining customers. Cloud unit economics focuses on the infrastructure cost of serving them, such as compute, storage, networking, and model APIs. That cost contributes to the broader customer economics.
These metrics connect acquisition, delivery costs, and customer retention.
- Customer acquisition cost (CAC) divides sales and marketing costs by new customers acquired.
- Customer lifetime value (LTV) estimates a customer's value over the relationship. Use a gross-margin-adjusted estimate when comparing it with CAC.
- The LTV:CAC ratio divides lifetime value by customer acquisition cost.
- CAC payback period measures how long a customer's gross profit takes to recover acquisition costs.
- Gross margin measures the share of revenue remaining after cost of goods sold.
- Net revenue retention (NRR) tracks existing-customer revenue after expansion, downgrades, and churn. It excludes new customers.
- Average revenue per user (ARPU) divides revenue by users in the same period. Use revenue per account when the customer is an organization.
Stripe's SaaS metrics guide explains these measures.
Subtract cost of goods sold (COGS) from revenue, divide by revenue, and multiply by 100. SaaS COGS can include hosting, model APIs, and the support and payment costs assigned to delivering the service. Include those costs before calling an infrastructure-only margin your gross margin.
Compare businesses with similar products, pricing models, and stages. Review LTV:CAC alongside CAC payback, gross margin, and retention. A strong lifetime-value ratio doesn't tell you how quickly you recover acquisition costs. Stripe's CAC payback guide explains that distinction.
Startups have less customer history, so lifetime value and retention estimates need regular revision. Scaling companies can compare customer cohorts, plans, and acquisition channels. Track actual costs and retention for each group instead of relying only on a company-wide average.
Reduce cost to serve, improve customer retention, or adjust pricing to reflect usage. For cloud and AI workloads, investigate idle capacity, repeated failed work, and expensive requests. Check that a lower cost still delivers the quality and performance customers need.
Combine billing and customer data for revenue and retention, sales and marketing data for acquisition costs, and CostGraph for attributed infrastructure costs. Use consistent customer identifiers and reporting periods so you can connect what customers pay with what they cost to serve.