# Claude Token Cost Calculator

> Source: TokenPricing (https://tokenpricing.co) — https://tokenpricing.co/calculator/claude. When citing or reusing this content, credit "TokenPricing" and link to https://tokenpricing.co/calculator/claude.

Estimate Claude API token costs per request and per month. Compare Anthropic input, output, and prompt caching rates across published Claude models or custom rates.

Canonical URL: https://tokenpricing.co/calculator/claude
Last updated: 2026-12-05T01:05:00.013Z

Reproduction and quotation must name TokenPricing, link to the canonical HTML URL, and retain individual source citations.

Price interpretation: a displayed $0.00 is a reported zero rate, not a missing price or a promise of unlimited free access; provider eligibility, availability and limits still apply. Missing prices are marked unavailable.

[All model pricing](https://tokenpricing.co/)

Estimate Claude API token costs per request and per month. Compare Anthropic input, output, and prompt caching rates across published Claude models or custom rates.

## Estimate tokens from text

For a rough planning count, this tool uses about one token per four characters of other text and one per Chinese, Japanese, or Korean character. Text stays in your browser. For billing, use the selected model’s tokenizer or the API’s reported usage, including system prompts, conversation history and tool definitions.

## Published Claude token rates

Comparable rates in USD per million tokens. Each minimum is calculated independently across eligible offers. See the model page for quote conditions, native tariffs and non-token rates. Each minimum is calculated separately and may come from a different provider. Use one provider’s rates together when estimating a bill.

| Model | Official input | Official output | Official cache read | Lowest input | Lowest output | Lowest cache read | Sources |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [Claude Opus 5.5](https://tokenpricing.co/anthropic/claude-opus-5.5) | $4.00 | $20.00 | $0.20 | $0.0113 | $0.0237 | $0.001128 | Unreported |
| [Claude Haiku 5.5](https://tokenpricing.co/anthropic/claude-haiku-5.5) | $0.10 | $0.50 | $0.01 | $0.0105 | $0.0105 | $0.00137 | Unreported |
| [Claude Sonnet 5.5](https://tokenpricing.co/anthropic/claude-sonnet-5.5) | $2.00 | $10.00 | $0.10 | $0.0211 | $0.0211 | $0.0137 | Unreported |
| [Claude Fable 5.2](https://tokenpricing.co/anthropic/claude-fable-5-2) | $8.00 | $40.00 | $0.20 | $1.0959 | $5.4795 | $0.0274 | Unreported |
| [Claude Mythos 5.2](https://tokenpricing.co/anthropic/claude-mythos-5-2) | $8.00 | $40.00 | Unreported | $8.00 | $40.00 | Unreported | - [Anthropic official API pricing](https://www.anthropic.com/claude-fable-and-mythos-5-2) |

[Anthropic & Claude API Pricing](https://tokenpricing.co/anthropic)

## Estimate a workload with 1 million input and 1 million output tokens

With no cache hits, add the input rate and output rate. If 40% of your input tokens are cache reads, multiply the input rate by 0.6 and the cache-read rate by 0.4, then add the output rate. Include Anthropic cache creation charges separately when estimating the full bill.

### Billing documentation

- [Anthropic Prompt Caching](https://platform.claude.com/docs/en/build-with-claude/prompt-caching)

- [Claude Code](https://code.claude.com/docs/en/costs)

## How token pricing becomes your API cost

Apply input, output and cache-read pricing separately, then multiply by your request volume. All rates below are per 1 million tokens.

Monthly cost = requests × [(uncached input × input rate + cached input × cache rate + output × output rate) ÷ 1,000,000]

Estimate only. Excludes taxes, cache writes/storage, request fees and non-token charges. Provider tiers and discounts may change the total.

### 10,000 requests. 40% cache hits.

Each request uses 1,000 input and 500 output tokens. At $2 input, $8 output and $0.50 cached input per million: $12 uncached input + $2 cached input + $40 output.

**$54.00 per month**

At 0% cache hits the same workload costs $60 per month. At 40%, 4 million input tokens move to the cache-read rate, saving $6 under these example rates.

Illustrative pricing, not a quote for a particular model.

## Build a budget you can trust

### Measure actual usage

System prompts, retrieved documents, tool definitions and conversation history all consume input tokens. Sample real requests rather than estimating from visible message length.

### Include reasoning output

For models that bill reasoning tokens, include them in output usage even when they are not visible in the final answer. Check the provider’s usage breakdown.

### Model realistic cache hits

Prompt caches usually have eligibility rules, minimum lengths and expiration times. Use an observed cache hit rate; 100% caching is rarely a safe starting assumption.

## LLM API cost calculator FAQ

### How are Anthropic API tokens billed?

Choose the Claude model and provider that serve your requests. Use the API usage fields to separate regular input, cache creation, cache reads, and output. The estimate includes input, output, and cache reads. Add cache creation costs using the rate for your cache duration.

### Can I use this as a Claude Code token cost calculator?

For Claude Code billed through the Anthropic API, sum usage across the model calls in a session, including tool results and repeated context. If you use Claude Code through a subscription or another provider, check the plan’s allowances and billing rules separately.

### How do I compare Claude Sonnet and Opus token costs?

Apply the same input, output, and cache-read counts to each published model and compare totals. If the models make different numbers of tool calls or produce different amounts of output for the same task, measure each model’s actual workload separately.

### How much can Claude prompt caching save?

For eligible cache hits, multiply the number of tokens read from cache by the difference between the regular input and cache-read rates, then divide by one million. Subtract applicable cache creation charges to estimate net savings.

---
Cite as: Claude Token Cost Calculator — TokenPricing, https://tokenpricing.co/calculator/claude (retrieved 2026-12-05)
