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.

Find the critical value of q

One-way ANOVA: N − k.

The tables print 0.05, 0.01 and 0.10.

With n per group, gives the HSD.

Critical q, k = 3 groups, error df = 20, α = 0.05

3.578

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

Columns are the number of groups k, rows the error df. Example: k = 3, df = 20 gives 3.58.
Critical values of the studentized range q for α = 0.05: number of groups k across, error degrees of freedom down.
df \ k234567891011121314151617181920
53.644.605.225.676.036.336.586.806.997.177.327.477.607.727.837.938.038.128.21
63.464.344.905.305.635.906.126.326.496.656.796.927.037.147.247.347.437.517.59
73.344.164.685.065.365.615.826.006.166.306.436.556.666.766.856.947.027.107.17
83.264.044.534.895.175.405.605.775.926.056.186.296.396.486.576.656.736.806.87
93.203.954.414.765.025.245.435.595.745.875.986.096.196.286.366.446.516.586.64
103.153.884.334.654.915.125.305.465.605.725.835.936.036.116.196.276.346.406.47
113.113.824.264.574.825.035.205.355.495.615.715.815.905.986.066.136.206.276.33
123.083.774.204.514.754.955.125.275.395.515.615.715.805.885.956.026.096.156.21
133.063.734.154.454.694.885.055.195.325.435.535.635.715.795.865.935.996.056.11
143.033.704.114.414.644.834.995.135.255.365.465.555.645.715.795.855.915.976.03
153.013.674.084.374.594.784.945.085.205.315.405.495.575.655.725.785.855.905.96
163.003.654.054.334.564.744.905.035.155.265.355.445.525.595.665.735.795.845.90
172.983.634.024.304.524.704.864.995.115.215.315.395.475.545.615.675.735.795.84
182.973.614.004.284.494.674.824.965.075.175.275.355.435.505.575.635.695.745.79
192.963.593.984.254.474.644.794.925.045.145.235.315.395.465.535.595.655.705.75
202.953.583.964.234.454.624.774.905.015.115.205.285.365.435.495.555.615.665.71
242.923.533.904.174.374.544.684.814.925.015.105.185.255.325.385.445.495.555.59
302.893.493.854.104.304.464.604.724.824.925.005.085.155.215.275.335.385.435.47
402.863.443.794.044.234.394.524.634.734.824.904.985.045.115.165.225.275.315.36
602.833.403.743.984.164.314.444.554.654.734.814.884.945.005.065.115.155.205.24
1202.803.363.683.924.104.244.364.474.564.644.714.784.844.904.955.005.045.095.13
∞2.773.313.633.864.034.174.294.394.474.554.624.684.744.804.854.894.934.975.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

A stricter level. Example: k = 3, df = 20 gives 4.64.
Critical values of the studentized range q for α = 0.01: number of groups k across, error degrees of freedom down.
df \ k234567891011121314151617181920
55.706.987.808.428.919.329.679.9710.2410.4810.7010.8911.0811.2411.4011.5511.6811.8111.93
65.246.337.037.567.978.328.618.879.109.309.489.659.819.9510.0810.2110.3210.4310.54
74.955.926.547.007.377.687.948.178.378.558.718.869.009.129.249.359.469.559.65
84.755.646.206.626.967.247.477.687.868.038.188.318.448.558.668.768.858.949.03
94.605.435.966.356.666.917.137.337.497.657.787.918.038.138.238.338.418.498.57
104.485.275.776.146.436.676.877.057.217.367.497.607.717.817.917.998.088.158.23
114.395.155.625.976.256.486.676.846.997.137.257.367.467.567.657.737.817.887.95
124.325.055.505.846.106.326.516.676.816.947.067.177.267.367.447.527.597.667.73
134.264.965.405.735.986.196.376.536.676.796.907.017.107.197.277.357.427.487.55
144.214.895.325.635.886.086.266.416.546.666.776.876.967.057.137.207.277.337.39
154.174.845.255.565.805.996.166.316.446.556.666.766.846.937.007.077.147.207.26
164.134.795.195.495.725.926.086.226.356.466.566.666.746.826.906.977.037.097.15
174.104.745.145.435.665.856.016.156.276.386.486.576.666.736.816.876.947.007.05
184.074.705.095.385.605.795.946.086.206.316.416.506.586.656.736.796.856.916.97
194.054.675.055.335.555.735.896.026.146.256.346.436.516.586.656.726.786.846.89
204.024.645.025.295.515.695.845.976.096.196.286.376.456.526.596.656.716.776.82
243.964.554.915.175.375.545.685.815.926.026.116.196.266.336.396.456.516.566.61
303.894.454.805.055.245.405.545.655.765.855.936.016.086.146.206.266.316.366.41
403.824.374.704.935.115.265.395.505.605.695.765.835.905.966.026.076.126.166.21
603.764.284.594.824.995.135.255.365.455.535.605.675.735.785.845.895.935.976.01
1203.704.204.504.714.875.015.125.215.305.375.445.505.565.615.665.715.755.795.83
∞3.644.124.404.604.764.884.995.085.165.235.295.355.405.455.495.545.575.615.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

A more lenient level, used in some exploratory work.
Critical values of the studentized range q for α = 0.1: number of groups k across, error degrees of freedom down.
df \ k234567891011121314151617181920
52.853.724.264.664.985.245.465.655.825.976.106.226.346.446.546.636.716.796.86
62.753.564.074.444.734.975.175.345.505.645.765.885.986.076.166.256.326.406.47
72.683.453.934.284.554.784.975.145.285.415.535.645.745.835.915.996.066.136.19
82.633.373.834.174.434.654.834.995.135.255.365.465.565.645.725.805.875.936.00
92.593.323.764.084.344.544.724.875.015.135.235.335.425.515.585.665.725.795.85
102.563.273.704.024.264.474.644.784.915.035.135.235.325.405.475.545.615.675.73
112.543.233.663.964.204.404.574.714.844.955.055.155.235.315.385.455.515.575.63
122.523.203.623.924.164.354.514.654.784.894.995.085.165.245.315.375.445.495.55
132.503.183.593.884.124.304.464.604.724.834.935.025.105.185.255.315.375.435.48
142.493.163.563.854.084.274.424.564.684.794.884.975.055.125.195.265.325.375.43
152.483.143.543.834.054.234.394.524.644.754.844.935.015.085.155.215.275.325.38
162.473.123.523.804.034.214.364.494.614.714.804.894.975.045.115.175.235.285.33
172.463.113.503.784.004.184.334.464.584.684.774.864.935.015.075.135.195.245.30
182.453.103.493.773.984.164.314.444.554.654.754.834.904.975.045.105.165.215.26
192.453.093.473.753.974.144.294.424.534.634.724.804.884.955.015.075.135.185.23
202.443.083.463.743.954.124.274.404.514.614.704.784.854.924.995.055.105.165.20
242.423.053.423.693.904.074.214.344.444.544.634.714.784.854.914.975.025.075.12
302.403.023.393.653.854.024.164.284.384.474.564.644.714.774.834.894.944.995.03
402.382.993.353.603.803.964.104.214.324.414.494.564.634.694.754.814.864.904.95
602.362.963.313.563.753.914.044.164.254.344.424.494.564.624.674.734.784.824.86
1202.342.933.283.523.713.863.994.104.194.284.354.424.484.544.604.654.694.744.78
∞2.332.903.243.483.663.813.934.044.134.214.284.354.414.474.524.574.614.654.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

  1. 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).
  2. 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.
  3. Compute HSD = q × √(MS within / n), where n is the number of observations per group.
  4. 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