The AI gross-margin problem: why your software margins are shrinking
Classic software had a near-zero marginal cost: once built, serving one more customer cost almost nothing, which is why comparable SaaS businesses reached gross margins of 60 to 80 percent or more (a16z, 2020). AI breaks that. Every query costs compute, so an AI feature carries a real cost of goods that scales with use. AI companies often run gross margins in the 50 to 60 percent range and spend 25 percent or more of revenue on cloud resources, by the same analysis. The old software margin is becoming the exception. Defending margin now depends on knowing the unit economics of every AI feature. Our article The Real Gross Margin of a SaaS Business looks at the same margin for SaaS in general.
The 52 percent is the average that the software companies building AI products in ICONIQ's survey expect for 2026; the other two figures come from a16z's analysis of AI businesses. The structural direction, that AI adds real COGS and compresses margin, is well established.
The cause is simple: AI features have a cost of goods that software did not. Each use spends tokens, and reasoning and agentic features spend many. That cost sits in COGS and pulls gross margin down. The effect is uneven, because cheaper-per-token does not mean cheaper-per-feature: as models get cheaper, products use them more, so the cost of goods can hold or rise even as token prices fall. The result is a structural reset, with analysts projecting a new floor well below the old SaaS benchmark unless a company runs an unusually disciplined inference stack.
Margin defence starts with unit economics: the cost to serve one use of each AI feature, set against the price or value it earns. With that number you can do three things. Reprice features whose flat plan loses money on heavy users, including a shift to usage- or outcome-based pricing. Re-engineer the cost to serve by routing cheap requests to small models and caching context. And cut the features whose cost to serve will never be covered. None of this is possible from a blended margin; it requires costing AI at the level of a single outcome, which is what activity-based costing was built to do. The same question by customer tier is the subject of SaaS Cost to Serve: What Each Customer Tier Really Leaves.
THE MARGIN RESET, VISUALISED
Illustrative. Classic SaaS gross margin sat high on near-zero marginal cost; AI products run lower, because compute now sits in cost of goods. Proportions are illustrative.
The old software margin was built on a marginal cost of zero. AI put a meter on every use, and the meter is now in your cost of goods.
Common questions
- Why are AI gross margins lower than SaaS?
- Because AI features carry a real cost of goods that classic software did not. Every query spends compute, so the more the feature is used, the more it costs to serve. Classic SaaS had a near-zero marginal cost, and a16z puts comparable SaaS gross margins at 60 to 80 percent or more; AI companies often run at 50 to 60 percent, with 25 percent or more of revenue spent on cloud resources.
- Is the classic SaaS gross margin over?
- For software with heavy AI features, analysts expect a structurally lower floor, because inference cost now sits in cost of goods. Companies with light AI use or a very disciplined inference stack can stay higher. The point is that the old software margin is no longer the default once AI is embedded.
- How do we protect gross margin on AI features?
- By managing unit economics. Measure the cost to serve one use of each feature, compare it to the price or value it earns, then reprice the features that lose money on heavy users, re-engineer cost to serve by routing and caching, and retire the features that will never cover their cost. This requires costing AI at the level of one outcome, not a blended average.
- Does cheaper AI fix the margin problem?
- Not on its own. The price per token has fallen sharply, but products respond by using AI more and reaching for token-hungry reasoning and agents, so the cost of goods often holds or rises even as token prices fall. Margin is protected by managing how much AI a feature consumes per unit of value, not by waiting for tokens to get cheaper.
Defend your margin with real AI unit economics.
The Profit Check shows where margin is leaking, AI included, in 10 minutes.
- Duration
- 10 minutes
- You receive
- Score, 7 dimensions, sector benchmark
- We ask for
- Name, organisation, work email, industry, size
Proof
A distributor in New Zealand. €1.335M of cost-to-serve made visible, then halved, and 830 loss-making customers brought down to 295.
Read the case study →Who you would be talking to
Miguel Guimarães, Founding Partner
Cost and profitability practitioner for 25+ years. Presented the Damco cost-to-serve case at Managing for Profit (Amsterdam RAI, December 2009), on the same programme as Robert S. Kaplan.
Call +351 910 313 731
