Claude Code cost calculator

AI coding cost is driven by the tokens each task sends to and receives from the model, multiplied by the provider's per-million-token rates.

Estimate Claude Code costs per task and per month from tokens, USD rates and prompt-cache hits, and compare them with a budget. Runs in your browser.

Browser-sideNo accountCopy, download, or print

Pricing fields are editable planning assumptions; verify current Claude and model-provider pricing before budget approval.

Last reviewed

Your inputs are saved as a draft in this browser only. Nothing is uploaded.

Jump to result
Interactive workspace

Inputs

Result

More export options

Monthly cost (USD)$8.71
Cost per request$0.0198
Monthly requests440
Effective input tokens1,600
Monthly requests: 440
Effective input tokens/request: 1,600
Cost per request: $0.0198
Estimated monthly cost: $8.71
Within the monthly budget you entered.
Estimate based on the token rates you entered.

How to use it

  1. Pick a model profile, or enter custom input and output token rates.
  2. Set tasks per day, working days, and average tokens per task.
  3. Adjust the estimated prompt-cache hit rate.
  4. Review the per-request and monthly cost against your budget.

Questions

Are the default token rates current pricing?
No. The rates are editable planning assumptions; confirm current pricing with your provider before budgeting.
How does the cache hit rate affect cost?
A higher prompt-cache hit rate reduces the effective input tokens per request, lowering the estimated cost.
Is this an official price quote?
No. It is a browser-side estimate based on the numbers you enter.
What does 20 tasks a day cost at the default assumptions?
20 tasks × 22 working days is 440 tasks. At 2,000 input and 1,000 output tokens per task and $3 and $15 per million tokens, each task costs $0.021 before caching, about $9.24 a month. Cache hits lower the input share of that figure.