TokenCostLab

Prompt Caching Calculator

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

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.