Recall at K Calculator

Measure relevant items retrieved within top ranked results, compare multiple K values, inspect missed items, visualise performance, and export clear reports instantly for review.

Evaluation results

Enter ranked predictions and relevant items, then calculate Recall@K.

Best macro Recall@K
Best K value
Queries evaluated
Model B improvement

Recall across K

Found versus missed

Per-query recall at largest K

Relevant-item breakdown

Relevant items found

Relevant items missed

Detailed results

No rows
Query Group Model K Top-K size Found Total relevant Missed Recall
Results will appear here.
Enter positive integers separated by commas.
Optional scores may follow items, such as item_1:0.92.
Leave empty when only one model is evaluated.
In graded mode, use item:relevance values.
Unknown filtering only applies when this catalogue is supplied.
Required headers: query_id, predictions_a, relevant. Separate list items inside cells with semicolons.
The uploaded file replaces the batch text.

Parsing and relevance options

Calculation history

Recent summaries are stored in this browser.

Formula used

Recall@K = Relevant items retrieved in the top K ÷ Total relevant items

The value ranges from zero to one. Multiplying by 100 produces a percentage.

How to use this calculator

  1. Choose single-query or batch evaluation mode.
  2. Enter ranked predictions and ground-truth relevant items.
  3. Add one or more positive K values.
  4. Adjust matching, duplicate, tie, and averaging behaviour.
  5. Calculate, inspect charts, and export the detailed results.

Example data

InputExample
Ranked predictionsA, B, C, D, E
Relevant itemsB, D, F
K3
Relevant foundB
Recall@31 ÷ 3 = 0.3333 = 33.33%

Metric guidance

Recall@K rewards systems that retrieve more relevant items early. It does not penalise irrelevant items directly. Pair it with Precision@K for balance.

Hit Rate@K only checks whether one relevant item appears. Recall@K measures the share of all relevant items recovered. Average Precision also considers relevant-item positions.

Choose K from the number of items users can realistically inspect. Compare several K values before selecting one. Report both aggregate and per-query results.

Frequently asked questions

What does Recall@K measure?

It measures the proportion of all relevant items retrieved within the first K ranked results.

Is a higher Recall@K better?

Yes. A higher value means more ground-truth relevant items appeared before the selected cutoff.

Can Recall@K exceed one?

No. Properly calculated recall remains between zero and one, inclusive.

How is Recall@K different from Precision@K?

Recall focuses on recovered relevant items. Precision focuses on how many top-K results are relevant.

What happens when K exceeds the ranking length?

The calculator uses all available ranked items and displays a warning.

How are duplicate predictions handled?

You may keep the first occurrence, keep the last occurrence, or preserve ranking positions.

What is graded relevance?

Graded relevance assigns numeric importance scores. The threshold decides which items count as relevant.

What is macro-average recall?

Macro recall averages query-level recall values equally, regardless of relevant-set size.

What is micro-average recall?

Micro recall divides total relevant items found by total relevant items across queries.

When should weighted recall be used?

Use it when some queries, users, or business segments deserve greater influence.

Related Calculators

User Similarity CalculatorItem Similarity CalculatorCollaborative Filtering CalculatorMean Reciprocal Rank CalculatorPrecision at K CalculatorNormalised Discounted Cumulative Gain Calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.