CalculatorsToolsGuides 日本語
BenchFig › Guides › The Shapiro–Wilk normality test: how to use it and its pitfalls
Statistics

The Shapiro–Wilk normality test: how to use it and its pitfalls

The Shapiro–Wilk test is the most widely used test of whether data depart from a normal distribution, and it is often run to check the assumptions of t tests and ANOVA. But reading “P > 0.05” as “normal”, or switching tests on its result alone, can mislead. This guide shows with numbers how its behavior changes with n, and how to use it together with a Q-Q plot.

Updated: BenchFig日本語

What the Shapiro–Wilk test tells you

Key points
  • The null hypothesis is that the data come from a normal distribution; a small P is evidence of non-normality
  • A large P does not prove normality (only that evidence against it is lacking)
  • With small n it misses real departures; with large n it flags tiny, harmless ones
  • Check the shape by eye with a Q-Q plot or dot plot, and ideally choose your test in advance

The statistic W measures how well the sorted data match the ordering expected under a normal distribution; it runs from 0 to 1, with values near 1 looking normal and smaller values departing from it.

With small n, even skewed data pass

We tested data that copy the shape of a strongly right-skewed (log-normal) distribution exactly (its theoretical quantiles), at different n. The shape is the same in every row.

Log-normal distribution (σ = 0.8): clearly skewed, with the maximum many times the minimum.
nWP
50.9120.48
80.8780.18
100.8640.084
150.8410.013
200.8260.0022

Up to n = 10, P > 0.05, which reads as “normality is fine”. In typical bench experiments with 3 to 8 per group, the Shapiro–Wilk test can hardly be expected to detect skew.

With large n, trivial departures become significant

Conversely, here is the same exercise with the logistic distribution, which looks almost normal but has slightly heavier tails.

Logistic distribution: by eye, almost indistinguishable from normal.
nWP
200.99951.00
1000.99610.99
5000.99350.029
10000.99289 × 10−5
20000.99241 × 10−8

At n = 100, P = 0.99 is nowhere near significant, but the test becomes significant at n = 500 (P = 0.029) and n = 1000 (P = 9 × 10−5). Yet with large n, t tests and ANOVA are barely affected by such departures thanks to the central limit theorem. “Significant, so no t test” does not follow.

Check by eye with a Q-Q plot

A Q-Q plot draws the sorted data (y) against where they would fall under a normal distribution (x). Points close to a straight line mean near-normal; a bow means skew; departures only at the ends mean heavy tails.

WT body weight (n = 8)-2-101223.52424.52525.526Theoretical quantilesSample quantiles
Shapiro–Wilk P = 0.76
Right-skewed (n = 10)-2-101200.511.522.533.54Theoretical quantilesSample quantiles
Shapiro–Wilk P = 0.084
Normal Q-Q plots: the x axis is where values would fall under a normal distribution, the y axis the sorted data. Points along the dashed line (through the quartiles) mean close to normal. Left: the body-weight sample follows the line. Right: a right-skewed (log-normal) shape bends upward at both ends, yet with n = 10 the Shapiro–Wilk P is above 0.05.

As on the right, the shape can be clearly skewed even when the test is not significant. Especially with small n, the dot plot, the Q-Q plot and what this kind of measurement has looked like in the past are more reliable than the test’s P value.

See the assumption checks on sample dataThe Graph screen lists Shapiro–Wilk (W and P) for each group and Brown–Forsythe automatically, and suggests switching to a nonparametric test when normality looks doubtful.
Open for free →

Using it when choosing a test

The two-stage rule “nonparametric if Shapiro–Wilk P < 0.05, otherwise t test” is common but not recommended:

Instead, decide the test before the experiment from the nature of the measurement (concentrations and ratios tend to be right-skewed and become near-normal on a log scale), past data and dot plots, and report Shapiro–Wilk as a check that the chosen test’s assumptions are not badly violated. The overall flow is in choosing a statistical test.

How to write it in a paper

Methods: “Normality was assessed with the Shapiro–Wilk test and equality of variances with the Brown–Forsythe test.” If you report the result, write “no marked departure from normality was detected in any group (Shapiro–Wilk, all P > 0.05)” rather than “the data were normally distributed”. If you log-transformed, say that the test was run on the transformed values.

FAQ

If P > 0.05, can I write that the data were normally distributed?

Better not. The test only shows that there is not enough evidence of non-normality. Write something like “no marked departure from normality was detected (Shapiro–Wilk test).”

Which values should I test?

For two-group t tests and ANOVA, test each group (or the pooled residuals, each value minus its group mean); for a paired t test, test the paired differences. The assumptions are about these, not the raw data as a whole. BenchFig tests each group, or the differences when two groups are paired.

Shapiro–Wilk or Kolmogorov–Smirnov?

When the mean and SD are estimated from the data, Shapiro–Wilk is generally more powerful than the Kolmogorov–Smirnov test with the Lilliefors correction. Plugging estimated mean and SD into an uncorrected Kolmogorov–Smirnov test is incorrect.

What should I do if the data are not normal?

Right-skewed data such as concentrations or ratios often become close to normal on a log scale. If not, use nonparametric tests such as Mann–Whitney or Kruskal–Wallis. Ideally decide this before the experiment.

See the assumption checks on sample dataOpen a sample on the Graph screen to see Shapiro–Wilk results for each group (or for the paired differences), alongside the Brown–Forsythe test for equal variances.
Open for free →
Your own data, all the way to the final figure.Loading your files, saving, and journal-ready export (PDF, TIFF, PNG, SVG) are in BenchFig Pro for Windows, updated based on researchers’ requests: ¥3,980/year (2 PCs), with lab and perpetual licenses too.
About the app →

Related guides

Product and journal names are trademarks or registered trademarks of their respective owners.