How the calculation works
For ranks i = 1 through k, DCG@k = sum((2^grade_i − 1) / log2(i + 1)). The first entered grade is rank1; the list is never sorted.
A worked example
For grades3,2,3 at k=3: gains are7,3,7 and weights are1,1/log2(3),1/2. DCG@3 is approximately12.3927892607. This is a constructed arithmetic example.
Before you use the result
Use one judged ranking and a consistently defined relevance scale. Enter1–100 integer grades from0–10 and a whole cutoff1≤k≤the number entered. These are worksheet size limits, not a universal grading standard. Separate grades with commas, spaces or new lines. Every entered grade is validated, including any beyond k; only the first k contribute. Zero must be an actual relevance judgment, not an assumed missing value. Different gain and rank-discount conventions produce different DCG scores. This worksheet fixes the displayed exponential/base-2 convention. It calculates no ideal ranking, NDCG, across-query average, statistical significance, search relevance judgments or financial present value. Values are approximate floating-point results; displayed decimals are rounded.