AI SaaS Gross Margin Calculator

Calculate real per-seat gross margin after LLM token COGS, Stripe payment processing fees, hosting overhead, and power-user skew.

Subscription & Unit Usage Inputs

Default Stripe rate: 2.9% + $0.30$3.00 in / $15.00 out
Gross Margin
0.0%
Net Profit / User
$0.00
Healthy SaaS Margin$0.0000 / req
Monthly MRR
$0.00
Total Monthly COGS
$0.00
Monthly Net Profit
$0.00
AI Token Cost / User
$0.00
Revenue Allocation% of MRR
AI API0%
Stripe Fees0%
Infra0%
Net Margin0%

Transparent Formula & Methodology

Dataset: 2026-11-27

This calculator models AI SaaS unit economics by combining variable LLM token consumption, payment gateway transaction fees, and fixed monthly hosting costs against recurring seat revenue.

CostPerReq = (InputTokens * InputRatePer1M + OutputTokens * OutputRatePer1M) / 1,000,000
AI_Cost_User = RequestsPerUserMonth * CostPerReq
StripeFee_User = SeatPrice > 0 ? (SeatPrice * StripePct / 100) + StripeFixedUSD : 0
MRR = SeatPrice * ActiveSubscribers
TotalCOGS = (AI_Cost_User + StripeFee_User) * ActiveSubscribers + FixedHostingUSD
GrossMarginPct = ((MRR - TotalCOGS) / MRR) * 100

When monthly seat price is $0 (free tier), payment processing fees are zeroed out so you can inspect pure inference burn. If MRR is zero while fixed hosting or API usage is positive, margin reflects negative unit economics without division by zero.

Frequently Asked Questions

What is a healthy gross margin for an AI micro-SaaS?

Traditional B2B SaaS targets 75% to 85% gross margin, while AI-native apps typically aim for 65% to 80% after LLM token COGS, Stripe fees, and hosting. Margins below 50% leave too little contribution margin to fund customer acquisition and support.

How do Stripe processing fees affect low-ticket AI plans?

Payment fees combine a percentage cut and a fixed per-transaction fee, which disproportionately erodes $9 to $19 monthly plans. On a $10 subscription, standard card processing consumes roughly 5.9% of top-line revenue before a single token is generated.

Why do power users wreck average AI SaaS unit economics?

Token consumption typically follows a heavy-tailed distribution where the top 5% of seats generate 40% to 60% of total inference volume. Modeling the mean alone hides negative-margin cohorts unless you apply tiered routing, caching, or fair-use caps.

How can I raise my AI wrapper gross margin without raising prices?

Route classification and simple drafts to fast mini models, enable prompt caching on repeated system instructions, trim verbose JSON schemas, and batch non-interactive background jobs to cut token COGS by 40% to 75%.