
How to calculate AI cost and margin per customer
Join what each customer costs you at OpenAI, Anthropic and Gemini to what they pay you in Stripe. The formula, the SQL and a worked ten-customer table.

Brandon Holt
November 18, 2026

Every step resends the steps before it. The math for three agent types, and what a runaway loop costs turn by turn.

One realistic spread of light, typical and heavy users, priced four ways, with the margin on each.