Gross Margin
The percentage of revenue remaining after subtracting the direct costs of delivering a product or service.
Gross margin measures how much revenue a company keeps after paying the direct costs of production or delivery (cost of goods sold, or COGS) — hosting and infrastructure costs for software, cloud compute for AI products, materials and fulfillment for physical goods. It's foundational to unit economics, since it determines how much revenue growth actually translates into gross profit that can fund the rest of the business.
SaaS companies typically target gross margins of 70-85%, since software has relatively low marginal delivery costs; AI-native companies with heavy inference and compute costs often run meaningfully lower gross margins (sometimes 40-60%) that investors now scrutinize closely, since compute costs don't naturally decline the way traditional SaaS hosting costs have over time.
Gross margin is the first and most honest test of whether a business model works. Every dollar of revenue at a 40% margin produces less than half the gross profit of the same dollar at 85%, so a low-margin company has to grow much faster to fund the same operating budget. The trend matters as much as the level: margin holding steady while revenue triples shows operating leverage; margin falling as usage scales shows the opposite.
Classification matters. COGS for software typically includes hosting and infrastructure, customer support tied to delivery, third-party data or API fees embedded in the product, and — for AI products — inference and compute. Engineering salaries for building new features are R&D, not COGS; sales, marketing, and overhead aren't COGS either. Misclassifying costs in either direction distorts the number investors will rebuild in diligence.
Compare like with like. A marketplace, a hardware-enabled software business, and an AI API business all have different margin structures than pure software, and benchmarking them against the wrong peer set produces false conclusions.
Gross margin % = (revenue - cost of goods sold) / revenueA company generates $5M in quarterly revenue and spends $1.25M on cloud infrastructure and support costs directly tied to delivering the product. Gross margin = ($5M - $1.25M) / $5M = 75%.
Track gross margin trends closely for any AI-native product — falling gross margin as usage scales (rather than the traditional software pattern of margin improving with scale) is one of the biggest structural risks investors are now underwriting in AI company diligence.
Why do AI companies often have lower gross margins than traditional SaaS?
Because inference and compute costs scale roughly linearly with usage, unlike traditional software hosting costs that tend to decline as a percentage of revenue with scale — this is a key structural difference investors weigh in AI company valuations.
What's the difference between gross margin and net margin?
Gross margin subtracts only the direct costs of delivering the product. Net margin subtracts everything, including operating expenses, interest, and taxes. A company can have high gross margins and still lose money if operating expenses exceed gross profit.
What counts as COGS for a software company?
Direct delivery costs: hosting and infrastructure, customer support attributable to serving customers, third-party data or API fees in the product, and inference and compute for AI products. Feature development is R&D, and sales, marketing, and overhead are operating expenses.
How much does a few points of gross margin matter?
A lot at scale. On $40M of annual revenue, a 75% margin produces $30M of gross profit and a 70% margin produces $28M — a $2M difference that could fund a meaningful number of hires.
Related terms
Run the numbers yourself: dilution, SAFE conversion, and fund-returner calculators.