Tukey Q Table (Studentized Range Distribution)
The Tukey q table gives critical values of the studentized range for Tukey’s HSD test after a one-way ANOVA. Choose the table for your α, find the column for the number of groups (k) and the row for the error degrees of freedom (df within): with 3 groups, df = 20 and α = 0.05, q = 3.58. Multiply q by √(MS within / n) to get the honestly significant difference.
Critical q, k = 3 groups, error df = 20, α = 0.05
Two group means differ significantly in Tukey’s HSD test if |difference| / √(MS within / n) is larger than 3.58.
Tukey q table for α = 0.05
| df \ k | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5 | 3.64 | 4.60 | 5.22 | 5.67 | 6.03 | 6.33 | 6.58 | 6.80 | 6.99 | 7.17 | 7.32 | 7.47 | 7.60 | 7.72 | 7.83 | 7.93 | 8.03 | 8.12 | 8.21 |
| 6 | 3.46 | 4.34 | 4.90 | 5.30 | 5.63 | 5.90 | 6.12 | 6.32 | 6.49 | 6.65 | 6.79 | 6.92 | 7.03 | 7.14 | 7.24 | 7.34 | 7.43 | 7.51 | 7.59 |
| 7 | 3.34 | 4.16 | 4.68 | 5.06 | 5.36 | 5.61 | 5.82 | 6.00 | 6.16 | 6.30 | 6.43 | 6.55 | 6.66 | 6.76 | 6.85 | 6.94 | 7.02 | 7.10 | 7.17 |
| 8 | 3.26 | 4.04 | 4.53 | 4.89 | 5.17 | 5.40 | 5.60 | 5.77 | 5.92 | 6.05 | 6.18 | 6.29 | 6.39 | 6.48 | 6.57 | 6.65 | 6.73 | 6.80 | 6.87 |
| 9 | 3.20 | 3.95 | 4.41 | 4.76 | 5.02 | 5.24 | 5.43 | 5.59 | 5.74 | 5.87 | 5.98 | 6.09 | 6.19 | 6.28 | 6.36 | 6.44 | 6.51 | 6.58 | 6.64 |
| 10 | 3.15 | 3.88 | 4.33 | 4.65 | 4.91 | 5.12 | 5.30 | 5.46 | 5.60 | 5.72 | 5.83 | 5.93 | 6.03 | 6.11 | 6.19 | 6.27 | 6.34 | 6.40 | 6.47 |
| 11 | 3.11 | 3.82 | 4.26 | 4.57 | 4.82 | 5.03 | 5.20 | 5.35 | 5.49 | 5.61 | 5.71 | 5.81 | 5.90 | 5.98 | 6.06 | 6.13 | 6.20 | 6.27 | 6.33 |
| 12 | 3.08 | 3.77 | 4.20 | 4.51 | 4.75 | 4.95 | 5.12 | 5.27 | 5.39 | 5.51 | 5.61 | 5.71 | 5.80 | 5.88 | 5.95 | 6.02 | 6.09 | 6.15 | 6.21 |
| 13 | 3.06 | 3.73 | 4.15 | 4.45 | 4.69 | 4.88 | 5.05 | 5.19 | 5.32 | 5.43 | 5.53 | 5.63 | 5.71 | 5.79 | 5.86 | 5.93 | 5.99 | 6.05 | 6.11 |
| 14 | 3.03 | 3.70 | 4.11 | 4.41 | 4.64 | 4.83 | 4.99 | 5.13 | 5.25 | 5.36 | 5.46 | 5.55 | 5.64 | 5.71 | 5.79 | 5.85 | 5.91 | 5.97 | 6.03 |
| 15 | 3.01 | 3.67 | 4.08 | 4.37 | 4.59 | 4.78 | 4.94 | 5.08 | 5.20 | 5.31 | 5.40 | 5.49 | 5.57 | 5.65 | 5.72 | 5.78 | 5.85 | 5.90 | 5.96 |
| 16 | 3.00 | 3.65 | 4.05 | 4.33 | 4.56 | 4.74 | 4.90 | 5.03 | 5.15 | 5.26 | 5.35 | 5.44 | 5.52 | 5.59 | 5.66 | 5.73 | 5.79 | 5.84 | 5.90 |
| 17 | 2.98 | 3.63 | 4.02 | 4.30 | 4.52 | 4.70 | 4.86 | 4.99 | 5.11 | 5.21 | 5.31 | 5.39 | 5.47 | 5.54 | 5.61 | 5.67 | 5.73 | 5.79 | 5.84 |
| 18 | 2.97 | 3.61 | 4.00 | 4.28 | 4.49 | 4.67 | 4.82 | 4.96 | 5.07 | 5.17 | 5.27 | 5.35 | 5.43 | 5.50 | 5.57 | 5.63 | 5.69 | 5.74 | 5.79 |
| 19 | 2.96 | 3.59 | 3.98 | 4.25 | 4.47 | 4.64 | 4.79 | 4.92 | 5.04 | 5.14 | 5.23 | 5.31 | 5.39 | 5.46 | 5.53 | 5.59 | 5.65 | 5.70 | 5.75 |
| 20 | 2.95 | 3.58 | 3.96 | 4.23 | 4.45 | 4.62 | 4.77 | 4.90 | 5.01 | 5.11 | 5.20 | 5.28 | 5.36 | 5.43 | 5.49 | 5.55 | 5.61 | 5.66 | 5.71 |
| 24 | 2.92 | 3.53 | 3.90 | 4.17 | 4.37 | 4.54 | 4.68 | 4.81 | 4.92 | 5.01 | 5.10 | 5.18 | 5.25 | 5.32 | 5.38 | 5.44 | 5.49 | 5.55 | 5.59 |
| 30 | 2.89 | 3.49 | 3.85 | 4.10 | 4.30 | 4.46 | 4.60 | 4.72 | 4.82 | 4.92 | 5.00 | 5.08 | 5.15 | 5.21 | 5.27 | 5.33 | 5.38 | 5.43 | 5.47 |
| 40 | 2.86 | 3.44 | 3.79 | 4.04 | 4.23 | 4.39 | 4.52 | 4.63 | 4.73 | 4.82 | 4.90 | 4.98 | 5.04 | 5.11 | 5.16 | 5.22 | 5.27 | 5.31 | 5.36 |
| 60 | 2.83 | 3.40 | 3.74 | 3.98 | 4.16 | 4.31 | 4.44 | 4.55 | 4.65 | 4.73 | 4.81 | 4.88 | 4.94 | 5.00 | 5.06 | 5.11 | 5.15 | 5.20 | 5.24 |
| 120 | 2.80 | 3.36 | 3.68 | 3.92 | 4.10 | 4.24 | 4.36 | 4.47 | 4.56 | 4.64 | 4.71 | 4.78 | 4.84 | 4.90 | 4.95 | 5.00 | 5.04 | 5.09 | 5.13 |
| ∞ | 2.77 | 3.31 | 3.63 | 3.86 | 4.03 | 4.17 | 4.29 | 4.39 | 4.47 | 4.55 | 4.62 | 4.68 | 4.74 | 4.80 | 4.85 | 4.89 | 4.93 | 4.97 | 5.01 |
Each value is the q with probability 0.05 to its right for k means and the within-groups (error) degrees of freedom of the ANOVA. HSD = q × √(MS within / n).
Tukey q table for α = 0.01
| df \ k | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5 | 5.70 | 6.98 | 7.80 | 8.42 | 8.91 | 9.32 | 9.67 | 9.97 | 10.24 | 10.48 | 10.70 | 10.89 | 11.08 | 11.24 | 11.40 | 11.55 | 11.68 | 11.81 | 11.93 |
| 6 | 5.24 | 6.33 | 7.03 | 7.56 | 7.97 | 8.32 | 8.61 | 8.87 | 9.10 | 9.30 | 9.48 | 9.65 | 9.81 | 9.95 | 10.08 | 10.21 | 10.32 | 10.43 | 10.54 |
| 7 | 4.95 | 5.92 | 6.54 | 7.00 | 7.37 | 7.68 | 7.94 | 8.17 | 8.37 | 8.55 | 8.71 | 8.86 | 9.00 | 9.12 | 9.24 | 9.35 | 9.46 | 9.55 | 9.65 |
| 8 | 4.75 | 5.64 | 6.20 | 6.62 | 6.96 | 7.24 | 7.47 | 7.68 | 7.86 | 8.03 | 8.18 | 8.31 | 8.44 | 8.55 | 8.66 | 8.76 | 8.85 | 8.94 | 9.03 |
| 9 | 4.60 | 5.43 | 5.96 | 6.35 | 6.66 | 6.91 | 7.13 | 7.33 | 7.49 | 7.65 | 7.78 | 7.91 | 8.03 | 8.13 | 8.23 | 8.33 | 8.41 | 8.49 | 8.57 |
| 10 | 4.48 | 5.27 | 5.77 | 6.14 | 6.43 | 6.67 | 6.87 | 7.05 | 7.21 | 7.36 | 7.49 | 7.60 | 7.71 | 7.81 | 7.91 | 7.99 | 8.08 | 8.15 | 8.23 |
| 11 | 4.39 | 5.15 | 5.62 | 5.97 | 6.25 | 6.48 | 6.67 | 6.84 | 6.99 | 7.13 | 7.25 | 7.36 | 7.46 | 7.56 | 7.65 | 7.73 | 7.81 | 7.88 | 7.95 |
| 12 | 4.32 | 5.05 | 5.50 | 5.84 | 6.10 | 6.32 | 6.51 | 6.67 | 6.81 | 6.94 | 7.06 | 7.17 | 7.26 | 7.36 | 7.44 | 7.52 | 7.59 | 7.66 | 7.73 |
| 13 | 4.26 | 4.96 | 5.40 | 5.73 | 5.98 | 6.19 | 6.37 | 6.53 | 6.67 | 6.79 | 6.90 | 7.01 | 7.10 | 7.19 | 7.27 | 7.35 | 7.42 | 7.48 | 7.55 |
| 14 | 4.21 | 4.89 | 5.32 | 5.63 | 5.88 | 6.08 | 6.26 | 6.41 | 6.54 | 6.66 | 6.77 | 6.87 | 6.96 | 7.05 | 7.13 | 7.20 | 7.27 | 7.33 | 7.39 |
| 15 | 4.17 | 4.84 | 5.25 | 5.56 | 5.80 | 5.99 | 6.16 | 6.31 | 6.44 | 6.55 | 6.66 | 6.76 | 6.84 | 6.93 | 7.00 | 7.07 | 7.14 | 7.20 | 7.26 |
| 16 | 4.13 | 4.79 | 5.19 | 5.49 | 5.72 | 5.92 | 6.08 | 6.22 | 6.35 | 6.46 | 6.56 | 6.66 | 6.74 | 6.82 | 6.90 | 6.97 | 7.03 | 7.09 | 7.15 |
| 17 | 4.10 | 4.74 | 5.14 | 5.43 | 5.66 | 5.85 | 6.01 | 6.15 | 6.27 | 6.38 | 6.48 | 6.57 | 6.66 | 6.73 | 6.81 | 6.87 | 6.94 | 7.00 | 7.05 |
| 18 | 4.07 | 4.70 | 5.09 | 5.38 | 5.60 | 5.79 | 5.94 | 6.08 | 6.20 | 6.31 | 6.41 | 6.50 | 6.58 | 6.65 | 6.73 | 6.79 | 6.85 | 6.91 | 6.97 |
| 19 | 4.05 | 4.67 | 5.05 | 5.33 | 5.55 | 5.73 | 5.89 | 6.02 | 6.14 | 6.25 | 6.34 | 6.43 | 6.51 | 6.58 | 6.65 | 6.72 | 6.78 | 6.84 | 6.89 |
| 20 | 4.02 | 4.64 | 5.02 | 5.29 | 5.51 | 5.69 | 5.84 | 5.97 | 6.09 | 6.19 | 6.28 | 6.37 | 6.45 | 6.52 | 6.59 | 6.65 | 6.71 | 6.77 | 6.82 |
| 24 | 3.96 | 4.55 | 4.91 | 5.17 | 5.37 | 5.54 | 5.68 | 5.81 | 5.92 | 6.02 | 6.11 | 6.19 | 6.26 | 6.33 | 6.39 | 6.45 | 6.51 | 6.56 | 6.61 |
| 30 | 3.89 | 4.45 | 4.80 | 5.05 | 5.24 | 5.40 | 5.54 | 5.65 | 5.76 | 5.85 | 5.93 | 6.01 | 6.08 | 6.14 | 6.20 | 6.26 | 6.31 | 6.36 | 6.41 |
| 40 | 3.82 | 4.37 | 4.70 | 4.93 | 5.11 | 5.26 | 5.39 | 5.50 | 5.60 | 5.69 | 5.76 | 5.83 | 5.90 | 5.96 | 6.02 | 6.07 | 6.12 | 6.16 | 6.21 |
| 60 | 3.76 | 4.28 | 4.59 | 4.82 | 4.99 | 5.13 | 5.25 | 5.36 | 5.45 | 5.53 | 5.60 | 5.67 | 5.73 | 5.78 | 5.84 | 5.89 | 5.93 | 5.97 | 6.01 |
| 120 | 3.70 | 4.20 | 4.50 | 4.71 | 4.87 | 5.01 | 5.12 | 5.21 | 5.30 | 5.37 | 5.44 | 5.50 | 5.56 | 5.61 | 5.66 | 5.71 | 5.75 | 5.79 | 5.83 |
| ∞ | 3.64 | 4.12 | 4.40 | 4.60 | 4.76 | 4.88 | 4.99 | 5.08 | 5.16 | 5.23 | 5.29 | 5.35 | 5.40 | 5.45 | 5.49 | 5.54 | 5.57 | 5.61 | 5.65 |
Each value is the q with probability 0.01 to its right for k means and the within-groups (error) degrees of freedom of the ANOVA. HSD = q × √(MS within / n).
Tukey q table for α = 0.1
| df \ k | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5 | 2.85 | 3.72 | 4.26 | 4.66 | 4.98 | 5.24 | 5.46 | 5.65 | 5.82 | 5.97 | 6.10 | 6.22 | 6.34 | 6.44 | 6.54 | 6.63 | 6.71 | 6.79 | 6.86 |
| 6 | 2.75 | 3.56 | 4.07 | 4.44 | 4.73 | 4.97 | 5.17 | 5.34 | 5.50 | 5.64 | 5.76 | 5.88 | 5.98 | 6.07 | 6.16 | 6.25 | 6.32 | 6.40 | 6.47 |
| 7 | 2.68 | 3.45 | 3.93 | 4.28 | 4.55 | 4.78 | 4.97 | 5.14 | 5.28 | 5.41 | 5.53 | 5.64 | 5.74 | 5.83 | 5.91 | 5.99 | 6.06 | 6.13 | 6.19 |
| 8 | 2.63 | 3.37 | 3.83 | 4.17 | 4.43 | 4.65 | 4.83 | 4.99 | 5.13 | 5.25 | 5.36 | 5.46 | 5.56 | 5.64 | 5.72 | 5.80 | 5.87 | 5.93 | 6.00 |
| 9 | 2.59 | 3.32 | 3.76 | 4.08 | 4.34 | 4.54 | 4.72 | 4.87 | 5.01 | 5.13 | 5.23 | 5.33 | 5.42 | 5.51 | 5.58 | 5.66 | 5.72 | 5.79 | 5.85 |
| 10 | 2.56 | 3.27 | 3.70 | 4.02 | 4.26 | 4.47 | 4.64 | 4.78 | 4.91 | 5.03 | 5.13 | 5.23 | 5.32 | 5.40 | 5.47 | 5.54 | 5.61 | 5.67 | 5.73 |
| 11 | 2.54 | 3.23 | 3.66 | 3.96 | 4.20 | 4.40 | 4.57 | 4.71 | 4.84 | 4.95 | 5.05 | 5.15 | 5.23 | 5.31 | 5.38 | 5.45 | 5.51 | 5.57 | 5.63 |
| 12 | 2.52 | 3.20 | 3.62 | 3.92 | 4.16 | 4.35 | 4.51 | 4.65 | 4.78 | 4.89 | 4.99 | 5.08 | 5.16 | 5.24 | 5.31 | 5.37 | 5.44 | 5.49 | 5.55 |
| 13 | 2.50 | 3.18 | 3.59 | 3.88 | 4.12 | 4.30 | 4.46 | 4.60 | 4.72 | 4.83 | 4.93 | 5.02 | 5.10 | 5.18 | 5.25 | 5.31 | 5.37 | 5.43 | 5.48 |
| 14 | 2.49 | 3.16 | 3.56 | 3.85 | 4.08 | 4.27 | 4.42 | 4.56 | 4.68 | 4.79 | 4.88 | 4.97 | 5.05 | 5.12 | 5.19 | 5.26 | 5.32 | 5.37 | 5.43 |
| 15 | 2.48 | 3.14 | 3.54 | 3.83 | 4.05 | 4.23 | 4.39 | 4.52 | 4.64 | 4.75 | 4.84 | 4.93 | 5.01 | 5.08 | 5.15 | 5.21 | 5.27 | 5.32 | 5.38 |
| 16 | 2.47 | 3.12 | 3.52 | 3.80 | 4.03 | 4.21 | 4.36 | 4.49 | 4.61 | 4.71 | 4.80 | 4.89 | 4.97 | 5.04 | 5.11 | 5.17 | 5.23 | 5.28 | 5.33 |
| 17 | 2.46 | 3.11 | 3.50 | 3.78 | 4.00 | 4.18 | 4.33 | 4.46 | 4.58 | 4.68 | 4.77 | 4.86 | 4.93 | 5.01 | 5.07 | 5.13 | 5.19 | 5.24 | 5.30 |
| 18 | 2.45 | 3.10 | 3.49 | 3.77 | 3.98 | 4.16 | 4.31 | 4.44 | 4.55 | 4.65 | 4.75 | 4.83 | 4.90 | 4.97 | 5.04 | 5.10 | 5.16 | 5.21 | 5.26 |
| 19 | 2.45 | 3.09 | 3.47 | 3.75 | 3.97 | 4.14 | 4.29 | 4.42 | 4.53 | 4.63 | 4.72 | 4.80 | 4.88 | 4.95 | 5.01 | 5.07 | 5.13 | 5.18 | 5.23 |
| 20 | 2.44 | 3.08 | 3.46 | 3.74 | 3.95 | 4.12 | 4.27 | 4.40 | 4.51 | 4.61 | 4.70 | 4.78 | 4.85 | 4.92 | 4.99 | 5.05 | 5.10 | 5.16 | 5.20 |
| 24 | 2.42 | 3.05 | 3.42 | 3.69 | 3.90 | 4.07 | 4.21 | 4.34 | 4.44 | 4.54 | 4.63 | 4.71 | 4.78 | 4.85 | 4.91 | 4.97 | 5.02 | 5.07 | 5.12 |
| 30 | 2.40 | 3.02 | 3.39 | 3.65 | 3.85 | 4.02 | 4.16 | 4.28 | 4.38 | 4.47 | 4.56 | 4.64 | 4.71 | 4.77 | 4.83 | 4.89 | 4.94 | 4.99 | 5.03 |
| 40 | 2.38 | 2.99 | 3.35 | 3.60 | 3.80 | 3.96 | 4.10 | 4.21 | 4.32 | 4.41 | 4.49 | 4.56 | 4.63 | 4.69 | 4.75 | 4.81 | 4.86 | 4.90 | 4.95 |
| 60 | 2.36 | 2.96 | 3.31 | 3.56 | 3.75 | 3.91 | 4.04 | 4.16 | 4.25 | 4.34 | 4.42 | 4.49 | 4.56 | 4.62 | 4.67 | 4.73 | 4.78 | 4.82 | 4.86 |
| 120 | 2.34 | 2.93 | 3.28 | 3.52 | 3.71 | 3.86 | 3.99 | 4.10 | 4.19 | 4.28 | 4.35 | 4.42 | 4.48 | 4.54 | 4.60 | 4.65 | 4.69 | 4.74 | 4.78 |
| ∞ | 2.33 | 2.90 | 3.24 | 3.48 | 3.66 | 3.81 | 3.93 | 4.04 | 4.13 | 4.21 | 4.28 | 4.35 | 4.41 | 4.47 | 4.52 | 4.57 | 4.61 | 4.65 | 4.69 |
Each value is the q with probability 0.1 to its right for k means and the within-groups (error) degrees of freedom of the ANOVA. HSD = q × √(MS within / n).
How to use the Tukey q table
- Run the one-way ANOVA and note the number of groups (k), the within-groups mean square (MS within, also called MS error) and its degrees of freedom (N − k).
- Pick the table for your α and read q at column k and row df. If your df is between two rows, use the smaller df or the lookup for the exact value.
- Compute HSD = q × √(MS within / n), where n is the number of observations per group.
- Any two group means that differ by more than the HSD are significantly different.
Worked examples
- Three groups: 3 groups of 8 give df = 24. At α = 0.05, q = 3.53 (the lookup gives 3.532). With MS within = 4.2, HSD = 3.532 × √(4.2 / 8) = 2.56: means more than 2.56 apart differ.
- Four groups: k = 4 and df = 16 give q = 4.05 at α = 0.05.
- Stricter level: k = 3 and df = 20 give q = 3.58 at α = 0.05 and 4.64 at α = 0.01.
- Large samples: with infinite df and k = 2, q = 2.77, which is √2 × 1.96: Tukey’s test with two groups is the usual z-test.
What the table shows
q = (x̄max − x̄min) / √(MSW / n)
The studentized range is the distance between the largest and smallest of k sample means, divided by the standard error of a mean. Tukey’s test compares every pair of means against the q for the whole set of k means, which keeps the chance of any false positive at α. That is why q grows with the number of groups.
With unequal group sizes, use the Tukey-Kramer form: replace n with the harmonic mean of the two groups compared, or compute q for each pair as |x̄ᵢ − x̄ⱼ| / √(MS within / 2 × (1/nᵢ + 1/nⱼ)). The ANOVA itself is tested with the F table. Values here come from the studentized range distribution, computed with the algorithm R uses, and every cell was checked against SciPy.
Questions
- How do you read a Tukey q table?
- Choose the table for your significance level, find the number of groups (k) across the top and the within-groups degrees of freedom down the side. The value where they meet is the critical q for Tukey’s HSD test.
- What are k and df in the Tukey table?
- k is the number of group means being compared, and df is the error (within-groups) degrees of freedom from the ANOVA, which is the total number of observations minus k.
- How do I calculate Tukey’s HSD?
- Multiply the critical q by the square root of MS within divided by the number of observations per group. Two means that differ by more than the HSD are significantly different.
- What is the q value for 3 groups at 0.05?
- It depends on the error df: 3.88 for df = 10, 3.58 for df = 20, 3.49 for df = 30 and 3.31 for infinite df.
- Why does the table start at 5 degrees of freedom?
- Few studies run Tukey’s test with fewer than 5 error degrees of freedom, and the algorithm used here loses accuracy below that. Error df of 5 or more is needed in the lookup as well.
- Is the studentized range table the same as the Tukey table?
- Yes. The Tukey HSD table, q table and studentized range table all list critical values of the studentized range distribution.
Sources
- NIST/SEMATECH e-Handbook of Statistical Methods: Tukey’s method
- Copenhaver MD, Holland B. Computation of the distribution of the maximum studentized range statistic. Journal of Statistical Computation and Simulation 1988;30(1):1–15
- SciPy reference: scipy.stats.studentized_range (used to check every value)
Calculations run in your browser; nothing you enter is sent or stored. Results are checked against SciPy and statsmodels in our test suite. Last updated 5 December 2026.