Free guide
Claude Code pricing: what one task really costs
Claude Code pricing starts at $20 a month on Pro, or $200 paid yearly, on Anthropic's page read 24 November 2026. Max is $100 a month and Ultra is $200; Free leaves Claude Code out, while Team and Enterprise charge per seat.
- Current plans and free access
- One task, three models
- Check your own usage
Published · Updated
Start buildingClaude Code pricing: what one task really costs
For one small task, our median API-price costs were about a cent on Haiku, 18 cents on Sonnet and 21 cents on Opus. Opus looks close to Sonnet only because more of its runs reused cached text; on equal terms it cost about twice as much. All added and saved a date, but four of five Haiku runs failed old tests. Sonnet and Opus passed those too. We used a paid subscription; these figures are estimates, not extra charges.
Claude Code pricing by plan
These are US dollar web prices from the pricing page, before applicable tax.
| Plan | Price | Claude Code included? | Who it fits |
|---|---|---|---|
| Free | $0 | No | Trying Claude chat |
| Pro | $20/month; $200/year paid up front, shown as about $17/month | Yes, with limits | Making an app or website with regular use |
| Max | $100/month; monthly only | Yes, with limits | A Pro user who keeps hitting the cap |
| Ultra, formerly Max 20x | $200/month; monthly only | Yes, with limits | Longer sessions and more weekly use |
| Team Standard | $25/seat/month, or $20/seat/month billed yearly | Yes | A team needing shared billing and admin tools |
| Team Premium | $125/seat/month, or $100/seat/month billed yearly | Yes | Team members needing more use |
| Enterprise | $20/seat/month billed yearly, at least 20 seats, plus API-rate usage | Yes; usage costs extra | Larger teams needing more controls |
Max and Ultra have no annual option on today's help pages. Team starts at two people; Enterprise's seat fee is only part of its bill.
Pro does not include Fable, Anthropic's top model, except through paid usage credits. Max and Ultra include it for up to half the weekly limit.
Older articles call the two larger individual plans Max 5x and Max 20x. The current Ultra help page says Max 20x became Ultra. Check the current name and limits before following an older comparison.
Is Claude Code free?
No, the Free Claude plan does not include Claude Code. The setup docs require a supported paid plan or a Console account for API billing. Being able to install the app does not give a free account access to its models.
There is a limited route to testing the API: Anthropic's API pricing docs say new users receive free test credits. That page gives no amount or number of tasks. Treat this as a chance to try the API, with the balance shown in your own account, rather than a free monthly Claude Code allowance.
You can still ask free Claude chat for code. Claude Code works inside your project and can edit files and run commands, so access to one does not imply access to the other.
What one small task costs
We used a small task-list app and asked each model to make the same change:
Add a due date to each task and commit the change.
Each attempt started with the same code and no CLAUDE.md file. We ran Haiku 5.5, Sonnet 5.5 and Opus 5.5 five times each. The models could edit the app and its tests. Afterwards, we ran both their final tests and the original tests unchanged, then checked that a new task accepted a date and survived saving and loading from disk.
Here are the rounded results from 24 November 2026. The cost is the median, the middle of five runs, using the API-price estimate Claude Code recorded.
| Model | Median API estimate | Such tasks for a $20 API budget | New-feature check | Original tests |
|---|---|---|---|---|
| Haiku 5.5 | About 1 cent | About 1,900 | 5 of 5 passed | 1 of 5 passed |
| Sonnet 5.5 | About 18 cents | About 110 | 5 of 5 passed | 5 of 5 passed |
| Opus 5.5 | About 21 cents | About 100 | 5 of 5 passed | 5 of 5 passed |
More Opus runs reused cached text, which made its median look low. On equal terms, Opus cost about twice as much as Sonnet.
They tied on the new-feature check. With Sonnet and Opus, tasks without a date also still worked. Haiku was cheapest, but made different choices about tasks without a date.
In three Haiku runs, adding a task stopped working unless you supplied a date. Another run chose a default date and changed the displayed text. We hadn't specified what should happen to tasks without dates. For an app you already use, add that choice to the request: tasks without a due date must still work as before. Then check both a dated task and one left blank.
Cost varied even within one model. Haiku stayed around a cent, Sonnet ranged from about 8 to 18 cents, and Opus from about 18 to 40 cents. Most of that spread is the cache. A run that had to store Claude Code's own instructions and tool list afresh cost about 17 to 18 cents on Sonnet and 36 to 40 cents on Opus. A run that could reuse them cost about 8 cents on Sonnet and 18 to 21 cents on Opus. Four of the five Sonnet runs paid the storing cost, but only two of the five Opus runs did, so the two medians in the table are closer than the models really are. Opus's API rates are double Sonnet's, and like for like it cost about twice as much here.
A small code change is only one kind of job. In our earlier runs, asking Sonnet to explain uncommitted changes cost about 4 cents, while generating a project instruction file cost about 16 cents. Creating a PDF with Opus cost about 28 cents. A short request can still lead to several steps before Claude has an answer.
Why the token total looks so large
A token is a small piece of text that a model reads or writes. Claude Code sends instructions, code and recent conversation along with your request. Each tool step can send that growing context again.
About 88% of all tokens in our fifteen runs were cache reads, reused input billed at a lower rate, which helps explain why a large token count can still cost pennies.
The API rate table prices fresh input, output, cache writes and cache reads separately. Storing text in the cache costs more than reading it back. So multiplying every token by the headline input price gives the wrong answer. Use the recorded dollar estimate for a quick comparison, and the billing account for an API bill.
Haiku's rate also rises when a single request carries more than 100,000 input tokens, including cached text. That's a per-request threshold. Adding up every token across a whole session does not tell you whether a request crossed it. A long conversation can therefore change the bargain you saw on a short task.
Subscription or API: how to choose
For occasional small jobs, compare the likely task total with the subscription price. Ten jobs like our Sonnet task would use about $2 at API prices measured on 24 November 2026. That's well below the monthly Pro fee in the table. If you only need those jobs, paying for use can cost less.
As use grows, a subscription can become cheaper because it includes model use within its limits. In our Sonnet example, around 110 similar tasks reach that budget. Beyond that amount, Pro would cost less if its allowance covered the work. The annual option lowers Pro's monthly average further, but asks you to pay for a year up front.
That only works if the plan lets you finish your jobs before you hit a limit. The Pro and Max help pages give five-hour and weekly limits. Max gives five times Pro's usage in both windows. Neither page gives a monthly token count or promises a set number of tasks.
Claude chat and Claude Code share those limits. A day spent doing research in chat can leave less room for coding. Watch the plan bars during a normal week before deciding that the cheaper plan covers your work.
If you already use Pro, upgrade when the cap regularly stops useful work. Max adds $80 a month to Pro's monthly bill. Compare that increase with the cost of the extra use you need and the time lost waiting. One busy afternoon is a different buying decision from hitting the cap most days.
Ultra gives ten times Pro's weekly usage, with no five-hour cap for verified accounts. It still has a weekly limit. Its weekly allowance is twice Max's for twice the price, despite the old "20x" name.
Max and Ultra also advertise API credits. Their credit rules keep those separate from interactive Claude Code and usage credits. They cover eligible API work; don't count them as more room under your coding plan's cap.
How to spend less
Haiku's price makes it tempting for small changes. In this test, though, Sonnet was the cheapest model that kept tasks without a date working. Start there if preserving an app's behaviour matters more than the lowest cost per attempt. Use /model to move down for simpler work or up when you're stuck. The costs docs recommend Sonnet for most coding and Opus for harder planning and reasoning.
Long conversations can spend more even when your next request is short. Claude carries the earlier work along with it. When you switch to an unrelated job, /clear starts a fresh conversation and a new session cost total. Save useful findings before you clear. Your plan allowance keeps the usage already spent; clearing doesn't refill it.
For work that belongs together, try /compact instead. It shortens the conversation while preserving a summary. The docs let you tell it what to keep, so a coding session can retain the current approach and test failures without carrying every earlier exchange in full.
Project instructions travel too. A large CLAUDE.md makes Claude read notes about jobs you aren't doing. The costs docs suggest keeping it under 200 lines, with the essentials that apply across the project.
For help choosing those lines, read what to put in CLAUDE.md.
Before starting, give Claude a target it can check. For a form change, that might be the field to add, whether it can be blank, and what should happen to saved entries. That small amount of detail settles choices like the one Haiku made in our app. The costs docs recommend specific prompts to cut needless exploration and repeat corrections.
Check your own usage in a few minutes
The costs docs list the commands below. Run them inside Claude Code.
Before a small task, open:
/usage
Read the plan bars if you subscribe. The Session block shows the API-price estimate, and the prompt-cache line shows how much input came from cache. Make a note of the starting figures, do the task, then open it again. Compare the change with whether the result passed your checks.
If the session seems expensive, inspect what it is carrying:
/context
This shows what takes space. Look for long instructions or tools the task does not need, then make one change and compare another similar job. Keep the task small enough that you can judge the result yourself.
For a buying decision, repeat this on a few jobs you normally do. Record the dollar estimate beside the outcome, including any repair attempt. A task that looks cheap until you fix it twice belongs in the same total. Check how far the plan bars moved as well, to see how much of the allowance the work used.
A surprising dollar total does not by itself mean a second subscription bill. The plan-use help page says an API key set in your environment takes priority over subscription login. Check your login and any enabled usage credits when a charge is unexpected. If you want to stay within the subscription, decline paid usage credits and wait for the reset.
Test details
We ran fifteen fresh Claude Code sessions on a paid subscription on 24 November 2026, five per model, restoring the same app before each attempt. All fifteen passed the model-edited tests and our date-and-disk check, and made a commit. Eleven also passed the original tests; the four failures were Haiku runs. Permission prompts were bypassed for the experiment. Our account had connected tools, which added a fixed amount of text to every session, so a plain setup may cost less per task.
We also reviewed 63 earlier runs for the smaller examples above. No API key was used. Test tools: Node.js (MIT), Git (GPLv2) and Python (PSF). Claude Code is proprietary.
Questions people ask
Is Claude Code free?
Anthropic's Free plan does not include Claude Code. Its API pricing docs mention free credits for new users to test the API, but give no amount or task allowance.
How much does one Claude Code task cost?
In our small due-date task, median API-equivalent costs were about 1 cent on Haiku 5.5, 18 cents on Sonnet 5.5 and 21 cents on Opus 5.5. All added and saved a date, but only one of five Haiku runs passed the original tests, versus five of five for Sonnet and Opus. On equal cache terms, Opus cost about twice as much as Sonnet. We used a subscription on 24 November 2026.
Will the session cost be added to my Pro bill?
The session dollar estimate shows API-price usage. Included subscription use is covered by your plan. Optional usage credits or API billing are separate; check which login you use and whether usage credits are enabled.
How many tasks can I do on Pro or Max?
Anthropic does not publish a fixed task or token allowance for Pro or Max. They describe session and weekly limits, usage multiples, and factors such as model and conversation length.
What happened to Max 20x?
Anthropic renamed Max 20x to Ultra. It has ten times Pro's weekly usage and no five-hour limit for verified accounts.
Save it for later