Claude · Pricing
Claude Code Pricing: What It Actually Costs in 2026
Plans, API token costs, the truth about the free tier and discounts, and which option is cheapest for your real usage — with numbers verified against Anthropic, not guessed.
Pricing verified June 9, 2026 · source
The short answer
Claude Code is free to install but needs a paid plan to run. The cheapest real option is Claude Pro at $20/mo ($17/mo annual). Daily users move to Max 5x at $100/mo; agentic operators to Max 20x at $200/mo. The pay-as-you-go API (Claude Sonnet 4.6: $3/$15 per million tokens) only wins for apps you ship, not your own use. There is no free tier for Claude Code and no public coupon — the only built-in discount is annual Pro billing.
Claude Code plans and prices at a glance
Every plan that includes or powers Claude Code, with the price you actually pay. Subscriptions are flat monthly fees; the API is per token.
| Plan | Price | Usage vs Free | Includes Claude Code | Best for |
|---|---|---|---|---|
| Free | Free | Limited daily messages | No | Evaluating Claude before committing |
| Pro | $20/mo$17/mo annual | ~5x Free usage | Yes | Individual heavy user, writer, solo developer |
| Max (5x) | $100/mo | 5x more than Pro | Yes | Daily Claude Code user running multiple projects |
| Max (20x) | $200/mo | 20x more than Pro | Yes | Agentic workflows, background agents, heavy parallel Claude Code sessions |
| Team (Standard seat) | $25/seat/mo$20 annual | Baseline team usage | Yes | Small teams wanting SSO + central billing |
| Team (Premium seat) | $125/seat/mo$100 annual | 5x standard seat | Yes | Engineering teams running Claude Code on production work |
| Enterprise | $20/seat/mo | Usage-based, scales with API rates | Yes | Regulated industries, large orgs with compliance requirements |
| Pay-as-you-go API | Per-token | Unmetered (pay per call) | Via API only | Apps and automations you ship |
Subscription prices verified against claude.com/pricing on 2026-06-09.
Claude Code API pricing (per token)
If you run Claude Code on API billing instead of a subscription, you pay for every token — input (what Claude reads) and output (what it writes). These are the current model rates Claude Code can use.
| Model | Input / million tokens | Output / million tokens | Context | Role in Claude Code |
|---|---|---|---|---|
| Claude Fable 5 | $10 | $50 | 1,000K | Most capable widely released model for the most demanding reasoning and long-horizon agentic work |
| Claude Opus 4.8 | $5 | $25 | 1,000K | Most capable Opus-tier model for complex reasoning and agentic coding |
| Claude Sonnet 4.6 | $3 | $15 | 1,000K | Best combination of speed and intelligence |
| Claude Haiku 4.5 | $1 | $5 | 200K | Fastest model with near-frontier intelligence |
Model rates verified against platform.claude.com/docs/en/about-claude/models/overview on 2026-06-09.
Worked example: what a single task costs
Say Claude Code reads 50,000 tokens of your codebase and writes 8,000 tokens of edits and explanation using Claude Sonnet 4.6:
- Input: 50,000 tokens × $3/M = $0.150
- Output: 8,000 tokens × $15/M = $0.120
- Total for that one task: $0.270
Cheap per task — but a real session runs dozens of those, re-reading context each turn, and Opus ($5/$25 per million) costs more. That is why a few hours of agentic work can pass the $20 Pro covers. Run the exact numbers on your mix with the Claude API cost calculator.
Is Claude Code free? The honest answer
The Claude Code CLI is free to download and install. The AI behind it is not. There is no free tier that powers Claude Code — the Claude Free plan does not include it. The free plan covers web and mobile chat with daily message caps, but not the terminal tool.
That leaves three ways to actually run it:
- 1.A subscription — Pro ($20/mo) and both Max tiers include Claude Code. This is the cheapest route for most people.
- 2.API billing — pay per token with no monthly commitment. Flexible, but it adds up fast for hands-on use.
- 3.Claude for Open Source — Anthropic's program that can grant qualifying open-source maintainers free access. The one genuinely free path, and only for eligible projects.
If you just want to try it, treat one month of Pro as your "trial." It is cheaper than equivalent API spend for almost any first month, and you can cancel or upgrade instantly.
Claude Code discounts and coupons
Anthropic does not run public coupon codes for Claude Code. If a site is advertising a "Claude Code coupon," treat it as a red flag — there is no legitimate code. What does exist:
Annual billing on Pro
The only built-in discount. Paying annually drops Pro from $20/mo to $17/mo — about 15% off. Max 5x and Max 20x are monthly-only, with no annual discount.
Claude for Open Source
Free access for qualifying open-source maintainers. Effectively a 100% discount if your project is eligible — apply through Anthropic's program pages.
Student, startup, and team programs
Anthropic periodically runs education and startup programs and annual Team pricing ($20/seat vs $25 monthly on Standard). These change — check Anthropic's current offers rather than relying on a third-party list.
Which Claude Code plan fits your usage?
The right plan is the cheapest one that covers your actual usage. Find the profile that matches how you work, not how you hope to work.
Claude Pro
$20/mo~$17/mo annualThis fits you if:
- ✓You want to try Claude Code before committing
- ✓A side project or occasional professional task
- ✓You will not run it for hours every day yet
- ✓You want a flat fee, no token-bill anxiety
Verdict: The default starting point. Individual heavy user, writer, solo developer. Includes Claude Code, the apps, and all current models. Annual billing drops it to $17/mo.
Claude Max 5x
$100/moflat, no per-token billingThis fits you if:
- ✓You run Claude Code 2–5 focused hours a day
- ✓You hit "usage limit reached" on Pro most days
- ✓Multiple active projects, frequent context switches
- ✓Opus is your default for hard reasoning
Verdict: 5x more than Pro. Daily Claude Code user running multiple projects. This is where API spend would overtake the subscription — move here once Pro limits are a daily annoyance, not before.
Claude Max 20x
$200/moflat, highest consumer ceilingThis fits you if:
- ✓You run Claude Code in multiple terminals at once
- ✓Heavy sub-agents, background tasks, long sessions
- ✓Opus is your default model all day
- ✓You bill your time — $200 pays for itself fast
Verdict: 20x more than Pro. Agentic workflows, background agents, heavy parallel Claude Code sessions. Overkill for solo chat use; essential if you run Claude like a team of five.
Pay-as-you-go API
Per tokenClaude Sonnet 4.6: $3/$15 per MTokThis fits you if:
- ✓You're shipping an app, agent, or automation
- ✓Volume is variable, predictable, or measurable
- ✓You want per-request cost control
- ✓You're not a heavy Claude user yourself
Verdict: The API is for what you ship, not your own daily Claude Code use. Pair it with a Pro or Max subscription for your hands-on work.
Claude Team
$25–125/seat/momin 5 seatsThis fits you if:
- ✓You have 5+ people who need Claude
- ✓You want SSO, central billing, admin controls
- ✓Engineers running Claude Code on production work
- ✓Shared workflows beat five personal Pro accounts
Verdict: Standard seats start at $25/mo; Premium seats at $125/mo carry the heavier Claude Code usage. Note: Claude Code ships with Premium seats — confirm seat type before assuming terminal access.
Usage limits and the June 2026 billing change
Price is only half the story — usage caps decide whether a plan actually covers you. Subscription Claude Code runs on a rolling five-hour session limit plus weekly limits shared between Claude Code and Claude chat. Two recent changes matter:
May 6, 2026 — five-hour limits doubled
Anthropic doubled Claude Code's five-hour rate limits for Pro, Max, Team, and seat-based Enterprise, and removed the peak-hours reduction. More usable headroom on the same prices.
May 13, 2026 — weekly limits up 50% (through July 13)
A promotion lifting weekly limits by 50%, running through July 13, 2026. Worth factoring in if you are deciding between Pro and Max right now.
June 15, 2026 — the autonomous-usage split that did NOT happen
Anthropic had planned to move autonomous usage (Agent SDK, headless claude -p runs, GitHub Actions, third-party apps) onto a separate monthly credit. On June 15 it confirmed the change is no longer happening — autonomous and interactive usage still share the same subscription limits. Many pricing articles still describe the split as live. It is not.
Limits are token-weighted, so Anthropic publishes relative figures ("5x Pro", "20x Pro") rather than hard message caps. The practical rule stands: if you hit limits daily on Pro, upgrade to Max 5x.
Claude Code pricing FAQ
How much does Claude Code cost?+
Claude Code itself is free to install via npm. To run it you need either a Claude subscription — Pro at $20/month ($17/mo billed annually), Max 5x at $100/month, or Max 20x at $200/month — or pay-as-you-go API billing charged per token. For one developer, a subscription is almost always cheaper than API. Pro covers light-to-moderate daily use; Max plans are for people running Claude Code for hours every day.
Is Claude Code free?+
The Claude Code CLI is free to download and install. But the AI behind it is not. There is no free tier that powers Claude Code — the Claude Free plan does not include it. You need a Pro ($20/mo) or Max subscription, or API credits. The one genuinely free route is Anthropic's Claude for Open Source program, which qualifying open-source maintainers can apply to. For everyone else, the cheapest real entry point is one month of Pro.
Is there a Claude Code discount or coupon?+
Anthropic does not run public coupon codes for Claude Code. The only built-in discount is annual billing on Pro, which drops the effective price from $20/mo to $17/mo — about 15% off. Max 5x and Max 20x are billed monthly only, with no annual discount. Students, startups, and open-source maintainers should check Anthropic's program pages: the Claude for Open Source program can mean free access for eligible projects. Be sceptical of third-party sites advertising "Claude Code coupons" — there is no legitimate code.
Do Claude Code subscriptions have usage limits?+
Yes. Subscription Claude Code runs on a rolling five-hour session limit plus weekly limits shared between Claude Code and Claude chat. On May 6, 2026, Anthropic doubled the five-hour limits for Pro, Max, Team, and Enterprise and removed the peak-hours reduction. On May 13 it raised weekly limits by 50% as a promotion running through July 13, 2026. Max plans carry two weekly limits — one across all models, one for Sonnet only. If you hit limits daily on Pro, that is the signal to move to Max 5x, not before.
Did Claude Code billing change on June 15, 2026?+
Anthropic had planned to split autonomous usage (Agent SDK, headless `claude -p` runs, GitHub Actions, third-party apps) onto a separate monthly Agent SDK credit starting June 15, 2026. On that date Anthropic confirmed the change is no longer happening — autonomous and interactive usage continue to draw from the same subscription limits. Several pricing articles still describe the split as live; it is not. Always check Anthropic's own pages before budgeting around it.
When is the Claude Code API cheaper than a subscription?+
The API is per-token: Claude Claude Sonnet 4.6 costs $3 per million input tokens and $15 per million output; Claude Claude Opus 4.8 costs $5 input and $25 output. For your own daily Claude Code use, those tokens add up fast — a few hours of agentic work can burn through more than the $20 Pro covers. The API only wins for light, predictable, or programmatic use (apps and automations you ship). For hands-on-keyboard developers, a subscription is the cheaper, more predictable choice.
What does heavy daily Claude Code use actually cost?+
Two honest reference points from building this site with Claude Code: a light day (small edits, a few file changes) lands around $2–$5 in API credits; a heavy refactoring day leaning on Opus can run $15–$40. Sustained at that pace, API spend overtakes the $100 Max 5x subscription within a couple of weeks — which is exactly why daily users move to a flat-fee Max plan. The break-even is roughly: if you run Claude Code more than two focused hours most days, a subscription is cheaper.
What is the cheapest way to start with Claude Code?+
One month of Claude Pro at $20. It includes Claude Code, the web and desktop apps, Projects, and access to Opus, Sonnet, and Haiku. It is cheaper than the equivalent API token spend for almost any first month of real use, and you can upgrade to Max instantly the first time you hit limits daily. Start on Pro, prove the workflow, then scale the plan to your actual usage — never the other way round.
Make every Claude Code dollar work harder
The fastest way to cut your Claude Code bill is not a cheaper plan — it is better prompts that get the result in one pass instead of five. Run your prompt through the free Prompt Grader to see exactly where it leaks tokens, then use the rewrite so you burn less of your session limit on retries.
Grade Your Prompt Free