Shapiro-Wilk Test: How to Read the Result and What to Report (With an Interpreter)

In short

The Shapiro-Wilk test checks whether a sample could have come from a normal distribution. Its null hypothesis is that the population is normal. It gives you two numbers: W, between 0 and 1, which measures how well your sorted data line up with what a normal sample would look like (closer to 1 is a better fit), and p, which tells you whether the departure is large enough to detect at your sample size. If p ≥ .05 the test found no evidence against normality, which is not proof of normality. If p < .05 the departure is detectable, so look at the Q-Q plot and the skewness before you decide anything. In APA 7: W(20) = .82, p = .002.

To read a Shapiro-Wilk result, look at the p value first and then at what it can and cannot tell you. A p below .05 means your data depart from a normal curve by more than chance would explain with your number of cases; it says nothing about whether the departure is big enough to matter. That depends on the shape of the departure and on n, which is why the same W = .98 is a clear rejection with 500 cases and a comfortable pass with 30. If you have your W, p and n in front of you, the free normality interpreter reads the three together and tells you whether to stay parametric, transform, or go non-parametric.

This guide covers what the test does, how to read W and p with a worked example you can reproduce, how to run it in R, SPSS, JASP, jamovi and Python, where it misleads you, and how to report it in APA 7. Frequently asked questions are at the end.

What the Shapiro-Wilk test is

Samuel Shapiro and Martin Wilk published the test in 1965 (Shapiro & Wilk, 1965). It is a test of normality: it asks whether your sample is compatible with having been drawn from a normally distributed population.

  • Null hypothesis (H0): the population the sample comes from is normally distributed.
  • Alternative hypothesis (H1): it is not normally distributed.
  • Test statistic: W, which takes values between 0 and 1.
  • Decision: with α = .05, p < .05 rejects normality; p ≥ .05 does not reject it.

The idea behind W is the Q-Q plot turned into a number. The test sorts your data from smallest to largest and compares them with the values a perfectly normal sample of the same size would be expected to have. If the two line up, the points of the Q-Q plot sit on a straight line and W is close to 1. Formally, W compares two estimates of the variance: the numerator is the square of a weighted sum of the ordered observations, with weights derived from the expected values of normal order statistics, and the denominator is the usual sum of squared deviations from the mean. Read it informally as how straight your Q-Q plot is.

The version that R, Python and most statistical packages compute today is Royston's algorithm (Royston, 1995), which extends the original test, built for small samples, to samples of up to 5,000 cases. That is why R's shapiro.test() refuses to run with fewer than 3 or more than 5,000 non-missing values.

How to read W and p

The two numbers answer different questions, and most misreadings come from treating them as the same thing.

W describes the fit. It is a descriptive measure of how normal the sample looks, on a scale where 1 is a perfect fit. There is no universal cutoff for a "good" W, because what counts as a large departure depends on n: with large samples even a W of .99 can be significant, and with small samples a W of .90 can pass. Never judge W on its own.

p describes detectability. It is the probability of getting a W this low or lower if the population really were normal. A small p means that, given your sample size, the departure from normality is not plausibly chance. It does not measure how large or how harmful the departure is.

Result What it means What it does not mean
p ≥ .05 No detectable departure from normality with this n. You do not reject H0. That the data are normal. With small samples the test often misses real skew.
p < .05 A departure from normality is detectable with this n. You reject H0. That the departure is large, or that your t-test or ANOVA is invalid.
W close to 1 The sorted data follow the normal pattern closely. That p will be large: with big samples small gaps from 1 are significant.

A worked example you can reproduce

Here are the anxiety scores of 20 participants, a small sample with a few high scores that pull the right tail:

9, 10, 10, 11, 11, 12, 12, 12, 13, 13, 14, 14, 15, 16, 17, 19, 21, 24, 28, 35

Run the test on them and you get W = .824, p = .002. The descriptive statistics agree with the test: the mean is 15.8 (SD = 6.69), skewness is 1.66 and excess kurtosis is 2.60 (the bias-corrected values that SPSS prints). The bulk of the scores sits between 9 and 17 and the last four stretch out to 35. In a Q-Q plot those points curve away above the line on the right. Here the test, the numbers and the picture all point the same way: a clear right skew in a small sample, which is the situation where normality genuinely matters and where a non-parametric or robust test deserves a serious look.

Now a second set of 20 scores, more evenly spread:

12, 14, 15, 15, 16, 17, 17, 18, 18, 19, 19, 20, 21, 21, 22, 23, 24, 25, 26, 28

This one gives W = .983, p = .970, with skewness 0.27. The test finds nothing, which is reassuring here because the shape is reasonable. But note the logic: with 20 cases the test would also have found nothing for many moderately skewed samples. A large p with a small n is weak evidence, not a certificate.

You can check every one of these numbers with the code in the next section. R and Python's SciPy implement the same algorithm (Royston, 1995) and return the same values; SPSS rounds them to three decimals in its table.

How to run the Shapiro-Wilk test

In R

anxiety <- c(9, 10, 10, 11, 11, 12, 12, 12, 13, 13,
             14, 14, 15, 16, 17, 19, 21, 24, 28, 35)
shapiro.test(anxiety)

#   Shapiro-Wilk normality test
# data:  anxiety
# W = 0.82411, p-value = 0.002023

qqnorm(anxiety); qqline(anxiety)   # the plot that goes with it

Three things worth knowing. shapiro.test() takes a numeric vector, not a formula, so to run it by group use tapply(data$anxiety, data$group, shapiro.test). It only accepts between 3 and 5,000 values. And if you have already fitted a model (an ANOVA with aov() or a regression with lm()), the version that matches the actual assumption is shapiro.test(residuals(model)).

In SPSS

Go to Analyze > Descriptive Statistics > Explore. Move your variable to Dependent List (and, if you compare groups, the grouping variable to Factor List). Click Plots and tick Normality plots with tests. The equivalent syntax is:

EXAMINE VARIABLES=anxiety BY group
  /PLOT BOXPLOT NPPLOT
  /STATISTICS DESCRIPTIVES.

The output table is called Tests of Normality and has two blocks: Kolmogorov-Smirnov (with the Lilliefors correction) and Shapiro-Wilk. Read the Shapiro-Wilk block. Statistic is W, df is the number of valid cases in that row, and Sig. is p. For the first example above SPSS shows Statistic .824, df 20, Sig. .002. Two practical notes: if df is smaller than the n you expected, that variable has missing values; and if Sig. reads .000, report it as p < .001, never p = .000.

In JASP

In Descriptives, add your variable (and the grouping variable to Split if you have groups), open the Statistics options and tick Shapiro-Wilk test; the plot options include the Q-Q plot. If you are about to run a t-test, the Assumption Checks section of the t-test itself has a Normality box that runs Shapiro-Wilk too, group by group for independent samples. Labels move a little between JASP versions, so if you do not see the box, look under the distribution options of Descriptives.

In jamovi

Go to Exploration > Descriptives, add the variable (and the group to Split by), and under Statistics > Normality tick Shapiro-Wilk. In the t-tests, Assumption Checks > Normality test gives the same test plus a Q-Q plot option. One detail that confuses people: for the independent-samples t-test, jamovi's assumption check is run on the pooled residuals, not group by group, so it will not match the per-group values from Descriptives. Both are legitimate; just say which one you report.

In Python

from scipy import stats

anxiety = [9, 10, 10, 11, 11, 12, 12, 12, 13, 13,
           14, 14, 15, 16, 17, 19, 21, 24, 28, 35]
res = stats.shapiro(anxiety)
print(res.statistic, res.pvalue)   # 0.8241..., 0.00202...

# by group, with pandas
# df.groupby("group")["anxiety"].apply(lambda x: stats.shapiro(x).pvalue)

SciPy's documentation warns that above 5,000 observations the W statistic is still accurate but the p value may not be. At that size you should not be relying on the test anyway, as the next section explains.

Why Shapiro-Wilk misleads with large and small samples

Like every significance test, Shapiro-Wilk mixes two things into one p: how far the data are from normal, and how many cases you have. That makes it unreliable in exactly the two situations where you would want it to help.

With large samples it flags departures that do not matter. No real variable is exactly normal: scores are bounded, discrete and often a little skewed. With a few hundred cases the test has enough power to detect those harmless imperfections and returns p < .001 for a histogram that looks like a textbook bell. I simulated this in detail, with one distribution and three sample sizes, in Shapiro-Wilk is significant but your data look normal.

With small samples it misses departures that do matter. In simulation studies comparing normality tests, Shapiro-Wilk was the most powerful of the four common ones (ahead of Anderson-Darling, Lilliefors and Kolmogorov-Smirnov), but even its power was low with small samples (Razali & Wah, 2011). With 15 or 20 cases a clearly skewed sample can pass. This is the situation where a non-significant result gives false comfort.

Why it should not be the gatekeeper for your t-test or ANOVA

The common routine is: run Shapiro-Wilk, use the t-test if p ≥ .05 and switch to Mann-Whitney if p < .05. There are three problems with it.

It tests the wrong thing. The normality assumption of the t-test, ANOVA and linear regression concerns the errors of the model (estimated by the residuals), or equivalently the distribution within each group, not the raw variable pooled across groups. A variable that mixes two groups with different means can look non-normal precisely because of the effect you want to test.

It answers a question the analysis does not ask. These tests compare means, and in large samples the sampling distribution of a mean is close to normal whatever the shape of the raw data. Lumley et al. (2002) showed by simulation, with extremely non-normal data, that the t-test and linear regression remain valid in large samples; their real limitation is whether a difference in means answers your scientific question, not the distribution. How large is "large" depends on how skewed the data are, so the familiar "n ≥ 30 per group" is a rule of thumb, not a theorem: with strong skew or heavy outliers you may need more.

Choosing the test from the same data changes its behavior. Rochon et al. (2012) simulated the two-stage routine (Shapiro-Wilk first, then t-test or Mann-Whitney) and found that the preliminary test seriously altered the conditional Type I error rates of whichever test was run afterwards, even though the error rate of the procedure as a whole stayed within acceptable limits. The formal objection is that the main test is no longer the test you think it is.

What works better: decide the analysis from the design and from what you know about the variable (reaction times are right-skewed, symptom counts pile up at zero), look at the Q-Q plot of the residuals, and, if you are unsure, run a method that does not need the assumption as a check and report that the conclusions agree.

When normality really matters

  • Small samples (roughly under 20 per group) with visible skew: the central limit theorem does not help much yet, and the test is least able to warn you.
  • Strong skew or floor and ceiling effects: reaction times, symptom counts, income. Consider a transformation, a generalized linear model or a robust test.
  • Bimodal distributions: two humps usually mean two subpopulations mixed together, and no test of means describes them well.
  • Extreme outliers: the issue is the influence of a few cases, not normality as such. Check whether they are errors before deciding anything.
  • Prediction intervals and tail estimates: anything that depends on the tails of the distribution, not just the mean, is sensitive to non-normality whatever the sample size.

What to do when Shapiro-Wilk is significant

A practical sequence, in the order a reviewer would follow it:

1. Check what you tested. Residuals or each group separately, not the pooled raw variable.

2. Look at the Q-Q plot and the histogram. Points close to the line with a slight curl at the ends are normal for real data. A systematic curve, a long tail or two humps are not.

3. Look at skewness and kurtosis. There are no universal cutoffs. As a rough guide, absolute skewness below 1 rarely causes trouble for tests of means with moderate samples, and values above 2 deserve attention.

4. Weigh the sample size. With large groups and a modest departure, keep the parametric test. With small groups and a clear departure, use a robust or non-parametric alternative.

5. If in doubt, run both and report that the conclusions agree. If you end up reporting the non-parametric one, here is how to report Mann-Whitney, Wilcoxon and Kruskal-Wallis in APA 7.

Situation Shapiro-Wilk Reasonable decision
Large groups, Q-Q plot close to the line Significant Keep the parametric test and say why.
Moderate groups, moderate skew Significant Parametric plus a robust or non-parametric check; report agreement.
Small groups, clear skew or two humps Either result Robust or non-parametric test; justify the choice.
Extreme outliers Either result Investigate the outliers before choosing the test.

How to report Shapiro-Wilk in APA 7

The APA Publication Manual has no template specific to this test, so the general rules for statistics apply: the symbol in italics, the value to two decimals, no leading zero (because W cannot exceed 1), and the exact p to two or three decimals, or p < .001 when it is smaller. The usual convention puts the sample size in parentheses after W, which is what SPSS prints as df:

W(20) = .82, p = .002

Strictly, W has no degrees of freedom the way t or F do; the number in parentheses is the n the test was computed on. Some journals prefer W = .82, p = .002 with the n stated in the sentence. Either is fine if you are consistent; leaving the n out altogether is not, because the same W means different things at different sample sizes. The full normality paragraph, with skewness, kurtosis and the Q-Q plot in the order reviewers expect, is in how to report a normality test in APA 7.

When the test is not significant:

"Normality of the residuals was checked with the Shapiro-Wilk test, which detected no departure from normality, W(58) = .97, p = .213, and the Q-Q plot showed no systematic deviations."

When it is significant and you keep the parametric test:

"The Shapiro-Wilk test indicated a departure from normality in the intervention group, W(58) = .95, p = .014. Skewness (0.48) and kurtosis (−0.31) were small and the Q-Q plot showed only a slight deviation in the upper tail; given the group sizes (n = 58 per group), the t test was retained, and a Mann-Whitney U test led to the same conclusion."

That second paragraph is the one that gets manuscripts through review: it reports the result instead of hiding it, and then justifies the decision with things a reader can check. Three more rules: say whether you tested the raw variable or the residuals; if you tested each group, report every group, not only the one that behaved; and never let Shapiro-Wilk travel alone, because a p value without the plot and the shape statistics tells the reader very little. The APA 7 results formatter assembles the sentence with the right italics and decimals, and the wider checklist of assumptions is in how to check statistical assumptions in SPSS and R.

Before you submit: the assumptions paragraph is one of the first things a methodological reviewer reads. If your manuscript is already written, you can run it through Previum, a free Reviewer 2 style pre-review that points out which parts of your analysis would be questioned before the journal questions them.

Shapiro-Wilk or Kolmogorov-Smirnov?

For checking normality, Shapiro-Wilk. The plain Kolmogorov-Smirnov test assumes you know the population mean and standard deviation in advance, which you never do when checking normality; the Lilliefors correction (the version SPSS prints next to Shapiro-Wilk) fixes that, but in simulation studies it remains less powerful than Shapiro-Wilk (Razali & Wah, 2011). If the two disagree in your output, take it as a sign that the departure is borderline, and let the Q-Q plot decide.

Frequently asked questions

What does the Shapiro-Wilk test show?

Whether your sample is compatible with having come from a normal distribution. A significant result (p < .05) means the departure from normality is detectable at your sample size; a non-significant result means no departure was detected, which is not the same as proving the data are normal.

What does W mean in the Shapiro-Wilk test?

W is the test statistic, between 0 and 1. It measures how closely your sorted data follow the values expected from a normal sample of the same size, roughly how straight your Q-Q plot is. Values close to 1 indicate a good fit. There is no fixed cutoff, because the W needed for significance depends on the sample size.

What is the null hypothesis of the Shapiro-Wilk test?

That the sample comes from a normally distributed population. Rejecting it (p < .05) means the data are unlikely to come from a normal population; failing to reject it means the test found no evidence against normality.

Is p greater than .05 in Shapiro-Wilk good?

It means the test did not detect a departure from normality, which is usually what people hope for. But with small samples the test has low power, so p > .05 can coexist with real skew. Always look at the Q-Q plot as well.

What should I do if Shapiro-Wilk is significant?

Do not switch tests automatically. Check that you tested the residuals or each group, look at the Q-Q plot and the skewness, and weigh the sample size. With large groups and a modest departure, tests of means are usually robust; with small groups and clear skew, use a robust or non-parametric alternative and report it.

What sample size does Shapiro-Wilk need?

R computes it for 3 to 5,000 observations; SciPy runs above 5,000 but warns that the p value may be inaccurate. In practice it is least useful at both ends: with small samples it misses real departures, and with large samples it flags trivial ones.

How do I report Shapiro-Wilk in APA 7?

With W in italics, two decimals and no leading zero, the sample size in parentheses and the exact p: W(20) = .82, p = .002. Add what the Q-Q plot showed and what you decided.

Should I test the raw data or the residuals?

For a t-test, ANOVA or regression, the assumption is about the residuals (or, equivalently for group comparisons, the distribution within each group). Testing the raw variable pooled across groups can show non-normality that is just the group difference you are studying.

References

Lumley, T., Diehr, P., Emerson, S., & Chen, L. (2002). The importance of the normality assumption in large public health data sets. Annual Review of Public Health, 23, 151–169. https://doi.org/10.1146/annurev.publhealth.23.100901.140546

Razali, N. M., & Wah, Y. B. (2011). Power comparisons of Shapiro-Wilk, Kolmogorov-Smirnov, Lilliefors and Anderson-Darling tests. Journal of Statistical Modeling and Analytics, 2(1), 21–33.

Rochon, J., Gondan, M., & Kieser, M. (2012). To test or not to test: Preliminary assessment of normality when comparing two independent samples. BMC Medical Research Methodology, 12, Article 81. https://doi.org/10.1186/1471-2288-12-81

Royston, P. (1995). Remark AS R94: A remark on algorithm AS 181: The W-test for normality. Journal of the Royal Statistical Society: Series C (Applied Statistics), 44(4), 547–551. https://doi.org/10.2307/2986146

Shapiro, S. S., & Wilk, M. B. (1965). An analysis of variance test for normality (complete samples). Biometrika, 52(3–4), 591–611. https://doi.org/10.1093/biomet/52.3-4.591

If you are in the analysis phase of your doctoral thesis and the assumptions are making you doubt your whole approach, my statistical consulting for doctoral theses is where we review the diagnostics together and build a methodological justification you can defend before your committee. If you are not sure which test fits your design in the first place, the statistical test selector walks you through it, and the decision tree for choosing a statistical test explains the logic.

Cite this guide

Ciudad-Fernández, V. (2026, October 26). Shapiro-Wilk test: How to read the result and what to report. Ciudad Science. https://analisisdedatospsicologia.com/en/blog/normality-test-misunderstood-shapiro-wilk

Cite this guide

Ciudad-Fernández, V. (2026, May 28). Shapiro-Wilk Test: How to Read the Result and What to Report (With an Interpreter). Ciudad Science. https://analisisdedatospsicologia.com/en/blog/normality-test-misunderstood-shapiro-wilk

Keep reading

All blog articles