Blog
→
AI Spend Management
October 12, 2026

AI unit economics for SaaS: costs, margins, formula

Written by:
Christophe Sion
CEO
AI unit economics for SaaS
Share on XShare on LinkedInShare on FacebookShare by email
In this article
Ready to get started?
Get full visibility into your spend in minutes.
Get started for free

AI unit economics

AI unit economics answers a simple but high-stakes question: does each AI-powered action create more value than it costs? For a SaaS company, that means measuring whether each AI-generated answer, automated workflow, copilot-assisted task or agent action adds to margin or eats into it.

The question matters because AI brings variable cost back into software. A normal SaaS feature is expensive to build and then cheap to serve, so each extra customer adds little cost. An AI feature charges you again every time it runs, because the AI vendor bills per use. If you cannot see cost per request, feature, customer and team, revenue can grow while profitability gets worse underneath.

Why AI features are harder to make profitable than they look

AI features are hard to run profitably because their costs rise with usage and usually stay invisible until finance gets the bill. A pilot impresses everyone, adoption rises, usage compounds, staff start checking the AI's output by hand, and the feature that won the demo becomes the one finance cannot explain.

AI adds a new cost-to-serve layer inside software, and these are the drivers that show up in gross margin:

  • Prompt length: how much text is sent to the model with each request. Longer prompts cost more every time.
  • Context retrieval: the product looking up documents or data to send along with the request.
  • Retries and fallback models: requests that fail and run again, or get passed to a second, often more expensive model.
  • Keeping responses fast: the extra work, and sometimes extra capacity, needed to make the AI answer quickly.
  • Support tickets and hallucination cleanup: fixing wrong answers the AI gave with confidence (hallucinations) and handling the complaints they cause.

In accounting terms, these add up to a new kind of cost of goods sold that grows with every use. Treat AI like ordinary software with near-zero marginal cost, and the margin you planned will not hold.

How AI unit economics works in SaaS

AI unit economics is the relationship between revenue per unit and fully loaded cost per unit. The unit can be a request, a resolved support ticket, a generated proposal, a completed analysis or any other repeatable outcome your product delivers.

A practical formula looks like this:

Unit margin = revenue attributable to the unit − fully loaded AI cost of the unit

Margin % = unit margin ÷ attributable revenue

If you cannot attach revenue directly, use a consistent proxy, such as the extra upgrades or retention the feature brings, or an allocation based on usage. Perfect attribution is rare, and any consistent method beats having none.

Start with the right unit

Pick a unit that matches a business outcome. Cost per million tokens helps engineers tune the product, while cost per customer-facing result tells the company what each result costs. A support software company may track cost per resolved ticket, a sales tool cost per proposal created and a workflow tool cost per approved task. The closer the unit maps to what the customer values, the better the decisions it supports.

Measure revenue per unit

If AI is sold as an add-on, this step is simple: divide AI-driven revenue by the number of units delivered. If AI is bundled into a plan, estimate its contribution through expansion revenue, more upgrades to higher tiers, lower churn or better seat retention. A rough, consistent estimate is enough. What matters is that the feature stops being treated as free because it sits inside a subscription.

Measure fully loaded cost per unit

This is where most teams undercount, because the real unit cost goes well beyond the model bill.

It covers everything it takes to deliver one result: the AI charges themselves plus the monitoring, human correction and support around them. The cost stack below breaks down each layer.

If users retry three times to get a usable result, those extra attempts belong in the unit cost. If a hallucinated answer creates manual work later, that work belongs in it too.

A quick example

Say an AI support feature helps resolve tickets and brings in an estimated €0.80 of revenue per assisted resolution. If the full cost per resolution is €0.32, the unit margin is €0.48 and the margin is 60%, which is healthy.

Now say the same feature looks cheap on token cost alone, but retries, quality checks and support overhead push the full cost to €0.74. The unit margin drops to €0.06, about 8%, and the same feature calls for a very different decision.

The cost stack most teams undercount

The full cost of an AI feature has two layers: the direct charges for running AI, and the operating costs around it that rarely appear in the AI budget.

Direct AI delivery costs

Start with the obvious layer: prompt and completion tokens (the text sent to the model and the text it writes back), embeddings, vector database usage (the specialized database that stores documents for AI to search), reranking (a second pass that sorts search results by relevance), image or audio processing, tool calls, and any fallback or premium model usage. Routing simple work to a smaller model and escalating only complex tasks changes the unit cost significantly, which is why the mix of models matters as much as any vendor's headline price.

Hidden operating costs

Then add the hidden costs that decide whether a feature is profitable: monitoring, evaluation pipelines (automated tests that check the quality of AI output), retries, handling vendor rate limits (caps on how many requests you can send per minute), caching infrastructure, human review, incident response, customer support, and refunds or credits caused by bad output.

European SaaS companies may also need to account for GDPR controls, vendor reviews, data retention policies and audit requirements when AI touches sensitive financial or customer data. The more regulated the workflow, the less a token-only calculation tells you.

Why model lifespan changes the math

Model lifespan changes the math because the AI market moves every few months, so the work behind an AI feature loses value faster than ordinary software.

AI features depreciate faster than normal software

Time is one of the least discussed parts of AI unit economics. Traditional software features can stay relevant for years with small updates. AI features sit on top of a model market that changes every few months: prices drop, quality jumps, models can read more text at once, and user expectations reset. A workflow that looked differentiated six months ago can quickly become standard, or fall behind.

That creates a depreciation effect. Even if you never train a model yourself, you inherit the market's rapid obsolescence. The instructions, quality tests, routing rules and model customizations your team builds can lose economic value faster than ordinary product work. If a large share of your margin depends on one expensive model behaving one specific way, your economics are more fragile than they look.

Customer expectations move faster than your pricing page

Customers compare your AI with the best tools they use anywhere, including products far outside your category. When a stronger, cheaper model reaches the market, they expect better output, faster responses or both. That squeezes margin from two directions: you may need to improve performance while defending your price.

Switching speeds also vary. Individual users adapt quickly, while enterprise accounts move slowly because procurement, security review and workflow validation take time. That can leave you in an awkward middle period, with the old model still deployed, the new standard already obvious and your cost structure lagging behind the market.

Build for switching, routing, and re-pricing

Design your economics for change. Keep the product's connection to any one model easy to swap, which engineers call model abstraction. Test routing rules regularly. Recalculate margin whenever a vendor changes prices, response times shift or prompts change. Review whether each feature should be bundled into a plan, priced by usage or limited to higher tiers. AI unit economics works as an operating habit, revisited every time the model market moves.

How to improve AI unit economics without slowing product teams

Improve AI unit economics by measuring cost per unit first, then cutting the expensive paths, with finance and product working from the same numbers.

Instrument before you optimise

Start by measuring. Track live cost at the level of each request, workflow, feature, customer and team, and reconcile the usage each vendor reports against what it invoices. Connect accounting and payment systems through integrations so cost data sits in one place, then link that spend to revenue, retention or another business outcome. That link is the difference between AI observability, which shows what the AI did, and AI spend management, which shows whether it deserves to scale.

Route, cache, and cap expensive paths

Send each task to the cheapest model that handles it well, and keep the most powerful models for complex work. Cache repeated responses, cut unnecessary context and set limits on retries. Hallucinations need a cost lens too: they waste the model call first, then create rework. If the product needs a hidden human rescue loop to stay usable, its true unit economics are probably worse than the dashboard shows.

Put finance and product on the same controls

The strongest teams treat AI unit economics as shared infrastructure. Product owns the experience, engineering owns performance and finance owns the numbers, with everyone working from the same numbers and the same Financial insights. In practice, that means launch gates (cost checks a feature must pass before release), P&L views per feature, expense management controls, budget thresholds and forecast scenarios, all agreed before a usage spike forces the conversation.

For practical frameworks to tighten controls and protect margin, explore improving spend management.

How Husk tracks AI unit economics

Husk gives finance and product one live view of AI unit economics. It connects AI usage and spend to requests, features, customers and teams, so the fully loaded cost in the formula above comes from real data, updated as usage happens.

A customer-level AI P&L sets each customer's AI cost against the revenue they bring, which shows where margin holds and which customers cost more to serve than they pay. When a vendor cuts prices or a new model arrives, Husk's model-switch simulation shows what moving a feature would do to your margin before engineering changes anything. Budget alerts flag a feature or team heading past its threshold, and Husk reconciles each AI vendor's bill against actual usage.

To see your own AI unit economics this way, start with Husk.

Frequently asked questions about AI unit economics

What is an AI unit?

An AI unit is the repeatable thing you measure economically: one request, one generated report, one resolved ticket, one onboarding workflow or one action completed by an AI agent. Choose the unit that best reflects customer value and business impact.

Is AI unit economics the same as AI FinOps?

Not exactly. AI FinOps is the operating discipline for tracking, allocating, forecasting and controlling AI spend. AI unit economics is the financial lens that asks whether each unit of AI output earns an acceptable margin. The two overlap and strong companies use both, with unit economics as the decision layer on top of spend visibility.

What is the 30% rule in AI?

There is no universal 30% rule for AI. Some teams use an internal guardrail that keeps fully loaded AI cost below 30% of AI-attributable revenue or gross profit, but that is a planning shortcut. It can mislead if it leaves out rework, support or compliance overhead. Set your own margin target based on your pricing, support model and growth stage.

Who should own AI unit economics in a SaaS company?

No single function can own it alone. Product understands the value created, engineering understands the cost drivers, and finance understands margin, forecasting and controls. The best setup is shared ownership with one source of truth, so AI decisions don't bounce between dashboards, invoices and spreadsheets.

‍

You deserve
financial clarity.
Get full visibility into your company’s finances in minutes.
Get started for free