How this calculation works
Krippendorff alpha compares observed disagreement with disagreement expected from pooled coincidence margins. It can use incomplete item-by-rater data, provided each usable item has at least two observed ratings. The selected nominal, ordinal or interval disagreement metric is part of the definition; missingness is handled transparently rather than interpreted as a new rating category.
alpha=1−Do/De; coincidence counts within item u are weighted by1/(m_u−1), excluding items with fewer than2observed ratings.A worked example
The default incomplete binary rating matrix gives coincidence matrix[[6,1],[1,5]]. Its observed disagreement is2/13and expected disagreement is7/13, so alpha=1−(2/13)/(7/13)=5/7≈0.7142857143.
Good to know
2–500 items,2–20 raters and up to30 distinct observed values. Explicit missing marker; ignore items with fewer than two observed ratings while reporting that exclusion. Nominal, ordinal and interval distance conventions on one page; observed/expected disagreement and coincidence margins. Reject zero expected disagreement and insufficient usable pairs; no automatic bootstrap interval, universal agreement threshold, rater-bias diagnosis or correction for informative missingness.
Reference: Klaus Krippendorff, Computing Krippendorff’s Alpha-Reliability (opens in a new tab) ↗
Measure disagreement with the right data structure
Agreement data consist of several ratings assigned to the same items. Krippendorff alpha compares observed pairwise disagreement with a chance baseline derived from pooled coincidence margins. This differs from a correlation between two numeric columns or a constant-rater nominal count coefficient. The intended values, measurement level and identity of common items determine what comparison is meaningful.
The input is organized as items by raters, with an explicit missing marker. A missing rating is not an additional substantive category. The coefficient can accommodate different observed rater counts across items, but that computational flexibility does not prove that the missingness mechanism is harmless or that every observed rater is interchangeable for the scientific question.
Compare this with the Fleiss kappa calculator for agreement among multiple raters. Build a coincidence matrix from item-by-rater data containing missing ratings and calculate disagreement-based Krippendorff alpha with nominal/ordinal/interval metrics together. Fleiss kappa requires equal rater counts and nominal category counts; it cannot retain incomplete item data under this coefficient.
Identify usable items and metric conventions
An item with fewer than two observed ratings provides no within-item agreement pair. It is excluded from the coincidence calculation and its exclusion is reported. Items with two or more ratings contribute according to their observed count, rather than being forced into a common completed panel. The total number of usable ratings therefore matters alongside the number of original rows.
The nominal metric distinguishes equal from unequal categories. The interval metric uses squared numerical differences. The ordinal convention depends on category ordering and pooled frequency information rather than treating numeric labels as equally spaced measurements. Choosing another metric can change the coefficient and should reflect the meaning of the ratings, not whichever choice produces the most favorable result.
Build the coincidence matrix correctly
For an item with m observed ratings, count its ordered rating pairs and weight them by one divided by m minus one. Summing across usable items creates a symmetric coincidence matrix whose total equals the number of usable ratings. This weighting prevents an item with many ratings from contributing as though every ordered pair were an independent extra rated item.
Observed disagreement applies the selected distance to the coincidence entries and normalizes by their total. Expected disagreement uses the pooled coincidence margins with the finite-sample total-minus-one adjustment. Keeping these two denominators distinct is important. A visually plausible coincidence table can still yield an incorrect alpha if ordinary cross-tabulation or a simple independent-category baseline is substituted.
Follow the incomplete binary example
The default items contain three unanimous zero ratings, one row with two zeros and one one, three unanimous one ratings, a two-rating unanimous-one row and a two-rating unanimous-zero row. Missing entries in the last two rows are excluded as missing, not counted as a third category. Every default item still contains at least two ratings.
The resulting coincidence matrix is six and one in its first row, and one and five in its second. Its total is thirteen, with pooled margins seven and six. Nominal observed disagreement is two thirteenths. Expected disagreement is seven thirteenths, so alpha is five sevenths, approximately0.7142857143. The example verifies missingness, item weighting and the finite-sample expected-disagreement correction.
Interpret negative and undefined results honestly
Perfect observed agreement gives observed disagreement zero and alpha one when expected disagreement is positive. Chance-like disagreement can produce a value near zero, and systematically greater observed disagreement can produce negative alpha. Negative values should not be clipped to zero; they carry information about how the observed ratings compare with the selected baseline.
If every usable rating takes one indistinguishable value, expected disagreement may be zero and the coefficient becomes undefined. That is not automatically perfect reliability on a meaningful range of items. The calculator rejects or explicitly labels this degeneracy rather than replacing zero divided by zero with one. Very few usable pairs also limit the practical evidence behind a finite coefficient.
Check relabeling and scaling properties
Nominal alpha is invariant to a one-to-one relabeling of categories because only equality matters. Ordinal alpha requires the ordering to be retained. For interval data, applying a common nonzero affine change of units scales observed and expected squared disagreements together and leaves their ratio unchanged, apart from numerical rounding.
Independent checks should reproduce author examples and compare a vetted implementation under the same missing-data and metric conventions. Test variable rater counts, excluded singleton items, all-missing rows, perfect agreement and negative-coefficient examples. Verify coincidence totals and margins before only checking the final alpha, since compensating mistakes can occasionally leave a familiar-looking ratio.
Separate a coefficient from a complete reliability study
The initial result is a descriptive reliability coefficient. It does not automatically supply a bootstrap interval, a hypothesis test, a universal acceptable cutoff or a rater-specific bias diagnosis. A threshold appropriate for one coding study may be inappropriate for another with different consequences of disagreement or a much narrower range of items.
Report the original and usable item counts, observed rater counts, missing marker, metric, coincidence margins and coefficient status. Consider why ratings are missing and whether the sampled items represent the intended use. The ability to compute alpha from an incomplete matrix is valuable, but it cannot replace a study design that captures the relevant sources of measurement disagreement.
A few questions, answered
Should I encode missing ratings as a new category?
No. Use the explicit missing marker. Treating absence as a substantive category changes the agreement question and its coincidence counts.
What happens to an item with one rating?
It supplies no within-item pair and is excluded from the calculation, with that exclusion reported.
Can alpha be negative?
Yes. Observed disagreement can exceed the selected chance baseline; negative values must not be silently clipped to zero.
Is all-one-category data automatically perfectly reliable?
Expected disagreement can be zero, making the coefficient undefined. That degeneracy should not be replaced by an invented reliability value.