Claude Code Pricing: What It Actually Costs

Claude Code ships with a Claude subscription and also runs on pay-as-you-go API billing. Here's what each route costs, and which one wins at your volume.

Profile photo of Paul Irolla

By Paul Irolla

Founder · AI & developer tools · Tokenade

Ph.D. in AI · builds token-optimization tooling for AI coding agents

View author page
8 min read
Cite this page

How much does Claude Code cost?

Claude Code has no price of its own. It ships with a Claude subscription — the cheapest one that includes it is Pro at $20/month — or you point it at the Anthropic API and pay per token instead. That's the whole pricing model, and it's why "how much does Claude Code cost" has no single answer: on a subscription your cost is fixed and your usage is capped, while on the API your usage is unlimited and your cost is the variable. I build token tooling for a living, so I look at a lot of real invoices. The pattern I see is consistent: people pick a plan based on the sticker price, then get surprised by the bill or by the limit, because neither is driven by how many prompts they send. Both are driven by how many tokens each prompt drags along with it. This page covers the sticker prices first, then the part that actually decides what you pay.

What does each Claude plan cost in 2026?

PlanMonthly billingAnnual billingWhat you get
Free$0$0Claude chat apps. No Claude Code.
Pro$20/mo$17/moClaude Code, higher usage allowance, all models
Max 5xfrom $100/mo5× Pro's usage, higher output limits, priority access
Max 20xabove Max 5x20× usage multiplier
Team (standard seat)$25/seat/mo$20/seat/moTeams of 2–150
Team (premium seat)$125/seat/mo$100/seat/mo5× the usage of a standard seat
Enterprise$20/seat + usageContact sales
Two things worth pulling out of that table. Pro is the entry point, not Free. The free tier doesn't include Claude Code at all, so $20/month is the real floor if you want the terminal agent. The Max tiers sell you usage, not features. Max 5x is the same product as Pro with roughly five times the allowance. That matters because it tells you what the upgrade decision really is: you don't move to Max because you need a capability, you move because you keep hitting the ceiling. Which means anything that lowers your token consumption competes directly with a $80/month upgrade.

What does the API cost instead?

If you'd rather skip subscriptions, Claude Code runs on pay-as-you-go API billing. You pay per million tokens (MTok), split between what you send and what comes back:
ModelInput / MTokOutput / MTok
Claude Opus 4.8$5$25
Claude Sonnet 5$2$10
Claude Haiku 4.5$1$5
One date to have in mind: Sonnet 5's $2 / $10 is introductory pricing, in effect through 31 August 2026. From 1 September it moves to the standard $3 / $15. If you're sizing a budget that runs past the summer, size it on the standard rate — that's a 50% jump on the model most people run by default. The output rate is five times the input rate on every model, which makes output look like the thing to worry about. It isn't. In agentic coding sessions the traffic is overwhelmingly inbound — files, tool results, command output, the whole transcript replayed on every turn — so input volume is what sets your bill even at a fifth of the price. Our Claude Code token usage statistics break that split down with real session numbers.

Subscription or API — which one is cheaper for you?

The honest answer is that it depends on one number: how many hours a day you actually run the agent.
  • Light and bursty use — a few sessions a week, some refactors, occasional debugging. The subscription wins easily. $20/month buys far more tokens than you'd consume, and you never think about metering.
  • Steady daily use — several hours a day, most working days. This is where it's genuinely close, and where the Max tiers exist. Compare your real consumption against the plan cost rather than guessing.
  • Heavy or automated use — long agent loops, overnight runs, multiple agents. The API is usually the better economic fit, because subscriptions are designed around a human at a keyboard and will throttle you before they'll bill you.
There's a second, less obvious factor: the failure mode differs. On a subscription, overuse costs you time — you hit the limit and stop working until it resets. On the API, overuse costs you money, silently, and you find out at the end of the month. Neither is strictly better, but they punish carelessness differently. I go through the arithmetic in detail in Claude Code: subscription vs API pricing.

Why does the bill grow when your usage feels flat?

Because you're not billed for what you type. You're billed for everything the agent carries with it. A single "fix this failing test" prompt might be forty tokens of your words and eighty thousand tokens of context: the files the agent read to orient itself, the full test output, the tool manifests for every MCP server you have connected, and the entire conversation so far — re-sent on every turn, because that's how a stateless model keeps its memory. That's the mechanism behind almost every "why is this so expensive" story I see. It's also why the levers people reach for first tend to be the wrong ones:
  • Downgrading the model cuts the per-token rate but not the token count. You feel the quality drop on every task, and you still pay for the same bloated context.
  • Prompting more tersely saves a rounding error. Your words were never the expensive part.
  • Cutting the noise the agent drags along is the one that actually moves the number, and it costs you nothing in output quality — same model, same prompts, smaller invoice.
If you want to see this on your own numbers rather than take my word for it, the token counter will price a chunk of context across models in a few seconds.

How do you lower a Claude Code bill without downgrading the model?

You send the model less of what it never needed. In practice that's four levers:
  1. Retrieve instead of reading. Semantic search over the codebase returns the three relevant functions instead of thirty whole files.
  2. Filter tool output. A 600-line test log or directory dump becomes the dozen lines that carry the signal.
  3. Read structure before bodies. Signatures and declarations first, full implementations only for the file the agent actually edits.
  4. Load tool manifests lazily. An unused MCP server's schema shouldn't ride along on every single turn.
How to reduce Claude Code token usage covers the mechanics, and cut Claude Code costs covers the money side — including why model choice should be the last knob you touch, not the first. Applied by hand, all four are real work and you will forget them on a busy day. That's the gap Tokenade fills: it sits between your agent and its tools and applies them automatically, across Claude Code, Cursor, Codex, Copilot, Windsurf and the rest, with a dashboard showing what each move actually saved. On the open THOL benchmark — which measures what a whole session costs end to end, not what a single function compresses — Tokenade cuts session costs by 39% on long sessions versus running no tool at all — the ones that eat through a plan's limit fastest. It's the only one of the twelve tools tested that measurably lowers the bill; most of the others made no measurable difference, and two ended up more expensive than using nothing. If you want the wider field, I keep an honest roundup of the best Claude Code token optimizers. It's source-available under MIT, so you can read exactly what it does to your context before you trust it with any. There's a free tier that covers a lot of solo work outright, and current plans are on the pricing page.

Is Claude Code included in Claude Pro?

Yes. Pro at $20/month (or $17/month billed annually) is the cheapest plan that includes Claude Code, along with the higher usage allowance and access to the full model line-up. The Free tier does not include it.

What happens when you hit the limit on a subscription?

You stop until the window resets — usage limits are a token budget, not a hardware ceiling, and they refill on a rolling schedule rather than at the start of a month. Which limit you hit and when it comes back is the single most-asked question I get, and it's covered properly in Claude usage limits explained.

Is Claude Code cheaper than Cursor or Copilot?

Not in a way that a plan comparison can settle, because the pricing models don't line up: Cursor's individual plan is $20/month with on-demand usage billed in arrears on top, Claude's Pro is $20/month with a hard usage ceiling instead. At the same sticker price you're buying different failure modes. The AI coding tool pricing comparison puts the current plans side by side. The more useful framing: whichever tool you pick, the bill is set by token volume, and token volume is the one variable you control. A cheaper plan with a bloated context will cost you more than an expensive plan with a lean one.
Read next — the spokes this page owns:

Ranked #1 on the Token-Harness Optimizer Leaderboard.

Tokenade ranks #1 in the Token-Harness Optimizer Leaderboard — an end-to-end benchmark of agent token optimizers measured on real coding sessions. Set it up once, it works on every prompt. Works with Claude Code, Cursor, Codex, Copilot & more.