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.