LLM cost-to-revenue ratio calculator
One number tells you whether your AI feature is a margin problem: the share of revenue it consumes. Enter your monthly LLM spend, revenue, and total COGS, and this tool returns the cost-to-revenue ratio, the cost-to-COGS share, and — with the target slider — the exact spend reduction needed to hit your goal.
How it works
cost_to_revenue = llm_spend / revenue
cost_to_cogs = llm_spend / total_COGS
target_spend = revenue × target_ratio
reduction = current_spend − target_spend
The revenue ratio is the headline metric investors and finance teams watch. The COGS ratio reveals how much of your delivery cost is inference — if LLM spend is 60% of COGS, model optimization is your single biggest margin lever. The target slider converts a goal into an action: a dollar amount of spend you must remove through cheaper models, caching, shorter outputs, or smarter routing.
Benchmarks and tips
- Under 10% of revenue is a common target for AI-native products; 5% or less is comfortable.
- Above 20% is a warning sign — revisit model choice, cache aggressive prompts, and cap output length.
- Raise price before cutting quality. If the feature drives real value, pricing power often fixes the ratio faster than shaving tokens.