Claude Code costs a flat fee on a subscription, or whatever your tokens come to on the API. Pro is about $20 a month, Max is about $100 and Ultra is about $200. Pro and Max limit use in each five-hour session and each week. Ultra gives ten times Pro's weekly usage. Verified Ultra accounts have no five-hour limit, but the weekly limit still applies to them, and Max and Ultra also have a separate weekly limit for Fable. On the API, every token you send and receive is billed, so the bill rises and falls with your work. The pricing page has the current plan prices, and Anthropic can change them at any time.
If you are deciding whether to move from Pro to Max, start with one typical local Claude Code task. Cost X-Ray, a Tigerless Labs tool, records the traffic a local Claude Code session sends and splits its tokens between the conversation history, the tool results and the rest of each request. On macOS or Linux, once it is installed, run that task and read the split. It captures traffic only from the day you install it, so it cannot show a task you have already done. The total matches the provider's usage, but the split between the parts of one request is an estimate, and your account's billing record is what you pay. The project attribution notes explain how the split is made. Anthropic neither makes nor endorses Tigerless Labs tools.
How much does Claude Code cost on each plan?
Claude Code is part of every paid Claude plan. The pricing page lists it as available on Pro, Max and Ultra, and not on the free plan. Pro costs about $20 a month when billed monthly. It is the only one of the three paid plans with an annual option, which the pricing page lists at about $200 billed up front. Pro has a five-hour session limit and a weekly limit.
Max costs $100 a month and gives five times Pro's usage in each five-hour session and each week. Anthropic's Max plan article says Max is currently sold as a monthly subscription only, and the pricing page says Max and Ultra are both billed monthly. Ultra costs $200 a month and gives ten times Pro's usage each week. Verified Ultra accounts have no five-hour limit, but the weekly limit still applies to them, along with the separate Fable weekly limit on Max and Ultra.
Your Claude Code work and your chats on the web, desktop and mobile apps draw from the same usage pool. A long coding session leaves less room for chat that week, and the reverse holds too. The help article on using Claude Code with a paid plan explains that one subscription covers both tools.
Is there a way to calculate the break-even point?
Yes. Compare what the same work would cost at API rates with the plan's fee. Work it out in four steps:
- Pick a representative working week. At the end of each Claude Code session, run /usage and write down that session's estimated cost.
- At the end of the week, add up the session estimates and multiply by about 4.3 weeks to get a monthly API estimate.
- Compare that monthly estimate with the same month's subscription fee plus any extra-usage charges, for the plan you are considering.
- Check the usage bars at the busiest point of that week. The bars show whether the plan has room for your peak, not which option costs less.
For example, if the month's work comes to $35 at API rates, and Pro costs $20 that month with no extra-usage charges, Pro is $15 cheaper that month, even if its usage bars never filled. A rough anchor is available from Anthropic. Its cost guide puts the enterprise average at about $13 per developer per active day, and between $150 and $250 per developer per month, with 90 percent of users under $30 a day.
At $13 a day, Pro's $20 covers about a day and a half of work. Max's $100 covers about eight active days, and Ultra's $200 covers about fifteen. Take those numbers as a starting point only. An enterprise average is not a price for you, a light user's day costs far less, and one long agent run can cost more than a whole light day.
Here is how the same arithmetic plays out for two people. Someone who codes in a few short sessions a month spends a small fraction of one active day's average, so the API bill can come in under Pro's fee. Someone who runs Claude Code through most of every working day, with long sessions and subagents, can pass Max's fee within a week. For them the flat plan is the cheaper option, provided the weekly limit does not stop them first. The two people are not doing anything wrong. They are simply using the product at different volumes, and the break-even point tells you which volume you are at.
One developer's arithmetic runs the other way. They measured a month of heavy use on a $200 plan, priced at API list rates, at about $5,898, or 29 times the fee. The author says that is one machine and one person's habits, and it shows how far a heavy user can sit above the fee (DEV Community).
Users ask the same question from the subscriber's side. One Reddit user asked where Max would start to save money compared with Pro (thread). The replies are anecdotes from individual accounts, and they disagree about where the limits start to bite. One reply suggests trying the next plan and seeing which limit you hit first, which is a fair test. Measure your own heavy week, then compare the extra-usage charges with the fee of the next plan up.
Why does a long session cost more?
Every turn sends the whole conversation back to the model, so a long session costs more per turn than a short one. Anthropic's cost guide says so directly. A scheduled task or an idle check-in sends your full context each time, and every subagent sends its own requests on top of the main conversation's.
Most of that re-reading comes from the prompt cache, which charges less than fresh input. The cache has a limited lifetime, so a long pause can make the next turn expensive, because the whole conversation has to be written to the cache again. The session block in /usage shows what share of your input came from the cache and whether the cache is warm, which tells you when a pause cost you.
Two commands control the size of a session. /clear starts a fresh session at no cost, which suits a new task. /compact summarizes the conversation, but it reads the whole conversation first, so compacting a large context is itself a large request. Use /clear when you no longer need the history, and compact only when you need the thread of the work to carry on. If the history matters later, keep it in notes outside the session, as described in how to give Claude Code memory across sessions.
Tool definitions add to every request as well. On current models, Claude Code defers MCP tool definitions and loads each tool when a task needs it, so tools the agent never calls add little to each request. A server marked alwaysLoad puts its tools into context up front on every turn, and on earlier models all MCP tools load up front. Cost X-Ray shows that overhead by source, including tools that are never called, and the plugin roundup is a reasonable place to check which plugins earn their space.
Does switching to a cheaper model stretch my plan?
It does not add room. On a subscription, every model draws on the same weekly allowance, so a cheaper model is not a second pool. Max and Ultra also have a separate weekly limit for Fable, the top model named on the pricing page, which comes with up to half of the weekly limit on those plans.
Model choice changes how much work that shared allowance covers. A smaller model spends less of the pool on each task, so the same week covers more tasks, while the hardest tasks may still need the larger model. Anthropic's cost guide lists model selection among its ways to reduce Claude Code costs, next to context management and the extended thinking settings.
On the API the effect is direct. Each model has its own price per token, so a task run on a smaller model costs less on the same token count. Prices differ between models. For a second example, the Kimi K3 explainer works through what one non-Anthropic model costs. Check the current price for the model you use before you assume a saving.
What happens when I hit the usage limit?
On a subscription, you wait for the limit to reset, move to a higher plan, or turn on usage credits to keep working at standard API rates. Anthropic's help article lists those options for each plan. A response that is already in progress when a five-hour limit arrives may finish its current step, and the allowance for that step is small and counts toward the weekly limit. The five-hour limit is a rolling window, not a clock time. Anthropic's pricing page says most accounts have a limit that resets on a rolling five-hour session window, with weekly limits on top of it. Chat on the web and Claude Code draw on that same window, so a burst of work in the morning can leave you waiting after lunch, even if the week is still mostly unused.
Two traps are easy to miss. First, if an ANTHROPIC_API_KEY variable is set in your environment, Claude Code asks once whether to use that key, and it remembers your answer. If you approve, the work is billed as API usage, even with an active subscription. Scripts run with -p always use the key when it is set. To change the answer later, use the Use custom API key toggle in /config, or run unset ANTHROPIC_API_KEY and check /status to confirm which method is active. Second, the monthly API credits that come with Max, Ultra and Team plans do not cover interactive Claude Code or the extra usage that follows a plan limit. They do cover claude -p and the Agent SDK when you run them yourself with an API key from the linked Console organization. They do not extend your Claude Code plan limits.
How do I see what my usage costs?
Run /usage at the Claude Code prompt. On a subscription it shows your plan usage bars and a breakdown of what counts against the limits: usage attributed to skills, subagents, plugins and MCP servers, each as a share of the total, with suggested changes for any behavior that accounts for at least 10 percent of recent usage. The dollar figure in its session block is an estimate, computed locally from token counts at list price. Anthropic states that subscribers do not need that figure for billing. The session figure covers only the current session, and /clear starts a new one at zero. On an API account it is still an estimate, and your organization's billing record is the authority. The breakdown on a subscription is an estimate for this machine's recent Claude Code activity. Work on other devices, and chats in the web and desktop apps, draws on the same limits but is not part of that estimate.
The earlier note on what Claude Code sends to the API walks through where the tokens go inside each request. For the split of a whole session, see the Cost X-Ray check at the top of this article.
For a comparison of the two agents on the work itself, see Codex vs Claude Code. That comparison does not settle which bill is smaller, which depends on your own usage.
When is pay-as-you-go API billing the better choice?
Usually when your use is occasional. A plan pays off only once you use most of it. If Claude Code is for a few sessions a month, the API bill can come to less than the $20 Pro fee, and you pay nothing in weeks you do not use it.
The API is also the natural choice for work that runs without you, such as a script or an agent that calls the model on a schedule. You budget that work per token, and you can see each run's cost as it happens.
The subscription wins when Claude Code fills most of your working days. Then the flat fee is spread across far more tokens than the same fee would buy on the API. A plan has a cost of its own, though. If you use Max lightly, you pay for allowance you never reach, and that is money a light user should keep. The test is the one from the break-even section: measure a normal week in /usage, then compare the session figures with the fee. Do not decide from one heavy week, and do not decide from one quiet week either. Pro suits someone who hits the five-hour window now and then and can wait for it to reset. Max suits someone who hits it most days, or who needs the Fable allowance. Ultra suits someone who hits the weekly limit on Max, since Ultra gives ten times Pro's weekly usage against Max's five. Pick the plan by its monthly cost against your own week, then check that its limits leave room for your busiest hours.
A cheap way to test before you commit is the usage-credits row. Anthropic's cost guide says that on Pro, Max and Ultra this row shows your spend for the current month against the monthly spend limit you set, if you set one. Turn credits on with a limit you are willing to pay, work a normal month, and read the row. You learn how often you would have needed more than the plan gives, and what that cost at standard rates, before you change plans.
Conclusion
Claude Code costs a flat fee on a subscription, or the metered price of your tokens on the API. Pro, Max and Ultra are about $20, $100 and $200 a month. Pro and Max limit each five-hour session and each week, Ultra gives ten times Pro's weekly usage, and verified Ultra accounts have no five-hour limit. The API bill follows your work, so it suits occasional or unattended use. A plan wins when the work fills most of your working days.
Choose by two checks. The fee comparison tells you which plan costs least: in your next normal week, record /usage at the end of each session, total the estimates at the week's end, and compare the monthly figure with the subscription fee plus any extra-usage charges. The usage bars tell you whether that plan covers your busiest hours. A cheaper plan that runs out at peak still does not fit the work. For the agent side of the same question, the Tigerless Labs Agent Memory article and the AutoHarness article show two Labs tools that keep lessons in plain files instead of in the session you pay to resend.
FAQ
Is Claude Code available on the free plan?
No. The pricing page lists Claude Code on Pro, Max and Ultra and not on the free plan, which keeps chat and other features.
Does an API key change how Claude Code is billed?
Yes, if you approve it. When the ANTHROPIC_API_KEY environment variable is set, interactive Claude Code asks once whether to use that key and remembers your answer. If you approve, the work is billed as API usage, even with an active subscription. Scripts run with -p always use the key when it is set. Check /status to see which method is active.
Do usage credits raise my plan limits?
They let you keep working after you reach a limit, at standard API rates. They do not change your session or weekly limits. They are separate from the monthly API credits on Max, Ultra and Team. Those credits do not cover interactive Claude Code, but they can pay for claude -p runs you start yourself with a linked Console API key.
Why does the cost in /usage differ from my bill?
The session figure is an estimate computed locally from token counts at list price, unless your organization has set its own rates. It covers only the current session. Anthropic says subscribers do not need it for billing, so the plan statement is the record. For API billing, your organization's billing record is the authority.
How do I see which tools use the most of my plan?
Run /usage. On a subscription it breaks usage down by skill, subagent, plugin and MCP server, with a share for each and suggested changes.
