Claude Code cost guide
Claude Code monthly cost by plan and API usage
Claude Code costs $20 on Pro, $100 on Max or $200 on Ultra when billed monthly, plus any extra usage you buy. With an API key, add your model’s input, output, cache read and cache write charges for one session. At 4 sessions a day for 30 days, multiply that amount by 120.
Last updated · Published
By CWYN · Published · Monthly cost example as of · Checked against docs, not run
1. Find the account paying for the work
The monthly prices above are in US dollars before tax. Pro, Max and Ultra include Claude Code within the plan allowance. Count the subscription fee once, then add any usage credits you buy to keep working past your limit. See How the 5-hour and weekly Claude Code usage limits work. Claude plan pricing and usage credits (as of ).
Estimate your own monthly bill with the free AI cost calculator.
For an API key, use the associated Anthropic Console workspace. Match the billing period and model to the work you want to price. If you plan with Opus and build with Sonnet, record each model’s charges separately. Record regular input, cache reads, cache writes and output separately. A token billed as a cache write goes on that line only. Anthropic API rates (as of ).
2. Price a coding day and a 30-day month
On a monthly subscription, Claude Pro costs $20 per month for access within its shared limits. On an API key, the same month's cost depends on the calls you make. Claude plan pricing (as of ).
The calculator's Coding agent preset assumes 4 sessions a day. 30 turns × (3,000 system + 16,000 history + 1,000 user) = 600,000 input tokens per session. 30 × 800 output = 24,000 output tokens per session. Over 30 days that gives 4 × 30 = 120 sessions.
The calculator models a growing conversation. It counts an eligible repeated prefix as a cache read and new cacheable input as a write. The ledger assumes live sessions and the standard rate for each request. Token counts in the ledger are rounded for display. Totals use the unrounded charges.
Claude Sonnet 4.6
| Charge | Tokens × rate per million ÷ 1,000,000 | Cost |
|---|---|---|
| Regular input | 0 × $3 ÷ 1,000,000 | $0.00 |
| Cache reads | 67,354,839 × $0.3 ÷ 1,000,000 | $20.21 |
| Cache writes (5m) | 4,645,161 × $3.75 ÷ 1,000,000 | $17.42 |
| Output | 2,880,000 × $15 ÷ 1,000,000 | $43.20 |
The 30-day total is $80.83. Daily estimate $80.83 ÷ 30 ≈ $2.69. Anthropic rates for Claude Sonnet 4.6 (as of ).
What if none of the input were cached? At the same standard rates, (72,000,000 input × $3 + 2,880,000 output × $15) ÷ 1,000,000 = $259.20 for 30 days. Use this calculation if your provider records show regular input for every request.
To estimate the cost of one run from its turns and cached input, see how much a Claude Code session costs.
Look up your model’s input and output rates in AI API pricing per million tokens.
If you review each pull request with the reviewer skill in the Claude Code Complete Setup Pack, multiply the API cost of a typical review by the number of pull requests you expect this month.
3. What changes the number?
- Days worked. Multiply one representative day's API spend by your active days. Split quiet days and heavy days into separate subtotals if your schedule varies.
- Conversation history. File contents and tool output carried into another turn add to its input. Use input across all turns in a session when replacing the preset.
- Cache reuse. For the main conversation, Claude Code defaults to a five-minute cache with an API key or usage credits and a one-hour cache within plan usage. Switching models with /model starts a new cache. Claude Code prompt caching (as of ).
- Other charges. Add any paid tool calls and tax from the same billing period to the text-token estimate. Anthropic API rates (as of ).
4. Monthly cost FAQ
Do I add the API estimate to my Pro fee?
Add the charges you incurred on each account. If all the work fit inside your subscription, the API figure above is a comparison price. If you also used an API key, include the metered charges for those calls. Claude plan pricing (as of ).
How do I replace the preset with my numbers?
In the calculator choose Claude Code / Claude, your API model and Coding agent. Replace sessions per day, turns, input and output per session with counts for one of your tasks. Compare the estimated cache lines with the reads and writes in your usage records. For a plan decision, use the subscription and API break-even guide.
If you use both tools on a patch, see when to use Claude Code or Codex CLI for edits and review. Count the Claude work on the account that ran it.