Prompt caching break-even: it pays on the second request, if you stay inside the cache lifetime

Using the multipliers in Anthropic's prompt caching docs (read on 17 November 2026): a 5-minute cache write costs 1.25x, reads 0.1x or less. The arithmetic shows caching wins from request two, and loses 25% if the cache keeps expiring.

Prakhar

Backend engineer · Pressentify

Published

3 min read 765 words
A stack of five blue blocks labelled cached prefix with an amber block on top labelled new tokens.

Many LLM calls start with the same long text: instructions, tool definitions, a document, a few examples. Prompt caching lets the provider keep that prefix and charge less to read it again. The saving is real, but it has a price of entry, because writing to the cache costs more than a normal request. Whether you come out ahead depends on how soon the next request arrives. This post works that out from the published multipliers.

Prices change

The multipliers below are from Anthropic’s prompt caching page as we read it on 17 November 2026. They differ by model and Anthropic can change them. Check the page before you do any sums for a real budget. We use ratios, not dollar prices, so the logic survives a price change.

What the docs say

  • A cache write with the default 5-minute lifetime costs 1.25 times the base input token price.
  • A cache write with the 1-hour lifetime costs 2 times the base input price.
  • A cache read costs 0.1 times the base input price, with exceptions per model: 0.05 times on Claude Opus 5.5 and Claude Sonnet 5.5, and 0.025 times on the Fable and Mythos 5.1 and 5.2 models.
  • The cache is refreshed at no extra cost each time the cached content is used, so a prefix used at least every 5 minutes stays warm.
  • Prompts shorter than the minimum cannot be cached, and no error is returned. The minimum is 512 tokens for several current models, and 1,024 to 4,096 for others.

The arithmetic

Measure everything in one unit: the cost of sending the shared prefix once at the normal input price. Without caching, n requests cost n. With caching, the first request pays the write multiplier and every later one inside the lifetime pays the read multiplier.

def total(n, write, read):
    # cost of the shared prefix over n requests,
    # in units of "the prefix sent once at the base input price"
    return write + (n - 1) * read

total(2, 1.25, 0.1)   # 5-minute cache, read 0.1x  -> 1.35  (uncached: 2.00)
total(2, 2.0,  0.1)   # 1-hour cache,   read 0.1x  -> 2.10  (uncached: 2.00)
total(3, 2.0,  0.1)   # 1-hour cache                -> 2.20  (uncached: 3.00)

We ran that for a range of request counts.

   n  no cache  5m, read .1  1h, read .1  5m, read .05
   1      1.00         1.25         2.00           1.25
   2      2.00         1.35         2.10           1.30
   3      3.00         1.45         2.20           1.35
   5      5.00         1.65         2.40           1.45
  10     10.00         2.15         2.90           1.70
 100    100.00        11.15        11.90           6.20
Line chart of the cost of a shared prefix over 1 to 10 requests. The no-cache line rises from 1 to 10. The 5-minute cache line starts at 1.25 and rises to 2.15. The 1-hour cache line starts at 2.0 and rises to 2.9.
Both cache lines start higher than no cache and cross it early: at request 2 for the 5-minute write, request 3 for the 1-hour write.

The break-even points

OptionRead multiplierCheaper than no cache from request
5-minute cache (write 1.25x)0.1x2
5-minute cache (write 1.25x)0.05x2
1-hour cache (write 2x)0.1x3
1-hour cache (write 2x)0.05x3

So a prefix reused a single time inside five minutes already pays for itself, and the longer a run gets, the closer the cost per request gets to the read multiplier alone. At 100 requests inside the window the saving on the shared part was 89% at a 0.1x read and 94% at 0.05x.

The case that loses money

If requests arrive more than the lifetime apart, the cache has expired by the time the next one comes. Every request pays the 1.25x write and none gets a read. That is 25% more than not marking the prefix at all, on every request. This is the pattern to watch for in low-traffic features such as a nightly job, an internal tool used a few times an hour, or a chat that people leave open. A 1-hour cache fixes it if requests come at least hourly, and costs 2x to write.

What this does not cover

The sums above apply to the cached prefix only. The part of the prompt that changes each time, and all output tokens, are billed normally. Many systems also run several requests in parallel at the start, before the first write has finished, so some of them do not get a hit. Check your own numbers, as below.

Check it on your own traffic

  1. Mark only the stable prefix, and put anything that changes after it.
  2. Make sure the prefix is at least the minimum length for your model.
  3. Read the usage fields in each API response (cache_creation_input_tokens and cache_read_input_tokens). Writes with no reads mean the cache is expiring or the prefix changes between calls.
  4. Work out the gap between requests that share a prefix. If it is usually under 5 minutes, use the default. If it is usually between 5 minutes and an hour, price the 1-hour option. If it is longer, skip caching.
  5. Recompute when you change model, because the read multiplier changes.

Sources & Credits

  • Anthropic, “Prompt caching,” Claude developer documentation, read 17 November 2026: platform.claude.com

The multipliers, lifetimes and minimum lengths are quoted from that page. The arithmetic, tables and chart are our own work. Prices and model lists on the page change; if yours differ, trust the page. Last verified 2026-11-17. Spotted a mistake? Tell us and we will correct it here with the date.

Share this article

Written by

Prakhar

Backend engineer · Pressentify

Backend engineer building Pressentify — interactive cheatsheets, handbooks and a job-hunt workspace.

Get the next one in your inbox

One practical backend article at a time. No spam; unsubscribe in one click.

Occasional. One-click unsubscribe.