What does each agent run actually cost?
Multi-turn agents accumulate context every step. Cost grows quadratically, not linearly. Model it before you get a $20K overnight bill.
Model the cost of a multi-turn agent loop — tool calls, context accumulation, retries — where a naive estimate misses 50-80%.
- Agents have a hidden cost explosion: context grows each turn, and every turn pays for the full accumulated context
- Tool-use calls multiply: a 10-step agent loop is not 10x a single call cost — it's often 30x
- Prompt caching is the single biggest lever for agent cost — model it here
New to this calculator? Start with the ⚡ Playground — a few sliders, instant ballpark. Then switch to the 🧮 Calculator for your exact number.
Two ways to use this: visualize in the Playground, then get your number in the Calculator.
Tasks × turns × tokens — plus a “runaway tail” for loops that don’t stop. Balanced tier, ~30 days. (Runaway risk fixed at default; see the breakdown.)
💡Base = tasks × turns × tokens × rate. The runaway tail adds the cost of a small fraction of tasks looping to their cap — shown in “Why this number”.
👇 Now try the calculator below with your own AI workloads
Each "task" runs a multi-turn loop until done. Context accumulates across turns.
Pick a typical agent workload — or switch to ⚙️ Advanced to enter exact tokensWhy agents get expensive: context grows every turn.
💡 Optimization levers
🔴 Runaway risk
Agent tasks amplify price differences - every turn pays the premium.
| Model | $/task | $/day | $/month | $/month (cached) |
|---|
- 🤖 Size your agent budget — Real per-task cost including context bloat from each turn. Most teams underestimate 3-5x.
- 📈 Spot turn-cost growth — Each turn carries forward all prior context. By turn 8 input cost is 3x turn 1.
- 🔧 Tune tool overhead — Bloated tool results are silent cost killers. See exactly how much they add per turn.
- 🔌 Integrate with your AI agents — MCP available for agentic workflow integration. Surface live cost intelligence.