Method document
Sample size to show that Cohen’s kappa exceeds a benchmark
How many participants two raters must both rate, yes or no, to show that their agreement exceeds a benchmark, by Donner and Eliasziw’s goodness-of-fit test. Covers dropout.
https://statwisely.com/methods/measurement-kappa/
When to use it
- An inter-rater study of a binary judgement that must reach, say, moderate agreement (kappa above 0.40).
Not for
- A rating of several categories; this test is for a yes/no rating.
Notation
- Number of participants rated by both raters
- Benchmark kappa, and the kappa expected
- Share of ratings that are “yes”
- Probability of agreement cell i (both yes, one yes, both no) under κ_j
- Standard normal quantiles for the significance level and power
- Significance level: the chance of a false positive
- Power: the chance of detecting the effect if it is real
- Number of tails: 2 for a two-sided test, 1 for one-sided
- Expected dropout
Formulas
The goodness-of-fit test of kappa
Under kappa κ the three cells have probabilities p² + p(1 − p)κ, 2p(1 − p)(1 − κ) and (1 − p)² + p(1 − p)κ; the χ² comparing the observed cells with those under κ₀ gives the sample size [1]. The test’s α is halved for a two-sided test.
Dropout
Applied last, to the participants actually recruited.
Parameters
Expected kappa
Values: Between 0 and 1
From a pilot or published agreement studies.
Benchmark kappa
Values: Below the expected kappa
0.40 is often read as moderate agreement and 0.60 as substantial.
Share rated “yes”
Values: Between 0 and 1
Agreement is hardest to show when “yes” is rare.
Significance level
Values: Between 0 and 1; usually 0.05
The false-positive rate you accept. A smaller α, for example to allow for several primary outcomes, needs a larger sample.
Power
Values: Between 0 and 1; usually 0.80 or 0.90
The chance of a significant result if the assumed effect is real. Funders and ethics committees commonly expect at least 0.80.
One- or two-sided
Values: 2 (two-sided) or 1 (one-sided)
Two-sided is the default. A one-sided test is justified only when an effect in the other direction would be treated exactly as no effect, and should be stated in advance.
Expected dropoutOptional
Values: 0% up to, but not including, 100%
The share of participants expected to provide no outcome, from comparable studies. Recruiting more restores the numbers, not the comparability of the groups: if dropout is related to the outcome, the estimate can still be biased.
Assumptions
- Each participant is rated once by each of two raters, who say “yes” equally often.
- Benchmark tests are one-sided by default: the property must be shown to exceed the benchmark, not merely to differ from it.
- Dropout is unrelated to the outcome; recruiting more participants restores the numbers but cannot remove bias.
Worked examples
Kappa 0.6 against 0.4
With 0.3 rated “yes”, the cells are 0.216, 0.168 and 0.616 against 0.174, 0.252 and 0.574, so Σ = 0.04121110176619007 and n = (1.645 + 0.842)² / 0.0412 = 150.0, rounded up to 151.
Sample size: 151
Open this example in the calculatorProtocol statement
To show that kappa exceeds 0.4 when it is 0.6 with 80% power at a one-sided significance level of 0.05, using a goodness-of-fit test of Cohen’s kappa between two raters on a yes/no rating (Donner and Eliasziw), and assuming 30% of ratings "yes" from each rater, the required sample size is 151 participants. Calculated with StatWisely (statwisely.com) using: N = (z_(1-α)+z_(1-β))²/Σ(P₁ᵢ-P₀ᵢ)²/P₀ᵢ over the three agreement cells (Donner-Eliasziw). These are planning estimates; confirm the final design with a qualified statistician.
Substantial agreement
Kappa 0.8 against 0.6: n = 117.
Sample size: 117
Open this example in the calculatorValidation
- Every worked example on this page is recomputed by the StatWisely engine whenever the software is built. If a number or formula here stopped matching the calculator, the release would be stopped until this document was corrected.
- An independent implementation in R recomputes this test every night and before each production release, and the results are compared with the engine’s.
- Simulated two-rater tables at the planned size, tested by the goodness-of-fit χ² with the prevalence estimated, gave power of 0.82 against a target of 0.80: the approximation errs slightly on the safe side.
How to cite
StatWisely. Sample size to show that Cohen’s kappa exceeds a benchmark. Method document, engine version 1.0.0, reviewed 2026-10-09. https://statwisely.com/methods/measurement-kappa/
Cite the original references for the formulas your design uses as well.
References
- 1.Donner A, Eliasziw M. A goodness-of-fit approach to inference procedures for the kappa statistic: confidence interval construction, significance-testing and sample size estimation. Statistics in Medicine. 1992;11(11):1511–1519.