AI Economics Wiki

AI Unit Economics and Gross Margins

AI unit economics measures the revenue and directly attributable cost of delivering one successful customer outcome.

AI EconomicsUpdated Aug 15, 202612 min read

Snapshot

What it is

The revenue and directly attributable cost of delivering one defined unit of customer value — a resolved ticket, an approved claim, a completed document, a successful agent run, or a customer-month.

Why it matters

AI delivery cost is genuinely variable in a way software cost is not. Revenue can grow while margin falls, and the blended percentage will not say why.

What it is not

A single company-wide margin percentage. That number is an output of three separate things (product efficiency, revenue mix, and accounting policy) and tells you which of them moved only by accident.

Key takeaways

  • The same company can report three different gross margins in one year. In fiscal 2026 Snowflake reported 72% GAAP product gross margin, −31% GAAP professional-services gross margin, and 67% GAAP total gross margin — plus a 76% non-GAAP product figure. Always state which one you mean.

  • Divide by successes, not requests. Dividing by requests makes poor reliability look like good efficiency.

  • Decompose every margin improvement. In the worked example below, a 7.9-point gain is ~7.0 points of real cost reduction and only ~0.9 points of fixed-cost absorption — a difference that matters enormously to a buyer of your equity.

  • Gross margin is a delivery measure, not a profitability measure. Pair it with CAC payback and net revenue retention.

What exactly is being measured?#

The accounting definition is fixed:

gross margin = (revenue - cost of revenue) / revenue

For operating decisions, two managerial measures do more work:

contribution per unit  = unit revenue - unit-variable delivery cost

customer contribution  = customer revenue
                       - directly attributable delivery cost
                       - customer-specific support or success cost

Gross margin follows your accounting policy and is auditable. Contribution is a management number: it is not GAAP gross profit, it must be labelled as such, and it must reconcile back to the income statement. Mixing the two — comparing a customer contribution margin against a company gross margin, for instance — produces a comparison with different numerators and different denominators, which is worse than no comparison at all.

The cost boundary is a judgement call, and public filings show how much room there is inside it. Palantir includes third-party cloud hosting, hardware, subcontractors, field-service representatives, and the payroll and stock-based compensation of delivery personnel inside cost of revenue (Palantir Q2 2025 Form 10-Q). On $4.475 billion of 2025 revenue that produced $789.2 million of cost of revenue and an 82% GAAP gross margin, of which $64.6 million was stock-based compensation (Palantir Q4 and FY2025 earnings release). Those are examples of one company's classification, not a rule. Document your own policy with an accountant and keep it stable across periods.

Why does this matter to founders?#

Pricing can conceal a cost mismatch. Seat pricing makes revenue predictable and usage unbounded. Outcome pricing aligns with value but leaves you paying for attempts the customer never accepts. Usage pricing passes variability through and is harder for a buyer to budget.

Growth does not automatically improve economics. Large customers bring longer contexts, premium model routes, dedicated capacity, data licences, implementation, and human assurance. Expansion that lowers blended margin can still be the right trade — but only when it is visible and argued for, not discovered a year later.

The chosen unit writes your roadmap. Cost per API call rewards making calls smaller. Cost per successful task rewards better prompts, routing, caching, and fewer retries. Cost per retained customer additionally asks whether the output was good enough to keep the account.

Investors will interrogate the bridge. "Margins will look like SaaS" is not a plan. A credible bridge names the baseline, each lever, its measured effect, its timing, and the quality guardrail attached to it.

How do you build the margin stack?#

1. Choose the economic unit#

Use the narrowest unit tied to customer value. Define what counts as success, and decide how retries are treated, before you calculate any cost. A unit that silently excludes failed attempts is not measuring delivery.

2. Build cost of revenue from the workload#

Cost categoryTypical driverWatch for
Model inference
Metered calls, tokens
Route mix and cache hit rate move this more than list rates
Retrieval, tools, third-party APIs
Attributable queries
Per-seat data licences do not scale with usage
Hosting, GPUs, storage, egress
Committed or peak capacity
Reserved capacity is fixed cost wearing variable clothing
Guardrails and live evaluation
Traffic volume
Evaluation on production traffic is delivery; research is not
Variable human review
Cases, handling time
Often the single largest line in early AI products
Implementation, field service
Project hours
Only in COGS if your policy puts it there — then keep it there
Service credits, payment costs
Revenue
Credits are a margin item, not a support anecdote

Shared cost needs an explicit driver, and allocated cost should be labelled separately from observed cost so a reader can see how much of the answer is measurement and how much is assumption. Cloud providers support this directly through cost allocation tags, which must be activated in the billing console before they appear in reports and can take up to 24 hours to become active (AWS Billing, cost allocation tags).

3. Report three views, not one#

task contribution margin     = (task revenue - task-variable cost) / task revenue
gross margin                 = (revenue - cost of revenue) / revenue
customer contribution margin = (customer revenue
                                - customer-attributable delivery and service cost)
                               / customer revenue

They answer different questions: variable product efficiency, accounting delivery economics, and customer quality. Compare each only against its own prior period or its own peer set.

4. Build a driver bridge with counter-metrics#

Model margin as a function of price and packaging, model and tool rates, input/output size, routing mix, cache hit rate, attempts per success, capacity utilisation, human escalation rate, fixed delivery cost absorbed across volume, and revenue mix. Every proposed lever gets a counter-metric attached — task success, quality score, latency, retention, or loss rate. A lever without a counter-metric is a way of moving cost somewhere the dashboard cannot see.

Worked example: where did the 7.9 points come from?#

An AI workflow company completes one million successful tasks per month. It earns $60,000 of usage revenue ($0.06 per successful task) and $20,000 of platform fees.

LineMonth 1
Usage revenue
$60,000
Platform fees
$20,000
Total revenue
$80,000
Model inference
$12,000
Retrieval and tools
$5,000
Variable human review
$7,000
Payments, support, service credits
$7,000
Fixed delivery infrastructure and observability
$9,000
Cost of revenue
$40,000
gross profit  = $80,000 - $40,000 = $40,000
gross margin  = $40,000 / $80,000 = 50.0%
variable cost = $31,000, or $0.031 per successful task

After routing, caching, and workflow changes, volume reaches 1.6 million successful tasks at the same $0.06 price. Variable cost falls to $0.023 per success; the delivery platform steps up to $12,000.

LineMonth 2
Usage revenue (1.6M x $0.06)
$96,000
Platform fees
$20,000
Total revenue
$116,000
Variable delivery cost (1.6M x $0.023)
$36,800
Fixed delivery infrastructure
$12,000
Cost of revenue
$48,800
gross profit = $116,000 - $48,800 = $67,200
gross margin = $67,200 / $116,000 = 57.9%

Now decompose the 7.9 points, because the two causes are worth very different amounts:

ComponentMonth 1Month 2Effect
Variable cost as % of revenue
38.75%
31.72%
—
Contribution margin
61.25%
68.28%
+7.0 pts
Fixed delivery cost as % of revenue
11.25%
10.34%
+0.9 pts
Gross margin
50.0%
57.9%
+7.9 pts

Roughly seven of the eight points are durable engineering and under one point is volume absorbing a fixed platform. That distinction is the whole substance of a margin bridge: absorption reverses the moment growth slows, and it can be manufactured simply by growing.

Caveats this model hides. The $0.023 variable cost is asserted, not derived — in a real bridge it decomposes further into route mix, cache hit rate, and attempts per success, each with its own evidence. Revenue per task also fell from $0.080 to $0.0725, because the platform fee did not grow with volume; a fixed fee that stops scaling is a slow drag on the same percentage the engineering work is improving. And none of this is valid unless success rate, quality, and retention held. Show those three next to the margin, or the bridge is not checkable.

Now a single enterprise customer paying $10,000 a month, consuming $2,600 of metered delivery cost and $1,900 of attributable review and support:

customer contribution margin = ($10,000 - $4,500) / $10,000 = 55.0%

Resist comparing that 55% against the company's 57.9% gross margin — they are different measures. Compare it against the customer-contribution distribution across your other accounts. Then the options are workflow redesign, a service tier, usage limits, a price change, or deliberate acceptance because the account earns its keep in product feedback or distribution. The number informs the decision; it does not make it.

Key Facts

01

One company, four gross margins, one year

For fiscal 2026 (ended 31 January 2026) Snowflake reported GAAP product gross margin of 72%, GAAP professional-services-and-other gross margin of −31%, GAAP total gross margin of 67%, and non-GAAP product gross margin of 76%. The gap between the highest and lowest figure is 107 points.

Snowflake FY2026 Q4 results, 25 February 2026
02

Services can be structurally loss-making and that can be fine

Snowflake's professional-services gross margin was −31% in FY2026 and −36% in FY2025 — services are sold to drive platform consumption, not to earn a margin. Blending them into one number hides both facts.

Snowflake FY2026 Q4 results
03

"AI company" says nothing about gross margin

In fiscal 2026 (ended 30 April 2026) C3 AI reported 31% GAAP gross margin (46% non-GAAP) on $250.3 million of revenue, down from 61% on $389.1 million the prior year. Cost of subscription revenue of $166.3 million against $227.1 million of subscription revenue implies a 27% subscription gross margin, and the company attributed the increase primarily to payroll and contractor costs rather than compute.

C3 AI FY2026 results, 3 June 2026
04

Delivery labour sits inside COGS more often than founders assume

Palantir's cost of revenue covers subcontractors, field-service representatives, third-party cloud hosting, hardware, and delivery payroll — and still produced an 82% GAAP gross margin on $4.475 billion of 2025 revenue ($789.2 million cost of revenue, including $64.6 million of stock-based compensation). Composition and level are separate questions.

Palantir Q4/FY2025 earnings release
05

Non-GAAP is not a small adjustment here

Snowflake's non-GAAP product gross margin exceeded its GAAP figure by 4 points in FY2026, driven by 3 points of stock-based-compensation charges and 1 point of acquired-intangible amortisation as a percentage of product revenue.

Snowflake FY2026 Q4 results

What are the common mistakes?#

  • Calling all cloud spend COGS. Training runs and research experiments generally belong below gross profit. Write the policy down, apply it consistently, and disclose it when the boundary is unusual.
  • Excluding failed attempts. They consume compute, tools, and often human time. A unit cost that counts only successes in the numerator's cost base is measuring a product that does not exist.
  • Dividing by requests instead of successes. Reliability then reads as efficiency, and the incentive becomes shipping more attempts.
  • Using list rates when you have commitments and credits. Show invoice cost and normalised long-run cost. A margin built on expiring cloud credits is a countdown, not a result.
  • Reporting a blended percentage across non-homogeneous units. A 400-millisecond classification and a twenty-minute agent workflow should never share a denominator.

When does this break?#

When the unit is not homogeneous. Segment by workflow, model route, customer tier, and quality requirement. One average across incomparable work products is a number with no decision attached to it — see Token Economics and Metering for the attribution layer that makes segmentation possible, and Copilots vs. Agents for why the two shapes of work behave so differently.

When the boundaries are still moving. In early products, engineers perform delivery, evaluation mixes production monitoring with research, and reserved capacity serves both training and inference — see Inference vs. Training Costs. Use explicit allocations, keep the unallocated remainder visible rather than spreading it, and provide a reconciliation.

When you mistake it for profitability. A high-margin product still fails if acquisition cost, research, compliance, or overhead is too high; a low early gross margin can be perfectly acceptable if the improvements are measured and pricing power is real. Read this alongside Contribution Margin, CAC Payback Period, and Burn Rate and Runway.

Frequently asked questions

01

What gross margin should an AI company target?

There is no single answer, and the public comparables are 51 points apart — C3 AI at 31% GAAP and Palantir at 82% GAAP for their most recent full years. The useful target is a direction with named levers and dates, not a benchmark borrowed from classic SaaS.

02

Should inference cost sit in cost of revenue?

Inference performed to deliver a customer's request, yes. Inference performed to develop, fine-tune, or evaluate a model outside live traffic is normally research and development. The distinction is delivery versus development, not GPU versus CPU.

03

How do I allocate reserved capacity that serves several customers?

Allocate by committed or peak demand rather than by average usage, label it as an allocation, and hold the idle remainder visible as unabsorbed capacity. See GPU and Compute Economics for why the utilisation assumption usually dominates the result.

04

Is contribution margin a substitute for gross margin?

No. Contribution is for operating decisions; gross margin is the reported, auditable figure. Publish both, label which is which, and show the reconciliation between them.

05

What belongs in the unit-economics slide of a board deck?

Successful units delivered, revenue per unit, variable cost per unit, fixed delivery cost, gross margin, and success rate — with the same six lines for the prior period, and the margin change decomposed into variable improvement versus fixed absorption.

Sources#

  1. Snowflake Inc., Snowflake Reports Financial Results for the Fourth Quarter and Full-Year of Fiscal 2026, 25 February 2026. GAAP product gross margin of 72% and non-GAAP product gross margin of 76% for fiscal 2026; GAAP professional-services-and-other gross margin of −31% (FY2026) and −36% (FY2025); GAAP total gross profit of $3.146 billion at 67% and non-GAAP gross profit of $3.388 billion at 72%; stock-based-compensation and acquired-intangible adjustments of 3% and 1% of product revenue.
  2. Palantir Technologies Inc., Q4 and FY2025 earnings release (Form 8-K, Exhibit 99.1), 2 February 2026. FY2025 revenue of $4,475,446 thousand, cost of revenue of $789,177 thousand, gross profit of $3,686,269 thousand (82% GAAP gross margin), and $64,555 thousand of stock-based compensation within cost of revenue.
  3. Palantir Technologies Inc., Form 10-Q for the quarter ended 30 June 2025, August 2025. Cost of revenue composition: delivery payroll and stock-based compensation, subcontractor expenses, field-service representatives, third-party cloud hosting, hardware, travel, allocated overhead, and other direct costs.
  4. C3.ai, Inc., C3 AI Announces Fiscal Fourth Quarter and Full Fiscal Year 2026 Results, 3 June 2026. FY2026 total revenue of $250.3 million with GAAP gross profit of $77.4 million (31%) and non-GAAP gross profit of $116.2 million (46%); subscription revenue of $227.1 million against cost of subscription revenue of $166.291 million; prior-year gross profit of $235.863 million on $389.056 million of revenue; cost increase attributed primarily to payroll and contractor costs.
  5. Amazon Web Services, Organizing and tracking costs using AWS cost allocation tags, accessed 15 August 2026. AWS-generated and user-defined cost allocation tags, activation in the Billing and Cost Management console, and the delay before activated tag keys appear in cost reports.

Note: This page is educational and is not accounting, tax, or investment advice. Where cost of revenue is drawn, and how contribution measures are presented alongside GAAP figures, are decisions to make with a qualified accountant. Company figures are as reported on the dates cited and are not restated here; verify against the current filing before using any of them in a board pack or a fundraise.

Author

Dr. Sarah Zou

Independent economist · EconNova

Commercial strategy for technical products, with a focus on pricing, unit economics, and the operating choices behind the model.

About Sarah

Topics

AI unit economicsgross margincontribution marginAI COGScost of revenuemargin bridge

Cite this page

Suggested citation

Zou, S. (2026). AI Unit Economics and Gross Margins: Measure Cost per Successful Outcome. In AI Economics. Pricing & Monetization Wiki. https://sarahzou.com/wiki/ai-economics/ai-unit-economics

Open license

Reuse with attribution

This content is available for reuse. When referencing or republishing it, please credit Dr. Sarah Zou and link back to the original source.

Licensed under Creative Commons Attribution 4.0 International. You may share and adapt the material with appropriate credit.