Claude Code pricing calculator

Claude Code comes with Claude’s Pro plan at $20 a month, Max at $100 and Ultra at $200, or you can pay per token through the API. This Claude Code pricing calculator takes the token counts from your own sessions and shows what they cost on the API and how that compares with each plan. Every price comes from Anthropic’s own pages, checked on 28 November 2026.

Your Claude Code use
These numbers cover

Starts with the session from Claude Code’s cost docs, which /usage priced at $0.55 on Sonnet 4.6. Replace the numbers with your own from /usage or ccusage.

$0.5526
These tokens on the API
$11.60
A month at this rate
51%
Spent on cache reads
Token typeTokensPer millionCost
Input1,200$3.00$0.0036
Output5,300$15.00$0.0795
Cache read940,000$0.30$0.2820
Cache write50,000$3.75$0.1875

At $11.60 a month, paying the API costs less than any plan. Pro, the cheapest plan that includes Claude Code, is $17 to $20 a month.

PlanThis usePriceUsage
API, pay per token$11.60 a monthBilled on actual monthly usageEvery token billed at the rates above
Pro$8.40 more than the API$20 a month, or $200 a year ($17 a month)More usage than Free, every 5 hours and every week
Max$88.40 more than the API$100 a month5x Pro usage every 5 hours and every week
Ultra$188.40 more than the API$200 a monthNo 5-hour limit for verified accounts, and 10x Pro usage every week
Team, standard seat$13.40 more than the API$25 a seat monthly, or $20 billed annually; 2 to 150 seatsMore usage than Pro
Team, premium seat$113.40 more than the API$125 a seat monthly, or $100 billed annually5x more usage than standard seats
Enterprise$31.60 a month with the seat$20 a seat a month billed annually, 20-seat minimumSeat price plus usage at API rates

Sources: Claude API pricing, checked 28 November 2026; Claude pricing, checked 28 November 2026.

Claude Code plans and prices

Pro, Max, Ultra, Team and Enterprise all include Claude Code; the free plan does not. Team seats come in two sizes, and Enterprise bills every token at API rates on top of a $20 seat.

PlanPriceUsage
Pro$20 a month, or $200 a year ($17 a month)More usage than Free, every 5 hours and every week
Max$100 a month5x Pro usage every 5 hours and every week
Ultra$200 a monthNo 5-hour limit for verified accounts, and 10x Pro usage every week
Team, standard seat$25 a seat monthly, or $20 billed annually; 2 to 150 seatsMore usage than Pro
Team, premium seat$125 a seat monthly, or $100 billed annually5x more usage than standard seats
Enterprise$20 a seat a month billed annually, 20-seat minimumSeat price plus usage at API rates

Max and Ultra also come with $100 and $200 of API credits a month, but Anthropic’s help center says those credits can’t be spent in Claude Code.

Sources: Claude pricing, checked 28 November 2026; Claude Help Center: use Claude Code with your Pro, Max, or Ultra plan, checked 28 November 2026.

Claude Code API prices

With an API key, Claude Code bills every token at these rates, in dollars per million tokens. Its /usage command reports the same four kinds of token for each model: input, output, cache read and cache write.

ModelInputCache write, 5 minCache write, 1 hourCache readOutput
Opus 5.5$4.00$5.00$8.00$0.20$20.00
Sonnet 5.5$2.00$2.50$4.00$0.10$10.00
Haiku 5.5, prompts up to 100k$0.10$0.125$0.20$0.01$0.50
Fable 5.2$8.00$10.00$16.00$0.20$40.00
Opus 5, 4.8, 4.7 or 4.6$5.00$6.25$10.00$0.50$25.00
Sonnet 5$2.00$2.50$4.00$0.20$10.00
Sonnet 4.6$3.00$3.75$6.00$0.30$15.00
Haiku 4.5$1.00$1.25$2.00$0.10$5.00

Source: Claude API pricing, checked 28 November 2026.

These change the rate:

  • Cache lifetime. With an API key, Claude Code writes the main conversation to the 5-minute cache by default. On a subscription, within the plan’s usage, it uses the 1-hour cache. The promptCacheTtl setting picks either one.
  • Fast mode. Opus 5.5 costs $8 per million input tokens and $40 per million output tokens in fast mode, and Fable 5.2 costs $16 and $80. The cache rates rise with them.
  • US-only inference. Claude 4.6 and later models cost 1.1 times as much when inference is kept in the US.
  • Haiku 5.5 prompt length. A request whose prompt is over 100,000 tokens, counting cache reads and writes, pays $0.50 input and $2.50 output per million. Claude Code resends the whole conversation with every request, so a long session crosses that line.

Sources: Claude Code docs: how Claude Code uses prompt caching, checked 28 November 2026; Claude API pricing, checked 28 November 2026.

Claude Code usage limits

Pro and Max have a five-hour session limit and a weekly limit. Verified Ultra accounts have no five-hour limit but do have the weekly one. Max and Ultra add a separate weekly limit for Fable. The limits are shared: chats in Claude, Claude Code and use from an IDE all count against the same allowance.

Anthropic doesn’t state the limits in tokens, messages or hours. The plans are described against each other (Max gives five times Pro’s usage), and how fast you reach a limit depends on the model, the length of the conversation and the size of the files involved. So the calculator compares prices; whether your use fits a plan shows up in your own /usage bars and /status as you work.

Switching models with /model doesn’t get you past a session or weekly limit, because Claude Code’s docs say those windows are shared across all models. A model-specific message such as “You’ve hit your Opus limit” is different: switching to another model family keeps you working. At a session or weekly limit you can wait for the reset, turn on usage credits, or give Claude Code an API key, which then bills every token at API rates.

Sources: Claude Help Center: use Claude Code with your Pro, Max, or Ultra plan, checked 28 November 2026; Claude pricing, checked 28 November 2026; Claude Code docs: manage costs effectively, checked 28 November 2026.

How to check your Claude Code usage

  • /usage in Claude Code. On a subscription it shows your plan’s usage bars and what used them, split by skills, subagents, plugins and MCP servers. With an API key its Session block lists input, output, cache read and cache write tokens for each model, with an estimated cost at list price.
  • /status, which the help center names for checking your remaining allocation.
  • ccusage, an open-source command-line tool that reads Claude Code’s local logs and reports tokens and estimated cost by day, month, session and five-hour block. Run npx ccusage@latest daily.
  • On the API, the Claude Console’s Cost page shows spend, and its Claude Code dashboard shows spend and lines accepted per member.

/usage with an API key and ccusage both give the four token counts the calculator takes.

Sources: Claude Code docs: manage costs effectively, checked 28 November 2026; Claude Help Center: use Claude Code with your Pro, Max, or Ultra plan, checked 28 November 2026; ccusage README, checked 28 November 2026.

Worked examples, checked by hand

The session in Claude Code’s cost docs used Sonnet 4.6, and /usage priced it at $0.55. At Sonnet 4.6’s API rates:

TokensCountPer millionCost
Input1,200$3.00$0.0036
Output5,300$15.00$0.0795
Cache read940,000$0.30$0.2820
Cache write (5 minutes)50,000$3.75$0.1875
Total$0.5526

The total rounds to the $0.55 that /usage showed, which also confirms that it priced the cache writes at the 5-minute rate.

The same counts come to $0.5488 on Opus 5.5 and $0.2744 on Sonnet 5.5. Real counts would be higher on those models: Claude 4.7 and later use a tokenizer that Anthropic says produces about 30% more tokens for the same text, which would put the Sonnet 5.5 session nearer $0.36. Our token counter shows the difference on your own text.

Anthropic reports that across enterprise deployments, Claude Code averages about $13 per developer per active day and $150 to $250 per developer per month, with 90% of users under $30 per active day. That monthly average is above Max’s $100. At $30 a day for 21 working days, the month comes to $630, more than three times Ultra’s price.

Sources: Claude Code docs: manage costs effectively, checked 28 November 2026; Claude API pricing, checked 28 November 2026.

Where Claude Code’s tokens go

This is our own measurement: we counted 6,009 Claude Code requests to Opus 5.5 from 16 sessions on one of our build machines between 25 and 27 November 2026. These were long agent sessions: each request carried about 300,000 tokens of conversation. At API rates, with cache writes priced at the 5-minute rate:

TokensShare of tokensShare of cost
Cache read99.1%72.5%
Cache write0.8%13.8%
Output0.2%13.7%
Uncached inputunder 0.01%under 0.1%

A cache read is cheap, but every request rereads the whole conversation, so the length of a session moves the bill more than the amount Claude writes. Claude Code’s docs give the matching advice: run /clear between unrelated tasks and /compact at natural breaks.

Sources: Claude API pricing, checked 28 November 2026; Claude Code docs: manage costs effectively, checked 28 November 2026.

Questions

Is Claude Code free?
No. The free Claude plan does not include Claude Code. It starts with Pro at $20 a month or $200 a year, and API users pay per token.
How much does Claude Code cost per month?
Pro is $20, Max $100 and Ultra $200 a month. On the API it depends on your tokens: Anthropic puts the average across enterprise deployments at $150 to $250 per developer per month.
What is ccusage?
An open-source command-line tool, MIT licensed, that reads Claude Code’s local logs and reports tokens and estimated cost by day, month, session and five-hour block. Run it with npx ccusage@latest. Its README says it sends nothing from your logs, and DO_NOT_TRACK=1 turns off its daily usage ping.
Does setting ANTHROPIC_API_KEY change what I pay?
Yes. With the variable set, Claude Code signs in with that key instead of your subscription and bills every token at API rates, even if you also pay for a plan.
Can I use the API credits that come with Max or Ultra in Claude Code?
No. Anthropic’s help center says the monthly API credits included with Max and Ultra can’t be used in Claude Code or the Claude apps.
Does a long context cost more per token?
Not on Claude 4.6 and later, which bill the full 1M-token context at standard rates. Haiku 5.5 is the exception: a request whose prompt is over 100,000 tokens pays its higher rates.

Run agents on your Claude Code subscriptionNeotask agents can run on a Claude Code subscription, hosted models or your own provider keys, and the Sessions page lists each run’s model with its input, output and cache tokens.

Download Neotask