MODULE 4 · LESSON 1
Free — no login requiredSign in to track progress, save quiz attempts and enrol in the full course.
Sign in to track progress / enrolUnit Economics and the Margin Problem
The shape has changed
Conventional software: build it once, serve the millionth customer for approximately nothing. Gross margins of 75–85% are ordinary, and the business improves as it grows.
An AI product: every request costs money. More engaged customers cost more. Success raises cost of goods sold in direct proportion to the thing you are trying to maximise.
This is the central economic fact of the category, and its consequences run through everything:
- Gross margin is a design outcome, not a given.
- Your most enthusiastic users may be unprofitable.
- Unlimited-use pricing is dangerous in a way it never was for software.
- A quality improvement that doubles cost is a business decision, not an engineering one.
Calculating cost per unit of work
Prices for model inference change frequently and in both directions, so learn the calculation rather than any particular number:
Cost per request ≈ (input units + output units) × price per unit
Then aggregate up:
Cost per customer per month = requests per customer per month × cost per request
And the number that matters:
Gross margin = (price − cost to serve) ÷ price
Two things routinely omitted from "cost to serve" and both belong in it:
Retrieval and supporting calls. A single user-visible answer often involves several model calls — a query rewrite, a retrieval step, the generation, sometimes a check. Cost the whole chain, not the final call.
The retry and failure tail. Failed requests, retries and abandoned interactions all cost money and produce nothing.
Get a measured figure from a real sample rather than an estimate. If nobody can produce one, that is itself the finding — it means the product's margin is unknown.
The levers that move unit cost
Unit cost is not fixed by the provider. It is substantially a design outcome, and these are the levers:
Routing by difficulty is usually the largest single saving available. Most products send every request to their most capable model, and most requests do not need it. Classifying difficulty and routing accordingly frequently cuts cost substantially with no perceptible quality change on the easy majority.
Customers who destroy margin
A dynamic with no real SaaS equivalent: individual customers can be unprofitable, and the ones who are tend to be the ones who love the product most.
Where pricing is per seat or flat, a customer using the product ten times more than average costs ten times more to serve while paying the same. In software that is a success story. Here it is a loss.
Watch for:
- Power users on flat pricing. The distribution of usage is usually far more skewed than the distribution of price.
- Customers whose workflow encourages retries. Products where users regenerate repeatedly until satisfied.
- Large document processing on unlimited plans. Cost scales with input size, and document sizes vary enormously.
- Automated or programmatic use where a human is not naturally rate-limiting consumption.
The response is not to punish engagement. It is to know your cost per customer, price so that heavy use is either paid for or bounded, and design so that heavy use is not disproportionately expensive to serve.
An illustrative model for a document-analysis product. The numbers are chosen to show the method; substitute your own measured figures, because prices move.
Product: users upload contracts and ask questions about them. Priced at £40 per user per month, unlimited use.
Per question asked, the chain is:
| Step | What it costs | |---|---| | Embed the question for retrieval | Small | | Retrieve relevant passages | Small | | Generate the answer with retrieved context | The dominant cost — long context, moderate output | | Occasional follow-up or regeneration | Adds a fraction on average |
Suppose the measured average is £0.04 per question all-in.
Now the usage distribution, which is the part teams skip:
| Segment | Share of users | Questions/month | Cost/month | Margin at £40 | |---|---|---|---|---| | Light | 60% | 40 | £1.60 | 96% | | Typical | 30% | 200 | £8.00 | 80% | | Heavy | 8% | 900 | £36.00 | 10% | | Extreme | 2% | 3,000 | £120.00 | −200% |
Blended, this may still be a healthy business. But three things are now visible that a single average would have hidden:
The extreme segment loses money outright, and at 2% of users it is large enough to matter. If that segment grows — and it grows fastest, because those users get the most value — margin deteriorates as adoption improves.
The heavy segment is nearly breakeven and consumes support attention too.
The average is misleading. An "average cost per user of £9" describes almost nobody, and reporting it conceals the entire problem.
The responses available, roughly in order of preference: reduce unit cost through the design levers, so every row improves; introduce fair-use bounds with paid overage above them; add a usage-based tier for the top segments; or route heavy users to a cheaper model path where quality permits.
What you should not do is discover this at Series B. Model the distribution before launch pricing, because repricing an existing base is far harder than pricing correctly at the start.
An AI product on flat per-seat pricing finds that its most engaged 2% of users cost more to serve than they pay. Why is this more serious than the equivalent situation in conventional software?
The central economic fact
Click to flipEvery request costs money and more engaged customers cost more, so success raises cost of goods in proportion to the thing you are maximising. Gross margin becomes a design outcome rather than a given.
Click to flip backAI products break the software margin model: cost of goods scales with usage, so success raises cost in proportion to engagement. Learn the cost calculation rather than any price, and cost the whole chain including retrieval, retries and failures. Unit cost is a design outcome — routing by difficulty is usually the largest saving available. And model the usage distribution before setting launch pricing, because the average describes nobody and the loss-making segment is the one that grows fastest.