AI Product Margin Calculator

Analyze unit economics and identify when AI agents create unsustainable costs

Configure Model Mix

Set your AI model distribution and blended costs per million tokens.

Model Selection

20%
40%
30%
10%

Blended Cost Analysis

Input tokens (per million) $2.50
Output tokens (per million) $10.00
Input/Output ratio 3:1
Effective cost per million $4.38

Model Pricing Reference

Model Input ($/M) Output ($/M) Context Window
GPT-4o $2.50 $10.00 128K
GPT-4o-mini $0.15 $0.60 128K
Claude 3.5 Sonnet $3.00 $15.00 200K
Claude 3.5 Haiku $0.25 $1.25 200K

Define Usage Patterns

Configure token volumes, caching strategies, and agent behavior patterns.

Token Volume

Total input + output tokens per average user

Top 10% users consume X times average

Caching Strategy

30%
70%
Effective cost reduction 21%

Agent Behavior

Configure Pricing

Define your product pricing tiers and overage policies.

Pricing Model

Overage & Limits

Margin Analysis

Real-time profitability metrics and customer segment analysis.

Customer Economics

Average cost per user $8.75
Average revenue per user $99.00
Gross margin 91.2%
Contribution margin $90.25

Segment Analysis

Profitable customers 85%
Underwater customers 15%
Power user margin -23%
Break-even point 2.2M tokens

Margin Distribution by Usage

Agent Loop Detection

Simulate and prevent runaway costs from autonomous agent loops.

Loop Parameters

15%

Impact Analysis

Worst-case tokens 60,000
Worst-case cost $0.26
Monthly risk exposure $130
Affected users ~50/month

Loop Detection Visualization

Data Management

Auto-Save

Auto-saving enabled

Configuration

Spreadsheet

Share