Prompt Caching Savings Calculator

Calculate exact net savings and minimum cache-hit break-even after accounting for cache write surcharges, TTL refreshes, and read discounts.

85%
Net Monthly Savings0.0% saved
$0.00

Across 0 monthly requests (730 hrs/mo)

Uncached Monthly
$0.00
Cached Monthly
$0.00
Cache Write Fees / mo
$0.00
Break-Even Reads / TTL
0
Cached Spend DistributionRead discount: 0%
Cache 0%
Fresh In 0%
Output 0%

Transparent Formula & Methodology

Dataset: 2026-11-27

Monthly traffic assumes 730 hours/month (R_mo = reqPerHour × 730). In the uncached baseline, every request pays standard input pricing on T_static + T_dynamic plus output pricing on T_out.

Net_Savings = Uncached_Monthly − [Write_Cost + Cached_Read_Cost + Miss_Input_Cost + Dynamic_Input_Cost + Output_Cost]

Up to min(R_mo, TTL_refreshes × 730) requests trigger a cache write of T_static at cacheWritePer1M. Remaining requests are split by the cache hit rate into discounted cached reads (cachedInputPer1M) and uncached misses (inputPer1M). Break-even reads per TTL window equal max(0, P_write − P_in) / (P_in − P_cached) when P_in > P_cached.

Frequently Asked Questions

When does prompt caching actually save money after cache write fees?

Prompt caching lowers net spend whenever your static prefix receives enough cached reads inside each TTL window to offset any cache-write surcharge. On providers with a 25% write markup and 90% read discount, even two requests per TTL window already break even.

Why do TTL refreshes per hour matter for low-traffic endpoints?

Ephemeral prompt caches expire after inactivity (commonly 5 minutes, or up to 12 refreshes per hour). If traffic is sparse, nearly every request triggers a fresh cache write instead of a discounted hit, which can make caching slightly more expensive than uncached calls.

What belongs in the static prefix versus the dynamic suffix?

Place unchanging system instructions, JSON tool schemas, compliance rules, and shared reference documents in the static prefix at the top of the prompt. Keep timestamps, user IDs, and per-query inputs in the dynamic suffix at the end.

Are output tokens discounted by prompt caching?

No. Prompt caching applies exclusively to matching input prefix tokens. Generated output tokens and any uncached dynamic suffix tokens are always billed at the model’s standard input and output rates.