Cohen’s Kappa Calculator

Cohen's Kappa Calculator

Enter how often two raters agreed in a confusion matrix. The calculator returns Cohen's κ, its standard error and 95% confidence interval, plus weighted κ for ordered categories.

Table size
Confusion matrix — rows: Rater 1, columns: Rater 2

Counts go in the cells. The diagonal (shaded) is where the raters agreed. Totals update as you type.

COHEN'S KAPPA · N = 100
0.5697
Moderate agreement

The raters agree on 75% of cases, but chance alone would give 41.9% — so agreement beyond chance is moderate.

Observed agreement P₀
0.7500
Expected agreement P₁
0.4190
Standard error
0.0745
z statistic
7.6441
p-value
< 0.0001
95% confidence interval
[0.4236, 0.7158]
Weighted κ (linear) 0.5634 · P₀w 0.845 · P₁w 0.645

Calculation

    Agreement vs chance agreement

    Observed agreement (P₀) is well above the agreement expected by chance (P₁). Weighted κ uses linear weights, so disagreements one category apart count half as much.

    Kappa is the share of the agreement left after chance is removed: (0.75 − 0.419) ÷ (1 − 0.419) = 0.5697. Read it with its confidence interval, not on its own.

    Cohen's kappa measures how much two raters agree beyond chance — the standard statistic for coding reliability in thesis research. Raw percent agreement flatters raters who mostly pick the same category; kappa corrects for that. This calculator returns kappa, its standard error and confidence interval, plus weighted kappa for ordered categories.

    Try it now: the calculator above already holds Worked Example 1 — two radiologists classifying 100 scans. Press Calculate and you get κ = 0.5697. Or press Load Example 2 for the two-coder case (κ = 0.675). Change any cell and the results update as you type.

    How to use the Cohen's kappa calculator

    1. Choose the table size — 2 × 2 up to 5 × 5, matching the number of categories your raters used. Both raters must use the same categories.
    2. Enter the counts in the confusion matrix. Rows are Rater 1, columns are Rater 2, so the cell in row A, column B is the number of cases Rater 1 called A and Rater 2 called B. The diagonal (shaded) is where the raters agreed. Row and column totals update as you type.
    3. Read the headline κ — the big number is Cohen's kappa, with its Landis–Koch band underneath. The tiles give observed and expected agreement, the standard error, z, the p-value and the 95% confidence interval.
    4. Check the weighted κ — for ordered categories (for example mild, moderate, severe), the weighted kappa below the tiles gives partial credit for near misses. For a 2 × 2 table it is identical to unweighted κ.
    5. Work through the ledger — the Calculation steps show every number from your table, so you can copy the working into your thesis or report.

    What Cohen's kappa measures

    Two raters can agree by accident. If both radiologists call most scans 'normal', they will agree on most cases even if neither is paying attention. Percent agreement counts that luck as success. Kappa removes it:

    κ = (P₀ − P₁) / (1 − P₁)

    where P₀ is the observed agreement — the share of cases on the diagonal of the table — and P₁ is the expected agreement, the agreement you would get if the two raters were independent, worked out from the row and column totals. Kappa is the share of the agreement left after chance is removed: 0 means the raters agree exactly as much as chance predicts, 1 means perfect agreement, and a negative kappa means they agree less than chance.

    The standard error is the large-sample (asymptotic) standard error of kappa, SE = √[P₀(1 − P₀) / (N(1 − P₁)²)] (Cohen, 1960). Dividing κ by its standard error gives z, and the two-tailed p-value comes from the standard normal distribution. The 95% confidence interval is κ ± 1.96 × SE. With perfect agreement (P₀ = 1) the standard error is 0, z is undefined and the p-value is reported as p < 0.0001.

    How to read the results

    The Landis–Koch bands

    Landis and Koch (1977) gave the standard labels for kappa. They are a guide, not a verdict — always report the confidence interval alongside the band.

    KappaStrength of agreement
    ≤ 0Poor
    0.01 – 0.20Slight
    0.21 – 0.40Fair
    0.41 – 0.60Moderate
    0.61 – 0.80Substantial
    0.81 – 1.00Almost perfect

    Weighted kappa

    When the categories are ordered — mild, moderate, severe, for example — not all disagreements are equal. A rater who says 'mild' when the other says 'moderate' is closer than one who says 'severe'. Weighted kappa gives partial credit for near misses, using linear weights: w = 1 − |i − j| / (k − 1), so a disagreement one category apart counts half, two apart counts nothing (for three categories). P₀w and P₁w are the weighted versions of observed and expected agreement, and κw = (P₀w − P₁w) / (1 − P₁w). For a 2 × 2 table the linear weights are 1 on the diagonal and 0 off it, so weighted kappa is identical to unweighted kappa.

    The kappa paradox. Kappa can be low even when the raters agree on 90% of cases. When almost every case falls in one category, chance agreement is already very high, so there is little room left for kappa to grow. A study where 95 of 100 cases are 'normal' can show 95% agreement and still give a modest kappa. The paradox is not a fault in kappa — it is kappa doing its job. Report the raw agreement and the marginal totals alongside kappa so the reader can see why.

    Worked example 1 — two radiologists

    Two radiologists independently classify 100 chest scans as normal, borderline or abnormal. The table below is rows = Rater 1, columns = Rater 2.

    Rater 2: NormalRater 2: BorderlineRater 2: AbnormalTotal
    Rater 1: Normal455252
    Rater 1: Borderline625334
    Rater 1: Abnormal45514
    Total553510100

    Step 1 — observed agreement. The diagonal is 45 + 25 + 5 = 75, so P₀ = 75 / 100 = 0.7500.

    Step 2 — expected agreement. From the marginals, P₁ = (52 × 55 + 34 × 35 + 14 × 10) / 100² = 4190 / 10000 = 0.4190.

    Step 3 — kappa. κ = (0.7500 − 0.4190) / (1 − 0.4190) = 0.3310 / 0.5810 = 0.5697.

    Step 4 — standard error, z and the interval. SE = √[0.75 × 0.25 / (100 × 0.5810²)] = 0.0745. z = 0.5697 / 0.0745 = 7.6441, p < 0.0001. The 95% confidence interval is 0.5697 ± 1.96 × 0.0745 = [0.4236, 0.7158].

    Step 5 — weighted kappa. With linear weights, P₀w = 0.845 and P₁w = 0.645, so κw = (0.845 − 0.645) / (1 − 0.645) = 0.5634 — nearly identical to the unweighted kappa here, because most disagreements are one category apart.

    Interpretation. The raters agree on 75% of cases, but chance alone would give 41.9% — so the agreement beyond chance is moderate (κ = 0.57, 95% CI 0.42–0.72) by the Landis–Koch bands, and it is clearly greater than zero (p < 0.001). Even the lower end of the interval (0.42) is still moderate, so the conclusion does not hinge on a single point estimate.

    Worked example 2 — two coders

    Two coders independently classify 80 interview extracts as 'present' or 'absent' for a theme. The 2 × 2 table is rows = Coder 1, columns = Coder 2.

    Coder 2: PresentCoder 2: AbsentTotal
    Coder 1: Present35540
    Coder 1: Absent83240
    Total433780

    Observed agreement: P₀ = (35 + 32) / 80 = 0.8375. Expected agreement: P₁ = (40 × 43 + 40 × 37) / 80² = 3200 / 6400 = 0.5000. Kappa: κ = (0.8375 − 0.5000) / (1 − 0.5000) = 0.675. Standard error: SE = √[0.8375 × 0.1625 / (80 × 0.5000²)] = 0.0825. z = 0.675 / 0.0825 = 8.1828, p < 0.0001. 95% CI = 0.675 ± 1.96 × 0.0825 = [0.5133, 0.8367]. Weighted kappa is identical here (κw = 0.675), because a 2 × 2 table has no partial credit to give.

    Interpretation. Agreement is substantial (κ = 0.68, 95% CI 0.51–0.84). Even the lower bound of the interval (0.51) is still moderate, so the coders' agreement is solid rather than borderline. For a thesis, report the kappa with its interval and the raw agreement (83.8%) so the reader can see both.

    Edge cases

    • Perfect agreement — every case on the diagonal. Then P₀ = 1, κ = 1.0 and the standard error is 0. The z statistic is undefined (you cannot divide by zero), so the calculator reports z as — and p < 0.0001.
    • Chance agreement — the raters agree exactly as often as chance predicts (P₀ = P₁). Then κ = 0, z = 0 and p = 1.0.
    • Negative kappa — the raters agree less often than chance. This usually means the raters are systematically using the categories differently, or the coding scheme is unclear. Check the off-diagonal cells for a pattern before trusting the number.
    • All ratings in one category — kappa is undefined, because chance agreement is 100% and there is nothing left to correct for. The calculator says so instead of returning a number.

    Assumptions and limitations

    • Two raters, same categories. Cohen's kappa is for exactly two raters using the same set of categories. With three or more raters, use Fleiss' kappa instead.
    • Nominal categories. Unweighted kappa treats every disagreement as equal. If the categories are ordered, use the weighted kappa and say which weights you used (this calculator uses linear weights).
    • Independent ratings. Each rater must classify each case without seeing the other's ratings. If they discussed the cases first, kappa overstates the agreement.
    • Prevalence and bias matter. Kappa falls when one category dominates (the paradox above) and when the raters' marginal distributions differ. Two studies with the same percent agreement can have very different kappas, so compare kappas only across similar tables.
    • Sample size. The confidence interval uses the large-sample approximation, so it is most trustworthy with N of 30 or more. With a small sample, report the interval and treat the point estimate with caution.
    • Kappa is not a validity measure. Two raters can agree perfectly and both be wrong. Kappa measures agreement, not accuracy against a gold standard.

    If your design is paired before-and-after data on the same subjects, the McNemar test is the right tool. If you are checking the reliability of a multi-item scale rather than the agreement between two raters, use the Cronbach's alpha calculator — scale reliability is a different concept from inter-rater agreement. And if your table is a test of association rather than agreement, the chi-square test is the one to use.

    How to report Cohen's kappa in APA style

    Report the kappa value, its confidence interval and the p-value, and name the statistic and the number of cases. Copy the sentence and change the numbers to yours:

    Inter-rater reliability was moderate, Cohen's κ = .57, 95% CI [.42, .72], p < .001.

    For Worked Example 2: Inter-rater reliability was substantial, Cohen's κ = .68, 95% CI [.51, .84], p < .001.

    Template: Inter-rater reliability was [band], Cohen's κ = [value], 95% CI [lower, upper], p [value], based on N = [number] cases rated by two raters. If you used weighted kappa, add 'weighted kappa with linear weights' after the value. For planning the next round of coding, the sample size calculator works out how many cases you need for a narrower interval. The effect size calculator is a separate tool for standardised effect sizes.

    Cite this tool. Cohen's kappa calculator, Empirical Rule Calculators. If you used it in a thesis, cite Cohen (1960) for the statistic and Landis and Koch (1977) for the interpretation bands, and give the page address in your reference list.

    Frequently asked questions

    Why not just use percent agreement?

    Percent agreement flatters raters who mostly pick the same category. If 90% of cases are 'normal', two raters who guess 'normal' every time agree on 90% of cases without ever looking at the scans. Kappa subtracts the agreement chance alone would produce, so it tells you how much the raters agree beyond luck. Report both — the raw agreement and kappa — so the reader can see the whole picture.

    What is a good kappa value?

    By the Landis–Koch bands, 0.61–0.80 is substantial and 0.81–1.00 is almost perfect. In practice, many journals and theses accept 0.60 and above as good, and 0.40–0.60 as acceptable for exploratory coding. The band matters less than the confidence interval: a kappa of 0.65 with a 95% CI of [0.40, 0.90] is a weaker claim than a kappa of 0.65 with a CI of [0.58, 0.72].

    What is weighted kappa and when do I use it?

    Weighted kappa gives partial credit for near misses when the categories are ordered — for example mild, moderate and severe. With linear weights, a disagreement one category apart counts half as much as a full disagreement, and two categories apart counts as a full disagreement. Use it when the ordering matters; for unordered categories (for example red, blue, green) use the unweighted kappa. For a 2 × 2 table the two are identical.

    Can kappa be negative?

    Yes. A negative kappa means the raters agree less often than chance would predict — they are systematically disagreeing. It usually points to a problem with the coding scheme, the training, or the category definitions, rather than to a real effect. Look at the off-diagonal cells: a strong pattern there often shows that one rater is using a category the other never uses.

    Why is my kappa low when agreement is 90%?

    That is the kappa paradox. When almost every case falls in one category, chance agreement is already very high — two raters who both say 'normal' 90% of the time agree on about 81% of cases by luck alone. Kappa measures only the agreement above chance, so it stays low even though the raw agreement looks high. Report the raw agreement, the marginal totals and the kappa together, and consider whether your categories are too lopsided to be informative.

    Sources: Cohen, J. (1960). A coefficient of agreement for nominal scales. Educational and Psychological Measurement, 20(1), 37–46. Fleiss, J. L., Cohen, J., & Everitt, B. S. (1969). Large sample standard errors of kappa and weighted kappa. Psychological Bulletin, 72(5), 323–327. Landis, J. R., & Koch, G. G. (1977). The measurement of observer agreement for categorical data. Biometrics, 33(1), 159–174. Fleiss, J. L. (1981). Statistical Methods for Rates and Proportions (2nd ed.). Wiley. z and p-values checked against SciPy 1.11.4 (scipy.stats.norm). For related tools, see the correlation coefficient calculator and the sign test calculator.

    Next steps

    Keep going with the tools that pair with Cohen’s kappa.

    📊● LiveReliability

    Cronbach’s Alpha Calculator

    Check the internal consistency of a multi-item scale with raw and standardised alpha, a Feldt confidence interval and alpha-if-deleted.

    Try Calculator →

    🔀● LivePaired Test

    McNemar Test Calculator

    Test a change in paired before-and-after proportions with the exact binomial p-value and an odds ratio.

    Try Calculator →

    📊● LiveHypothesis Test

    Chi-Square Test Calculator

    Test independence in a contingency table or goodness of fit, with expected counts and residuals.

    Try Calculator →

    More Tools to Explore

    Keep going with the calculators that pair with Cohen's kappa.

    📊● LiveReliability

    Cronbach's Alpha Calculator

    Check the internal consistency of a multi-item scale with raw and standardised alpha and a Feldt confidence interval.

    Try Calculator →
    🔀● LivePaired Test

    McNemar Test Calculator

    Test a change in paired before-and-after proportions with the exact binomial p-value and an odds ratio.

    Try Calculator →
    📊● LiveHypothesis Test

    Chi-Square Test Calculator

    Test independence in a contingency table or goodness of fit, with expected counts and residuals.

    Try Calculator →
    🔀● LivePaired Test

    Sign Test Calculator

    Test the median of paired differences with the exact binomial sign test, no normality needed.

    Try Calculator →
    📊● LiveCorrelation

    Correlation Coefficient Calculator

    Find Pearson's r, its p-value and confidence interval for two variables, with a scatter plot.

    Try Calculator →
    📊● LiveStudy Design

    Sample Size Calculator

    Work out how many cases you need for a mean or a proportion at your chosen confidence level.

    Try Calculator →
    🧭● LiveExplore All Tools

    Explore All Tools

    Browse all the free statistics tools on this site in one place.

    Browse All Tools