Prompt Cache Hit Rate ROI Calculator

Anthropic prompt caching charges a 1.25x write (5-minute TTL) or 2.0x write (1-hour TTL) in exchange for 0.10x cache reads. Adjust your prefix size and hit rate below to verify whether caching saves money or creates a write penalty.

Interactive calculator

Cache Hit RateEffective $/1M InputMonthly Prefix BillNet Monthly SavingsROI Verdict

Frequently asked questions

What is the exact break-even hit rate for Anthropic 5-minute caching?

With a 1.25x cache write and 0.10x cache read, break-even is 21.7% (roughly 1 cache hit per 3.6 writes). Above 80% hit rate, input spend drops by more than 65%.

When is 1-hour prompt caching worth the 2.0x write fee?

1-hour caching breaks even at a 52.6% hit rate. It pays off for bursty developer sessions or background agents that pause 10 to 45 minutes between turns.

What silently invalidates prompt caches in coding agents?

Inserting live timestamps into the system prompt, toggling MCP servers mid-session, or editing CLAUDE.md every turn forces a full cache rewrite.

All calculations run 100% locally in your browser with zero external API calls. Pricing and rate limits reflect published 2026 provider rate cards.