Gross margin is the percentage of revenue remaining after subtracting the direct costs of delivering the product (Cost of Goods Sold, or COGS). For SaaS, COGS includes hosting and infrastructure, third-party API costs, customer support salaries, and professional services directly tied to delivery. Gross margin is the foundation for every downstream unit economics calculation — LTV, payback period, and contribution margin all depend on it.
Gross Margin % = (Revenue − COGS) / Revenue × 100
SaaS with $500,000 monthly revenue. COGS: $80,000 (hosting $30K, API costs $25K, support $25K).
($500,000 − $80,000) / $500,000 × 100
→ 84% gross margin — excellent for SaaS. Industry benchmark is 70–85% for pure software, 50–65% for AI-heavy or services-heavy products.
Gross margin determines how much of your revenue is available to fund operating expenses, R&D, sales, marketing, and profit. A business with 80% gross margin retains 80 cents of every revenue dollar to cover these costs. A business with 50% gross margin retains only 50 cents. At scale, the 30-point difference is the difference between a business that achieves profitability and one that never does at the same revenue level.
For SaaS, gross margin is also a product architecture signal. Heavy AI API usage, excessive infrastructure costs, or a customer base requiring intensive professional services all compress gross margin. These are design choices that have long-term economic consequences. Every API call that costs $0.001 compounds to significant COGS at scale.
All unit economics metrics (LTV, payback period, contribution margin) must use gross-margin-adjusted numbers to be meaningful. A company that reports LTV using total revenue is overstating the actual economic value of each customer by 1/gross margin — which is a 25–50% overstatement for typical SaaS businesses.
the mrrsucks take
Gross margin is where the SaaS dream meets infrastructure reality. Below 70% you're not a software company anymore — you're a services company with a subscription wrapper, and valuations will price you accordingly.
Pure software SaaS: 75–85% is standard, 85%+ is excellent. AI-heavy SaaS with significant inference costs: 60–75% is acceptable. SaaS with meaningful professional services: 50–65%. Hardware+software bundles: 40–60%. Investors apply higher valuation multiples to higher-margin businesses.
Cloud hosting and infrastructure, third-party API costs (AI APIs, payment processing, communication APIs), customer support salaries for tier-1 support, professional services directly tied to implementation, and data center or co-location costs. Sales, marketing, R&D, and G&A are operating expenses, not COGS.
related metrics
Contribution Margin
Contribution margin is the revenue remaining per customer or per unit after subtracting only the var...
Unit Economics
Unit economics is the analysis of revenue, costs, and profitability at the individual customer (unit...
Customer Lifetime Value
Customer Lifetime Value (LTV, also CLV) is the total net revenue a business expects to receive from ...
CAC Payback Period
CAC Payback Period is the number of months a customer must remain and pay before the gross profit ge...
Payback Period
Payback period is the number of months required for a customer's gross profit contributions to fully...
$9. 365 roasts. one public endpoint of pure shame.