← home
FREE TOOL

Cache Savings Calculator.

Should you enable prompt caching? Input your prompt stats and daily volume. See real savings — not the inflated numbers vendors show.

Your workload

The repeated prefix (instructions, examples, context)
The unique part of each request
Daily volume
% of requests sharing the same prefix within TTL

Savings by provider

When caching is worth enabling

Prompt caching pays off when a large prefix repeats across requests inside the cache TTL. The three inputs that decide it are the size of the repeated prefix, the share of requests that hit it, and how tightly those requests cluster in time. A 3,000-token system prompt hit by steady traffic is close to a free win. The same prompt hit twice an hour will expire between calls, and you will pay the cache-write premium for nothing.

Why real hit rates disappoint

What to do with the result

If the calculator shows a saving at a hit rate you can defend, enable caching — it is the lowest-risk lever available, because the cached tokens are byte-identical to what you were already sending and nothing about the output changes. If it shows a marginal result, restructure the prompt so the stable part sits at the front and measure again before deciding. If it shows a loss, the workload is not prefix-heavy and caching is the wrong lever; routing or batching will do more.

How we calculate

Most calculators overstate caching savings. We use the real formula:

Savings = (input_without_cache × input_price) - (cache_write × cache_write_price) - (cache_read × cache_read_price) - (output × output_price)

Cache writes still cost money. Anthropic charges a premium. OpenAI and Google charge full price. The discount only applies to the cache-read portion.

Related

← Back to llmcfo.com