How much does Claude Code cost?
Last reviewed May 28, 2026 · SoftwareEstimator.com
Claude Code costs either a flat subscription — $20/month (Pro), $100/month (Max 5×), or $200/month (Max 20×) — or pay-as-you-go API rates of $5 per million input tokens and $25 per million output tokens on Claude Opus 4.8 (cache reads are $0.50). For heavy daily use the subscription is far cheaper: the $200 Max 20× plan covers token volume worth roughly $3,650/month at API rates, an ~18× effective discount. For a one-off project, the API is usually simpler, and a typical build runs from a few dollars (landing page) to a few thousand (SaaS MVP).
Subscription vs API — which is cheaper?
If you run Claude Code most days, a subscription wins: Max 20× breaks even at roughly 70M tokens/month and caps your spend. If you are doing a single bounded build, pay-as-you-go API is simpler and you only pay for what you use.
The plans throttle by a rolling 5-hour quota (~44k tokens on Pro, ~88k on Max 5×, ~220k on Max 20×), so a very large build can hit the quota and effectively spread across days even on a subscription.
- → Pro — $20/mo, ~44k tokens per 5-hour window
- → Max 5× — $100/mo, ~88k tokens per 5-hour window
- → Max 20× — $200/mo, ~220k tokens per 5-hour window
- → API (Opus 4.8) — $5 / $25 per 1M in/out, cache read $0.50
What a real build costs
Cloudflare’s "vinext" rebuilt most of the Next.js API surface for about $1,100 in Claude tokens over a week. A native iOS app took ~340M tokens (~$1,020) over five months. A single isolated feature can cost as little as a few dollars.
Note that Opus 4.7 and later use a new tokenizer that uses up to ~35% more tokens for the same text — so factor that into any estimate built on older token counts.
Frequently asked questions
Is Claude Code Pro at $20/month enough for real development?
For light or part-time use, yes. For full-time agentic development the ~44k-token 5-hour window is tight; most heavy users move to Max 5× or Max 20×, or run via the API.
How much is the Claude API per million tokens?
On Opus 4.8: $5 input, $25 output, $0.50 cached read. Sonnet 4.6 is $3/$15; Haiku 4.5 is $1/$5. Batch processing is 50% off.
When does a Claude Max subscription beat the API?
Around 70M tokens/month of sustained use. Below that, pay-as-you-go API usually costs less; above it, the $200 Max 20× plan’s flat rate wins by a wide margin.
Related guides
Figures are industry-composite estimates for planning, not quotes — agentic token spend has 10×+ run-to-run variance. See the full methodology or run an estimate .