How to tell if two coders agree: Cohen’s kappa in 5 steps
Code the same sample separately
Pick a sample of the material, for example 20 responses or 10 to 20% of the units, and agree on the codebook first: each category with a short definition and an example. Each person assigns a single category per unit, without seeing what the other chose and without discussing doubtful cases until both are done.
Build the table: one row per unit, one column per coder
Copy the codes into a spreadsheet with three columns: the unit number and the category each coder chose. Categories must be spelled exactly the same in both columns, capitalization included: “Cost” and “cost” count as two different categories. An empty cell is a unit that coder didn’t code.
Count the observed agreement
Cross the two columns in a contingency table: rows are what coder 1 chose; columns, what coder 2 chose. The diagonal holds the matches.
In the example they agreed 6 times on “access”, 5 on “cost” and 5 on “treatment”: 16 out of 20. The observed agreement is po = 16/20 = 0.80.
Remove the agreement expected by chance
If each coder had assigned categories at random, at the rate they used each one, they would still have matched sometimes. That expected agreement is calculated per category, multiplying coder 1’s proportion by coder 2’s, and adding them up. Coder 1 used the categories 8, 6 and 6 times; coder 2, 7, 7 and 6:
pe = (8/20 × 7/20) + (6/20 × 7/20) + (6/20 × 6/20) = 0.140 + 0.105 + 0.090 = 0.335
Kappa compares what was observed with what was expected:
κ = (po − pe) / (1 − pe) = (0.80 − 0.335) / (1 − 0.335) = 0.699
A kappa of 1 is perfect agreement; 0, the agreement chance alone would produce; a negative value, less than chance.
Interpret the result and report it
Report kappa with its interval, the number of units and categories, and the observed agreement. The Landis and Koch scale calls a value between 0.61 and 0.80 “substantial”, but that is a convention, not a threshold.
Also look at where the disagreement concentrates: if one category gathers most of it, refine its definition and repeat the measurement with a new sample. With three or more coders, or with empty cells, Cohen’s kappa isn’t enough: use Fleiss’ kappa or Krippendorff’s alpha.
Other ways to do it
There are other ways to calculate it: with SPSS or R, or in a spreadsheet with the formulas from step 4.
HILO’s calculator is the better fit when you want the result quickly without installing anything: it runs in the browser, it’s free, it needs no sign-up and the data isn’t uploaded to any server. It also picks the measure that fits your data and writes the paragraph for your report. Another tool is the better fit if the calculation needs to live in a reproducible script with the rest of your analysis, if many coders work with a complex design, or if you need measures the calculator doesn’t offer.
Calculate kappa with your own data
Paste your table into the calculator and get the coefficient, its interval and the paragraph for your report.
Reference
- Cohen, J. (1960). A coefficient of agreement for nominal scales. Educational and Psychological Measurement, 20(1), 37–46.
Updated
More guides
How to share a dataset without exposing personal data
Column inventory, what to do with each one, free text, re-identification risk and the code table, in 5 steps.
How to clean a survey dataset before analyzing it
Read the file correctly, find repeats, check columns, spot non-response codes and fix at the source, in 5 steps.
How to merge two survey datasets
Choose between stacking and joining by identifier, check that they measure the same thing, merge and review the result, in 5 steps.
How to code the open-ended responses of a survey
Read a sample, build the categories, assign each response, review and bring them into your dataset, in 5 steps.
How to operationalize a project’s objectives with your variables
Write the objectives, take stock of the variables, match them, define indicators and recognize what’s missing, in 5 steps.