Published December 04, 2025 · Updated June 26, 2026
What are Claude Code’s token limits?
Earlier in 2026, Anthropic began describing Claude Code’s token limits in more relative terms rather than as fixed token counts. Claude has two types of limits: length limits and usage limits. The key distinction is that length limits determine how long a single conversation can become, whereas usage limits determine how much you can use Claude overall across your conversations. In other words, length limits measure the size and complexity of one conversation, while usage limits measure total activity over time.
Claude Code length limits
Claude’s context window size is 200K tokens across all models and paid plans, except for Enterprise plans, which have a 500K context window on some models. Once a conversation or codebase exceeds that window, Claude may lose access to earlier details, which can make long debugging sessions, large refactors, and multi-file projects harder to manage.
Claude Code usage limits
Claude Code operates on a 5-hour rolling window that begins with your first message in a session. Your token allocation depends on your subscription plan:
| Claude Plan |
Monthly Cost |
Allocated Tokens per Window |
Prompts per Window (Approx) |
| Pro |
$20 |
~44,000 |
10 to 45 prompts |
| Max 5x |
$100 |
~88,000 |
50 to 200 prompts |
| Max 20x |
$200 |
~220,000 |
200 to 800+ prompts |
Claude plan monthly costs, allocated tokens, and approximate prompts per window.
Note: Usage on Pro and Max plans is shared across claude.ai, Claude Code, and Claude Desktop. Messages or activity in any one of those surfaces count against the same usage pool, which is why Claude Code users may hit usage limits sooner than expected if they are also using Claude elsewhere.
Enterprise clients have a different subscription plan altogether. The Claude Enterprise plan generally costs $20 per user per month (billed annually) for the base seat access, and then usage is metered separately, per token, at standard API rates.
Since August 2025, weekly limits sit on top of these 5-hour windows. The current structure is one weekly cap that applies across all models, plus a separate weekly cap that applies specifically to Sonnet usage. This was a response to a small number of users who were, as Anthropic put it, consuming resources at unsustainable rates.
In March 2026, a member of Anthropic’s Technical Staff posted on X about session limits during peak hours: “To manage growing demand for Claude we’re adjusting our 5 hour session limits for free/Pro/Max subs during peak hours… During weekdays between 5am–11am PT / 1pm–7pm GMT, you'll move through your 5-hour session limits faster than before… Overall weekly limits stay the same, just how they’re distributed across the week is changing.”
How different models affect Claude Code token limits
Claude Code usage depends on several factors, including the length and complexity of your conversations, the features you use, and your selected model and effort settings. Model choice directly affects how quickly Claude Code usage is consumed. Claude Code model pricing is based on input and output tokens, as summarized in the following table:
| Claude Code Model |
Current Model Tier |
Input Token Price |
Output Token Price |
Total Cost for 1M Input + 1M Output |
Relative Cost Across Model Tiers |
Best For |
| Claude Opus |
Opus 4.8 |
$5 / 1M tokens |
$25 / 1M tokens |
$30 |
5x Haiku |
Complex reasoning, large codebase work, high-autonomy agentic coding |
| Claude Sonnet |
Sonnet 4.6 |
$3 / 1M tokens |
$15 / 1M tokens |
$18 |
3x Haiku |
Everyday Claude Code use, refactoring, debugging, balanced speed and quality |
| Claude Haiku |
Haiku 4.5 |
$1 / 1M tokens |
$5 / 1M tokens |
$6 |
1x baseline |
Lower-cost tasks, fast iterations, simpler coding assistance |
Claude Code model tiers, token pricing, relative costs, and recommended use cases.
Across all three models, output tokens are the bigger cost driver, with each model’s output tokens costing 5x more than its input tokens. And, for the same number of input and output tokens, Sonnet costs 3x more than Haiku, while Opus costs 5x more than Haiku. Practically speaking, that means heavy use of Opus will exhaust your Pro/Max allocation much faster than Sonnet or Haiku usage. If you’re running complex, multi-file agentic workflows with Opus, you'll hit your limits much sooner than you might expect.
How advanced features affect Claude Code token limits
Claude has numerous types of advanced features that can greatly increase token usage. There are two worth noting:
Agent Teams: In February 2026, Anthropic released Agent Teams. This multi-agent capability is now a built-in part of Claude Code, and it can significantly increase the number of tokens software engineers use during a session. Agent teams run multiple Claude Code instances at once, with each instance maintaining its own context window. As a result, token consumption grows based on how many teammates are active and how long they continue running. Anthropic notes that agent teams can consume about 7x more tokens than standard sessions when teammates operate in plan mode.
Dynamic Workflows: In May 2026, Anthropic released dynamic workflows (for those on Claude Enterprise plans), and they became available and turned on by default on June 8, 2026. Dynamic workflows can further expand token consumption by turning a single request into a scripted, multi-agent execution. Instead of Claude handling the task turn by turn in one conversation, a workflow can fan work out across dozens or even hundreds of subagents, each performing its own model calls and tool use. Anthropic notes that workflow runs can use meaningfully more tokens than completing the same task through a standard conversation, and those runs count against the organization’s usage and rate limits.
Claude Code token limits: What engineering leaders should know about AI coding costs
AI coding tools like Claude Code are more widely used in software development than ever—and costs have climbed just as fast. Yet, that spend remains hard to manage: consumption-based pricing is unpredictable, actual limits are opaque, and the link between AI usage and engineering outcomes is murky.
To see what your organization's AI spend is actually producing, start with The Field Guide to Measuring Token Efficiency in AI Engineering, which lays out the metrics worth tracking so you can make decisions grounded in your own data. From there, see how Token Intelligence traces AI token consumption to what it delivers across your people, teams, and outcomes—so you know what's productive, what's wasteful, and what to fix.
Frequently asked questions about Claude Code token limits
1. What is the Claude Code context window size?
Claude Code's context window is 200K tokens across all models and paid plans. Enterprise plans get a 500K window on some models. Once a conversation or codebase exceeds the window, Claude can lose access to earlier details, making long debugging sessions and large refactors harder.
2. How many tokens do you get with Claude Pro vs. Max?
Limits run on a 5-hour rolling window. Pro ($20/mo) gets ~44,000 tokens (10–45 prompts), Max 5x ($100/mo) gets ~88,000 (50–200 prompts), and Max 20x ($200/mo) gets ~220,000 (200–800+ prompts). Usage is shared across claude.ai, Claude Code, and Claude Desktop, so you can hit limits sooner if you use Claude elsewhere.
3. Does Claude Code have weekly limits?
Yes. Since August 2025, weekly caps sit on top of the 5-hour windows: one weekly cap across all models, plus a separate weekly cap specific to Sonnet usage. Anthropic added them in response to a small number of users consuming resources at unsustainable rates.
4. How much does Claude Code cost per developer?
About $6 per developer per day on average, with 90% of users below $12/day. Team deployments on the API with Sonnet typically run roughly $100–$200 per developer per month, depending on usage intensity.
5. Why does Opus burn through Claude Code limits faster than Sonnet?
For the same token volume, Opus costs 5x Haiku and Sonnet costs 3x Haiku. Across all models, output tokens cost 5x more than input tokens. So heavy Opus use on complex, multi-file agentic workflows exhausts your Pro/Max allocation much faster than Sonnet or Haiku.
6. What is Claude Code's pricing per million tokens?
Opus 4.8: $5 input / $25 output per 1M tokens. Sonnet 4.6: $3 / $15. Haiku 4.5: $1 / $5. Opus is best for complex reasoning and large codebases, Sonnet for everyday use and debugging, and Haiku for lower-cost, fast iterations.
7. Do Claude Code Agent Teams use more tokens?
Yes, significantly. Agent Teams (released February 2026) run multiple Claude Code instances at once, each with its own context window, so consumption scales with how many teammates are active. Anthropic notes Agent Teams can use about 7x more tokens than standard sessions when teammates run in plan mode.
8. What are Claude Code dynamic workflows and how do they affect token usage?
Dynamic workflows (Enterprise plans, on by default since June 8, 2026) turn a single request into a scripted, multi-agent execution that can fan work across dozens or hundreds of subagents, each making its own model calls. They use meaningfully more tokens than the same task in a standard conversation, and runs count against the org's usage and rate limits.
9. Why do Claude Code limits feel tighter during certain hours?
In March 2026, Anthropic adjusted 5-hour session limits during peak hours for free/Pro/Max subscribers. On weekdays between 5–11am PT / 1–7pm GMT, you move through session limits faster. Overall weekly limits stay the same; only how they're distributed across the week changed.
10. What metrics should you track to manage Claude Code spend?
Track total tokens by model (e.g., Sonnet vs. Opus) to confirm developers pick the most cost-effective option, estimated cost over time to spot trends and anomalies, and average estimated cost per commit to gauge efficiency. Critically, connect usage to outcomes; tracking tokens alone measures inputs, not results, and can mask rising incidents, bugs, and unreviewed merges.