Cohen’s kappa calculator, step by step

This Cohen’s kappa calculator measures how far two raters agree beyond chance: kappa is the observed agreement minus the agreement expected by chance, divided by one minus the chance agreement. Enter your agreement table to get kappa with a 95% confidence interval, or switch to Fleiss’ kappa for three or more raters.

Updated

Runs in your browser. Nothing you enter is uploaded, stored or sent anywhere.

How Cohen’s kappa is calculated

Each record goes in one cell of the table, by what each rater decided. The cells on the diagonal are the records the two raters agreed on.

Cohen’s kappa from a table of counts with n records in all.
StepFormula
Observed agreement, poThe agreeing records over all records: po = (n₁₁ + n₂₂ + …) ÷ n
Chance agreement, peFor each category, rater A’s share times rater B’s share, added up: pe = Σ (row total × column total) ÷ n²
Kappaκ = (po − pe) ÷ (1 − pe)
Standard errorSE = √[(A + B − C) ÷ ((1 − pe)² × n)], with A, B and C below
95% confidence intervalκ ± 1.96 × SE

The standard error is the large-sample formula of Fleiss, Cohen and Everitt (1969), as the SAS documentation sets it out. With pᵢⱼ the share of records in row i and column j, pᵢ. a row’s share and p.ⱼ a column’s:

  • A = Σᵢ pᵢᵢ [1 − (pᵢ. + p.ᵢ)(1 − κ)]², over the diagonal;
  • B = (1 − κ)² Σᵢ≠ⱼ pᵢⱼ (p.ᵢ + pⱼ.)², over the cells off it;
  • C = [κ − pe(1 − κ)]².

Kappa is 1 when the raters agree on every record and 0 when they agree no more often than chance would predict. It goes below 0 when they agree less often than that. The statistic is Cohen’s (1960). The calculator also shows the z test of κ = 0, which uses a different standard error worked out as if there were no agreement beyond chance.

Fleiss’ kappa for three or more raters

Fleiss (1971) extended kappa to any number of raters. Each record must have the same number of ratings, m, but the raters needn’t be the same people for every record. For N records and k categories, with nᵢⱼ the number of raters who put record i in category j:

Fleiss’ kappa from a table of counts, one row per record.
StepFormula
Share of ratings in each categorypⱼ = Σᵢ nᵢⱼ ÷ (N × m)
Agreement on one recordThe share of rater pairs who agree: Pᵢ = Σⱼ nᵢⱼ(nᵢⱼ − 1) ÷ (m(m − 1))
Mean agreementP̄ = Σᵢ Pᵢ ÷ N
Chance agreementP̄e = Σⱼ pⱼ²
Kappaκ = (P̄ − P̄e) ÷ (1 − P̄e)

The z test of κ = 0 uses the standard error from Fleiss, Nee and Landis (1979). That standard error is only valid when κ is 0, so it can’t give a confidence interval, and the calculator doesn’t show one. Under “Show the working” you also get a kappa for each category against all the others, from Fleiss’s paper.

You can paste raw ratings straight in: one row per record and one column per rater, with words like “Include” and “Exclude”. The calculator counts them for you.

Cohen’s kappa calculation, step by step

The title and abstract screening guide uses this hypothetical calibration sample: two reviewers’ decisions on the same 200 records. It’s the example the calculator opens with, and “Show the working” under the result repeats these steps for your own table.

A hypothetical calibration sample of 200 records.
B includesB excludes
A includes64
A excludes3187
  1. Observed agreement. Add the cells on the diagonal and divide by the total. The reviewers agree on 6 + 187 = 193 records, so po = 193 ÷ 200 = 0.965.
  2. Each rater’s shares. A includes 10 of the 200 (0.05) and excludes 190 (0.95). B includes 9 (0.045) and excludes 191 (0.955).
  3. Chance agreement. Multiply the two raters’ shares for each category and add them up, so pe = 0.05 × 0.045 + 0.95 × 0.955 = 0.9095.
  4. Kappa. Kappa is (0.965 − 0.9095) ÷ (1 − 0.9095) = 0.0555 ÷ 0.0905 = 0.61, with a standard error of 0.134 and a 95% CI of 0.35 to 0.88.
  5. What it means. That’s substantial agreement on the Landis and Koch scale. Yet of the 13 records either reviewer included, they agreed on only 6.

For three or more raters, switch to Fleiss’ kappa and load the example. It’s Fleiss’s own: six psychiatrists each diagnosed 30 patients as depression, personality disorder, schizophrenia, neurosis or other, and κ = 0.43.

When kappa misleads

  • Rare categories. When most records are excludes, chance agreement is high, so a handful of disagreements about includes pulls kappa down a long way. In the example, raw agreement is 96.5% but κ is 0.61. Look at the includes directly, and report the table.
  • Different habits. Kappa depends on how often each rater uses each category, so two pairs of reviewers with the same raw agreement can get different kappas.
  • Small samples. The standard error is a large-sample approximation. With few records, or few in one category, treat the interval as rough.
  • Ordered categories. Cohen’s kappa treats a near miss like any other disagreement. For an ordered scale, such as low, some concerns and high risk of bias, a weighted kappa is better. This calculator doesn’t compute one.

What to report

What to report: Report kappa with what’s behind it

Give kappa with its 95% CI, the number of records, how the records were chosen and when you measured it, such as on a pilot sample before screening. Include the agreement table itself, so a reader can see where the disagreements were.

If you set a threshold in your protocol, say what it was and what you did when you fell short of it.

OtterSR’s Insights page compares the AI’s screening answers with your reviewers’ decisions, question by question, and reports agreement and sensitivity with their 95% intervals. It holds the figures back until 30 decisions have been validated. See how OtterSR works.

Frequently asked questions

What is a good kappa value?

There’s no universal cut-off. Landis and Koch (1977) labelled kappas of 0.21 to 0.40 fair, 0.41 to 0.60 moderate, 0.61 to 0.80 substantial and 0.81 to 1.00 almost perfect, and called the divisions “clearly arbitrary”. Many review teams set their own threshold in the protocol before calibrating. Whether the disagreements fall on likely includes matters more than the label.

Can I use Cohen’s kappa for more than two raters?

No: Cohen’s kappa compares exactly two raters. For three or more, use Fleiss’ kappa, which this calculator also does. Choose “Three or more” above. You can also report Cohen’s kappa for each pair of raters.

Why is my kappa low when agreement is high?

Because chance agreement is high too. If 95% of records are clear excludes, two raters who agree on every exclude already reach about 90% agreement by chance, and kappa only credits agreement beyond that. A few disagreements about the rare includes then cost a lot.

Should I report kappa or percentage agreement?

Both, with the table. Percentage agreement is easy to read but looks high whenever most records are excludes. Kappa corrects for chance but is hard to compare across samples with different proportions of includes.

How to cite this tool

OtterSR. Cohen’s kappa calculator, step by step. https://www.ottersr.com/tools/cohens-kappa-calculator (accessed today’s date).

Please cite the method as well:

  • Cohen J. A coefficient of agreement for nominal scales. Educational and Psychological Measurement 1960;20(1):37–46.

  • Fleiss JL, Cohen J, Everitt BS. Large sample standard errors of kappa and weighted kappa. Psychological Bulletin 1969;72(5):323–7.

  • Fleiss JL. Measuring nominal scale agreement among many raters. Psychological Bulletin 1971;76(5):378–82.

Sources

  1. Cohen J. A coefficient of agreement for nominal scales. Educational and Psychological Measurement 1960;20(1):37–46. https://doi.org/10.1177/001316446002000104
  2. Fleiss JL, Cohen J, Everitt BS. Large sample standard errors of kappa and weighted kappa. Psychological Bulletin 1969;72(5):323–7. https://doi.org/10.1037/h0028106
  3. SAS Institute. The FREQ procedure: tests and measures of agreement (simple kappa coefficient). SAS/STAT documentation. https://support.sas.com/documentation/cdl/en/procstat/70116/HTML/default/procstat_freq_details74.htm
  4. Fleiss JL. Measuring nominal scale agreement among many raters. Psychological Bulletin 1971;76(5):378–82. https://doi.org/10.1037/h0031619
  5. Fleiss JL, Nee JCM, Landis JR. Large sample variance of kappa in the case of different sets of raters. Psychological Bulletin 1979;86(5):974–7. https://doi.org/10.1037/0033-2909.86.5.974
  6. Landis JR, Koch GG. The measurement of observer agreement for categorical data. Biometrics 1977;33(1):159–74. https://doi.org/10.2307/2529310