By MCP Analytics Team | Published , updated
Upload your data and get a Cohen's kappa agreement report. Free.
We email you the report link. Leave it empty and the report opens on this page. If today's runs without an email are used up, we will ask for your email.
Free up to 10,000 rows. Encrypted in transit.
Running Cohen's kappa agreement analysis...
The practical guide behind this tool: when it applies, how to read the output, and the traps that make it say the wrong thing.
The numbers below come from made-up data, made by the code on this page. They show the method. They are not output from this tool and not a finding about your data.
Question: How well do two raters agree beyond what chance alone would produce, and does it matter that near misses count less than big misses?
Inputs: Simulated data, not real raters. Seed 3 makes 200 items with a true level of Low, Mid or High (probabilities 0.4, 0.4, 0.2). Each of two raters reports the true level 70% of the time and otherwise a neighbouring level, so disagreements are mostly near misses by construction. The bootstrap re-draws the 200 items 1,000 times. The last line uses a hand-built table, not the raters: 90% of items are rated Low by both raters, 2% Mid by both, and the other 8% are split between the two raters.
Method: A standard way to compute and read Cohen's kappa. Cohen's kappa compares observed agreement with the agreement expected if each rater picked categories at random with their own usual frequencies: kappa = (observed - chance) / (1 - chance). Weighted kappa, for ordered categories, gives partial credit to near misses: linear weighting charges a one-step miss half the penalty of a two-step miss (with three levels), and quadratic weighting charges it a quarter. The confusion matrix shows which pairs of categories the raters mix up. A bootstrap interval (middle 95% of kappa across 1,000 re-draws of the items) shows how much kappa moves with 200 items.
Result: In seed 3 the raters agreed on 0.585 of items, against 0.374 expected by chance, giving kappa 0.337, with a bootstrap 95% interval of 0.227 to 0.442. Weighting for order raised it to 0.434 (linear) and 0.556 (quadratic). The confusion matrix shows why: of the disagreements, 81 were between neighbouring levels and only 2 were Low against High. In the hand-built skewed table the raters agreed on 0.920 of items but kappa was only 0.291, because when almost everything falls in one category, chance agreement is already high.
Limit: This example has two raters, three ordered categories and one simple noise pattern, with no rater who is systematically harsher than the other and no missing ratings. It does not show more than two raters, nominal categories with no order, or how the tool reports its results. Kappa has no universal cutoff for 'good'. The tool's own report may differ from this sketch in which intervals and weights it shows.
Python script (numpy and scipy only):
import numpy as np
# Simulated data. Built in: 2 raters label 200 items as Low/Mid/High (0,1,2).
# True level has probabilities 0.4/0.4/0.2. Each rater reports the true level
# with prob 0.7, else a neighbouring level (so disagreements are mostly near misses).
rng = np.random.default_rng(3)
n, K = 200, 3
true = rng.choice(K, n, p=[0.4, 0.4, 0.2])
def rate(t):
out = t.copy()
for i in range(len(t)):
if rng.random() > 0.7:
nb = [j for j in (t[i] - 1, t[i] + 1) if 0 <= j < K]
out[i] = rng.choice(nb)
return out
r1, r2 = rate(true), rate(true)
C = np.zeros((K, K))
for a, b in zip(r1, r2):
C[a, b] += 1
print("confusion matrix (rows rater 1, cols rater 2):\n", C.astype(int))
P = C / n
row, col = P.sum(1), P.sum(0)
def kappa(w):
# w = disagreement weights (0 on the diagonal)
num = (w * P).sum()
den = (w * np.outer(row, col)).sum()
return 1 - num / den
i, j = np.indices((K, K))
w0 = (i != j).astype(float)
wl = abs(i - j) / (K - 1)
wq = ((i - j) / (K - 1)) ** 2
po = np.trace(P); pe = (row * col).sum()
print("observed agreement %.3f, chance agreement %.3f" % (po, pe))
print("kappa=%.3f linear weighted=%.3f quadratic weighted=%.3f" % (kappa(w0), kappa(wl), kappa(wq)))
print("Low-High confusions:", int(C[0, 2] + C[2, 0]), "Low-Mid/Mid-High:", int(C[0, 1] + C[1, 0] + C[1, 2] + C[2, 1]))
# bootstrap 95% interval for unweighted kappa
bs = []
for _ in range(1000):
idx = rng.integers(0, n, n)
Pb = np.zeros((K, K))
for a, b in zip(r1[idx], r2[idx]):
Pb[a, b] += 1
Pb /= n
rb, cb = Pb.sum(1), Pb.sum(0)
bs.append(1 - (w0 * Pb).sum() / (w0 * np.outer(rb, cb)).sum())
print("bootstrap 95%% interval for kappa: %.3f to %.3f" % tuple(np.percentile(bs, [2.5, 97.5])))
# skewed categories: raw agreement is high (0.92) but kappa is low
Pk = np.array([[0.90, 0.04, 0.0], [0.04, 0.02, 0.0], [0, 0, 0.0]])
Pk /= Pk.sum()
rk, ck = Pk.sum(1), Pk.sum(0)
print("skewed example: agreement %.3f, kappa %.3f" % (np.trace(Pk), 1 - (w0 * Pk).sum() / (w0 * np.outer(rk, ck)).sum()))
Printed output from running the code above:
confusion matrix (rows rater 1, cols rater 2):
[[40 31 1]
[21 55 14]
[ 1 15 22]]
observed agreement 0.585, chance agreement 0.374
kappa=0.337 linear weighted=0.434 quadratic weighted=0.556
Low-High confusions: 2 Low-Mid/Mid-High: 81
bootstrap 95% interval for kappa: 0.227 to 0.442
skewed example: agreement 0.920, kappa 0.291
How well do two raters agree beyond chance? Cohen's kappa, weighted kappa for ordered categories, and where the two disagree.
Charts, tables, and diagnostics.
Plain-English reading of the results and what to do next.
See our FAQ for pricing, privacy and how the analysis works.
By MCP Analytics Team. Last updated 5 November 2026. Cite as: MCP Analytics Team (2026). Cohen's kappa agreement. Free tool. https://mcpanalytics.ai/free/standard_kappa_v2. Accessed the date you used it.
Tell us what went wrong, in your own words. We capture the page you're on automatically, so no need to describe where you are.