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?
| Plan | Monthly billing | Annual billing | What you get |
|---|---|---|---|
| Free | $0 | $0 | Claude chat apps. No Claude Code. |
| Pro | $20/mo | $17/mo | Claude Code, higher usage allowance, all models |
| Max 5x | from $100/mo | — | 5× Pro's usage, higher output limits, priority access |
| Max 20x | above Max 5x | — | 20× usage multiplier |
| Team (standard seat) | $25/seat/mo | $20/seat/mo | Teams of 2–150 |
| Team (premium seat) | $125/seat/mo | $100/seat/mo | 5× the usage of a standard seat |
| Enterprise | $20/seat + usage | — | Contact sales |
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:| Model | Input / MTok | Output / MTok |
|---|---|---|
| Claude Opus 4.8 | $5 | $25 |
| Claude Sonnet 5 | $2 | $10 |
| Claude Haiku 4.5 | $1 | $5 |
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.
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.
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:- Retrieve instead of reading. Semantic search over the codebase returns the three relevant functions instead of thirty whole files.
- Filter tool output. A 600-line test log or directory dump becomes the dozen lines that carry the signal.
- Read structure before bodies. Signatures and declarations first, full implementations only for the file the agent actually edits.
- Load tool manifests lazily. An unused MCP server's schema shouldn't ride along on every single turn.
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:
- Claude Code: subscription vs API pricing — the break-even arithmetic in detail
- Cursor vs Claude Code — the head-to-head against the other $20 option
- Cut Claude Code costs, keep the model — why model choice is the last knob to touch
- LLM cost: what drives it and how to cut it — why the tariff is the least interesting variable
- AI Coding Cost Per Developer (2026 Data) — what teams actually spend per head
- Input tokens vs output tokens — the split that decides which end of the bill to attack
- How to reduce Claude Code token usage — the mechanics, lever by lever
- Claude usage limits explained — what you hit, and when it resets
- Claude Code token usage statistics — where the tokens actually go
- AI coding tool pricing comparison — every major tool's plans side by side
- Best Claude Code token optimizers — the field, measured end to end
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.