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.

Ask about this postClaudeChatGPTPerplexity

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

$0.09per task

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

Put your bill to work

Connect a provider, watch your spend attribute itself, ask GraphAI where the money’s going.