How to Use AI Product Margin Calculator
The AI Product Margin Calculator breaks down per-user revenue against variable costs including API token usage, hosting allocation, and service fees to show true unit-level profitability.
What It Does
Use the calculator with intent
The AI Product Margin Calculator breaks down per-user revenue against variable costs including API token usage, hosting allocation, and service fees to show true unit-level profitability.
AI product founders who need to understand whether their pricing covers the variable costs of serving each user.
Interpreting Results
Start with gross margin percent, then read the API cost share. If margin is below 70% and the API dominates, the fastest fixes are switching to a cheaper model, cutting output tokens, or adding prompt caching, in that order. If margin is healthy but absolute gross margin per user is small, the price is simply too low to fund acquisition.
Input Steps
Field by field
- 1
Enter your subscription price
Enter the monthly price one user pays. This is the top of the per-user margin equation; everything else subtracts from it. Use your actual blended price if you have multiple tiers, not the headline list price.
- 2
Set token usage and model prices
Enter average API calls per user per day, average input and output tokens per call, and the input/output prices per million tokens for your model. Measure these from real sessions: output tokens are usually the larger and more expensive half, so a guess here can flip the margin.
- 3
Add hosting and other per-user costs
Enter the hosting cost allocated per user and any other per-user costs (payment fees, email, support tooling). These are smaller than the API line for most AI products but still erode margin at low prices.
- 4
Read margin and the dominant cost driver
Read gross margin per user, gross margin percent, the API cost share, and the dominant cost driver. A healthy software margin sits above 70-80%; if the API share is high and margin is thin, your pricing or your token usage is the problem, not hosting.
- 5
Re-run across scale tiers
Read the scale tiers and re-run when your model price, token usage, or price changes. Because the API cost is purely variable, margin percent stays roughly flat as you scale rather than improving, so fix it at the unit level rather than waiting for volume.
Common Scenarios
Use realistic starting points
Healthy margin on a cheap model
Subscription price
29
API calls per day
20
Input / output cost per million
0.14 / 0.28
On a cheap model the API line nearly disappears and gross margin percent climbs into the 90s. Watch how much room that leaves to spend on acquisition versus a pricier model.
Margin squeeze on a flagship model
Subscription price
29
Input / output cost per million
2.50 / 10.00
Avg output tokens
1000
On a flagship model at heavy usage the API share can exceed half the price and gross margin can fall under 50%. Watch how cutting output tokens or raising the price restores a viable margin.
Try These Tools
Run the numbers next
AI Stack Cost Calculator
Estimate your full AI app stack cost at different user scales — hosting, DB, auth, AI API, and services.
Micro-SaaS Pricing Engine
How to use Micro-SaaS Pricing Engine: find your price floor, suggested price, and ceiling from per-user costs, competitor benchmarks, and target margin.
Pricing Model Picker
Flat monthly, per-seat, usage-based, or hybrid? Compare projected revenue side-by-side.
FAQ
Questions people ask next
The short answers readers usually want after the first pass.
Sources & References
- Gemini API pricing — Google
- Claude API pricing — Anthropic
Related Content
Keep the topic connected
What Is Gross Margin? Simply Explained
Understand Gross Margin: the vital profitability metric revealing how much revenue remains after covering direct production costs. Learn its calculation.
What Is Net Margin? Simply Explained
Learn the Net Margin formula and its significance. This key profitability ratio shows a company's true earnings after all expenses and taxes, vital.
How to Use LLM Vendor Lock-In Cost
Estimate the all-in cost of switching LLM providers — engineering hours, downtime opportunity cost, and payback months at a new vendor's price. Free.