Updated March 2026

Claude Code Pricing.

Everything you need to know about Claude Code pricing in 2026. From the $20/month Pro plan to Max 20x at $200/month, plus API token costs, optimization strategies, and how it compares to Cursor, Copilot, and other AI coding tools.

Every Claude Code Plan Explained

Anthropic restructured Claude pricing into clear tiers. The free plan does not include Claude Code. Here is what each paid tier includes as of March 2026.

Pro Plan$20/month ($17/mo annual)
Entry Tier

The minimum plan for Claude Code access. Includes terminal-based Claude Code with Sonnet 4.5 as the default model, unlimited projects, code execution, and extended context up to 200K tokens. Good for light to moderate usage and evaluating the tool, but power users will hit rate limits during heavy coding sessions.

Default model: Sonnet 4.5Usage: 1x baselineBest for: Light usage, evaluation
Max 5x Plan$100/month
Most Popular

The sweet spot for professional developers who use Claude Code daily. 5x the usage limits of Pro means you can run sustained coding sessions without hitting rate limits. Full access to Opus 4.6 and Sonnet 4.6 with significantly higher throughput. This is the plan most full-time developers settle on after outgrowing Pro.

Usage vs Pro: 5xAll models: Opus 4.6, Sonnet 4.6Best for: Daily professional use
Max 20x Plan$200/month
Power Users

For developers who run Claude Code all day across multiple projects. 20x the Pro baseline means virtually no rate limiting during normal use. Ideal for tech leads managing multiple codebases, developers doing heavy refactoring, or anyone who treats Claude Code as their primary development interface.

Usage vs Pro: 20xRate limits: Virtually noneBest for: All-day heavy coding
Team Plans$25–$125/seat/month
Best for Teams

Team Standard ($25/seat/month) provides 1.25x Pro usage with admin controls and shared billing. Team Premium ($125/seat/month) gives 6.25x Pro usage with SSO, priority support, and usage dashboards. Enterprise plans offer custom pricing with API-rate billing for large organizations.

Standard: $25/seat (1.25x)Premium: $125/seat (6.25x)Enterprise: Custom pricing
API Pay-as-You-GoPer token
Most Flexible

Use Claude Code with API credits and pay only for what you consume. No subscription required. Set hard spending limits in the Anthropic Console. The Batch API cuts costs by 50%, and prompt caching reduces repeated-context costs by up to 90%. Ideal for variable workloads or teams that want granular cost control.

Sonnet 4.5/4.6: $3/$15 per MTokOpus 4.5/4.6: $5/$25 per MTokHaiku 4.5: $1/$5 per MTok

API Token Costs: Opus vs Sonnet vs Haiku

If you use the API, understanding model pricing is the single biggest lever for controlling costs. Output tokens cost 5x more than input tokens across all models. For a deeper look at getting the most from Claude, see our Claude Code tutorial.

Sonnet 4.5/4.6 — Your Daily Driver ($3/$15 per MTok)

Sonnet handles the vast majority of coding tasks at the lowest cost. Use it for writing functions, generating tests, fixing bugs, refactoring, and adding features. Most professional developers use Sonnet for 90%+ of their work. A typical one-hour coding session with Sonnet costs roughly $0.50–$2.00 in API credits.

Opus 4.5/4.6 — Complex Architecture ($5/$25 per MTok)

Opus scores 80.8% on SWE-bench and has a 1M token context window. At roughly 1.67x the input cost and 1.67x the output cost of Sonnet, use it when you need deep multi-file reasoning, complex debugging, or architectural decisions that span your entire codebase. Reserve Opus for the 10% of tasks where Sonnet falls short.

Haiku 4.5 — Quick Tasks ($1/$5 per MTok)

The cheapest option for simple, well-defined tasks like formatting, simple completions, or quick Q&A about code. Haiku is fast and cheap but less capable for complex reasoning. Use it for tasks where speed matters more than depth.

Cost-Saving Multipliers

Batch API: 50% discount on all models for non-urgent tasks. Prompt caching: Cache reads cost just 0.1x the base input price, reducing repeated-context costs by up to 90%. Extended thinking: Uses the base output token rate. Combining these discounts, heavy API users can cut their effective cost by 60–80%.

Claude Code vs Cursor vs Copilot vs Codex: Price Comparison

How Claude Code pricing stacks up against every major AI coding tool in 2026. For detailed head-to-head breakdowns, see our Claude Code vs Cursor and Claude Code vs Copilot comparisons.

Claude Code (Pro)$20/mo

Terminal-native, SWE-bench 80.8%, 200K context

Best for developers who work in the terminal and want autonomous multi-file changes. Fixed pricing with no surprise bills. Upgrade to Max 5x ($100) or Max 20x ($200) for heavier usage.

Cursor Pro$20/mo

AI IDE, credit system, Composer 1.5, Background Agent

Best for developers who want AI integrated into a visual editor. Credit-based system since June 2025. Also offers Pro+ ($60/mo) and Ultra ($200/mo) for heavier usage. Acquired Supermaven for sub-10ms completions.

GitHub Copilot Pro$10/mo

Works in any editor, enterprise compliance, IP indemnity

Most affordable subscription option with broad editor support across VS Code, JetBrains, Neovim, and Xcode. Best for teams needing SOC 2 compliance. Copilot Pro+ at $39/mo adds agent features.

OpenAI Codex (via ChatGPT Plus)$20/mo

Cloud sandbox agent, open-source CLI, parallel tasks

Runs in isolated cloud environments with your repo preloaded. Each task runs in its own sandbox and can execute tests and linters. Codex CLI is open-source and uses GPT-5 by default. Pro ($200/mo) for 10x usage.

Cline (Open Source)Free + API costs

BYOK model choice, 58K GitHub stars, VS Code extension

No subscription fee. You pay only for API tokens from your chosen provider. Maximum flexibility and cost transparency. Typical session costs $0.50–$2.00 with Sonnet. No inline completions.

7 Ways to Reduce Your Claude Code Costs

Pricing is only half the equation. How you use Claude Code determines whether you get $20 of value or $2,000 of value from the same plan. For more optimization techniques, see our full coding with Claude guide.

1. Use Sonnet for Exploration, Opus for Execution

Draft your approach with Sonnet, then use Opus for the final complex implementation. This cuts Opus usage by 60–70% without sacrificing quality on the work that matters most.

2. Clear Context Between Tasks

Every message accumulates in context, increasing token costs. Run /clear between different features and /compact when you need to keep some context but reduce tokens. This alone can cut costs 30–40%.

3. Invest in CLAUDE.md

A well-crafted CLAUDE.md file gives Claude Code project context upfront, eliminating repeated instructions that burn tokens. Spend 30 minutes on this file once, save hours of tokens over months. Include your stack, conventions, and testing patterns.

4. Write Specific, Scoped Prompts

A well-scoped prompt with clear context completes in one shot. A vague prompt requires 3–4 follow-ups, each consuming tokens. Include file paths, function names, and expected behavior. Learning to prompt effectively is the highest-ROI skill for cost reduction.

5. Leverage the Batch API (50% Off)

For non-time-sensitive tasks like test generation, documentation, or bulk refactoring, the Batch API halves your token costs on any model. This is the single biggest discount Anthropic offers and most developers overlook it.

6. Use Prompt Caching for Repeated Context

If you repeatedly send the same system prompts or project context, prompt caching reduces those input costs by 90%. Cache reads cost just 0.1x the base input price. This is especially powerful for CI/CD integrations and automated workflows.

7. Monitor with /cost and Set Budgets

Run /cost to see your session breakdown by token type. Check your usage dashboard weekly. If you consistently use less than 50% of your Max allocation, Pro might be sufficient. If you hit limits regularly, consider upgrading or switching to API with budget alerts.

Get Maximum Value from Claude Code

Our course teaches you the prompting patterns, context management strategies, and workflows that make every token count. Learn to ship production code 2–5x faster with Claude Code, Cursor, and any AI coding tool.

Get the Accelerator for $79.99

Frequently Asked Questions

Claude Code requires at least the Pro plan ($20/month). The Pro plan gives you baseline Claude Code access with Sonnet 4.5 as the default model. For heavier usage, the Max 5x plan ($100/month) provides 5x the usage limits, and Max 20x ($200/month) offers 20x limits for all-day coding. API pay-as-you-go is also available with no subscription required.

No. Claude Code is not available on the free Claude plan. The minimum requirement is the Pro plan at $20/month (or $17/month billed annually). However, you can also use Claude Code through the API with pay-as-you-go pricing, which means you only pay for tokens consumed. For most developers, a few dollars of API credit is enough to evaluate whether it fits their workflow.

Both Max plans include full Claude Code access. Max 5x ($100/month) gives you 5x the usage of Pro, ideal for developers who use Claude Code as their primary tool throughout the day. Max 20x ($200/month) provides 20x Pro usage for developers who run Claude Code continuously across multiple projects. The usage multiplier applies to all models including Opus 4.6.

Claude Code Pro and Cursor Pro both start at $20/month, but they serve different workflows. Claude Code is terminal-native and excels at autonomous multi-file changes. Cursor is an AI IDE with inline completions, visual diffs, and a credit-based system since June 2025. Many developers use both. Cursor also has Pro+ ($60/month) and Ultra ($200/month) tiers for heavier usage.

Yes. If you use the API directly, you can set hard spending limits in the Anthropic Console. The subscription plans have fixed monthly costs with usage caps. You can also reduce costs by up to 90% using prompt caching for repeated context, and the Batch API cuts token costs by 50% for non-urgent tasks. Using Sonnet for routine work and reserving Opus for complex tasks is the biggest cost lever.

For developers who ship code daily, Claude Code typically pays for itself within the first week. At $20/month on Pro, even saving 30 minutes per week on debugging, test writing, or refactoring makes it a strong ROI. Power users on Max plans report 2-5x productivity gains. The real value comes from learning effective prompting and context management, which is what separates developers who find it transformative from those who find it mediocre.