Home / Insights / Software Costs and Budgets

Software Costs and Budgets

SaaS Unit Economics for Founders: Infrastructure, Support and AI Costs per Customer

Most SaaS founders know their revenue per customer to the penny and their cost per customer only roughly. As AI features add a new variable cost, that gap becomes dangerous. This guide shows how to measure cost to serve, which levers matter and how to build the numbers into product and pricing decisions.

TopicsSoftware Costs and BudgetsWeb and SaaS Development

Key takeaways

  • Cost to serve has three variable layers in a modern SaaS product: infrastructure, support and, increasingly, AI model usage. Measure each per customer or per tenant, not only as a monthly total.
  • You do not need perfect accounting. A ‘good enough’ attribution model built from tags, tenant-aware logging and support tickets is enough to expose unprofitable plans and customers.
  • AI features behave differently from classic SaaS costs: they scale with usage and prompt design rather than with seats, so they need their own unit metric, limits and monitoring.
  • Pricing, packaging and architecture decisions should be checked against unit costs before launch, not after the first worrying cloud bill.
  • Review unit economics monthly with product, engineering and finance together, and track trends per plan rather than comparing unrelated products.

A SaaS business can grow revenue every month and still get less healthy. The usual reason is that nobody is watching the cost of serving each customer. Cloud bills arrive as one total, support time is spread across a team, and in the last year a third cost has appeared: calls to large language model APIs for search, summaries, drafting and chat features. Each of these grows with customers, but not in the same way, and not always in proportion to what customers pay.

This article is for SaaS founders, CEOs and product leaders who want a clear view of cost per customer without building a finance department. It explains what to include, how to attribute shared costs, how AI changes the picture, and how to turn the numbers into pricing and roadmap decisions. It draws on what we see when building and running multi-tenant products as part of our SaaS product development work, where billing, usage analytics and tenant separation are designed in from the start rather than retrofitted.

What does it actually cost to serve one SaaS customer?

Gross margin in SaaS is revenue minus the cost of delivering the service. For decision-making, it is more useful to break that cost down per customer, per tenant or per unit of usage. The FinOps Foundation’s unit economics capability describes this as linking technology spend to the value it creates, with metrics such as cost per tenant, cost per transaction and cost to serve.

The three variable layers

LayerWhat it includesWhat drives itHow visible it usually is
InfrastructureCompute, databases, storage, data transfer, queues, search, monitoring, third-party APIs (email, SMS, maps)Active usage, data volume, integrations, architecture choicesVisible as a total; rarely attributed to customers
Support and successSupport tickets, onboarding, account management, implementation helpProduct complexity, customer segment, documentation qualityOften hidden in salaries; rarely linked to plans
AI model usageLLM API calls, embeddings, vector storage, speech-to-text, image generationFeature usage, prompt length, model choice, retriesNew and volatile; often tracked only as a vendor invoice

What to leave out, and what to keep in mind

Sales and marketing costs belong in acquisition metrics, and core product development is usually treated as operating expense. Keep them separate from cost to serve, but do not forget them: a customer with a healthy gross margin can still be unprofitable if acquiring and onboarding them was expensive. Payment processing fees are a grey area; many founders include them in cost to serve because they scale directly with revenue.

Action: write down which cost lines you count in cost to serve and agree the definition with your finance lead or accountant, so the number means the same thing every month.

How do you attribute shared infrastructure costs to customers?

In a single-tenant or dedicated deployment, attribution is easy: the customer’s environment has its own bill. Most SaaS products, however, use a pooled multi-tenant design where customers share databases and compute. Attribution then has to be estimated.

Aim for good enough, not perfect

AWS’s guidance on calculating tenant costs in SaaS environments makes a point founders should take to heart: unless the data drives billing, the goal is an accurate picture of how consumption is distributed, not a precise accounting system. The same guidance recommends reusing operational telemetry, logging requests with tenant context, and keeping billing meters (what customers pay for) separate from consumption tracking (what they actually cost you).

Practical attribution methods

  • Tag what you can. Resources dedicated to a customer, plan or feature should carry tags. On AWS, cost allocation tags must be activated in the billing console before they appear in Cost Explorer and the monthly cost allocation report, so do this early.
  • Apportion shared resources by a usage proxy. Requests per tenant, database rows or storage per tenant, background jobs per tenant, or compute time per tenant from your logs.
  • Treat fixed platform costs separately. Monitoring, CI, base cluster capacity and security tooling are largely fixed. Spread them evenly or keep them as a platform overhead line rather than distorting per-customer numbers.
  • Track third-party pass-through costs per tenant. SMS, email, maps and data enrichment are easy to meter and often surprisingly large for a few heavy users.

Which allocation approach fits your stage?

StageApproachEffortWhat you learn
Pre-product-market fitTotal infrastructure divided by active customers, plus a check on the top five heaviest accountsHoursWhether any customer is wildly unprofitable
Early growthTags for dedicated resources; usage proxies from logs for shared ones; monthly spreadsheet per planDays, then minutes per monthCost per plan and per segment; outliers
ScalingTenant-aware metrics pipeline joined to billing exports; dashboards per plan and featureWeeks, as an engineering projectCost per feature, margin per customer, effect of architecture changes

Action: add a tenant identifier to every log line and background job now. It costs little, and every later attribution method depends on it.

How do you measure support cost per customer?

Support is often the largest cost to serve in B2B SaaS, and the least measured. It is mostly people’s time, which makes it feel fixed, but it scales with customer count and product complexity just as surely as infrastructure does.

A simple method

  1. Take the monthly fully loaded cost of everyone who does support, onboarding and customer success work, including the share of founders’ and engineers’ time spent on escalations.
  2. Tag every ticket, call and onboarding session with the customer and plan in your help desk.
  3. Allocate the monthly cost by share of tickets, or better, by share of handling time if your tool records it.
  4. Add one-off onboarding and implementation costs separately, and amortise them over the expected customer lifetime if you want a view of payback.

What the numbers usually reveal

Support load is rarely spread evenly. A few customers, often on low-priced plans or with unusual integrations, can consume a disproportionate share. Tickets also cluster around specific features, which turns support data into product feedback: a confusing import flow or a fragile integration shows up as cost before it shows up as churn.

Illustrative example: a 15-person B2B SaaS company might find that its entry plan generates more tickets per customer than its professional plan, mostly about CSV imports. Fixing the import flow and adding a short guide could reduce cost to serve for the whole plan without any change to infrastructure.

Action: make customer and plan mandatory fields in your help desk this month, and review the top ten ticket categories by cost quarterly.

How do AI features change SaaS unit economics?

Adding generative AI features changes the cost structure of a SaaS product. Traditional SaaS infrastructure costs grow slowly and predictably with usage; per-customer costs often fall as you scale. LLM API costs are different: they are charged per token, they scale directly with how much customers use the feature, and they depend heavily on design decisions your team makes.

Why AI costs are harder to predict

  • Tokens, not seats. Model providers charge by tokens processed. According to OpenAI’s explanation of tokens, one token is roughly four characters or about three-quarters of a word in English, and non-English text often produces more tokens per character. A feature that sends a long document with every request costs far more than one that sends a short question.
  • Context grows quietly. Chat features resend conversation history; retrieval features add retrieved passages to every prompt. Costs per request rise as conversations lengthen or as you add more context to improve quality.
  • Heavy users are heavier. Usage of AI features is often concentrated. A flat-priced plan with unlimited AI usage exposes you to a few customers driving most of the cost.
  • Model choice is a cost lever. Providers offer models at different price and capability points. Using the largest model for every task, including classification or short extraction, is a common and expensive default.

Unit metrics for AI features

The FinOps Foundation suggests starting with cost per token and moving towards outcome-based measures such as cost per assist or per case deflected. For a SaaS product, practical metrics include AI cost per active customer per month, AI cost per feature use (per summary, per draft, per search), and AI cost as a percentage of plan price.

Controls to build in from day one

  • Log tokens in and out, model, feature and tenant for every AI call.
  • Set per-tenant usage limits or credits that match plan pricing.
  • Route simple tasks to smaller models and reserve large models for tasks that need them.
  • Cache results for repeated requests where appropriate, and cap context length.
  • Alert on daily AI spend per tenant above a threshold.

Quality and cost interact: a cheaper model that produces worse answers can raise support costs and churn. Our guide to testing AI features with evaluation sets explains how to compare models on quality before switching for cost reasons.

How should unit economics shape pricing and product decisions?

Measuring cost per customer only pays off if it changes decisions. The FinOps Foundation notes that unit economics succeeds when it improves decisions, not when dashboards exist, and that trends within a product are often more actionable than comparisons across unrelated products.

Decisions unit economics should inform

DecisionQuestion to askUnit metric to check
Plan pricing and limitsDoes every plan cover its cost to serve with a healthy margin at typical and heavy usage?Cost to serve per plan, at median and 90th percentile usage
AI feature packagingShould AI be included, metered, sold as an add-on or limited by credits?AI cost per active user and per feature use
Enterprise deals and dedicated instancesDoes the price cover dedicated infrastructure, extra support and security reviews?Fully attributed cost of the dedicated environment plus support hours
Architecture changesWill a re-architecture reduce cost per tenant enough to justify the work?Cost per tenant before and after, against engineering cost
Free tiers and trialsWhat does each free user cost, and what share converts?Cost per free user per month, conversion rate

A worked example (illustrative numbers only)

Suppose a SaaS plan sells for 100 units of currency per month. Infrastructure attributed to a typical customer is 6, support 12 and AI usage 4, giving a cost to serve of 22 and a gross margin of 78%. Now look at the heaviest tenth of customers on the same plan: infrastructure 10, support 25, AI 30. Their cost to serve is 65 and the margin drops to 35%. The average looked fine; the plan design did not. Options include an AI credit allowance with paid top-ups, moving heavy users to a higher tier, or reducing AI cost per use through model routing. These figures are assumptions to show the method, not benchmarks.

For founders weighing how to price custom AI work itself, our earlier article on pricing models for AI projects covers fixed price, time and materials and outcome-based options.

A 60-day plan to get your unit economics under control

You can get a useful picture within two months without a large project. The plan below assumes a small team and a pooled multi-tenant product.

Weeks 1 to 2: define and collect

  • Agree the cost-to-serve definition and the unit metrics: cost per customer, per plan and, for AI, per feature use.
  • Export three months of cloud, AI vendor and third-party API invoices.
  • Make customer and plan mandatory in the help desk.

Weeks 3 to 4: instrument

  • Add tenant identifiers to logs, jobs and AI calls if missing.
  • Activate cost allocation tags for dedicated resources.
  • Log tokens, model and feature for each AI request.

Weeks 5 to 6: first numbers

  • Build a spreadsheet or simple dashboard: cost to serve per plan, top 20 customers by cost, AI cost per feature.
  • Compare against revenue per plan and identify outliers.

Weeks 7 to 8: act

  • Pick two or three changes: plan limits, AI credits, model routing, fixing the top support driver, right-sizing over-provisioned resources.
  • Set a monthly review with product, engineering and finance.

If load and usage patterns are unclear, it is worth measuring them properly; our article on building realistic load from real usage patterns shows how usage data feeds capacity and cost planning.

Common mistakes and a monthly unit economics checklist

Mistakes we see most often

  • Averages hide problems. Always look at distribution: median and heaviest customers per plan.
  • Unlimited AI on flat plans. It is easy to launch and hard to take away later. Start with generous limits you can raise, rather than none.
  • Ignoring support as a cost. Founders often optimise cloud spend while one plan’s support load erodes far more margin.
  • Optimising too early. Before product-market fit, simple estimates are enough; heavy cost engineering can distract from finding customers.
  • One-off analysis. Unit costs drift as features ship, models change and customers grow. Treat this as a monthly routine.

Monthly checklist

  1. Cost to serve per plan updated, with median and top-decile customers.
  2. AI spend per tenant and per feature reviewed; any tenant above threshold investigated.
  3. Top support drivers by cost reviewed and linked to product backlog items.
  4. Untagged or unattributed cloud spend kept below an agreed share.
  5. Plan limits and AI credits compared with actual usage.
  6. Any planned pricing, packaging or architecture change checked against unit costs.
  7. Trends recorded so the next review compares like with like.

Frequently asked questions

What gross margin should a SaaS business aim for?

It depends on your segment, delivery model and stage, and we would not quote a universal benchmark. More useful is to know your margin per plan and per customer segment, watch the trend, and make sure heavy users on each plan still cover their cost to serve.

Do we need a FinOps tool to measure cost per customer?

Not at first. Cloud billing exports, cost allocation tags, tenant-aware logs and a help desk with customer fields are enough for a spreadsheet model. Dedicated tools become worthwhile when you have many accounts, services or teams to coordinate.

How should we price AI features in our SaaS product?

Start from measured AI cost per use and per active customer. Common options are including a usage allowance in each plan, selling AI as an add-on, or using credits with paid top-ups. Avoid unlimited AI usage on flat plans unless you have measured heavy-user costs.

Is a dedicated instance for an enterprise customer worth it?

It can be, if the price covers the dedicated infrastructure, extra deployment and support effort, and security reviews. Attribute those costs fully before agreeing the price, since dedicated environments are easy to underprice.

How often should we review unit economics?

Monthly is a good rhythm for most SaaS teams, with a deeper review before any pricing change, major feature launch or architecture change. Review AI costs more often while new AI features are being adopted.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. FinOps Foundation: Unit Economics capability — accessed 9 November 2026. Definition of unit economics, example metrics such as cost per tenant and cost per token, outcome-based AI metrics, and the focus on decisions and trends.
  2. AWS Partner Network Blog: Calculating Tenant Costs in SaaS Environments (Tod Golding) — accessed 9 November 2026. Silo and pooled attribution, tenant-context logging, separating billing meters from consumption, and the ‘good enough’ principle.
  3. AWS Billing and Cost Management documentation: Organising and tracking costs using cost allocation tags — accessed 9 November 2026. Tag types, activation requirement and the monthly cost allocation report.
  4. OpenAI Help Center: What are tokens and how to count them? — accessed 9 November 2026. Token rules of thumb (about four characters or three-quarters of a word in English) and higher token counts for non-English text.

Do you know what each customer on each plan really costs you to serve?

We can help instrument your SaaS product for tenant-level cost tracking, set sensible AI usage limits and align billing with your plans.