Grubbs test calculator.
Paste your data. Get Grubbs’ G, its exact critical value at your alpha, the p-value and the point it flags, checked against Dixon’s Q, with a plot of where every value sits. One suspected outlier, normal data, honest maths.
Grubbs assumes the remaining values are normal. Bench checks normality and runs the full analysis on the same data, deterministic and NIST-validated, free in your browser.
The method.
Grubbs’ test asks how far the most extreme value sits from the mean, measured in sample standard deviations. That distance is G. If the data are normal and there is no outlier, a large G is unlikely, and the critical value is the G that would happen by chance only alpha of the time. Because the most extreme of n values is always the one tested, the critical value grows with n.
The critical value here is computed exactly from the t distribution for your n and alpha, not looked up, so it works for any sample size from 3 to 1,000. For n up to 50 at alpha 0.05 and 0.01 it matches the site’s Grubbs critical value table to four decimals.
Dixon’s Q is a second opinion with a different idea: it divides the gap between the suspect and its nearest neighbour by the whole range. It needs no mean or standard deviation, which makes it popular for very small samples, but its critical values have no closed form and come from the Dixon Q table, which stops at n = 30.
The maths, in the open.
G = max |xi − x̄| / s · s is the sample standard deviation (n − 1)
Gcrit = (n − 1) / √n × √[ t² / (n − 2 + t²) ], t = t1 − α/(2n), n−2 (two-sided) or t1 − α/n, n−2 (one end)
Q = gap / range = |suspect − nearest neighbour| / (max − min)
Worked example. The values 10.2, 9.8, 10.1, 10.0, 9.9, 10.3, 10.1, 9.7, 10.0 and 11.4 have a mean of 10.15 and a sample standard deviation of 0.4743. The most extreme is 11.4, so G = (11.4 − 10.15) / 0.4743 = 2.635. For n = 10 at alpha 0.05, two-sided, Gcrit = 2.290, so 11.4 is flagged, with p = 0.0012.
Dixon agrees: sorted, 11.4 sits 1.1 above its neighbour 10.3 in a range of 1.7, so Q = 1.1 / 1.7 = 0.647 against a critical 0.466. Remove 11.4 and run Grubbs again and G drops to 1.64 against a critical 2.22: nothing else stands out.
Common pitfalls.
Running the test again and again, deleting a point each time, is the classic misuse. Each pass makes the next value look more extreme, so the false-alarm rate climbs well above alpha and the method eventually rejects good data. If you expect several outliers, decide how many in advance and use the generalised ESD test.
Two outliers on the same side can also hide each other, called masking: each one inflates the standard deviation and the gap the other is measured against, so neither test flags anything. If the plot shows two values pulling away together, test them as a pair. And on strongly skewed data, such as times, sizes or counts, the far tail will look like outliers that are simply part of the distribution; transform the data first.
Outlier tests, answered.
How do you calculate Grubbs’ test?
Compute the mean and sample standard deviation, take the value furthest from the mean, and divide its distance from the mean by the standard deviation. That is G. If G is larger than the critical value for your sample size and alpha, the value is a statistical outlier.
What is the Grubbs test critical value?
It is Gcrit = (n − 1) / √n × √[t² / (n − 2 + t²)], where t is the t-distribution quantile at 1 − alpha / (2n) with n − 2 degrees of freedom for a two-sided test. For n = 10 at alpha 0.05 it is 2.290.
Grubbs or Dixon’s Q: which should I use?
Grubbs is the more powerful test for one outlier in normal data and works at any sample size. Dixon’s Q is quick to do by hand and common in analytical chemistry for samples of 3 to 30. When they disagree, the case is borderline; report both and investigate the value rather than deleting it.
Can I use Grubbs’ test for more than one outlier?
Not by repeating it. Each pass inflates the false-alarm rate. Use the generalised extreme studentized deviate (ESD) test, which tests up to a chosen number of outliers while holding the overall alpha.
What sample size does Grubbs’ test need?
At least 3 values, and it is most useful from about 7 upward. With very few values the test has little power: a point has to be wildly off to be flagged.
Is this calculator free?
Yes, free and no signup. It runs entirely in your browser and nothing you paste is sent anywhere.