mrrsucks_
Last updated: June 2026·by mrrsucks.com
Unit Economics

Gross Margin

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.

formula.sh

Gross Margin % = (Revenue − COGS) / Revenue × 100

  • > Revenue — total recognized recurring revenue in the period
  • > COGS — direct costs: cloud hosting, infrastructure, third-party APIs (e.g., OpenAI, Stripe fees), CS/support salaries for delivery-related work
  • > Gross Profit = Revenue − COGS
  • > Gross Margin % = Gross Profit / Revenue × 100
example
example.sh

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.

why it matters

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.

common mistakes
Excluding customer success salaries from COGS when they are delivery-related — this overstates gross margin and misrepresents the true cost of serving customers.
Including sales, marketing, and R&D in COGS — these are operating expenses (OPEX), not COGS; including them understates gross margin.
Not tracking gross margin trend over time — many SaaS businesses see gross margin compression as they scale infrastructure or add services without noticing the cumulative impact.
pro tips
Calculate gross margin with and without customer success costs — both views are useful; the narrower definition (pure infrastructure and APIs) shows your software economics, the broader definition shows your true delivery cost.
Set a gross margin floor target (e.g., never below 70%) and flag any architecture or pricing decision that would breach it before implementation.
Monitor variable COGS per customer as you scale — if COGS per customer is not declining with scale, you lack the expected SaaS operating leverage.

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.

faq
What is a good gross margin for SaaS?+

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.

What costs are included in SaaS COGS?+

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.

$1K MRR milestone

related metrics

./install-the-daemon

$9. 365 roasts. one public endpoint of pure shame.