Claude Code Cost Calculator
Claude Code Cost Calculator estimates what Claude Code costs when you pay per token with an API key. Pick a model, enter your daily tokens and active days, and it shows the cost per day and per month next to the Pro, Max and Ultra plan prices. Prices come from Anthropic's pricing pages.
API cost with Sonnet 5.5: $8.50 per active day, $170 per month.
| Plan | Price a month | API month vs plan |
|---|---|---|
| Pro | $20 | API costs $150 more |
| Max | $100 | API costs $70 more |
| Ultra | $200 | API costs $30 less |
Plans have usage limits rather than a dollar budget. Max and Ultra also include $100 and $200 of monthly API credits. For reference, Anthropic reports an average of about $13 per developer per active day across enterprise deployments, and under $30 per active day for 90% of users.
The prompt that built it
This is the prompt written before the app existed. Prices were read from Anthropic's pricing docs and claude.com/pricing on 12 November 2026.
Build a web page called Claude Code Cost Calculator.
Who uses it: a person deciding between a Claude plan and paying for Claude Code per token with an API key.
What it does: one page. The user picks a model (Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5) and enters, per active day, millions of tokens for uncached input, cache writes, cache reads and output, plus active days per month. Use Anthropic's list prices per million tokens from its pricing docs, with the 5-minute cache write price. The page shows the API cost per active day and per month, and a table that compares the month with Pro ($20), Max ($100) and Ultra ($200). Below the result, say that plans have usage limits rather than a dollar budget, and quote Anthropic's average of about $13 per developer per active day.
Done means: with Sonnet 5.5, 1 million input tokens and nothing else for 1 day, the cost is $2.00. A comma counts as a decimal point. An empty or negative field shows a message instead of a number. The result is announced to screen readers when it changes.
Out of scope: accounts, saving, any network call, any claim about which option is better. Everything runs in the browser.
Plain design, no gradients, no shadows, no icons. Must work at 390 pixels wide without sideways scrolling.