T-tests and ANOVA assume the data are "normally distributed". In practice, this assumption causes more confusion than almost any other: people run formal normality tests on everything, switch tests based on p = 0.049 versus 0.051, or worry about it when it does not matter. This guide explains what actually needs to be normal, when the assumption matters and when it does not, and a practical way to check it.
What exactly needs to be normal?
Two common misunderstandings:
- Not the pooled data. For a t-test or ANOVA, the assumption is about the values within each group (more precisely, the residuals: each value minus its group mean). If two groups have very different means, pooling them can produce a two-humped histogram even when each group is perfectly normal.
- For a paired t-test, only the differences. The before and after values can be skewed; what matters is whether the within-subject differences are roughly symmetric (see paired vs independent data).
For regression, the assumption is about the residuals around the fitted line, not about X or Y themselves.
When normality matters, and when it does not
Tests of means rely on the sampling distribution of the mean being approximately normal, not on the raw data being normal. Thanks to the central limit theorem, averages become approximately normal as the sample grows, even when the individual values are not. In practice:
| Sample size per group | How much normality matters |
|---|---|
| Small (under ~15) | Matters. Skewness or outliers can distort p-values noticeably. Look carefully, and lean towards non-parametric tests if the data look clearly non-normal. |
| Moderate (~15–40) | t-tests are fairly robust to moderate skewness, especially with equal group sizes. Strong skew or outliers are still a problem. |
| Large (over ~40) | Mild to moderate non-normality hardly matters for tests of means. Extreme skew or heavy outliers can still distort results, and the mean may not be the right summary anyway. |
These are rules of thumb, not sharp boundaries. Outliers and strong skew matter more than gentle departures, and unequal variances often matter more than non-normality (which is one reason to prefer Welch's t-test).
Checking normality visually
Graphs are the best first check because they show how the data depart from normality, not just whether they do.
Histogram
Look for a roughly symmetric, single-peaked shape. A long tail to the right (right skew) is the most common departure for measurements that cannot go below zero, such as concentrations, reaction times or incomes. With fewer than about 20 values, histograms are noisy and the shape depends heavily on the bin width; see how to read a histogram.
Box plot and violin plot
In a symmetric distribution, the median line sits near the middle of the box and the whiskers are of similar length. A median pushed to one side, a long whisker on one end, or many points beyond the whiskers all suggest skewness or outliers. Violin plots also reveal two-peaked distributions. See how to read box and violin plots.
Q-Q plot
A normal quantile-quantile (Q-Q) plot sorts the data and plots each value against the value expected from a normal distribution. Normal data fall close to a straight line; a curve indicates skew, and points bending away at both ends indicate heavy tails. StatFlo does not draw Q-Q plots directly, but you can make one in a spreadsheet: sort the values, compute =NORM.S.INV((rank − 0.5) / n) for each, and draw a scatter plot of the sorted values against those theoretical quantiles (StatFlo's scatter plot works for this).
What about the Shapiro-Wilk test?
Formal normality tests such as Shapiro-Wilk or Kolmogorov-Smirnov test the null hypothesis that the data are exactly normal. They have an awkward property:
- In small samples, where normality matters most, they have little power and often miss real departures.
- In large samples, where normality matters least, they flag tiny, harmless departures as "significant".
So a normality test answers the wrong question. It is reasonable to report one, but the decision about which analysis to use should be based on the plots, your knowledge of how this kind of measurement usually behaves, and the sample size. Choosing between a t-test and a non-parametric test based on a preliminary test also slightly distorts the overall error rate, the same problem discussed for variance tests in our Welch vs Student guide.
Your options if the data are not normal
- Use a non-parametric test. Mann-Whitney U for two groups, Kruskal-Wallis for three or more. These make no normality assumption and lose little power for normal data.
- Transform the data. For right-skewed, positive values (concentrations, counts, times), taking logarithms often produces a symmetric distribution. Run the t-test on log values; the result compares geometric means, which is often the more meaningful comparison for multiplicative effects (for example, "the treatment halved the concentration"). Add a column of
=LN(value)in your spreadsheet and analyse that. - Rely on the sample size. With large, similarly sized groups and only moderate skew, the t-test is usually fine. Saying so explicitly in your methods is better than silently ignoring the issue.
- Remove outliers? Only if they are errors. Real but extreme values should be handled with robust methods instead; see how to handle outliers.
A practical workflow in StatFlo
- Upload your data and draw a Histogram of each group, then a Box Plot or Violin Plot with individual points.
- If each group looks roughly symmetric with no extreme points, use a t-test or ANOVA.
- If one or more groups are clearly skewed or have outliers, especially with small samples, use Mann-Whitney U or Kruskal-Wallis, or analyse log-transformed values.
- In your report, state what you checked and why you chose the test. Reviewers care more about a sensible, transparent decision than about a Shapiro-Wilk p-value.
For the broader trade-offs, see parametric vs non-parametric tests.