When two reviewers independently classify the same records, their results may agree frequently simply because both tend to use the same common category. Percentage agreement is useful, but it does not adjust for this expected overlap. Cohen’s kappa provides a standardized measure of agreement beyond the expectation calculated from the reviewers’ marginal category proportions. It is commonly applied to paired categorical ratings. This guide uses original fictional examples from inspection, record review and qualitative coding to show how to calculate the statistic, interpret unusual results and decide what further evidence is needed. All tables contain invented ratings, not actual inspection or research results.
Quick Answer
Calculate observed agreement from the diagonal of a paired-rating table, calculate expected agreement from the marginal proportions, then divide their difference by one minus expected agreement.
Table Of Contents
- Establish The Paired Rating Design
- Worked Example: Build The Two-By-Two Agreement Table
- Worked Example: High Percentage Agreement With Lower Kappa
- Interpret Zero, Negative And Undefined Results
- Worked Example: Calculate Kappa For Three Categories
- Worked Example: Calculate Linear Weighted Kappa
- Distinguish Agreement From Accuracy And Outcome Quality
- Plan A Credible Agreement Study
- Reusable Cohen’s Kappa Worksheet
- Frequently Asked Questions
Establish The Paired Rating Design
The research discussion of measures of agreement gives the conventional Cohen’s kappa formula: observed agreement minus expected agreement, divided by one minus expected agreement. The expected value is calculated from the reviewers’ category-use proportions under the independence model implicit in the statistic.
Both reviewers need to classify the same defined units using compatible categories. If one reviewer examines 100 folders and the other examines a different 100 folders, their overall category percentages do not establish paired agreement. The analysis needs the joint ratings for the same units.
Imagine a fictional printed sample supplier whose two reviewers independently classify each selected folder as within the declared acceptance condition or outside it. They use the same operational definition, and neither reviewer is shown the other’s classification before recording their own result. This design helps distinguish independent initial ratings from a later consensus decision.
Our operational definition examples explain why the classification condition, relevant evidence and exact boundaries must be established before data collection. Our measurement system analysis examples provide a wider context for evaluating whether an observation arrangement supports the intended decision. Kappa measures agreement under its defined model, not accuracy against an independently established correct classification.
Worked Example: Build The Two-By-Two Agreement Table
Suppose the reviewers classify 100 paired folders. Both classify 45 within the condition and 40 outside it. Reviewer A classifies ten within the condition when reviewer B classifies those same folders outside. Reviewer A classifies five outside when reviewer B classifies them within.
| Reviewer A / Reviewer B | Within | Outside | Row Total |
|---|---|---|---|
| Within | 45 | 10 | 55 |
| Outside | 5 | 40 | 45 |
| Column Total | 50 | 50 | 100 |
The diagonal cells contain agreements: 45 plus 40 equals 85. Divide by the total number of paired units, 100, to obtain observed agreement of 0.85, or 85%.
Reviewer A’s marginal proportions are 0.55 within and 0.45 outside. Reviewer B’s marginal proportions are 0.50 within and 0.50 outside. The expected agreement for the within category is 0.55 times 0.50, or 0.275. The expected agreement for the outside category is 0.45 times 0.50, or 0.225. Their sum is 0.50.
Subtract expected agreement from observed agreement: 0.85 minus 0.50 equals 0.35. The denominator is one minus 0.50, or 0.50. Cohen’s kappa is 0.35 divided by 0.50, which equals 0.70.
| Calculation Component | Result |
|---|---|
| Paired Units | 100 |
| Observed Agreements | 85 |
| Observed Agreement | 0.85 |
| Expected Agreement | 0.50 |
| Cohen’s Kappa | 0.70 |
The result does not mean the reviewers agree on only 70% of folders. The observed agreement is 85%. Kappa measures the proportion of the potential agreement beyond its marginal-based expectation that is achieved under the specified calculation.
Preserve the entire joint table when reporting the statistic. A single kappa value cannot show whether disagreements tend to occur in one particular direction. In this example, A classifies ten folders within when B classifies them outside, while the opposite occurs five times. This imbalance may deserve investigation even though the overall agreement is relatively favorable.
Worked Example: High Percentage Agreement With Lower Kappa
Consider another fictional study of 1,000 records, in which the condition of interest is relatively uncommon. Both reviewers classify 970 records as not containing the condition and ten as containing it. Each reviewer identifies ten additional records as containing the condition that the other reviewer does not identify.
| Reviewer A / Reviewer B | Condition Present | Condition Absent | Row Total |
|---|---|---|---|
| Condition Present | 10 | 10 | 20 |
| Condition Absent | 10 | 970 | 980 |
| Column Total | 20 | 980 | 1,000 |
Observed agreement is 980 divided by 1,000, or 0.98. Both reviewers use the present category for 2% of records and the absent category for 98%. Expected agreement is 0.02 times 0.02 plus 0.98 times 0.98, which equals 0.0004 plus 0.9604, or 0.9608.
Kappa is 0.98 minus 0.9608, divided by one minus 0.9608. The numerator is 0.0192 and the denominator is 0.0392. The result is approximately 0.4898. Raw agreement is 98%, substantially higher than in the first example, but kappa is lower.
This result illustrates the influence of marginal category proportions. When both reviewers use one category overwhelmingly, their expected agreement under the kappa calculation is already high. A high observed agreement therefore does not necessarily produce a high kappa.
The positive-agreement calculation provides another useful descriptive perspective. Twice the jointly positive count divided by twice that count plus the two disagreement cells is 20 divided by 40, or 50%. The analogous negative-agreement calculation is 1,940 divided by 1,960, approximately 98.98%. The reviewers agree much more consistently about the common absent condition than about the uncommon present condition.
The appropriate operational response is not to dismiss the statistic or celebrate the 98% agreement without qualification. Investigate the cases involving the uncommon condition, especially if their consequences matter. Our data stratification examples explain how an aggregate measure can conceal meaningful differences among groups.
Interpret Zero, Negative And Undefined Results
The review of interrater reliability and kappa discusses the interpretation of agreement values relative to the expected-agreement baseline. A kappa of zero occurs when observed agreement equals expected agreement. A negative value indicates that observed agreement is lower than that calculated expectation. A value of one represents perfect observed agreement when the denominator is defined.
For a fictional two-category example, imagine that both reviewers classify 50 of 100 units in each category. They agree on ten units in the first category and ten in the second. Forty units fall into each disagreement cell. Observed agreement is 0.20 and expected agreement is 0.50. Kappa equals negative 0.30 divided by 0.50, or negative 0.60.
Investigate the reason for such a result. One reviewer might have reversed category codes, the definitions might be understood differently, or the reviewers might classify units using genuinely different criteria. Negative kappa does not identify which explanation applies. Examine the source ratings and category definitions before making a correction.
There is also an important undefined case. Suppose both reviewers classify all 100 units in exactly the same single category. Observed agreement is one, and expected agreement is also one because both marginal distributions assign all their weight to that category. The formula has a zero denominator and a zero numerator. Ordinary Cohen’s kappa is undefined in that circumstance, despite perfect observed agreement in the sample.
Report the perfect observed agreement and the lack of variation rather than replacing the undefined result with an arbitrary number. If the purpose is to establish whether reviewers can distinguish several categories reliably, a study containing only one observed category may provide inadequate evidence about that distinction.
Worked Example: Calculate Kappa For Three Categories
A fictional reference review team uses three mutually exclusive ordered classifications for an administrative record: complete, clarification required and unacceptable under the declared current review conditions. Two reviewers classify 100 paired records independently.
| Reviewer A / Reviewer B | Complete | Clarification | Unacceptable | Row Total |
|---|---|---|---|---|
| Complete | 30 | 5 | 0 | 35 |
| Clarification | 4 | 25 | 6 | 35 |
| Unacceptable | 1 | 5 | 24 | 30 |
| Column Total | 35 | 35 | 30 | 100 |
The observed agreement is the diagonal sum, 30 plus 25 plus 24, divided by 100, giving 0.79. Expected agreement is 0.35 squared plus 0.35 squared plus 0.30 squared. This equals 0.1225 plus 0.1225 plus 0.09, or 0.335.
Kappa equals 0.79 minus 0.335, divided by one minus 0.335. The result is 0.455 divided by 0.665, approximately 0.6842. The ordinary unweighted calculation treats every off-diagonal classification as a disagreement regardless of the distance between categories.
This interpretation may be appropriate when the categories are nominal or when all disagreements are equally consequential for the question. In this example, however, the team may consider confusion between complete and clarification required differently from confusion between complete and unacceptable. If the category ordering and differences support that distinction, a weighted version can provide additional information.
Worked Example: Calculate Linear Weighted Kappa
The research discussion of agreement among ordinal classifications describes weighted kappa for ordered categories. Define agreement weights consistently. For this illustrative three-category example, assign a weight of one to exact agreement, one-half to adjacent categories and zero to a disagreement spanning the two extreme categories.
| Agreement Weight | Complete | Clarification | Unacceptable |
|---|---|---|---|
| Complete | 1 | 0.5 | 0 |
| Clarification | 0.5 | 1 | 0.5 |
| Unacceptable | 0 | 0.5 | 1 |
The exact-agreement contribution is 79 out of 100, or 0.79. Adjacent disagreements comprise five, four, six and five records, totaling 20. Their weighted contribution is 0.5 times 0.20, or 0.10. The remaining one extreme disagreement receives zero weight. The weighted observed agreement is therefore 0.89.
The expected weighted agreement includes the diagonal contribution of 0.335 and the adjacent-cell contributions. The expected adjacent proportions are 0.35 times 0.35 twice and 0.35 times 0.30 twice. Their total is 0.455, and half of that is 0.2275. Weighted expected agreement is 0.5625.
Weighted kappa is 0.89 minus 0.5625, divided by one minus 0.5625. The result is 0.3275 divided by 0.4375, approximately 0.7486. This differs from the unweighted result of approximately 0.6842 because the scoring convention recognizes partial agreement for adjacent categories.
The weights are part of the model. Do not select weights after examining the ratings simply to obtain a more favorable result. If the categories have no meaningful order, a distance-based weighting scheme may be inappropriate. If the consequences of certain disagreements are especially important, examine those cells separately rather than assume a generic linear weighting adequately represents the decision.
Distinguish Agreement From Accuracy And Outcome Quality
Suppose both reviewers mistakenly use an outdated reference and classify every affected record in the same way. Their agreement can be high even though their classifications do not satisfy the actual requirements. Kappa cannot establish correctness without appropriate independent evidence.
Where a suitable reference classification exists, examine each reviewer’s results against it separately. The resulting analysis answers a different question: whether the reviewer correctly identifies the relevant condition under the reference definition. A comparison between reviewers answers whether they classify the same units consistently. Both questions may matter.
Our quality control plan examples explain why a classification must be connected to an actual requirement, a suitable observation method and an appropriate reaction. A favorable agreement statistic does not authorize releasing a product or service if the actual acceptance evidence is missing.
The same principle applies to qualitative research. Our critical incident technique examples describe how reviewers can develop and apply a codebook. Two reviewers may agree on a code because they share an overly broad interpretation. Examine representative incident evidence and the research purpose as well as the numerical agreement measure.
Plan A Credible Agreement Study
Select paired units representing the relevant range of conditions, including ordinary cases and important borderline cases. Decide whether the sample is intended to represent the actual operational population or deliberately test difficult classifications. Those designs can produce different marginal proportions and agreement results, so their interpretation must remain distinct.
Record initial ratings independently before any discussion that could create consensus. If reviewers later resolve disagreements, preserve both the initial paired ratings and the final adjudicated classifications. Calculating kappa only after the reviewers have agreed on a final label would not measure their original independent agreement.
The research on kappa coefficients for missing data explains why missing ratings require appropriate treatment. If one reviewer has classified a unit and the other has not, the ordinary complete-pair table cannot determine their agreement for that unit. Report missing counts and examine whether missingness is associated with difficult or unusual cases.
For a consequential formal study, include an appropriate confidence interval or other uncertainty assessment. The uncertainty depends on the sample design, number of paired units and category distributions. Avoid treating a numerical cutoff from one field as a universal standard for every kind of classification. Set a justified evaluation criterion in relation to the actual consequences and available evidence.
Consider two additional studies with identical observed agreement but different disagreement patterns. In the first, both reviewers classify 45 records in each of two categories, with five disagreements in each direction. Their marginal proportions are both 50 percent for each category, and kappa is 0.80. In the second, the diagonal cells also contain 45 records each, but all ten disagreements occur in one direction. Reviewer A uses the first category for 55 records while reviewer B uses it for 45. Expected agreement becomes 0.55 times 0.45 plus 0.45 times 0.55, or 0.495; kappa is approximately 0.802. Although the overall agreement and kappa are nearly identical, the second table reveals a consistent direction of disagreement. Reviewing the boundary cases and the observers’ interpretation of the rule can be more useful than trying to improve the headline statistic by a few thousandths.
Reusable Cohen’s Kappa Worksheet
| Field | Record |
|---|---|
| Unit | Same Eligible Item Or Case For Both Reviewers |
| Categories | Definitions, Ordering And Applicable Evidence |
| Design | Independent Initial Ratings And Sample Purpose |
| Joint Table | Paired Counts And Marginal Totals |
| Observed Agreement | Diagonal Sum Divided By Paired Count |
| Expected Agreement | Sum Of Corresponding Marginal Products |
| Kappa | Observed Minus Expected Over One Minus Expected |
| Review | Missing Ratings, Category-Specific Disagreements And Accuracy Evidence |
A good agreement report includes the original joint table, raw agreement, expected agreement, kappa and the important category-specific patterns. It also identifies the evidence needed to determine whether the classifications are actually correct. Use the statistic to improve the reliability of a defined observation arrangement rather than convert it into a stand-alone verdict about the people performing the reviews.
Frequently Asked Questions
What is Cohen’s kappa?
A chance-adjusted agreement statistic for paired categorical ratings by two reviewers.
What is the kappa formula?
Observed agreement minus expected agreement, divided by one minus expected agreement.
How is expected agreement calculated?
Sum the products of corresponding marginal category proportions.
Is kappa the same as percentage agreement?
It adjusts observed agreement relative to a marginal-based expectation; the raw percentage remains a separate measure.
Can kappa be negative?
Yes, when observed agreement is below the calculated expectation.
When is ordinary kappa undefined?
When expected agreement equals one, making its denominator zero.
What is weighted kappa?
A variant that uses specified partial agreement weights, often for ordinal categories.
Does high kappa establish accuracy?
Independent evidence about correctness is still needed.
Why report the joint table?
It reveals disagreement directions and category-specific patterns hidden by a single statistic.
How should missing ratings be handled?
Document missing pairs and use a method appropriate to the actual study design.
