
Claude Code Pricing (2026): Plans, Costs, and Free Tier Explained
Claude Code costs $20/month on Pro, $100–$200/month on Max, or pay-per-token via the API. Here's exactly what each plan includes and which one is worth it.
Claude Code is Anthropic's agentic coding tool that lives in your terminal and understands your entire codebase. But before you dive in, you need to know what it costs. Here's the full pricing breakdown as of April 2026.
How much does Claude Code cost?
Claude Code is included with several Anthropic subscription plans. There is no separate "Claude Code subscription" — you access it through your existing Claude plan or via the API.
| Plan | Monthly Cost | Claude Code Access | Key Limits |
|---|---|---|---|
| Free | $0 | No access | Chat only (web, mobile, desktop) |
| Pro | $20/month | Yes | Standard usage limits, Sonnet 4.6 + Opus 4.6 |
| Max 5x | $100/month | Yes | 5x Pro usage, extended thinking |
| Max 20x | $200/month | Yes | ~220,000 tokens per 5-hour window (20x Pro) |
| API | Pay-per-token | Yes | No subscription required |
| Teams | $30/user/month | Yes | Collaboration features, admin controls |
The cheapest way to use Claude Code is the Pro plan at $20/month.
Is there a free tier for Claude Code?
No. Claude Code requires at least a Pro subscription ($20/month) or API credits. The free Claude plan only gives you access to chat on web, iOS, Android, and desktop — the terminal-based Claude Code environment is not included.
However, new API users receive approximately $5 in free credits to test the service, which is enough for a few hours of Claude Code usage with the Sonnet model.
What does API pricing look like for Claude Code?
If you prefer pay-as-you-go over a subscription, you can use Claude Code with API credits. Here's what the models cost:
| Model | Input (per 1M tokens) | Output (per 1M tokens) |
|---|---|---|
| Sonnet 4.6 | $3 | $15 |
| Opus 4.6 | $5 | $25 |
A typical coding session uses roughly 50,000–150,000 tokens depending on codebase size and task complexity. That means a heavy day of coding with Sonnet costs roughly $1–$3 in API credits.
The API route makes sense if you use Claude Code sporadically. If you're coding with it daily, the Pro plan at $20/month is almost always cheaper.
Which plan should you choose?
Choose Pro ($20/month) if you use Claude Code regularly for personal projects or freelance work. It's the best value for most developers.
Choose Max 5x ($100/month) if you hit rate limits on Pro frequently. The 5x multiplier on usage limits means fewer interruptions during long coding sessions.
Choose Max 20x ($200/month) if Claude Code is your primary development tool and you're using it all day. The ~220,000 token window per 5 hours supports sustained, complex refactoring and multi-file work.
Choose API pay-per-token if you use Claude Code a few times per week or want to control costs precisely. Start with the $5 free credit to test it.
Choose Teams ($30/user/month) if you're working with a team and need shared workspaces, admin controls, and collaboration features.
Can you get Claude Code for free as an open source maintainer?
Yes. Anthropic launched the Claude for Open Source program in late February 2026. Qualifying open source maintainers get six months of Claude Max 20x ($200/month value) completely free. Check Anthropic's website for eligibility requirements.
How do Claude Code costs compare to other AI coding tools?
| Tool | Monthly Cost | Notes |
|---|---|---|
| Claude Code (Pro) | $20 | Terminal-based, full codebase understanding |
| GitHub Copilot | $10–$19 | IDE-integrated, code completion focused |
| Cursor Pro | $20 | IDE with AI built in |
| Windsurf | $15 | IDE with agentic features |
Claude Code is competitively priced. The main differentiator is that it's a terminal-native agent that can read, write, and execute code across your entire project — not just autocomplete in your editor.
What happens if you run out of usage on your plan?
On Pro, you'll hit rate limits and need to wait for your window to reset. On Max plans, the limits are much higher but still exist. On API, you simply run out of credits and need to add more.
If you're consistently hitting limits on Pro, that's a clear signal to upgrade to Max 5x. Track your usage with the /cost command inside Claude Code to see exactly how many tokens each session consumes.