net savings vs no cache
storage fee
break-even reads
max idle lifetime

Net savings as you keep the cache alive longer

The read savings are fixed by how many reads you serve; only the storage fee grows with lifetime. Each row keeps the same reads but a longer time-to-live — watch the net flip from green to red once storage overtakes the savings. Your chosen lifetime is marked; the last profitable row is the sweet spot.

LifetimeStorage feeRead savingsNet

The tax the caching calculators leave out

Every prompt-caching guide sells you the same headline: cached reads cost a tenth of normal input, so caching cuts your bill by 90%. That is true for the reads. It is not the whole bill. Explicit context caching — the kind where you deliberately upload a big context and get back a handle to reuse — comes with a storage fee that runs on a clock, not on usage. Gemini charges roughly 4.50 dollars per million tokens per hour to keep 2.5 Pro content cached, so a 100,000-token context left alive for a day costs about 10.80 dollars in storage before anyone reads it. On a well-used cache that is fine, because the read savings dwarf it. On a cache that sits mostly idle — a document someone might ask about, a context wired to a generous time-to-live "just in case" — the storage line quietly becomes the biggest number on the invoice, and the cache loses money even though every read looks like a bargain. The two questions that actually decide it are how many reads you need before the savings cover the storage, and how long you can leave the cache alive before the meter overtakes those savings. This calculator answers both. If your context repeats on every call rather than living in an explicit cache, price the implicit case with the prompt caching savings calculator; to weigh a short versus long time-to-live against your hit rate, use the cache TTL & hit-rate calculator; and to see whether the write premium ever pays back, run the cache write break-even calculator.

Host your project:DigitalOcean — $200 free ↗Hostinger VPS
Prompt Caching SavingsCache TTL & Hit-RateCache Write Break-EvenSystem Prompt CostRAG Cost