Guide · 7 min read
AI gross margin: calculate it and report it to the board
By AI Spendbook · Published · Updated
Short answer
AI gross margin is revenue minus all cost of revenue, including the model spend that serves customers, divided by revenue. Report it monthly beside AI cost as a share of revenue, the spread across customers and the causes of each change. Published surveys put AI product margins below classic SaaS, so trend your own first.
Key takeaways
- Gross margin = (revenue - cost of revenue) / revenue; for AI products cost of revenue includes model cost, non-token AI cost, hosting and support.
- Show AI cost as a share of revenue next to gross margin; it isolates the cost that behaves unlike classic SaaS.
- ICONIQ's 2026 State of AI survey reports an average AI product gross margin of 45% in 2025; treat survey averages as context, not a target.
- A board page needs this month, last month, the same month last year, and three short paragraphs on what moved, the plan and the forecast range.

Boards ask about gross margin first because it says whether growth makes money. For an AI product the answer moves every month: model prices change, usage per customer grows, and one heavy account can cost more than many light ones. The board needs the number, the reason it moved, and the plan.
How do you calculate gross margin for an AI product?
gross margin = (revenue - cost of revenue) / revenue
AI COGS is only part of cost of revenue for an AI product, which usually has four parts. Leave any of them out and the margin looks better than it is.
| Part | Examples | Where the number comes from |
|---|---|---|
| AI model cost | Model API spend for production features, inference you host yourself | Provider bills, split by your COGS rules |
| Non-token AI cost | Telephony, speech, paid tool calls, human review of AI output | Vendor invoices and cost lines |
| Hosting | Application servers, databases, storage, bandwidth | Cloud bill, production share |
| Customer support and success | Support staff and tools, onboarding | Payroll and tool cost, by your policy |
Only model spend that serves customers in production belongs here. Experiments, evals and internal assistants go to R&D or opex. The COGS or R&D guide covers that split.
What is a good AI cost as a percent of revenue, and how do you calculate it?
- AI cost as a share of revenue: AI model and non-token cost divided by revenue. It isolates the part of cost of revenue that behaves differently from classic SaaS.
- Gross margin: the full measure above. It is what investors compare across companies.
Illustrative numbers: monthly revenue $400,000, AI model cost $72,000, non-token AI cost $8,000, other cost of revenue $60,000. AI cost is ($72,000 + $8,000) / $400,000 = 20% of revenue. AI contribution is $400,000 - $80,000 = $320,000. Gross margin subtracts the other $60,000 too: ($400,000 - $72,000 - $8,000 - $60,000) / $400,000 = $260,000 / $400,000 = 65%. No published benchmark sets a good AI cost share of revenue; trend your own and explain each move. The AI gross margin calculator does this arithmetic from your own inputs.
What is a good gross margin for an AI SaaS company in 2026?
There is no settled benchmark for AI cost as a share of revenue, and published figures for gross margin come from surveys and portfolio data with different definitions. Two widely cited ones:
| Source | What it reports |
|---|---|
| Bessemer Venture Partners, State of AI 2025 (August 2025) | Fast-growing "Supernova" AI companies average about 25% gross margin, often negative; "Shooting Star" companies average about 60%, slightly below SaaS peers |
| ICONIQ, 2026 State of AI (survey of about 300 executives) | Average AI product gross margin of 45% in 2025, projected to reach 53% in 2026 and 59% in 2027 |
Use them for context, not as a target. A company selling an agent that makes many long calls per task will sit in a different place from one adding a small AI feature to an existing product. The comparison that matters most is your own trend: margin by month, by cohort and by customer, with the causes of each change written down.
How do you report AI gross margin to the board?
| Line | This month | Last month | Same month last year | Note |
|---|---|---|---|---|
| Revenue | ||||
| AI model cost (closed, billed) | State whether any days are still estimated | |||
| Non-token AI cost | ||||
| Other cost of revenue | ||||
| Gross margin % | ||||
| AI cost as % of revenue | ||||
| Customers with AI cost above X% of their revenue | Count and revenue at risk | |||
| Unattributed AI cost | Spend no customer or feature explains |
Under the table, three short paragraphs: what moved and why (usage, price, mix), what is planned (a model change, a price change, a usage limit), and the forecast range for next quarter. The forecasting guide covers how to build the range.
How to build the board page each month, step by step
- Close the AI spend month first, so AI model cost is billed and locked rather than an estimate that can move.
- Take revenue for the same month on one stated basis, invoiced or recognised, and keep that basis every month.
- Add non-token AI cost and the other cost of revenue lines from the ledger, split to customers by a rule written down once.
- Compute gross margin and AI cost as a share of revenue, then the same two figures for last month and the same month last year.
- List the customers whose AI cost is above the agreed share of their revenue, and the unattributed AI cost.
- Write the three paragraphs: what moved and why, what is planned, and the forecast range.
What are common mistakes when reporting AI gross margin?
- Leaving evals and experiments in cost of revenue. They belong in R&D; including them understates margin and hides the production trend.
- Reporting an open month. Late provider bills can still move the figure after the board has seen it.
- Comparing with survey averages that define margin differently. Some include hosting and support, some only model cost.
- Switching between invoiced and recognised revenue. The margin moves for a reason that has nothing to do with AI cost.
- Showing one blended margin only. A healthy average can hide a few customers whose AI cost exceeds their revenue.
How do you show AI gross margin by customer cohort?
Group customers by the quarter they signed or by plan, then show revenue minus allocated AI cost for each group over time. A cohort whose margin falls as it ages usually means usage per customer is growing faster than price. A plan whose margin is negative from the first month usually means the allowance is too generous. Start from billed AI cost allocated to customers by their share of request cost, as in AI cost per customer, and show what could not be allocated as its own row.
What metrics show the board AI feature ROI?
- Cost per accepted outcome for the feature, including retries and non-token cost. See cost per outcome.
- Revenue attached to the feature: expansion, a higher plan, or a usage charge that would not exist without it.
- Adoption: share of active customers using it, and usage per user.
- AI cost as a share of the feature's revenue, trended monthly.
How do you explain to investors why gross margin is below classic SaaS?
Investors know AI products carry a real variable cost. What they want to see is that you understand it. Show the AI share of revenue separately from the rest of cost of revenue, the levers you control (caching, batching, routing, model choice, pricing) and the evidence that the trend is moving the right way. A margin that is low but understood, measured per customer and improving, reads differently from one that is low and unexplained. The cost reduction guide lists the levers in order of risk.
What changes when a firm reports AI margin for a client?
Firms and fractional CFOs reporting to a startup board can use the same page, plus a short list of exceptions: providers with missing days, credits that expire within 90 days, a commitment running behind pace, and any customer whose AI cost exceeds an agreed share of their revenue. AI spend reporting for accounting firms covers running this across many clients.
What does AI Spendbook report for AI gross margin?
AI Spendbook closes AI spend each month on the billed total and splits it into cost of revenue, R&D and opex by your rules. On the margin page it reports two figures per customer and keeps them apart:
- AI contribution: revenue minus allocated AI cost and non-token cost lines. It is not gross margin, and the product labels it that way.
- Gross margin: AI contribution minus the other cost of revenue lines you add (hosting, support, payment fees, human review, other), each split by revenue share, AI cost share, request share or sent to one customer.
- Revenue basis: invoiced (Stripe paid invoices spread over each service period, or an upload) or recognised revenue, with the basis named on the report. A By plan or SKU table shows margin per plan.
Other cost of revenue is entered as monthly lines, so the gross margin is only as complete as those lines. From a closed month, the Board pack button produces a one-page board pack PDF: AI cost billed and still estimated, revenue, AI cost as % of revenue, other cost of revenue and gross margin, up to five customers below zero on gross margin, commitments, budget vs actual, the forecast and its error, and the close status, all as of the month end and locked at close. A client-ready version shows customer names instead of IDs and can name who prepared it. For the trend, the margin page shows gross margin by month for the last 12 months and gross margin % by customer cohort (first revenue month), each with an export. If the board pack is built in a planning platform, AI Spendbook vs Pigment's AI Investment Planner shows how the two fit together.
Sources
- Bessemer Venture Partners, The State of AI 2025, published August 13, 2025.
- ICONIQ, 2026 State of AI Report, based on a Q2 2026 survey of about 300 executives.
Frequently asked questions
Is AI cost per customer the same as gross margin per customer?
No. Revenue minus allocated AI cost is AI contribution. Gross margin also subtracts the customer's share of hosting, support and other cost of revenue, so it is always lower than AI contribution.
Should AI gross margin use invoiced or recognised revenue?
Use recognised revenue for the board figure when your accounts are on an accrual basis, and say which basis you used. Invoiced revenue is fine for an operational view as long as the label is clear.
Should the board see AI gross margin before the month is closed?
Report closed months to the board and label anything else as preliminary. An open month mixes billed and estimated AI cost, and late provider bills can still move it.