LimitLine

Learn · updated 2026-10-22

Run chart rules: how to spot a real shift

A run chart is your data in time order with a line at the median. No control limits, no assumptions about the distribution, and it works with as few as 10 points. Two simple counts tell you whether the process has shifted.

The two rules. Count only the points that aren't exactly on the median; call that N.

Shift: the longest run on one side of the median is more thanround(log2(N) + 3)Too few crossings: the line crosses the median fewer times thanthe 5% limit of Binomial(N − 1, ½)

Either one is a signal that something changed. For 20 points: a run of 8 or more, or fewer than 6 crossings.

The limits

Points off the median (N)Shift if longest run is more thanShift if crossings are fewer than
1062
1273
1474
1674
1875
2076
2277
2488
2688
2889
30810
35812
40814
45817
50919
60923
70928
80932
90937
1001041

These match the table in the qicharts2 documentation for every N from 10 to 100; LimitLine checks all 91 rows each time this page is built.

Worked example

Twenty readings in time order (LimitLine's run chart example): 31, 29, 33, 30, 32, 35, 36, 34, 37, 38, 36, 39, 40, 38, 41, 39, 42, 43, 41, 44.

Median 37.5Point 1: 31 (in the longest run)Point 2: 29 (in the longest run)Point 3: 33 (in the longest run)Point 4: 30 (in the longest run)Point 5: 32 (in the longest run)Point 6: 35 (in the longest run)Point 7: 36 (in the longest run)Point 8: 34 (in the longest run)Point 9: 37 (in the longest run)Point 10: 38Point 11: 36Point 12: 39 (in the longest run)Point 13: 40 (in the longest run)Point 14: 38 (in the longest run)Point 15: 41 (in the longest run)Point 16: 39 (in the longest run)Point 17: 42 (in the longest run)Point 18: 43 (in the longest run)Point 19: 41 (in the longest run)Point 20: 44 (in the longest run)13579111315171920
The median is 37.5. The square points are the longest runs: points 1 to 9 all below the median, and points 12 to 20 all above it.
  1. Median = 37.5. No point sits exactly on it, so N = 20.
  2. Longest run: 9 points. The limit for N = 20 is 7, so this is a shift.
  3. Crossings: the line crosses the median 3 times. At least 6 are expected by chance, so this is a signal too.

Both rules point the same way: the process moved up partway through, somewhere between points 9 and 12. Find what changed then before reacting to individual values.

What about the trend rule?

Many improvement teams learned the rules from the US Institute for Healthcare Improvement: a shift is 6 or more points on one side of the median, a trend is 5 or more points going up or down. The NHS-R Community's comparison of rule sets (citing Anhøj's simulation studies) reports that the trend rule gives a false signal around 20% of the time and adds little else, and that the longest-run and crossings rules are more specific. That's why LimitLine uses them for its shift verdict.

Run chart or control chart?

Make a run chartFree: paste your values in time order. LimitLine applies these two rules and four classic runs tests.

Sources

  1. qicharts2 (J. Anhøj), “Quality Improvement Charts” vignette: run chart rules and Appendix 2, critical values
  2. J. Anhøj and A. V. Olesen (2014), “Run charts revisited: a simulation study of run chart rules for detection of non-random variation in health care processes”, PLoS ONE 9(11)
  3. NHS-R Community, “A run chart is not a run chart is not a run chart” (comparison of the Perla, Carey and Anhøj rules)
  4. R. J. Perla, L. P. Provost and S. K. Murray (2011), “The run chart: a simple analytical tool for learning from variation in healthcare processes”, BMJ Quality & Safety 20(1)