Gross margin
Gross margin is the share of revenue left after the cost of delivering your product, before sales, marketing and the core team are paid. It tells you how much of each euro of revenue is free to pay for growth.
Formula
Gross margin = (revenue − cost of goods sold) ÷ revenue
For software, cost of goods sold covers hosting, third-party services built into the product, payment fees, customer support and, for AI products, inference. Sales, marketing and research and development stay below the line.
Example
Benchmark
In KeyBanc's AI x Software Benchmark, the median private software company reached a gross margin of 76%. The lower quartile stood at 62% and the upper quartile at 81%. Companies that sell AI as their core product reported 73%, against 77% for companies that embed AI in a broader product.
How to raise gross margin
Three levers move it. You can raise prices where customers get more value, cut the delivery cost per customer through cheaper hosting, less support time or fewer model calls per request, and move one-off onboarding work out of cost of goods once it stops repeating for every customer. A gross margin far below your peers tells an investor to look for services hidden inside the product.
Where it sits
Gross margin belongs to the Impact stage of the bow tie, where customers use what they bought, and to the Cost Structure box of the Lean Canvas.
Frequently asked questions
What is a good gross margin for SaaS?
In KeyBanc's benchmark the median private software company reported 76%, and the upper quartile reached 81%. A company at 62% or below sits in the lower quartile.
Is gross margin the same as markup?
No. Gross margin divides gross profit by revenue, while markup divides it by cost, so the same sale always shows a lower margin than markup.
Does customer support count as cost of goods?
Support for existing customers usually does, because it is part of delivering the service. Sales and onboarding of new customers belong to acquisition.
Sources
- 2026 AI x Software Benchmark (17th annual edition), KeyBanc Capital Markets
Gross Margin (Financial Performance by Benchmark Quartile, 2025A): 62% (Lower Quartile), 76% (Median Benchmark), 81% (Upper Quartile)
- 2026 AI x Software Benchmark (17th annual edition), KeyBanc Capital Markets
Gross Margin (KPIs by Customer-Facing AI Product Centrality, 2025A): 73% (Core Product), 77% (Embedded), 69% (Developing), 76% (Overall)
The Lean-Case Traction calculator shows your gross margin per customer and what it means for payback and funding.