Claude Code cost calculator
See what your Claude Code use costs on the API each month, and whether Pro ($20), Max 5x ($100) or Max 20x ($200) is cheaper. Paste your token counts from /usage or ccusage, or start from an estimate. It runs in your browser and stores nothing.
95% is the share in Anthropic's /usage example. Run /usage to see your own Prompt cache line.
Max 20x. The same work costs about $217 a month on the API, and Max 20x costs $200. Max 5x costs $100 if your work fits inside its smaller limits.
- API, pay as you go$217.15
- Pro$20
- Max 5x$100
- Max 20xbest fit$200
- Pro$20 of API use a month, or about 2 active days
- Max 5x$100 of API use a month, or about 10 active days
- Max 20x$200 of API use a month, or about 19 active days
Anthropic does not publish plan limits as token counts. It says Max 5x gives 5 times Pro's usage per five-hour session and Max 20x gives 20 times, with a weekly limit on top. A plan saves money only while your work fits inside those limits. Past them, usage credits bill at API rates.
- Opus 5.5$217.15466.3k input · 2.1M output · 19.4M cache write · 378.0M cache read
US dollars per million tokens, standard API rates.
- Fable 5.1In $10Out $50Cache write $12.50Cache read $0.25
- Opus 5.5In $4Out $20Cache write $5Cache read $0.20
- Sonnet 5.5In $2Out $10Cache write $2.50Cache read $0.10
- Haiku 5.5In $0.10Out $0.50Cache write $0.125Cache read $0.01
- Pro$20 a month, or $17 a month billed yearly
- Max 5x$100 a month
- Max 20x$200 a month
- Every paid plan includes Claude Code. On Pro, Fable runs on usage credits at API rates. Max includes Fable for up to half of the weekly limit.
- Anthropic's Claude Code docs put the average at about $13 per developer per active day, and under $30 a day for 90% of users.
- Claude's pricing page also lists $100 to $200 a month in Claude Platform API credits with Max. This calculator leaves them out.
- Prices exclude tax, data residency (1.1x) and fast mode.
How to use it
- 1
Add your usage
Paste the Usage by model lines from /usage in Claude Code, or the JSON from ccusage monthly --json. No numbers yet? Pick an estimate and the days you code each month.
- 2
Set the model mix
Say how your tokens split across Opus, Sonnet, Haiku and Fable. Pasted numbers keep their own split per model.
- 3
Read the verdict
Compare the monthly API cost with each plan and check the break-even line. The price table shows the date we checked Anthropic's prices.
Questions
Is Claude Max worth it for Claude Code?
Max is worth it when the same work would cost more than its price on the API: $100 a month for Max 5x, $200 for Max 20x. Anthropic's Claude Code docs put the average API cost at about $13 per developer per active day, or $150 to $250 a month, so a full-time user often passes $100. Paste your own numbers above to check. Each plan also has session and weekly limits, and Anthropic does not publish them as token counts.
How much does Claude Code cost?
Claude Code is included in every paid Claude plan: Pro at $20 a month ($17 a month with $200 billed yearly), Max 5x at $100 and Max 20x at $200. With an API key you pay per token instead. On Opus 5.5 that is $4 per million input tokens, $20 per million output tokens and $0.20 per million tokens read from cache.
Is the API cheaper than a Max plan for Claude Code?
The API is cheaper while your monthly token cost stays under the plan price. Under $20 a month, pay as you go wins. Over $100 a month, Max 5x costs less for the same work as long as you stay inside its limits. Cache reads are about 94% of the tokens in Anthropic's own /usage example, so the cache read price drives most of the bill.
What is the difference between Max 5x and Max 20x?
Max 5x costs $100 a month and gives five times Pro's usage per five-hour session. Max 20x costs $200 a month and gives 20 times. Both reset the session limit every five hours and add a weekly limit across all models. Both include Claude Code, and Anthropic's plan table lets Fable use up to half of the weekly limit on both.
How do I see how many tokens Claude Code uses?
Run /usage in Claude Code. The Session block lists input, output, cache read and cache write tokens for each model, and you can paste those lines into this calculator. For a whole month, the open source ccusage tool reads your local Claude Code logs: run bunx ccusage monthly --json and paste the output.
What happens when I hit my Claude plan limit?
Claude Code pauses until the limit resets, unless you turn on usage credits. Usage credits let you keep working at standard API rates. The session limit resets every five hours, and paid plans also have a weekly limit.
Does Claude Pro include Fable?
Pro runs Fable on usage credits at API rates, so this calculator adds your Fable cost to the Pro price. Max 5x and Max 20x include Fable for up to 50% of the weekly limit, per Anthropic's plan table. Fable 5.1 costs $10 per million input tokens and $50 per million output tokens on the API.
Sources
Every path, key and command comes from the vendor docs below. We checked them on 2026-10-30.
Related playbooks
- Run a weekly SEO agent that checks your site and opens fixes for you to review
- Turn small tracker issues into reviewed pull requests with cloud coding agents
- Run a deep research report and check that every citation supports its claim
More free tools
- AI Agent FinderType a job and see which AI agents our sourced playbooks use for it, ranked by evidence.
- MCP Config GeneratorWrite the MCP config file, path and install command for Claude, Codex, VS Code and Cursor.
- AGENTS.md GeneratorWrite a lean AGENTS.md for Codex, Cursor, Copilot and Claude Code, or check the one you have.
- CLAUDE.md GeneratorWrite a CLAUDE.md for Claude Code, share it with AGENTS.md, or check the one you have.
- SKILL.md ValidatorCheck a SKILL.md against the Agent Skills spec and get each fix, with the source for every rule.
- Claude Code Permissions BuilderBuild the permissions block of Claude Code's settings.json, with presets, plain rules and risk checks.