Startups
Unit Economics for AI Startups: Margins After Inference
Unit economics shows whether each customer makes or loses money. Formulas, how to calculate them, worked examples, and how AI inference changes the maths.
Unit economics measures how much money a business makes or loses on each unit it sells, such as one customer, one subscription or one order, after the costs directly tied to that unit. If each unit is profitable and customers stay long enough to pay back what it cost to win them, growth makes the business healthier; if not, growth makes losses bigger. For AI startups, unit economics needs extra care, because every request a customer makes costs money in model inference, so heavy users can turn a healthy-looking price into a loss.
This guide explains the core unit economics formula set, how to calculate unit economics step by step, unit economics examples for SaaS, ecommerce and an AI product, what's different about unit economics for AI, how to improve them, and the mistakes that make the numbers lie.
What Is Unit Economics?
Unit economics answers one question: does each unit of the business make money? The "unit" depends on the business:
- SaaS: one customer account or one paid seat, per month.
- Ecommerce: one order.
- Marketplace: one transaction.
- AI products: often one customer, one seat, or one task (such as one document processed or one support ticket resolved).
Investors focus on unit economics because a company can grow revenue quickly while losing money on every sale. Strong unit economics mean the company can spend more to grow with confidence; weak ones mean growth needs ever more funding.
The Unit Economics Formula Set
The core unit economics formula set, using monthly figures for a subscription business:
| Metric | Formula | What it tells you |
|---|---|---|
| Revenue per unit (ARPU or ARPA) | Revenue ÷ number of customers | Average monthly revenue per customer |
| Cost to serve (COGS per unit) | Hosting, AI inference, payment fees, support and other direct costs ÷ customers | What each customer costs to serve |
| Gross margin | (Revenue − COGS) ÷ revenue | Share of each dollar left after direct costs |
| Contribution margin | Revenue − all variable costs per unit | Profit per unit before fixed costs |
| CAC (customer acquisition cost) | Sales and marketing spend ÷ new customers | Cost to win one customer |
| Churn | Customers lost ÷ customers at start, per month | How quickly customers leave |
| LTV (lifetime value) | ARPA × gross margin ÷ monthly churn | Gross profit from a customer over their lifetime |
| LTV:CAC | LTV ÷ CAC | Return on acquisition spending; around 3:1 is a common target |
| CAC payback | CAC ÷ (ARPA × gross margin) | Months to earn back acquisition cost |
Our guide to the LTV to CAC ratio goes deeper on the acquisition side.
How to Calculate Unit Economics
How to calculate unit economics, step by step:
- Define the unit. Customer, seat, order or task; be consistent.
- Measure revenue per unit for a period, after discounts and refunds.
- List the direct costs per unit: cloud hosting, AI model usage, third-party APIs, payment processing, customer support time, onboarding. Include them even if they're small.
- Calculate gross margin and contribution margin.
- Calculate CAC from real sales and marketing spend, including salaries and tools, divided by new customers in the same period. Separate paid channels from organic if you can.
- Measure churn by cohort, not just the overall average.
- Calculate LTV, LTV:CAC and payback.
- Break it down by plan, channel and customer size; averages hide the problems.
Unit Economics Examples
Example 1: a SaaS product
A project-management tool charges $50 per month per account.
- Direct costs: hosting $3, support $4, payment fees $2 → $9 COGS
- Gross margin: ($50 − $9) ÷ $50 = 82%
- CAC: $600; monthly churn: 2%
- LTV: $50 × 0.82 ÷ 0.02 = $2,050
- LTV:CAC: $2,050 ÷ $600 = 3.4
- CAC payback: $600 ÷ ($50 × 0.82) = about 15 months
Healthy: high margins and decent retention, though payback is on the long side.
Example 2: an ecommerce order
An online shop's average order is $60.
- Product cost $24, shipping $8, packaging $2, payment fees $2, returns allowance $3 → $39 variable cost
- Contribution margin per order: $21 (35%)
- If the average customer orders 2.5 times and costs $35 to acquire: lifetime contribution $52.50, so LTV:CAC of about 1.5
Marginal: profitable per order, but acquisition eats most of the profit, so repeat purchases need to rise or CAC needs to fall.
Unit Economics for AI
Unit economics for AI products differ from classic software in one big way: the cost to serve each customer depends on how much they use the product. Every prompt, document or agent step uses model inference, billed by tokens or GPU time. In traditional SaaS, an extra user costs almost nothing to serve; in AI, an extra heavy user can cost more than they pay.
What the data shows:
- Lower gross margins than SaaS. Traditional software companies often report gross margins of 75–80% or more. Andreessen Horowitz noted back in 2020 that AI companies often had gross margins closer to 50–60%. Bessemer Venture Partners' State of AI 2025 report found that the fastest-growing AI startups, which it called "Supernovas", averaged about 25% gross margins, often negative early on, while steadier "Shooting Stars" averaged around 60%.
- Costs vary hugely between users. A few power users can account for most of the inference bill.
- Costs are falling. The price of reaching a given level of model capability has dropped quickly over time, so margins can improve without price changes, though customers often upgrade to newer, more expensive models.
Worked example: an AI writing assistant
Illustrative numbers. An AI writing tool charges $20 per user per month. The average user makes 300 requests a month, each sending about 4,000 tokens (instructions, context and documents) and receiving about 800 tokens. Assume a capable model priced at $3 per million input tokens and $15 per million output tokens, and $2 per user for hosting, search, monitoring and payment fees.
| Average user | Heavy user (5× usage) | |
|---|---|---|
| Input tokens per month | 1.2 million | 6 million |
| Output tokens per month | 240,000 | 1.2 million |
| Inference cost | $3.60 + $3.60 = $7.20 | $18 + $18 = $36 |
| Other direct costs | $2 | $2 |
| Total cost to serve | $9.20 | $38 |
| Gross margin | 54% | −90% |
With CAC of $120 and 5% monthly churn:
- LTV = $20 × 0.54 ÷ 0.05 = $216
- LTV:CAC = 1.8, below the usual target
- CAC payback = $120 ÷ ($20 × 0.54) = about 11 months
After optimisation: the team routes 70% of requests (simple rewrites and summaries) to a small model priced at $0.25 per million input and $1.25 per million output tokens, and keeps the large model for hard tasks. Average inference cost falls to about $2.58, total cost to serve to about $4.58, and gross margin rises to 77%. LTV becomes $308, LTV:CAC about 2.6, and payback about 8 months. Adding usage limits or a higher tier for heavy users fixes the loss-making 5× users.
Our guide to the AI pricing model covers how to price around usage.
Unit Economics by Business Model
The "unit" and the metrics that matter most change with the business model:
| Business model | Usual unit | Metrics to watch | Typical trap |
|---|---|---|---|
| B2B SaaS | Customer account per month | Gross margin, CAC payback, net revenue retention | Long sales cycles hidden in blended CAC |
| Usage-based AI product | Task, request or customer | Cost per task, gross margin by usage tier | Heavy users priced like light ones |
| Ecommerce | Order | Contribution margin, repeat rate | Returns and shipping left out of costs |
| Marketplace | Transaction | Take rate, contribution per transaction, liquidity | Subsidies and promotions treated as marketing |
| Consumer subscription app | Subscriber per month | Trial conversion, churn, payback | Annual plans masking monthly churn |
| Hardware | Device sold | Unit cost, gross margin, attach rate of subscriptions | Warranty and support costs ignored |
From Unit Economics to Profitability
Good unit economics don't mean a company is profitable yet. Each unit's contribution margin has to cover fixed costs such as salaries, offices and research. A simple break-even check:
Customers needed to break even = monthly fixed costs ÷ monthly contribution per customer
Using the optimised AI writing tool above, each user contributes about $15.42 a month after direct costs. If the company's fixed costs are $150,000 a month, it needs about 9,700 paying users to break even, before counting acquisition spending. If each user contributed only $10.80 (the pre-optimisation figure), it would need nearly 14,000. Improving unit economics directly lowers the scale needed to survive, which also affects how long your cash lasts; our guide to burn rate covers that side.
The Hidden Cost of Free Tiers in AI
Free plans are a common growth tool, but in AI they cost real money per user. A rough check:
- If 20 free users cost $0.50 each per month in inference, that's $10 of cost for every paying user if one in 20 converts.
- Add that to the paying user's cost to serve when you calculate true margins.
- Limit free usage (daily caps, smaller models, slower queues) so the free tier stays a marketing expense you can predict.
What Investors Ask About Unit Economics
When investors look at an AI startup, expect questions such as:
- What's your gross margin, and how has it changed over the last few quarters?
- What does a heavy user cost you, and how many heavy users do you have?
- How much of revenue goes to model providers or GPUs?
- What happens to margins if you switch models or prices change?
- What's CAC by channel, and how long is payback?
- How do cohorts retain and expand over time?
Having a clear model with segments and scenarios answers most of these quickly, and shows you understand the business.
How to Improve AI Unit Economics
- Route requests by difficulty: small, cheap models for routine work; large models only when needed.
- Use prompt caching for repeated instructions and documents; providers discount cached input tokens.
- Trim context: send only the retrieved passages and history the model needs.
- Limit output length where long answers add little value.
- Price for usage: usage-based tiers, credits or fair-use limits so heavy users pay for what they use.
- Batch non-urgent work at the discounted batch rates many providers offer.
- Self-host or fine-tune smaller models once volume is high and stable enough to justify it.
- Watch the long tail: monitor cost per user and per feature, and investigate outliers.
Building a Simple Unit Economics Model
A unit economics model can be a spreadsheet with:
- Inputs: price per plan, usage per user (requests, tokens), model prices, other direct costs, CAC by channel, churn by cohort.
- Per-unit calculations: cost to serve, gross margin, contribution margin.
- Lifetime calculations: LTV, LTV:CAC, payback.
- Scenarios: usage doubles, model prices fall by half, churn rises, a cheaper model handles more traffic.
- Segments: small vs large customers, light vs heavy users, each acquisition channel.
Update it monthly with real data. The scenarios matter most for AI products, where usage patterns and model prices change quickly.
Common Unit Economics Mistakes
- Using averages only. Average margins can look fine while the heaviest 10% of users lose money.
- Leaving costs out: support, onboarding, refunds, payment fees and AI usage on free plans.
- Blended CAC: mixing free organic sign-ups with expensive paid ones hides how costly growth really is.
- Ignoring free users: in AI products, free tiers can burn real inference money.
- Assuming churn will improve without evidence from cohorts.
- Forgetting price changes: model price drops help, but model upgrades can raise costs again.
FAQ
What is unit economics?
Unit economics is the analysis of revenue and costs for a single unit of a business, such as one customer, subscription or order. It shows whether each unit is profitable and how long it takes to earn back the cost of acquiring a customer.
How do you calculate unit economics?
Define the unit, measure revenue per unit, subtract the direct costs per unit to get gross or contribution margin, then compare lifetime gross profit (LTV) with customer acquisition cost (CAC) and calculate how many months it takes to pay back CAC.
What is a good LTV to CAC ratio?
Around 3:1 is a common benchmark for subscription businesses, meaning a customer's lifetime gross profit is about three times what it cost to acquire them. Payback within 12–18 months is also often seen as healthy, depending on stage and funding.
Why are AI startup margins lower?
Because every use of the product costs money in model inference, so the cost to serve grows with usage. Benchmarks show many AI companies with gross margins well below traditional software's 75–80%, especially fast-growing ones, though routing, caching and falling model prices can improve them.
What are unit economics examples?
A SaaS tool earning $50 a month per customer with $9 of direct costs has an 82% gross margin; an online shop with a $60 order and $39 of variable costs makes $21 of contribution per order. An AI app also has to subtract inference costs, which vary with each customer's usage.