Black Friday sale: 85 Claude Code agents for $29 one-time · lifetime updatesGet access →
Free Tool

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.

Example tasks:

Fresh (uncached) input: 5%. The example tasks are rough assumptions, so use your own numbers when you have them.

Claude Sonnet 5.5 estimate
Per task
$0.778
Per day
$3.89
Per month
$85.58

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.

Same task on every model
ModelPer taskPer 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
API prices per million tokens
ModelInputCache readCache write 5mOutput
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.

Skip the setup: 85 ready-made agents for Claude Code

Coding, SEO and marketing agents, 52 skills and 53 slash commands. Installs with one line.

All free tools →

Frequently asked questions

On a Claude subscription it's a flat price: Pro is $20 a month ($17 billed yearly), Max is $100 and Ultra is $200, with usage limits that reset every 5 hours and every week. On an API key you pay per token instead, so the monthly cost depends on the model and how much you use it. This calculator estimates the API cost.

Related guides and tools