Enter the total number of cache hits and the total number of cache misses into the Hit Ratio Calculator. The calculator will evaluate and display the Hit Ratio. 

Hit Ratio Formula

The following formula is used to calculate the Hit Ratio. 

HITR = #H / (#H+#M) * 100

  • Where HITR is the Hit Ratio (%)
  • #H is the total number of cache hits 
  • #M is the total number of cache misses 

How to Calculate Hit Ratio?

The following example problems outline how to calculate Hit Ratio.

Example Problem #1:

  1. First, determine the total number of cache hits. 
    • The total number of cache hits is given as: 30.
  2. Next, determine the total number of cache misses. 
    • The total number of cache misses is provided as: 15.
  3. Finally, calculate the Hit Ratio using the equation above: 

HITR = #H / (#H+#M) * 100

The values given above are inserted into the equation below and the solution is calculated:

HITR =30 / (30+15) * 100 = 66.667 (%)


Example Problem #2: 

For this problem, the variables required are provided below:

total number of cache hits = 160

total number of cache misses = 14

Test your knowledge using the equation and check your answer with the calculator above.

HITR = #H / (#H+#M) * 100 = ?