How this calculator works
Enter requests, cache hit rate (%), origin response time (ms), cache response time (ms). CalcStack applies the displayed formula and reports each intermediate planning value with the units shown.
Formula / method
Average latency = hit rate × cache latency + miss rate × origin latency
Worked example
85% cache hits at 25 ms and 400 ms origin latency yield 81.25 ms average latency.
Assumptions and limitations
Cache hits and misses have stable average response times.
Tail latency, revalidation, invalidation, regional variation and cache stampedes are excluded.