Skip to content
Analysis · Cost of AI

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 margin reset
60-80%+
gross margin benchmark for comparable SaaS businesses, on near-zero marginal cost.
~52%
average gross margin that software companies building AI products expect in 2026.
25%+
of revenue that AI companies often spend on cloud resources.

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.

Why the margin falls

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.

How to defend it

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
Take the Profit Check
Cover of the video: how to calculate cost to serve in five stepsRelated video · 2 min 34How to calculate cost to serve in five stepsThe five TDABC steps, one wholesale example and the break-even in minutes.Watch the video and read the transcript →

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

Workshops

Bring the method into the room.

One working profitability model, built from real data, that you take home at the end.

See upcoming workshops
Miguel Guimarães

Reviewed by

Miguel Guimarães

Founding Partner, Cost and Profitability Consulting

Time-Driven ABC engagements since 2010, working within the Kaplan and Anderson framework.

About the author →

Published

M
Ask us anything
usually replies in minutes
Hi. I can answer the quick questions about cost, method and timing right here. For anything specific to your business, I'll connect you with a CostCtrl specialist on WhatsApp.
No bot loops. Straight to a specialist.
Most read
  1. 1Time-driven activity-based costing: ABC made simple and scalable
  2. 2Whale Curve: Definition, How to Build One, Live Simulator
  3. 3Cost-Volume-Profit (CVP) and Break-Even Analysis
  4. 4How to calculate cost to serve, step by step
  5. 5Cost-to-Serve Analysis
  6. 6Make-or-Buy and Relevant Costs
  7. 7TDABC vs ABC: same goal, very different effort
  8. 8Pocket Price Waterfall and Price Realization
  9. 9Transfer Pricing for Internal Profitability
  10. 10Cost-to-Serve, Profitability and AI: Executive Workshop Porto - November 27, 2026