The guide
Percent agreement flatters raters, so kappa takes away what the margins would give by luck
Two raters who both say Yes most of the time will agree a lot without any skill. Cohen's kappa subtracts that expected agreement, and the result still depends on how the categories are used.
- 0.4000 kappa of the 50 applicants at 70 percent agreement
- 0.1304 and 0.2593 two tables that both agree 60 percent
- 0.1511 to 0.6489 95 percent interval of that 0.4000
- 0.6237 and 0.7036 linear and quadratic weighted kappa, 80 items
- 0.5714 the wrong kappa when the No term is left out
Read the full guide Fold the guide
Agreement you would get for free
Fifty grant proposals are each read by two readers, and each reader says Yes or No. They match on 35 of the 50. That is 70 percent agreement, and it sounds respectable.
Now suppose one reader says Yes to half the proposals and the other says Yes to sixty percent, and neither pays any attention to the proposals themselves. They would still match often. Shuffle one reader’s answers at random and about half of the pairs would still agree.
Cohen’s kappa is built to remove that free agreement. It is a statistic for inter-rater reliability on categorical items, and it runs from minus 1 to 1. A value of 1 means complete agreement, 0 means agreement no better than chance, and below 0 means the raters agree less often than chance would.
How the margins set the baseline
Lay the answers out as a table. Rows hold the first reader’s category, columns hold the second reader’s, and each box counts the items that landed there. The boxes on the diagonal are the matches. Their total over the number of items is the observed agreement, called p_o.
The chance agreement, p_e, comes only from the margins. For each category, multiply the share of items the first rater put there by the share the second rater put there, then add those products over all categories. The reasoning is that if the raters were independent, each would still keep their own habits of how often to use each category.
Then kappa is (p_o - p_e) divided by (1 - p_e). The top is the agreement beyond chance. The bottom is the most agreement beyond chance that was available. Kappa is the share of the available room the raters actually filled.
A worked example you can reproduce
Take the table 20, 5 on the first row and 10, 15 on the second. The diagonal holds 20 and 15, so p_o is 35 over 50, which is 0.7. The first rater said Yes 25 times and the second said Yes 30 times, so the Yes products are 0.5 times 0.6, which is 0.3. The No products are 0.5 times 0.4, which is 0.2. Together p_e is 0.5.
Kappa is (0.7 - 0.5) over (1 - 0.5), which is exactly 0.4 or 2/5. Enter that table in the calculator and it opens with these figures, with the fractions shown rather than only decimals.
Two slips are common. Leave the No term out of p_e and you divide by too little: (0.7 - 0.3) over 0.7 gives 0.5714. Divide by 1 - p_o instead of 1 - p_e and you get 0.2 over 0.3, which is 0.6667. Both are wrong, and both look plausible, so the page shows p_o and p_e side by side.
Same percentage, different kappa
Here is the case that surprises people. In one table the first rater says Yes 60 times and the second says Yes 70 times out of 100, and they match on 60. In another the first says Yes 60 times and the second only 30, and they again match on 60.
Percent agreement is 60 in both. But chance agreement is 0.54 in the first and 0.46 in the second, so kappa is 0.1304 in the first and 0.2593 in the second. The first pair of raters has almost the same habits, so luck already explains most of their matches.
Nothing is broken here. Kappa is doing what it was built for. But it means a kappa cannot be read off percent agreement, and it cannot be compared across studies without knowing how the categories were used.
Prevalence, bias and the number of categories
Writers on the subject name two forces besides skill. The first is prevalence: other things equal, kappa is higher when the categories are used about equally often. The second is bias: kappa is higher when the two raters spread their answers differently, and the effect of bias is larger when kappa is small.
The number of categories matters as well. In a simulation study cited on the Wikipedia page, observers who were 85 percent accurate with equiprobable codes produced kappas of 0.49, 0.60, 0.66 and 0.69 for 2, 3, 5 and 10 codes. The authors concluded that no single kappa value can be called acceptable for every situation.
Working that out under one simple model, where each observer is right 85 percent of the time and errs evenly over the other codes, gives 0.4900, 0.6006, 0.6602 and 0.6944. The model is ours, not the study’s, but it reproduces the figures to two decimals.
The baseline itself deserves care. It is often called agreement by chance, but strictly it is the agreement expected from random allocation given the margins. Scott’s pi differs on exactly this point: it pools the two raters’ margins into one shared distribution, while Cohen’s kappa lets each rater keep their own.
Quantity against allocation
Two tables of 16 items show why one number can hide the story. In the first, one rater puts 15 items in the first category and the other puts just one there, so the disagreement is about quantity. In the second, both raters use the categories equally often but disagree about which items belong where.
Their kappas are 0.0088 and minus 0.0667, which round to 0.01 and minus 0.07. Percent agreement is 12.5 and 87.5. The same near-zero kappa is attached to very different kinds of failure.
That is why the calculator also prints each rater’s share of every category and the gap in the largest one. The shares tell you whether the raters differ in how much they use a category. Kappa alone cannot.
Near misses and weights
When categories have an order, such as low, middle and high, a rating of low against high is worse than low against middle. Weighted kappa gives that partial credit. Each box gets a weight for how far it sits from the diagonal, either the distance itself (linear) or its square (quadratic).
The weighted value is 1 minus the weighted sum of observed counts over the weighted sum of expected counts. Weights of 1 everywhere off the diagonal give back the plain kappa, and on a two-by-two table every weighting gives the same number, since the only miss is one step.
Take the 80-item table 22, 6, 1, then 5, 18, 7, then 1, 4, 16. Plain kappa is 0.5476. Linear weights raise it to 0.6237 and quadratic weights to 0.7036, because most disagreements sit next to the diagonal. Choose the weighting before looking at the result, and use it only when the order is real.
An interval, and two ways to get it
A single kappa is an estimate from one set of items. The standard error is the standard deviation of that estimate across repeated samples, and a 95 percent interval is kappa plus or minus 1.96 standard errors. That interval does not mean a 95 percent chance that the true value lies inside it. It describes how the method behaves over repeated samples.
For the 50 applicants the asymptotic standard error is 0.1270, so the interval runs from 0.1511 to 0.6489. The formula is a large-sample result, and the page checks it two ways: against a delta-method calculation, which approximates the variance by a first-order Taylor expansion, and against a jackknife.
The jackknife leaves out one item at a time and recomputes kappa. It gives 0.1299 here, within 3 percent of the formula. Items in the same box give the same leave-one-out value, so the page works box by box, which equals the item-by-item result exactly. With few items or very uneven margins the two can differ widely, and the interval should be read as rough.
Why the bands are opinion
Landis and Koch proposed labels: below 0 none, 0 to 0.20 slight, 0.21 to 0.40 fair, 0.41 to 0.60 moderate, 0.61 to 0.80 substantial, and 0.81 to 1 almost perfect. Under them the 0.4 above is fair, not moderate, which is an easy slip to make.
The Wikipedia page notes that these bands are not universally accepted, that their authors supplied no evidence and based them on personal opinion, and that other writers offer different rules of thumb. A general account of inter-rater reliability says kappa reaches very high values only when agreement is good and the target condition occurs near half the time.
So treat a band as a way of talking, not a test. Whether a given kappa is good enough depends on what the ratings will be used for, what a wrong rating costs, and how the categories were used.
What this cannot do
Cohen’s kappa is for two raters. For more than two, Fleiss’s kappa is a different statistic, and the calculator does not compute it. It also does not handle continuous ratings, where the intraclass correlation family is the related tool, and it does not judge a rater, a test or a person. It describes one data set.
The two-by-two form has a long history in weather verification, where it is called the Heidke skill score. In the language of a forecast contingency table it is hits plus correct rejections, minus the correct forecasts expected by chance, divided by the total minus that same chance term.
On the page, the counts are whole numbers with up to nine digits, and the sums run in a background worker thread so a large table cannot freeze the window. Numbers are printed with the browser’s own number formatting. Neither detail changes a result.
This is educational material, not advice. It does not tell you whether your raters are good enough, and the bands are only opinion.
Sources
Every source consulted for this guide. Links checked November 11, 2026.
- Cohen's kappa Wikipedia
- Inter-rater reliability Wikipedia
- Scott's pi Wikipedia
- Fleiss's kappa Wikipedia
- Confusion matrix Wikipedia
- Jackknife resampling Wikipedia
- Delta method Wikipedia
- Standard error Wikipedia
- Confidence interval Wikipedia
- Forecast Verification Glossary NOAA Space Weather Prediction Center
- Intraclass correlation Wikipedia
- Web Workers API MDN Web Docs
- Intl.NumberFormat MDN Web Docs