Article

How much does Claude Code cost? Real numbers, and how to cap them

The plans, the per-token prices, two worked days on the API with the sums shown, and the switches that stop a bill running away

The short answer. Claude Code comes with every paid Claude plan: Pro at $20 a month ($17 if you pay for the year), Max at $100 and Ultra at $200.1 Or you skip the plan and pay per token on the API, where Opus 5.5 costs $4 per million tokens in and $20 per million out.2 Anthropic's own figure for enterprise teams on the API is about $13 per developer per active day, or $150 to $250 a month, with 90% of people staying under $30 a day.3

So that's the brochure. The honest answer is "it depends", and what it depends on mostly ISN'T the price per token. How big does your context get? How often do you walk away and let the cache go cold? How many helpers does the agent start while you're not looking? Those decide the bill. When I priced 33 days of my own Claude Code logs for an earlier article, they came to about $4,560 at API rates. I'm on a flat subscription. Draw your own conclusions.

Here are the real numbers, then the arithmetic, then how to put a lid on it.

The plans: one price, a usage limit

PlanPriceWhat you get for Claude Code
Free$0No Claude Code at all
Pro$20/mo
$17/mo yearly
Claude Code, with limits that reset every 5 hours and every week
Max$100/mo5x Pro's usage, Fable for up to half your weekly limit, $100 a month of API credits
Ultra$200/mo10x Pro's weekly usage, no 5-hour limit on verified accounts, $200 a month of API credits
Team, standard seat$25/seat/mo
$20 yearly
More usage than Pro, for teams of 2 to 150
Team, premium seat$125/seat/mo
$100 yearly
5x a standard seat
Enterprise$20/seat/mo
+ API usage
Billed yearly, 20-seat minimum, usage charged at API rates, admin spend limits
US dollars before tax, from claude.com/pricing, checked 25 Nov 2026.1

Every plan has a usage limit on a rolling 5-hour window plus a weekly cap, and Claude Code shares it with your chats. Hit it and you wait, upgrade, or turn on usage credits, which are billed at standard API rates. So a plan isn't quite a hard ceiling either. It's a ceiling with a door in it.

The API prices: what each token costs

ModelInputOutputCache write, 5 minCache write, 1 hourCache read
Opus 5.5$4$20$5$8$0.20
Sonnet 5.5$2$10$2.50$4$0.10
Haiku 5.5, prompt up to 100k$0.10$0.50$0.125$0.20$0.01
Haiku 5.5, prompt over 100k$0.50$2.50$0.625$1$0.05
Fable 5.2$8$40$10$16$0.20
US dollars per million tokens, standard API rates, from Anthropic's pricing docs, checked 25 Nov 2026.2

Three things on that card matter more than the headline. First, the cache read column. A coding agent resends its whole conversation on every turn, so most of what you pay for is rereading, and on Opus 5.5 a cached reread costs a twentieth of the input price. Second, the cache writes. When the cache expires (5 minutes by default, an hour if you pay for the longer one) the whole context gets written again at the write price. Third, Haiku's cliff. Once a prompt goes past 100,000 tokens, every token in that request moves to the second row, cached ones included.

And two pieces of small print. Fast mode doubles the Opus 5.5 price to $8 in and $40 out. And Claude 4.7 and later use a tokenizer that makes roughly 30% more tokens from the same text, so don't compare token counts with last year's.2

Two days on the API, with the working shown

Here's the arithmetic for one developer on Opus 5.5. The assumptions are mine, picked to look like real sessions, so swap in your own.

A typical day

150 turns over about 4 hours. The context averages 80,000 tokens: 76,000 come from cache and 4,000 are new each turn, written to the 5-minute cache. Each turn writes 800 tokens of output. Three times the cache goes cold and all 80,000 get written again.

cache reads   150 × 76,000 = 11.4M  × $0.20 =  $2.28
cache writes  150 ×  4,000 =  0.6M  × $5    =  $3.00
output        150 ×    800 = 0.12M  × $20   =  $2.40
cold starts     3 × 80,000 = 0.24M  × $5    =  $1.20
                                      day   =  $8.88
                         21 working days    ≈ $186

That lands right inside Anthropic's own $150 to $250 a month. On Sonnet 5.5 every one of those prices is exactly half, so the same day costs $4.44 and the month about $93.

A heavy agentic day

600 turns across the main session and its subagents over 8 hours. The context averages 300,000 tokens: 290,000 cached, 10,000 new each turn. 1,500 tokens of output per turn. Six cold restarts (lunch, two meetings, the usual) each rewrite 300,000 tokens into the 1-hour cache.

cache reads    600 × 290,000 = 174M  × $0.20 = $34.80
cache writes   600 ×  10,000 =   6M  × $5    = $30.00
output         600 ×   1,500 = 0.9M  × $20   = $18.00
cold restarts    6 × 300,000 = 1.8M  × $8    = $14.40
                                       day   = $97.20
                          21 working days    ≈ $2,041

Eleven times the typical day, same developer, same model. Nothing in it is exotic either. It's a long session with a big context and some fan-out, which is what agentic coding looks like when it's going WELL! The output, the code it actually wrote, is under a fifth of the total.

So is a subscription cheaper?

For one developer, usually yes, and by a distance. The typical day above is about $186 a month on the API and Max is $100. My own 33 days priced at $4,560. The plan has limits, and on a heavy week you'll hit them, but for one person who codes most days a plan is the cheapest way to run Claude Code. I'm not going to pretend otherwise.

The sums change for a team. Once you're on the API (central billing through the Console, Enterprise where usage is charged at API rates anyway, Claude Code running in CI where there's no seat to sign in to) the bill is per token, and per token means the heavy day can turn up on anybody's account. Ten developers having typical days is about $1,865 a month. One of them having three heavy weeks adds about another $1,300, and you find out when the invoice lands.

Why the bill spikes

  • Long context. Every turn resends the whole conversation. A 300,000-token session costs nearly four times as much per turn to reread as an 80,000-token one, before it's written a line.
  • Cold caches. Leave a session longer than the cache lasts and the next turn rewrites all of it. I counted 207 of those in 33 days, worth $972 at API rates. The full story is in the earlier article.
  • Subagents and agent teams. Each helper has its own context window, and Anthropic's docs say token use rises roughly in proportion to team size.3 Fan-out is fine when each one does a short job and stops. It isn't fine when 137 of them start on one Excel file (that happened, it's in the other article too).
  • Loops and retries. A failing test, a flaky tool, an agent that keeps trying the same fix. Every retry is another full reread of the context.
  • The wrong model. Opus left as the default for work Sonnet would do. Anthropic names that, and long sessions nobody ever cleared, as the usual causes of unexpectedly high API spend.3
  • Fast mode left on. Double the price per token. Lovely when you need it, expensive when you forget.

How to cap it

Look at the meter. Run /usage inside Claude Code (/cost still works, it's an alias now).4 On the API it shows the current session's tokens and an estimated cost at list price. On a plan it shows your usage bars instead, because a dollar figure has nothing to do with your bill there. /context shows what's filling the context window.

Keep sessions short. /clear between unrelated jobs, /compact when a session gets long, and pick the model with /model: Sonnet for most of the work, Opus where it earns its keep. Subagents doing simple jobs can be set to model: haiku, as long as you mind the 100k cliff.3

Set a spend limit in the Console. When your team signs in to Claude Code with Console accounts, the usage lands in a workspace called "Claude Code". You can give that workspace a monthly spend limit under Settings, Spend limits, and add email alerts at an amount you choose.5 On Team and Enterprise plans, admins set spend limits on usage credits for the whole organisation, a group or one member.3

Know what those limits don't do. They're monthly, and they're per workspace or per person. They'll stop the bleeding once the month's budget has gone. They won't tell you that one session has burned $90 since lunch, or which repo it was for, and they can't kill that one run while everyone else carries on working.

That last gap is the one I built OmnisVigil for, so take this paragraph with a pinch of salt. It reads the per-request receipts that OmnisRouter (free and open source) writes, and shows spend by session, repo and team as it happens, with budget caps, runaway alerts and a one-click cut-off for the run that's gone wrong. It's for teams on API billing. If you're one developer on Max you don't need it. Check /usage now and then and you're done. For a team, it's a flat £499 a month whoever's on it, not a percentage of your spend, and the pricing section shows how that compares.

Questions people ask

Is Claude Code free?
No. The free Claude plan doesn't include it. You need Pro ($20 a month, or $17 billed yearly), Max, Ultra, a Team or Enterprise seat, or an API account where you pay per token.
How much does Claude Code cost per month on the API?
Anthropic puts the enterprise average at about $13 per developer per active day and $150 to $250 per developer per month, with 90% of users under $30 per active day. My worked typical day on Opus 5.5 came to $8.88, about $186 a month, and a heavy agentic day came to $97.20.
Is Claude Max cheaper than paying for the API?
For one developer who codes most days, almost always. A typical month on the API is around $186 on Opus 5.5, and Max is $100 with five times Pro's usage. The catch is the usage limits. Go past them with usage credits on and the extra is billed at API rates.
How do I check what Claude Code is costing me?
Run /usage (or its alias /cost) at the Claude Code prompt. On the API it shows the session's tokens and an estimated cost at list price. Teams on the Console also get a Cost page and a per-member dashboard.
Can I put a hard cap on Claude Code spend?
On the API, set a monthly spend limit on the Claude Code workspace in the Console. On Team and Enterprise plans, admins set spend limits on usage credits. For per-session caps, live alerts and a cut-off for one runaway run across a whole team, that's what OmnisVigil does.

Sources

  1. Claude plans: claude.com/pricing, checked 25 Nov 2026.
  2. API token prices, cache multipliers, fast mode and tokenizer note: platform.claude.com/docs/en/about-claude/pricing, checked 25 Nov 2026.
  3. Average spend per developer, spend controls and cost causes: code.claude.com/docs/en/costs, checked 25 Nov 2026.
  4. /usage and its /cost alias: code.claude.com/docs/en/commands, checked 25 Nov 2026.
  5. Workspace spend limits and email alerts: platform.claude.com/docs/en/build-with-claude/workspaces, checked 25 Nov 2026.

The worked days are my own assumptions, priced at those list rates with no discounts, Batch API or data-residency multiplier. Prices move, so check the sources before you put any of this in a budget.

Rob

Put a ceiling on the team's bill

OmnisVigil shows Claude Code spend by session, repo and team as it happens, with caps, runaway alerts and a cut-off. Free for one person, and a flat £499 a month for the whole team.