Claude Code Cost Calculator
Estimate what Claude Code costs when you pay per token with an API key. Pick a model, describe a typical task, and see the cost per task, per day and per month, compared with the Pro, Max and Ultra plans. Prices are Anthropic's official API rates, checked 28 November 2026.
Fresh (uncached) input: 5%. The example tasks are rough assumptions, so use your own numbers when you have them.
Without caching this would be about $308 a month. At this usage, a $20/month Pro plan is likely cheaper, if its usage limits are enough for you.
| Model | Per task | Per month |
|---|---|---|
| Claude Opus 5.5 | $1.56 | $171 |
| Claude Sonnet 5.5 | $0.778 | $85.58 |
| Claude Haiku 5.5 | $0.044 | $4.87 |
| Claude Fable 5.2 | $2.90 | $319 |
| Model | Input | Cache read | Cache write 5m | Output |
|---|---|---|---|---|
| Claude Opus 5.5 | $4 | $0.2 | $5 | $20 |
| Claude Sonnet 5.5 | $2 | $0.1 | $2.5 | $10 |
| Claude Haiku 5.5* | $0.1 | $0.01 | $0.125 | $0.5 |
| Claude Fable 5.2 | $8 | $0.2 | $10 | $40 |
*Haiku 5.5 prices for prompts up to 100K tokens; above that $0.50 input and $2.50 output. Source: Anthropic pricing page, 28 November 2026.
How Claude Code token costs work
Every turn, Claude Code sends the model your conversation so far, the files it read and your instructions. That's why input tokens add up fast in long sessions, and why prompt caching matters: repeated parts are read from the cache at a small fraction of the normal price, while new parts are written to the cache once (at 1.25x for the 5-minute cache, 2x for the 1-hour cache).
Output tokens (the code and text Claude writes) cost 5x the input price on every current model, but there are far fewer of them.
Ways to cut the bill: use /clear between unrelated tasks, keep CLAUDE.md short, run simple subagents on Sonnet or Haiku, and let Opus handle only the hard parts. On a subscription, none of this is billed per token, but it still stretches your usage limits.