Software companies report gross margin as one number, and for a subscription business that number is usually a good one, somewhere in the seventies or above. It is also an average across every tenant on the platform, and the tenants are not alike. A self-serve customer on a starter plan who raises a ticket a week and an enterprise customer on a six-figure contract who needed a three-month implementation consume the shared cost of support, onboarding, infrastructure and customer success in completely different proportions, and the blended margin hides that. This article is about costing those four things per tenant, in the time-driven way we use for any other operation, and about what happens to margin by contract segment when you stop averaging. The numbers are illustrative and describe no client; the shape of the result is what I have seen when the exercise is done.

What matters here

How do you calculate cost-to-serve per tenant in a SaaS business, and why does it change margin by segment?

Cost each of the four shared services by what a tenant actually consumed: support by ticket, weighted by ticket type and time; onboarding by implementation hours; infrastructure by measured usage such as storage, compute or API calls; customer success by assigned time. Sum them per tenant and compare with that tenant’s annual recurring revenue. When the result is rolled up by contract segment, the blended margin splits into different figures for self-serve, mid-market and enterprise, and within each segment a minority of tenants usually carries most of the cost. The blended average is right for the company and wrong for almost every individual tenant and pricing tier.

Why the blended number is right and useless

To be fair to the blended gross margin, it is the correct number for the company as a whole and the one investors need. The trouble starts when it is used for decisions about tiers, pricing and which customers to pursue, because those decisions are about segments, and the segments do not share the average. A pricing team that believes every plan runs at the blended margin will set starter-plan prices too low and enterprise prices too high, or the reverse, and will not know which. The gross margin versus net profitability article makes the general argument; here it is applied to a platform business.

It is also worth saying that the cost-to-serve analysis does not replace the unit economics that SaaS teams already track, such as acquisition cost, payback and churn. It sits under them. Net revenue retention tells you whether a cohort grows; cost-to-serve tells you whether the revenue it retains is worth having, and a cohort that retains beautifully at a negative contribution is a problem that retention metrics will not flag.

The four cost pools and how each one is assigned

Support. The cost of the support team for the period, divided by its practical capacity in minutes, gives a capacity cost rate. Each ticket gets a time from a simple time equation: a base time by ticket category, plus increments for escalation, for a screen-share, for a custom integration. Tickets belong to tenants, so support cost per tenant is the sum of their tickets’ minutes at the rate. A count of tickets is the crude version and is better than nothing; it is wrong by whatever the spread of ticket complexity is, which in my experience is large. The cost driver article covers choosing between count and weighted time.

Onboarding and implementation. Usually the easiest to assign, because implementation hours are often already logged by project. Where they are not, a time equation by plan and by number of integrations gets close. The subtlety is the period: a three-month implementation is a cost of the contract, not of the quarter it happened in, and we normally spread it over the expected contract life or the first year, and say which.

Infrastructure. Cloud cost is the pool most SaaS companies already attribute in some way, by storage, compute, API calls or events, because the cloud provider’s own bill is itemised enough to make it possible. The choice of driver matters less than consistency, and the trap is the shared fixed layer, such as the base cluster, monitoring and security, which should be treated as capacity and assigned at a practical-capacity rate rather than spread by tenant count. The cost to serve an AI feature article works through the version of this where the infrastructure cost is per inference.

Customer success. Assigned by time, and the time is usually the least measured of the four. Customer success managers have a book of accounts and their week is not logged, so we use a time equation by segment and by activity: a quarterly business review takes so long, a renewal negotiation so long, a health-check call so long, and the base allocation for an unassigned self-serve tenant is close to zero. The measuring activity times article is about how to get those estimates without monitoring anybody.

An illustrative company, costed

The figures are invented for the exercise. A platform with EUR 12.0 million of annual recurring revenue across 1,200 tenants in three contract segments. Four shared cost pools totalling EUR 4.6 million: support EUR 1.2 million, onboarding EUR 0.9 million, infrastructure EUR 1.5 million, customer success EUR 1.0 million. Averaged across the base, that is 38.3 percent of ARR, leaving 61.7 percent for everyone.

Segment Tenants ARR (EUR m) Average ARR per tenant (EUR)
Self-serve 900 2.7 3,000
Mid-market 260 5.2 20,000
Enterprise 40 4.1 102,500
Total 1,200 12.0 10,000

Now assign each pool by its driver. Support by weighted ticket minutes: the self-serve segment raises most of the tickets, 60 percent of the minutes, mid-market 30 percent, enterprise 10 percent. Onboarding by implementation hours: 10, 40 and 50 percent. Infrastructure by measured usage: 25, 40 and 35 percent. Customer success by assigned time: 5, 45 and 50 percent.

Cost pool (EUR m) Self-serve Mid-market Enterprise Total
Support (1.2) 0.720 0.360 0.120 1.200
Onboarding (0.9) 0.090 0.360 0.450 0.900
Infrastructure (1.5) 0.375 0.600 0.525 1.500
Customer success (1.0) 0.050 0.450 0.500 1.000
Cost-to-serve, total 1.235 1.770 1.595 4.600
Cost-to-serve per tenant (EUR) 1,372 6,808 39,875 3,833
Cost-to-serve as share of ARR 45.7% 34.0% 38.9% 38.3%
Margin after cost-to-serve 54.3% 66.0% 61.1% 61.7%

The blended 61.7 percent has become 54.3, 66.0 and 61.1. The self-serve segment, which looked like the cheapest to run because nobody is assigned to it, turns out to be the most expensive per euro of revenue, because support tickets do not scale down with contract size. The enterprise segment, which everyone assumed was heavy, is heavy in onboarding and customer success and light in support, and lands close to the average. Mid-market is the best segment on this shape, and in my experience it often is, which is one reason so many platforms drift their pricing towards it.

The within-segment spread is usually bigger than the between-segment one

Twelve points between the best and worst segment sounds like the finding. It is usually not. Inside each segment the distribution is skewed, and the skew is where the decisions are. Take the self-serve segment above: EUR 1,372 of cost per tenant on average against EUR 3,000 of revenue. If, as is common, something like 15 percent of those tenants generate 60 percent of the segment’s support minutes, then those 135 tenants each carry about EUR 3,200 of support cost alone, more than their entire subscription, before infrastructure is counted; the other 765 tenants carry around EUR 375 each and are comfortably profitable. The segment margin of 54 percent describes neither group.

The same happens at the top. Among 40 enterprise tenants, two or three with heavy custom integrations and a dedicated success manager can consume a third of the segment’s cost, while the rest sit well above the blended margin. The distribution shape article is about this pattern in general; in software it tends to be extreme, because the marginal cost of serving a well-behaved tenant is very close to zero and the cost of serving a difficult one is bounded only by patience.

What changes once you can see it

Four decisions usually follow, and none of them is “fire the expensive customers”. First, the starter plan gets a support entitlement, a limit on human-assisted tickets with self-service and community beyond it, priced so that the heavy minority either pays for its consumption or moves up a tier. Second, onboarding is priced or scoped explicitly, so that a three-month implementation on a EUR 20,000 contract is either charged or recognised as an investment with a payback, not silently absorbed. Third, the infrastructure driver becomes a plan limit, so that a tenant whose usage is ten times the plan median is on a plan built for that. Fourth, customer success time is allocated to where the retained revenue is, which is often not where it currently goes. Each of those is a pricing or packaging change, and each one changes the distribution rather than the average, which is the right target. The per-token pricing article is the AI-product version of the third decision.

Three things to be careful about

Do not assign shared fixed infrastructure by tenant count. It makes every small tenant look expensive by construction and hides the real driver, which is usage. Treat the base layer as capacity with a practical-capacity rate and assign it by measured consumption; the capacity costing page has the mechanics, and the unused headroom in the cluster is a cost of growth policy, not of any tenant.

Do not read one quarter. Onboarding is lumpy, support has spikes after releases, and a tenant that looks terrible in the quarter they went live can be the best account on the platform a year later. We normally cost twelve months and show the trend by cohort.

And do not let the exercise become an argument about the segment boundaries. Whether mid-market starts at EUR 10,000 or EUR 15,000 of ARR changes the segment averages and changes none of the tenant-level facts. The tenant-level table is the asset; the segments are a way of reading it, and the IT and digital services cost-to-serve page sets out the standard set we start from and adjust.

Blended gross margin is the right number for the company. It is the wrong number for every tier, every plan and almost every tenant, and the difference is where pricing gets decided.

Related reading: the gross margin problem in AI startups, how to calculate customer profitability, customer profitability analysis and what share of customers are unprofitable.