Run this prompt caching calculator to compare 5-minute and 1-hour cache writes against cache reads and see your break-even read count. See also the API Cost Calculator and CLAUDE.md Linter.
Scenario Inputs
Caching Impact Summary
Est. Monthly Savings vs. Uncached Reads
$0.00
Cached Scenario Cost (Writes + Reads)
$0.00
Uncached Equivalent Cost (Same Total Reads)
$0.00
Break-Even Reads per Cache Write
0 reads
When Prompt Caching Pays Off
Place Static Context First: Keep unchanging instructions, schemas, and reference context ahead of variable per-request inputs so the cached prefix stays valid.
Match TTL to Request Cadence: Use longer TTLs only when follow-up reads arrive reliably within the window; otherwise you pay extra write fees without enough reads.
Check Read-to-Write Ratio: High cache-hit ratios on large prefixes generate the clearest net savings.
Frequently Asked Questions
How does a prompt caching calculator find the break-even read count?
It divides the cache write rate by the savings per cache read (standard input rate minus cache read rate) to show how many cache reads are needed to offset a cache write.
When can prompt caching lose money compared to uncached requests?
If a cached prefix is rewritten frequently with very few cache reads before expiration, cache write premiums can exceed the savings from discounted cache reads.