Claude Code pricing is simpler than the affiliate-spam guides make it look, but the usage limits are where people actually get caught out. The short version: there's no free Claude Code plan — you need at least Claude Pro at $20/month, or pay-as-you-go API credits. This guide breaks down every plan, what it really costs, the 5-hour and weekly limits nobody explains clearly, and a straight decision framework for which tier you actually need.
Prices and limits below are current as of June 2026. Anthropic adjusts these periodically — always confirm the live numbers on Anthropic's official pricing page. The decision framework in this guide stays valid even when the exact figures move.
Is Claude Code free?
No. There is no free Claude Code tier. To use Claude Code you need one of:
- A Claude Pro subscription ($20/month)
- A Claude Max subscription ($100 or $200/month)
- API pay-as-you-go credits (no subscription, billed per token)
The good news: Claude Code isn't a separate purchase. It's bundled into every paid Claude plan along with Skills, MCP, and chat. If you already pay for Claude Pro, you already have Claude Code — just install it and log in.
The plans and what they cost
Claude Pro — $20/month
The entry point and the right choice for most individual developers. You get Claude Code in the terminal, web, and desktop, access to Sonnet and Opus models, and a token budget that comfortably handles focused coding sessions. Skills, MCP, and Claude chat are bundled in.
Claude Max 5x — $100/month
For developers who hit Pro's limits regularly — say, two or three times a week. Roughly 5x Pro's usage allowance and a substantially larger per-window token budget. This is the tier for people using Claude Code as a daily driver on mid-to-large codebases.
Claude Max 20x — $200/month
The top individual tier: about 20x Pro's usage. For heavy, full-time use. The value math is striking — a Max 20x user who fully uses their allowance can consume the equivalent of several hundred to over a thousand dollars of API tokens for the flat $200.
API pay-as-you-go
No subscription, no monthly minimum — you're billed per token. Indicative starting rates are around $3 per million input tokens and $15 per million output tokens for the mid-tier model (Sonnet), more for the top model (Opus). Best for automation, occasional use, or workloads you want to meter precisely.
Team and Enterprise
Anthropic offers Team and Enterprise plans with centralised billing, seat management, and higher limits. Pricing is per-seat and changes more often — check the official page for current numbers if you're buying for an organisation.
The usage limits nobody explains properly
This is where people get surprised, so it matters more than the headline price.
The 5-hour rolling window
Your token budget resets on a rolling 5-hour window, not daily or monthly. Each plan has a per-window allowance (Max 5x and 20x get progressively larger windows). Hit the cap and you wait for the window to roll forward — you don't lose the day, just the next stretch until it resets.
The weekly active-compute cap
On top of the 5-hour window there's a weekly cap that only counts active compute — time Claude is actually processing or reasoning. Idle time, reading, and thinking on your end are free. This is why "I barely used it but hit a limit" usually means a few very heavy reasoning sessions, not casual use.
Why this matters for choosing a plan
The decision isn't really about the monthly price — it's about how often you hit the 5-hour wall. If you hit it once a fortnight, Pro is fine. If you hit it most days, you're losing real working time waiting for resets, and Max pays for itself in recovered hours alone.
Pro vs Max: which do you actually need?
A straight framework, ignoring marketing:
- Stay on Pro ($20) if you use Claude Code in focused bursts, on small-to-medium projects, and rarely hit a limit. This is most people. Don't pay for Max pre-emptively.
- Upgrade to Max 5x ($100) when you hit Pro's 5-hour limit two or three times a week and the waiting is costing you real time. That's the actual signal — not codebase size, not job title.
- Go Max 20x ($200) if you're effectively living in Claude Code full-time on large codebases and still hitting Max 5x walls.
- Use the API if your usage is spiky, automated, or you need precise per-project cost accounting.
Upgrade reactively, when limits actually interrupt you — not because a comparison table told you to.
How to make any plan cheaper (the real lever)
Here's the part the pricing guides miss. Your effective cost isn't the subscription — it's cost per useful output. Two developers on the same $20 Pro plan can get wildly different value depending on how efficiently they use their token budget.
Vague prompts, repeated context, and re-explaining your standards every session burn through your 5-hour window producing mediocre output. Tight prompts and reusable instructions get more done inside the same budget. We cover the prompt side in 5 ways to get more from Claude Code, and the structural side — encoding your standards once so you stop re-spending tokens explaining them — is exactly what skills do. A well-built skill library effectively lowers your real cost per result, which is the only cost number that matters.
Quick comparison
| Plan | Price | Best for |
|---|---|---|
| Pro | $20/mo | Most individuals; focused sessions |
| Max 5x | $100/mo | Hits Pro limits 2–3×/week |
| Max 20x | $200/mo | Full-time heavy use, large codebases |
| API | Per token | Automation, spiky or metered usage |
| Team/Enterprise | Per seat | Organisations, centralised billing |
FAQ
Is Claude Code free?
No. There's no free Claude Code tier. You need Claude Pro ($20/mo), Claude Max ($100 or $200/mo), or pay-as-you-go API credits. Claude Code is bundled into every paid Claude plan at no extra charge.
How much does Claude Code cost?
The cheapest way in is Claude Pro at $20/month, which includes Claude Code. Max is $100 (5x usage) or $200 (20x usage). The API has no subscription and bills per token instead.
What are Claude Code's usage limits?
A rolling 5-hour token window plus a weekly cap that only counts active compute (idle time is free). Each plan has progressively larger allowances. Hitting a limit pauses you until the window resets — it doesn't cost extra.
Is there a Claude Code free trial?
There's no dedicated Claude Code free trial, but the API offers small free starting credits in some regions, and Pro is the low-commitment entry at $20/month. Always check Anthropic's pricing page for current trial offers.
Should I get Pro or Max for Claude Code?
Start on Pro. Upgrade to Max 5x only when you hit Pro's 5-hour limit two or three times a week and the waiting costs you real time. Go Max 20x only if you're full-time in large codebases and still hitting Max 5x walls.
Does Claude Code have a student or team discount?
Anthropic periodically offers education and team pricing, and Team/Enterprise plans bill per seat with centralised management. These change often — confirm current student and team offers directly on the official pricing page.
Is Claude Code worth the cost?
For an active developer, the time saved typically dwarfs $20/month. The bigger variable is how efficiently you use your token budget — good prompting and a skill library lower your real cost per result far more than switching plans does.
Still comparing tools?
Pricing is one input; fit is the other. If you're not yet committed to Claude Code, the Claude Code vs Cursor vs Copilot comparison covers the IDE-vs-terminal trade-off, Claude Code vs Codex is the terminal-agent matchup, and the alternatives roundup maps the wider field. Decide on tool first, then choose the plan reactively as your usage shows you what you actually need.
The bottom line
Claude Code pricing is straightforward: $20 Pro gets you in, Max is for people genuinely hitting limits, the API is for metered use. The limits — not the price — are what should drive your plan choice. And whichever plan you're on, the cheapest version of Claude Code is the one where you're not wasting tokens.