Cohen's Kappa Calculator

Statistics

Cohen's kappa0.49
Observed agreement75.00 %
Chance agreement51.00 %
Interpretation (Landis & Koch)Moderate agreement
How this was calculated
  1. Total the 100 ratings: observed agreement po = (45 + 30) / 100 = 0.7500.
  2. Chance agreement from the marginal totals: pe = 0.5100.
  3. Apply Cohen's kappa: k = (po - pe) / (1 - pe) = (0.7500 - 0.5100) / 0.4900.
  4. Cohen's kappa is 0.49 - moderate agreement.

Two raters agree 75 % of the time. Is that good? Cohen's kappa exists because the honest answer is: it depends on how much they would have agreed by chance alone, given how often each of them uses each category. Kappa subtracts that chance agreement and rescales what remains.

This calculator takes the four cells of a two-rater, two-category table, both-yes, the two disagreement cells and both-no, and returns observed agreement, the chance agreement computed from the raters' own marginal totals, and kappa itself with its Landis and Koch interpretation band.

The examples show why the correction matters: 75 % agreement that is only moderate once chance is removed, and 90 % agreement that is substantial but still not near-perfect.

Worked examples

75 percent agreement table

(45 ratings · 15 ratings · 10 ratings · 30 ratings)

Cohen's kappa0.49
Observed agreement75.00 %
Chance agreement51.00 %
Interpretation (Landis & Koch)Moderate agreement

90 percent agreement table

(30 ratings · 5 ratings · 5 ratings · 60 ratings)

Cohen's kappa0.78
Observed agreement90.00 %
Chance agreement54.50 %
Interpretation (Landis & Koch)Substantial agreement

65 percent agreement table

(20 ratings · 20 ratings · 15 ratings · 45 ratings)

Cohen's kappa0.26
Observed agreement65.00 %
Chance agreement53.00 %
Interpretation (Landis & Koch)Fair agreement

Why raw percent agreement misleads

Percent agreement credits raters for coincidences. If two clinicians each call 90 % of scans normal, they can agree on the great majority of cases by both saying normal almost always, without either of them discriminating anything. The raw figure flatters exactly the situations, skewed categories and lazy thresholds, where agreement evidence is weakest.

Kappa's correction asks how much agreement remains above that coincidence floor. In the first worked example the floor is high, 51.00 %, because both raters say yes often, so the celebrated 75 % observed agreement compresses to a kappa of 0.49, moderate. The number did not get worse; the claim got honest.

  • kappa = (po - pe) / (1 - pe)
  • po = observed proportion of agreement
  • pe = chance agreement from the marginal totals

Building the expected agreement from marginals

Chance agreement is computed cell by cell from the margins. If rater A says yes in 60 of 100 cases and rater B in 55, then two raters guessing independently with those habits would both say yes in 0.60 x 0.55 = 33 % of cases; the both-no contribution is 0.40 x 0.45 = 18 %, and pe totals 51.00 %. Every input to that computation is visible in the table's margins, which is what makes kappa auditable.

The denominator, 1 - pe, is the room above chance: the maximum agreement the raters could have added beyond coincidence. Kappa is therefore the fraction of the available improvement they actually achieved, a definition worth remembering when the bands are read.

Worked example: 100 ratings, kappa 0.49

The table is 45 both-yes, 15 A-only, 10 B-only and 30 both-no. Observed agreement is (45 + 30) / 100 = 75.00 %. The marginals give chance agreement of 51.00 %, so kappa = (0.75 - 0.51) / (1 - 0.51) = 0.49, moderate on the Landis and Koch bands.

The second example looks stronger and is: 30 both-yes, 5 and 5 disagreements, 60 both-no gives 90.00 % observed, but the marginals are so skewed that chance alone predicts 54.50 %, and kappa is 0.78, substantial. The third, with more disagreements, 20, 20, 15 and 45, gives 65.00 % observed, 53.00 % chance and kappa 0.26, only fair.

ExampleObservedChanceKappaBand
175.00 %51.00 %0.49Moderate
290.00 %54.50 %0.78Substantial
365.00 %53.00 %0.26Fair

Reading the Landis and Koch bands

The conventional bands run: below 0 poor, 0.00-0.20 slight, 0.21-0.40 fair, 0.41-0.60 moderate, 0.61-0.80 substantial and 0.81-1.00 almost perfect. Landis and Koch themselves called the divisions arbitrary, and they are best used as a shared vocabulary rather than as pass marks: a kappa of 0.49 for a screening judgement between nurses may be acceptable, while the same figure for a cancer/no-cancer call between pathologists would not be.

Report kappa with its context: the number of cases, the category prevalence and ideally a confidence interval, because a kappa from 30 cases carries far less certainty than the same value from 3,000. The point estimate alone invites overconfidence the statistic was designed to prevent.

The prevalence paradox, stated plainly

Kappa has a famous pathology: when one category is very rare or very common, chance agreement climbs toward the observed agreement and kappa collapses, even when the raters are performing superbly. A test with 98 % agreement on a condition present in 1 % of cases can return a kappa under 0.40, the so-called kappa paradox.

The remedy is transparency, not a different verdict: report po and pe alongside kappa, as this calculator does, so a reader can see a low kappa with high agreement and high chance for what it is. Alternatives such as prevalence-adjusted statistics exist and should be named when used, not silently substituted.

Weighted kappa and more than two categories

For ordinal categories, stages of disease or grades of severity, not all disagreements are equal: adjacent-grade disagreement is a lesser failure than two-grade disagreement. Weighted kappa credits partial agreement with weights, linear or quadratic, chosen and declared by the analyst. Quadratic weights are the common default and make weighted kappa numerically close to an intraclass correlation.

More categories need no new idea: pe is built from every category's marginals and the same formula applies, which this calculator's two-category form specialises. More than two raters moves the problem to Fleiss' kappa, a generalisation with the same chance-correction logic.

Using kappa in a reliability study

A defensible reliability study fixes the rating conditions before the statistic: independent ratings, no conferring, the same information available to each rater, and a case mix resembling practice. Kappa computed on training cases the raters discussed together measures the discussion, not the raters.

Sample size deserves the same forethought: the confidence interval around kappa narrows slowly, and studies under about 50 cases rarely exclude chance-level interpretations of their own result. The three examples here use 100 cases each, a reasonable minimum for a publishable claim.

A note on significance: kappa is not agreement itself

Kappa is often reported with a p-value against the null of zero, a test that answers a question nobody asked: with enough cases, trivially small agreement becomes statistically significant, and with few cases, excellent agreement cannot be distinguished from chance. The confidence interval is the informative output, and journals increasingly demand it in place of the test.

For planning, the interval's width is driven by the number of cases and by how close kappa sits to its extremes. The worked examples use 100 cases, where an interval around 0.49 spans roughly a tenth in either direction, enough to separate moderate from slight, not enough to separate 0.49 from 0.55.

Limits: the prevalence paradox and weighted kappa

Kappa summarises one table under one set of marginals; it is not portable across populations with different prevalences, and comparing kappas between studies with different case mixes is a category error the literature commits weekly. Within one study, on one sample, it does its job exactly.

This calculator implements the unweighted two-rater, two-category form. Ordinal data deserve the weighted form and multi-rater data the Fleiss form; using the simple form on such data understates or misstates agreement in ways the bands will not warn you about.

Reporting habit: never publish kappa alone. The trio of observed agreement, chance agreement and kappa, as computed here, is the smallest honest report.

FAQs

What kappa does 75 percent observed agreement give?

It depends on the marginals: in the worked example chance agreement is 51.00 %, so kappa = 0.49. The same 75 % with balanced marginals would give a higher kappa. Chance correction is the entire point of the statistic; without it the percent agreement would suffice.

How is chance agreement calculated?

From the marginal totals: in the worked example they combine to a chance agreement of 51.00 %. Each category contributes the product of the two raters' rates for that category. Every quantity in that computation comes from the table itself, which is what makes the statistic auditable from published data.

Is 90 percent agreement always excellent?

No: with chance agreement of 54.50 % it gives kappa 0.78, substantial but not almost perfect. Skewed marginals inflate both the raw agreement and the chance floor beneath it. This is why method sections report the marginals, or should.

What kappa counts as moderate?

On the Landis and Koch bands, 0.41 to 0.60 is moderate; the worked example's 0.49 sits in that band. The bands are a vocabulary, not pass marks, and context decides what is good enough. Whether a given band is acceptable depends on the cost of disagreement in the task being rated.

Can kappa be negative?

Yes: if raters agree less than chance predicts, kappa goes below zero, as the band table shows with its poor category. Systematic disagreement, not randomness, is what a negative value reports. A negative kappa usually signals a systematic inversion, such as swapped category labels, and is worth investigating rather than merely reporting.

Why does kappa drop when one answer is very common?

High prevalence inflates chance agreement pe, shrinking (po - pe); this is the well-known kappa prevalence paradox. Reporting po and pe beside kappa keeps the effect visible. It is the standard caution in every serious treatment of the statistic, from Cohen's original paper onward. Always show the marginals.

Sources

Related calculators

Chi-Square Test Calculator (2x2)
The chi-square test of independence for a 2x2 contingency table: statistic, p-value at 1 degree of freedom, and the phi effect size.
Correlation Coefficient Calculator
Pearson's r for up to six paired observations, with r² and the deviation sums shown — the full workings, not just the headline number.
Confidence Interval Calculator
The range around a sample mean or a sample proportion at 90%, 95% or 99% confidence, with the standard error and margin of error shown step by step.