AI Agent Run Cost Calculator

An agent does not make one model call: it plans, calls tools and reads the results over several steps, and every call is billed. Enter the average tokens per call, how many calls each step makes and how many steps a run takes, plus optional tool or MCP overhead and cached input, and see the cost per run, per day, per month and per year. The result is an estimate: the prices and token counts are yours, and provider extras are not included.

Processed locally in your browser. Your data is not uploaded to our servers.

Average prompt size. In real agents the history grows each step, so use the average over the run.

Average reply size, including any reasoning tokens that are billed as output.

For example 1 for a simple loop, or 2 if a step plans and then acts.

How many steps a typical run takes.

Tool definitions and results added once per step, billed as ordinary input. If your client re-sends them with every call, multiply by the calls per step.

The part of each call’s input served from the prompt cache. Needs a cached input price.

How many times the agent runs in a day.

30 by default. Use 22 for working days.

A preset only fills in the price fields. You can edit them.

The price for reading input from the prompt cache.

Preset prices are standard pay-as-you-go API prices in USD per million tokens, read from each provider’s pricing page and last verified 2026-10-19. Providers change prices often: confirm on the provider’s page.

Price sources:

Result

Estimate

Enter the tokens, calls, steps, runs and prices to estimate the cost.

Exact arithmetic on your numbers, but an estimate of a real bill: token counts vary from run to run, and provider extras such as tool or search fees, retries and taxes are not included.

Examples

Worked examples at example prices of 3 USD input and 15 USD output per million tokens, 100 runs a day, 30 days a month:

AgentCalls per runTokens per runCost per runCost per month
Simple assistant37,2000.036 USD108.00 USD
Research agent with tools16116,0000.444 USD1,332.00 USD
Coding agent with caching20420,0001.07 USD3,204.00 USD

Formula & Methodology

The arithmetic is exact for the numbers you enter:

calls per run = steps × calls per stepinput tokens per run = calls per run × input tokens per call; overhead = steps × overhead per stepoutput tokens per run = calls per run × output tokens per callcost per run = uncached input × input price + cached input × cached price + overhead × input price + output × output price (each ÷ 1,000,000)per day = cost per run × runs per day; per month = per day × days per month; per year = per day × 365

Good to know

  • Agents re-send their growing history on every call, so input tokens per call rise during a run. Enter the average over a whole run, or measure a real run and use its usage figures.
  • Tool or MCP overhead is added once per step as ordinary input. Many clients send tool definitions with every model call, in which case multiply the overhead by the calls per step.
  • Cached tokens are billed at the cached price you enter. Cache-write fees, storage fees and cache lifetimes depend on the provider and are not modelled: see the prompt cache calculator.
  • Not included: tool, search and code-execution fees, retries, failed runs, batch discounts, taxes and free tiers.
  • Costs vary from run to run. Use the estimate for planning and your provider’s usage reports for the real figure.

How to Use

  1. Enter the average input and output tokens of one model call.
  2. Enter the calls per step and the steps per run, plus any tool overhead or cached tokens.
  3. Enter the runs per day and your prices per million tokens, or prefill them from a preset.
  4. Read the cost per run, day, month and year and the breakdown.

Frequently Asked Questions

How do I estimate what an AI agent costs?

Count the model calls in a run (steps × calls per step), multiply by the average input and output tokens per call, price them per million tokens and add any tool overhead. Then multiply by the runs per day and days per month. This calculator does all of that.

Why is an agent run more expensive than one chat reply?

It makes many model calls, and each call re-sends the instructions, tool definitions and the growing history as input. Costs therefore grow faster than the number of steps.

How do tool and MCP definitions affect the cost?

They are extra input tokens sent to the model. This tool adds the overhead you enter once per step; if your client sends the definitions with every call, multiply it by the calls per step. The MCP overhead calculator estimates the definitions themselves.

Can prompt caching lower an agent’s cost?

Often, because much of each call’s input repeats. Enter the cached tokens per call and the cached price to see the effect. Cache-write fees and lifetimes are not modelled here.

How accurate is the result?

The arithmetic is exact, but real runs vary in length and token counts, and providers add fees this tool does not model. Treat it as a planning estimate and check your provider’s usage report.

Last updated: