Claude Code Usage Limits Explained: How to Use Fewer Tokens
How Claude Code usage works on Pro, Max, Team and API plans: the 5-hour and weekly limits, how to check your usage, why you hit limits and 8 ways to use less.
By Yotam DahanUpdated 9 min readClaude Code
On this page
In Claude Code, usage means the tokens your sessions consume: all the text Claude reads from your files and conversation, and all the text it writes back. On Pro, Max and Team plans that usage comes out of an allowance that resets on a rolling five-hour window, with a weekly cap on top, and it is shared with your Claude chats. On an API account you pay for every token instead, and Anthropic doesn't publish a fixed number of messages for any plan.
The rest of this guide explains what counts, how each plan measures it, how to check where you stand, and eight habits that stretch the same plan much further.
What counts as usage in Claude Code
Token
A small chunk of text the model reads or writes. Your files, messages and Claude's replies are all measured in tokens.
Context window
Everything Claude can see in the current session: instructions, CLAUDE.md, the conversation and every file it has read.
Prompt cache
A stored copy of the conversation so far. Re-reading it costs less than reading it fresh, but it still counts.
Every time you send a message, Claude Code sends the whole conversation again: the instructions, your CLAUDE.md, every earlier message and every file it has read. That is why, as Anthropic's cost guide explains, a one-line question late in a long session draws on your usage for the entire conversation.
Beyond your messages, these add to the total:
- Files and outputs Claude reads. Big logs, spreadsheets, PDFs and images all go into the context, and stay there.
- Thinking. Extended thinking is billed as output tokens, and a higher effort level means more of it.
- Helpers. Each subagent or workflow that Claude starts sends its own requests on top of yours.
- Scheduled work. A
/loopor scheduled task fires on its interval even while you are away, re-sending the context each time. - Small background requests. Features such as conversation summaries for resuming cost a little even when idle, which the docs put at typically under $0.04 per session.
How plan limits work
Anthropic's pricing page says every plan has limits that reset on a rolling five-hour session window, paid plans add weekly limits, and your activity on the web, desktop, mobile and in Claude Code all draws from the same pool.
hours in each rolling session window
Pro usage per session compared with Free, at least
Max 20x usage per session compared with Pro
From the plans FAQ on Anthropic's pricing page, checked October 2026.
| Plan | How Claude Code usage is measured | Worth knowing |
|---|---|---|
| Pro | A five-hour session limit plus a weekly limit | Fable models bill to usage credits instead of your limits |
| Max 5x and Max 20x | 5 or 20 times Pro's usage per session, plus a weekly limit | Fable has its own separate weekly limit |
| Team | A per-seat allowance on a five-hour and a weekly window, shared with chat and Cowork | Premium seats get 5 times the usage of Standard seats |
| Enterprise | A seat price plus usage billed at API rates | Admins set spend limits for users and the organization |
| API (Claude Console) | Pay per token at list price | Rate limits by tier instead of usage windows |
How to see your usage
/usage
Inside Claude Code: plan usage bars, reset times, activity and a breakdown of what used it. Press d or w to switch between the last 24 hours and 7 days.
Settings > Usage
On claude.ai: progress bars for the current five-hour session and your weekly limits, with reset times.
Desktop usage ring
In the desktop app's Code tab, the ring next to the model picker shows your remaining allowance.
/context
Shows what is filling the current conversation, so you can see why each message is getting heavier.
On paid plans, the /usage breakdown attributes recent usage to skills, subagents, plugins and individual MCP servers, and it flags behaviors such as long context or cache misses once they cause a tenth of your recent usage. Before a window runs out, Claude Code can also warn you with a line such as You've used 85% of your session limit · resets 3:45pm.
Why you hit limits sooner than expected
- One long session for everything. Every message carries the full history, so unrelated tasks in the same session keep paying for each other.
- Coming back after a break. On a subscription the prompt cache lasts an hour, dropping to five minutes once you draw on usage credits, so the first message after a long break re-processes the whole context without the cache discount.
- The biggest model at high effort for small jobs. Renaming files doesn't need the most capable model thinking hard.
- Many helpers at once. Subagents and workflows multiply requests, and Anthropic's docs say agent teams use roughly 7 times more tokens than a standard session when teammates run in plan mode.
- Loops and schedules left running. They keep firing while the session sits idle.
- Heavy chat use the same day. Your Claude chats come out of the same pool.
- Big bursts. Usage counts against the session and weekly allowances at the same time, so one heavy burst can use up the weekly limit before the five-hour window resets.
What happens when you hit a limit
Early warning
Claude Code tells you when most of the window is used
Limit reached
Requests stop until the reset time shown in the message
Wait or pay
It waits and continues automatically, or you add usage credits
Back to work
After the reset, the interrupted task picks up where it stopped
The limit messages are listed in Anthropic's error reference, and each one names its reset time. In an interactive session signed in with a subscription, Claude Code can wait and continue the task on its own after the reset, as long as you leave the session open.
You also have these choices:
/rate-limit-optionsshows ways to keep going, including waiting and continuing automatically./usage-creditsturns on usage credits, which keep you working past your plan's limit at standard API rates; on Pro and Max you can set a monthly spend limit in Settings > Usage./upgradeopens the page to move to a higher plan for bigger base limits.- A Claude Console account with API credits, for an intensive sprint billed per token.
8 ways to use fewer tokens
Model choice is the easiest lever to see in numbers: on the API, output prices differ by a factor of 100 between the smallest and the largest current model.
From Anthropic's pricing page; the Haiku 5.5 rate applies to prompts up to 100K tokens. Subscribers don't pay these rates directly, but Anthropic lists model choice as one of the factors that determine how fast you use your allowance.
- Clear between tasks.
/clearstarts a fresh conversation and costs nothing, so old context stops riding along on every message. Run/renamefirst if you want to come back to it with/resume. - Compact at natural breaks, with a focus.
/compact keep the decisions and the list of files we changedshrinks the history while keeping what matters. Do it between tasks rather than mid-task, and use the rewind menu's "Summarize from here" to compress only part of a session. - Match the model to the job. Opus 5.5 is the default on paid plans; switch with
/modelto Sonnet for everyday work and to Haiku for simple, mechanical jobs. - Lower the effort for simple work.
/effort lowsuits renames, formatting and quick edits, and Opus 5.5 already defaults tomedium. For one hard question, typeultrathinkin that prompt instead of raising the effort for the whole session. - Be specific and point at files. "Fix the price table in @index.html" reads one file; "improve the site" makes Claude scan everything.
- Keep CLAUDE.md lean. It loads into every session, so keep it under 200 lines and move step-by-step procedures into skills, which only load when used. The CLAUDE.md guide shows what belongs where, and how to create a Claude skill covers the rest.
- Switch off what you don't use. Disable idle MCP servers in
/mcp, ask for summaries instead of full log dumps, and hand log-heavy work to a subagent so only its summary comes back. - Plan big changes and stop early. Plan mode prevents expensive rework, Esc stops a wrong turn immediately, and after two failed corrections a
/clearwith a better prompt beats a third attempt.
When a long task has to continue tomorrow, a handoff note lets you start fresh without losing the thread:
Write a short handoff note to handoff.md: what we were working on, what's finished, what's left, the files involved and the decisions I made. Keep it under 20 lines.Then run /clear, and begin the next session with "Read @handoff.md and continue from there". The Claude Code cheat sheet lists every command mentioned here on one page.
Quick check0 of 3 correct
Why does a quick question cost more late in a long session?
Not quite.
Every message carries the full history. Caching makes repeats cheaper, but they still count toward your usage.
Which command shows what is filling your context right now?
Not quite.
/context shows a colored grid of what is loaded. /usage shows your plan limits and activity.
What does /clear cost?
Not quite.
Clearing costs nothing. Compacting, by contrast, has to read the conversation it summarizes.
What to do next
Open /usage in your next session and look at the breakdown before you change anything, so you know whether long context, helpers or a heavy model is your biggest drain. Then pick two habits from the list, such as clearing between tasks and lowering effort for routine work, and use them for a week. The beginner tutorial builds these habits into a first project, and the Claude Code course has lessons on prompting without wasting time and on giving Claude the right context.
Token-saving session routine
A start, middle and end-of-session checklist, a model and effort picker for 10 common tasks, and a one-week log to find what drains your plan.
Enter your email and the full section opens right here. You also get a free lesson from the course.
Frequently asked questions
When does my Claude Code weekly limit reset?
Anthropic's Max plan article says the weekly limit resets at a fixed time each week assigned to your account, not at the moment you started using Claude. Whatever your plan, Settings > Usage on claude.ai and /usage in Claude Code show your next reset.
Is an API key cheaper than a Pro or Max plan for Claude Code?
It depends on how much you use it. API billing charges every token at list price with no session window, and Anthropic's docs put the average enterprise cost at around $13 per developer per active day, so compare that with a plan's monthly price before you switch.
Can I see how many tokens one prompt used?
Roughly. While Claude works, the line beside the spinner shows a live count of the output tokens for the current turn, and /usage shows the totals for the session alongside your plan's usage bars.
Can I use the API credits included with Max in Claude Code?
No. Anthropic's help center says the monthly API credits included with Max plans can't be used in Claude Code or the Claude apps, including for usage beyond your limits; they are for building on the Claude Platform.
Does switching to a smaller model reset my limit?
Not for the session or weekly limits, which are shared across all models. It only helps when the message names a model family, such as an Opus or Sonnet limit, because switching to another family keeps you working.
Keep reading
Claude Code Pricing (October 2026): Every Plan Explained
Claude Code pricing explained: Pro, Max 5x, Max 20x, Team, Enterprise and API costs, verified October 2026, which plan fits you, and cost examples per user.
Claude Code · 8 min readClaude Code Commands Cheat Sheet: Shortcuts, Flags, Settings
Claude Code commands on one page: slash commands, keyboard shortcuts, CLI flags and where every settings file lives, all checked against the official docs.
Claude Code · 12 min readCLAUDE.md File: What It Is, Where It Goes, 3 Templates
What a CLAUDE.md file is, where it goes, what to write and what to leave out, plus three copy-ready templates for business owners, marketers and websites.
Claude Code · 10 min read