Claude Prompt Caching Cost: 5-Minute vs 1-Hour Math

Claude prompt caching cost comes down to three numbers: a 5-minute cache write costs 1.25x the base input price, a 1-hour write costs 2x, and a cache read costs a small fraction (0.05x on Claude Sonnet 5.5 and Opus 5.5). The 5-minute cache pays off after one reuse, the 1-hour cache after two. The real decision is how long your requests sit idle between calls.

Prices and rules checked: November 17, 2026, from Anthropic’s pricing and prompt caching documentation. Prices are list rates in USD per million tokens (MTok) on the Claude API. Bedrock and Google Cloud rates may differ.

A rack of servers with status lights in a data center
Prompt caching lets the API reuse work on a repeated prompt prefix instead of processing it again. Photo: Kevin Ache, Unsplash (Unsplash License)

How is Claude prompt caching priced?

Anthropic’s prompt caching docs set the rules. A cache entry lives for 5 minutes by default. Each time a request reads the entry, its lifetime restarts at no extra cost. The lifetime is measured from the start of the request that writes or reads the entry, not from the end of the response. To get the longer lifetime, you add "ttl": "1h" to the cache_control block.

  • 5-minute cache write: 1.25x the model’s base input price.
  • 1-hour cache write: 2x the base input price.
  • Cache read (hit): 0.1x base input on most models, 0.05x on Opus 5.5 and Sonnet 5.5, and 0.025x on Fable 5.2 and Mythos 5.2.
  • Uncached input: anything after your last cache breakpoint is billed at the normal input rate.
  • Output tokens: never discounted by caching.

There are a few limits worth knowing before you plan. You can set up to 4 cache breakpoints per request. Prompts shorter than the model’s minimum are processed without caching and no error is returned. That minimum is 512 tokens for current models such as Opus 5.5, Sonnet 5.5 and Haiku 5.5, and higher for some older models (for example, 4,096 tokens for Haiku 4.5).

Claude cache prices per model (November 2026)

Model Base input 5-min write 1-hour write Cache hit Output
Claude Fable 5.2 $8 $10 $16 $0.20 $40
Claude Opus 5.5 $4 $5 $8 $0.20 $20
Claude Sonnet 5.5 $2 $2.50 $4 $0.10 $10
Claude Haiku 5.5 (prompts up to 100K tokens) $0.10 $0.125 $0.20 $0.01 $0.50
Claude Haiku 5.5 (prompts over 100K tokens) $0.50 $0.625 $1 $0.05 $2.50
Claude Opus 5 $5 $6.25 $10 $0.50 $25
Claude Sonnet 5 $2 $2.50 $4 $0.20 $10
Claude Haiku 4.5 $1 $1.25 $2 $0.10 $5

All prices are USD per million tokens from Anthropic’s pricing page, checked November 17, 2026. Two details change the math. First, Haiku 5.5 switches to its higher rate when a request has more than 100,000 input tokens, and cache reads and writes count toward that length. Second, caching multipliers stack with other modifiers, including the 50% Batch API discount. Anthropic also notes that US-only inference adds a 1.1x multiplier on Claude 4.6 and later models.

Tip: Look at the Sonnet 5 and Sonnet 5.5 rows. Base input and write prices are the same, but the cache hit price on Sonnet 5.5 is half ($0.10 vs $0.20). If most of your input is cache reads, moving to Sonnet 5.5 cuts that line in half.

Break-even math: when does prompt caching pay off?

Call the cached prefix P tokens and the base input price B. If you send the same prefix N + 1 times without caching, the prefix costs (N + 1) x P x B. With caching, you pay one write plus N reads.

Option Prefix cost for N + 1 requests Cheaper than no cache when
No cache (N + 1) x P x B Baseline
5-minute cache (Sonnet 5.5) 1.25 x P x B + N x 0.05 x P x B N is 1 or more
1-hour cache (Sonnet 5.5) 2 x P x B + N x 0.05 x P x B N is 2 or more

Solve the 5-minute row: 1.25 + 0.05N is less than 1 + N once N is about 0.26, so the first reuse already wins. For the 1-hour row, 2 + 0.05N beats 1 + N once N passes about 1.05, so you need two reuses. On models with a 0.1x read price, the thresholds barely move (about 0.28 and 1.11 reuses), so the one-read and two-read rule holds there too.

Here is what that looks like in dollars. Take a 50,000-token system prompt and reference block on Sonnet 5.5. Sending it uncached costs $0.10 per request. A 5-minute write costs $0.125, a 1-hour write costs $0.20, and each cache hit costs $0.005. Ten reuses after one 5-minute write cost $0.125 + 10 x $0.005 = $0.175, against $1.10 for eleven uncached requests.

5-minute vs 1-hour cache: the idle-gap rule

As a cloud infrastructure architect, I find it easiest to frame this as a gap problem, not a volume problem. Both caches give you the same cheap read on every hit. They differ only in what happens when traffic goes quiet.

  • Gaps under 5 minutes: the 5-minute cache stays warm because every hit restarts its timer. The 1-hour cache gives you nothing extra and costs more to write.
  • Gaps between 5 and 60 minutes: the 5-minute cache expires, so the next request pays a full write again. The 1-hour cache stays warm.
  • Gaps over 60 minutes: both caches expire. Every request becomes a write, and caching can cost more than sending the prompt uncached.

The tipping point is simple to compute. Choosing 1 hour instead of 5 minutes adds 0.75 x P x B to each write (2x minus 1.25x). Each rewrite it prevents saves 1.2 x P x B on Sonnet 5.5 (a 1.25x write replaced by a 0.05x read). So if you expect even one 5-to-60-minute gap per hour of traffic, the 1-hour cache comes out ahead.

You can mix both in one request. The docs require 1-hour entries to come before 5-minute entries in the prompt. A common pattern is to put stable content (system prompt, tool definitions, reference documents) under a 1-hour breakpoint and the growing conversation under a 5-minute one.

Close-up of a stopwatch face on a black background
The time between requests, not the number of requests, decides which TTL is cheaper. Photo: William Warby, Unsplash (Unsplash License)

Three workloads priced out on Sonnet 5.5

These are worked examples, not measured bills. They count only the cached prefix (input after the breakpoint and output tokens are the same in every option) and assume evenly spaced requests at list prices.

Workload (8 hours unless noted) Requests No cache 5-minute cache 1-hour cache
Busy chat or agent loop, one request every 2 minutes 240 $24.00 $1.32 (1 write + 239 hits) $1.40 (1 write + 239 hits)
Internal tool, one request every 10 minutes 48 $4.80 $6.00 (48 writes) $0.44 (1 write + 47 hits)
Scheduled job, one request every 90 minutes 6 $0.60 $0.75 (6 writes) $1.20 (6 writes)

How to read the table: the busy loop barely cares which TTL you pick, because the cache never goes cold. The 10-minute tool is where TTL matters most. A 5-minute cache there is worse than no cache, since every request pays the 1.25x write. The 90-minute job should not use caching at all unless it reuses the prefix several times within each run.

The same logic scales with the model. On Opus 5.5, every dollar figure above doubles. On Haiku 5.5 with prompts under 100,000 tokens, each number is one-twentieth of the Sonnet 5.5 figure. The ranking of the three options stays the same.

No cache$4.805-minute cache$6.001-hour cache$0.44
Prefix cost for one request every 10 minutes over 8 hours, 50,000-token prefix on Sonnet 5.5 (worked example)

How do you check your Claude cache hit rate?

Anthropic’s docs define total input as cache_read_input_tokens + cache_creation_input_tokens + input_tokens. A simple hit rate is cache reads divided by that total. When you use the 1-hour TTL, the response also breaks writes down into ephemeral_5m_input_tokens and ephemeral_1h_input_tokens, so you can see which breakpoint was rewritten.

  1. Log the four numbers (reads, writes, uncached input, output) for every request, along with a timestamp.
  2. Compute daily hit rate: reads divided by total input.
  3. Count requests where cache_creation_input_tokens is large. Each one is a cold start. If they cluster after idle periods, your TTL is too short for your traffic.
  4. Price each line with the table above. Reads multiplied by the hit price, writes by the matching write price, uncached input by the base price.
  5. Compare against the same traffic priced with no cache. That gap is your actual saving.

On Amazon Bedrock’s Converse API, the equivalent fields are cacheReadInputTokens and cacheWriteInputTokens, and AWS documents that inputTokens excludes cached tokens. AWS added the 1-hour TTL on Bedrock in January 2026. Check the Bedrock pricing page for its rates rather than assuming they match Anthropic’s list prices.

Bundles of blue network cables plugged into a patch panel
Logging cache reads and writes per request is the only reliable way to know your real hit rate. Photo: Taylor Vick, Unsplash (Unsplash License)

Common mistakes that waste the caching discount

  • Editing the prefix: the cache matches the prompt prefix exactly. A timestamp, user name or shuffled tool list near the top turns every request into a new write. Keep changing content after the last breakpoint.
  • Letting a 5-minute cache go cold: traffic with 10-minute gaps pays the 1.25x write every time. Switch that prefix to the 1-hour TTL.
  • Caching tiny prompts: below the model minimum (512 tokens on current models, more on some older ones), the request is processed without caching and no error tells you so. Check that cache_creation_input_tokens is not zero on the first call.
  • Wrong breakpoint order: 1-hour entries must come before 5-minute entries. Put stable content first.
  • Too many breakpoints: the limit is 4 per request. The system also looks back at most 20 blocks from each breakpoint to find an earlier cache hit, so very long conversations may need an extra breakpoint partway through.
Before you commit to a design, price one real day of your traffic with your own request timestamps. The gap pattern, not a vendor average, decides whether caching saves 90% or costs you extra.
An alarm clock casting a long shadow on a dark surface
Scheduled jobs that run more than an hour apart rarely benefit from prompt caching. Photo: Suhas Hanjar, Unsplash (Unsplash License)

FAQ

How much does Claude prompt caching cost?

A 5-minute cache write costs 1.25x the model’s base input price and a 1-hour write costs 2x. Cache reads cost 0.05x on Sonnet 5.5 and Opus 5.5 and 0.1x on most other models. On Sonnet 5.5 that is $2.50 and $4 per MTok for writes and $0.10 per MTok for hits.

When does prompt caching pay off?

A 5-minute write pays off after one cache read and a 1-hour write after two. If a prefix is used only once, caching costs more than sending it normally.

Should I use the 5-minute or the 1-hour cache?

Use the 5-minute cache when requests arrive less than 5 minutes apart, because each hit keeps it warm for free. Use the 1-hour cache when gaps run between 5 and 60 minutes, since one avoided rewrite covers its higher write price.

Does prompt caching stack with the Batch API discount?

Yes. Anthropic’s pricing page says caching multipliers stack with other pricing modifiers, including the 50% Batch API discount.

Why is my cache not being used?

The usual causes are a prompt below the model’s minimum cacheable length, content that changes inside the cached prefix, or a cache that expired between requests. Check cache_creation_input_tokens and cache_read_input_tokens in the response to see what happened.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top