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.

- All Ratio Calculators
- Bit Error Rate (BER) Calculator
- Displacement to Length Ratio Calculator
- Throughput to IOPS Calculator

## 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

To calculate a hit ratio, divide the number of hits by the sum of the number of hits and misses, then multiply by 100.

## How to Calculate Hit Ratio?

The following example problems outline how to calculate Hit Ratio.

Example Problem #1:

- First, determine the total number of cache hits.
- The total number of cache hits is given as: 30.

- Next, determine the total number of cache misses.
- The total number of cache misses is provided as: 15.

- 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** = ?**