Topic 2 of 6 · 5 min read
Gross margin on AI features
Goal: Compute the gross margin of an AI plan from price, usage and inference cost, and find the plan that loses money.
For an AI product, inference is a cost of goods sold, so every plan needs its own gross margin: price minus the inference cost of the usage that plan actually generates, divided by price. Traditional software has near-zero cost per extra user. AI features do not. Each use costs real money.
Check yourself · 1 of 3
What does gross margin mean for an AI feature plan?
Why it matters
A feature that costs 2 cents a call feels free in a demo. At 500 calls a month per user it is 10 dollars. If the plan sells for 12 dollars, nearly the whole price goes to the model provider before support, hosting or payment fees. Many teams find this out after launch, when usage grows and the bill grows with it.
How to do it
- List the plans, including the free tier. The free tier is a marketing cost: its inference spend must be a number the business chose.
- Estimate monthly usage per plan. Use measured data, not hopes. Take the average and also the 90th percentile user.
- Convert usage to cost with the cost per completed task from the previous topic.
- Compute margin per plan: (price minus inference cost minus other direct costs) divided by price. Direct costs include payment fees and per-user hosting.
- Find the weakest plan and ask which usage pattern puts it there.
- Re-run at scale. If usage per user grows 3 times, which plans cross zero?
Before and after
Weak: "Our AI costs about 3 dollars per user per month. We charge 15. Great margin."
Better:
| Plan | Price | Avg inference cost | Gross margin |
|---|---|---|---|
| Free | 0 | 0.90 | negative, a budgeted cost |
| Pro | 15 | 3.00 | 80 percent |
| Team seat | 12 | 11.50 | 4 percent |
The Team seat has heavy daily use. The average across all plans looks fine, and it is the segment that sells best.
What goes wrong
- Blending plans. One average margin hides the plan that loses money on every sale.
- Ignoring free users. If 20 free users cost as much as one paying user earns, growth in signups can lower margin.
- Costing the demo. Real users send longer inputs and retry more.
- Forgetting that success raises cost. A feature people love is used more, so cost per user rises with adoption.
Examples
Finding the plan that loses money
A note-taking app sells Starter at 8 dollars and Business at 20. Starter users average 40 AI actions a month at 4 cents (1.60 dollars, 80 percent margin). Business users average 600 actions at 4 cents (24 dollars). Business has a negative margin, and the sales team is pushing it. The fix is a different price, a usage allowance or a cheaper path for simple actions, not a fix to the average.
A free tier as a marketing budget
If the free tier costs 0.60 dollars per user per month and 3 percent convert to a 10 dollar plan, each paying customer carries the free cost of about 33 free users, roughly 20 dollars. Whether that is acceptable is a business decision, but it should be made on purpose.
Key points
- Inference is a cost of goods sold, and each plan has its own gross margin: (price - direct cost) / price.
- Compute margin from measured usage, at both the average and the heavy end of users.
- The free tier needs a deliberate budget, because it is spend with no revenue.
- A feature people like is used more, so cost per user rises as adoption rises.
- Report margin per plan, not one blended number that hides the losing plan.
Common mistakes
- Using the average usage when the plan's heaviest users decide the margin.
- Treating free users as costing nothing because they pay nothing.
- Calculating margin on token cost only and leaving out payment fees and hosting.
- Planning on demo-level usage instead of measured usage.
Check yourself · 2 of 3
A plan sells at 20 dollars. Users on it average 25 dollars of inference cost a month. What is the right conclusion?
Check yourself · 3 of 3
A free tier gives 50 AI actions a month at 2 cents each. What does a free user who uses the full allowance cost the business per month?
Practice items, not counted towards your mastery.
Start here
- Claude API pricing (opens in a new tab)DocsFree
Per-token prices for input, output, cached and batch requests, the inputs to every cost-per-task calculation.
- OpenAI API pricing (opens in a new tab)DocsFree
A second provider's price list, to compare model tiers and see how cached input and batch are priced.
- LLM inference prices have fallen rapidly but unequally (Epoch AI) (opens in a new tab)ArticleFree
Measured price declines by capability level, with the spread between tasks that a forecast needs.