Claude Code calculator
Claude Code Cost Calculator
Claude Code cost planning is different from ordinary chat cost planning because coding agents repeatedly read repository context, create tool calls, revise files, and loop through reviews. A single feature task can include many agent turns.
Use the AI Coding Agent Cost Calculator to model input tokens, output tokens, cache write tokens, cached input tokens, task frequency, and subscription assumptions.
What to estimate before a run
- How much repository context the task needs.
- How many agent turns the workflow may take.
- Whether repeated context can benefit from prompt caching.
- How often the task will run per month.
- Whether API usage or a subscription-style plan is better for your workflow.
Good first presets
Start with the bug fix preset for small isolated changes, the feature preset for multi-file changes, and the refactor preset for repository-wide edits. Then replace the token assumptions with your own logs or `/usage` output.