Free tool

Claude prompt caching calculator

On this page

TL;DR · The short answer

#

Anthropic bills cached prompt tokens at a lower rate than a fresh input. Cache writes cost more than a standard input; cache hits cost less. The official table, read 26 Nov 2026 from Anthropic’s pricing page, lists a 5-minute cache write, a 1-hour cache write, a cache hit, and standard input and output for each current Claude model.

This calculator does the arithmetic in your browser from those published rates. It does not call the Anthropic API. These are API list prices, not Claude Pro, Max or Ultra. Consumer plans are on anthropic.com/pricing (Pro $17/mo annual or $20 monthly; Max $100; Ultra $200; read 26 Nov 2026).

Key takeaways

#
  • Enter the tokens in the prefix you expect to cache, the uncached input tokens on later turns, the output tokens, and how many times the cached prefix is reused.
  • These figures are Claude API list prices, not Claude Pro, Max or Ultra subscriptions.

How it works

#

Enter the tokens in the prefix you expect to cache, the uncached input tokens on later turns, the output tokens, and how many times the cached prefix is reused. The calculator compares a run with no cache against a run that writes the cache once (5-minute or 1-hour TTL) and then pays the official cache-hit rate on later requests. Token counts here are whatever you type; this page does not tokenize your prompt.

For the product rules (minimum prefix size, TTL, and what is eligible), use Anthropic’s own prompt-caching docs. This page only applies the official per-million-token rates from 26 Nov 2026.

Calculator

#

Claude API list prices

#

These figures are Claude API list prices, not Claude Pro, Max or Ultra subscriptions. Consumer plans are on Anthropic’s pricing page (Pro is $17 per month with annual billing, or $20 billed monthly; Max $100 per month; Ultra $200 per month; read 26 Nov 2026).

Anthropic official API list prices per 1 million tokens, read 26 Nov 2026 from docs.anthropic.com/en/docs/about-claude/pricing. Cache write columns are the official 5-minute and 1-hour TTLs.
ModelInputOutputCache hit5-min cache write1-hour cache writeOfficial note
Claude Haiku 4.5$1$5$0.1$1.25$2—
Claude Haiku 5.5 (prompts up to 100,000 tokens)$0.1$0.5$0.01$0.125$0.2Official table also lists a 5x rate for prompts over 100,000 tokens: $0.50 / $0.625 / $1 / $0.05 / $2.50 per MTok.
Claude Haiku 5.5 (prompts over 100,000 tokens)$0.5$2.5$0.05$0.625$1—
Claude Sonnet 5$2$10$0.2$2.5$4The $2/$10 price is the standard price; the official note says the planned 1 Sep 2026 rise will not occur.
Claude Sonnet 5.5$2$10$0.1$2.5$4Cache hits are 0.05x base input on this model.
Claude Sonnet 4.6$3$15$0.3$3.75$6—
Claude Opus 5$5$25$0.5$6.25$10—
Claude Opus 5.5$4$20$0.2$5$8Cache hits are 0.05x base input on this model.
Claude Fable 5.2$8$40$0.2$10$16Cache hits are 0.025x base input on this model.

FAQ

#

Does this calculator call the Anthropic API?

No. It multiplies the token counts you enter by official per-million-token rates from Anthropic’s pricing page. Nothing is uploaded.

Is this Claude Pro pricing?

No. These are Claude API list prices, read 26 Nov 2026. Claude Pro, Max and Ultra are consumer subscriptions on anthropic.com/pricing (Pro $17/mo with annual billing or $20 monthly; Max $100; Ultra $200; same date).

What is the difference between a 5-minute and a 1-hour cache write?

Anthropic’s official table, read 26 Nov 2026, prices a 1-hour TTL write higher than a 5-minute write (for example, Claude Sonnet 5 is $2.50 vs $4 per million tokens written). Cache hits stay at the official cache-hit rate for that model.

Where do the rates come from?

docs.anthropic.com/en/docs/about-claude/pricing, read 26 Nov 2026. If that page changes, treat it as the authority.

Test a cached prompt on your key

#

Run the same cases on Claude in your browser. Free, no signup.

  • Free, no signup
  • Runs in your browser
  • Your OpenAI key, sent only to OpenAI

Newsletter

Get Litmiq AI Weekly

Practical AI tips and the best tools of the week, in plain English.