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

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.

Related pages