Shapiro-Wilk Test Calculator
Check whether your data is normally distributed with MiniWebtool’s Shapiro-Wilk Test Calculator. Paste a column of numbers to get W, the exact p-value, a Q-Q plot, a sentence ready for your report and what to do if the data fails.
For Gemini, paste the copied question into the chat. You can also copy it below.Need help using this tool? Ask AI
View the question
Paste your numbers. You get W, the p-value, a Q-Q plot that shows where normality breaks, a report sentence and, if the data fails, the transformation or test to use instead.
About Shapiro-Wilk Test Calculator
The Shapiro-Wilk Test Calculator answers one question: could this sample plausibly have come from a normal distribution? It is the most powerful of the common normality tests, and it is the assumption check sitting underneath t-tests, ANOVA, Pearson correlation and ordinary regression. This calculator returns the exact W statistic and p-value from Royston's AS R94 algorithm — the same routine R's shapiro.test() uses — and then goes further than a p-value: it draws the Q-Q plot with a 95% confidence band, cross-checks against three other normality tests, and, if your data fails, searches for the transformation that fixes it.
At a Glance
Shapiro-Wilk Test Calculator checks whether a sample is normally distributed, with W, the exact p-value, a Q-Q plot, a report sentence and the next step if the data fails.
| Feature | What you get | Good for |
|---|---|---|
| Paste a column | Numbers separated by commas, spaces, tabs or new lines; 3 to 5,000 values, straight from a spreadsheet. | Thesis and lab-report data |
| W and exact p-value | The same algorithm as R’s shapiro.test(), so you can check the numbers against your software. | Checking an assumption before a t-test or ANOVA |
| Q-Q plot with a band | Points outside the 95% band are marked, so you see where and how normality breaks. | Explaining the result, not just the p-value |
| Report sentence | An APA-style sentence such as W(24) = .873, p = .006, with a copy button. | Writing the methods or results section |
| Four tests side by side | Anderson-Darling, D’Agostino-Pearson and Jarque-Bera next to Shapiro-Wilk, with a consensus verdict. | Borderline p-values |
| If the data fails | Tries log, square root and other transformations, and points to the right non-parametric test. | Skewed data such as times, incomes and concentrations |
| PDF report | Verdict, plots, statistics and interpretation in one PDF; free with a light watermark. | Appendices and sharing with a supervisor |
What the Shapiro-Wilk Test Actually Does
Sort your data from smallest to largest. Now ask: if these numbers really came from a normal distribution, what would the smallest one be expected to be? The second smallest? Statisticians have known those expected values — the normal order statistics — for a century. The Shapiro-Wilk test simply measures how closely your sorted data tracks them.
The clever part is the weighting. Rather than treating every rank equally, the test assigns each position a weight \( a_i \) derived from the covariance structure of normal order statistics, which is why it extracts more information from a small sample than a simple correlation would. The result is squeezed into a single number \( W \) between 0 and 1.
The Shapiro-Wilk Formula
With \( x_{(1)} \le x_{(2)} \le \dots \le x_{(n)} \) the sorted sample and \( \bar{x} \) its mean:
The weights \( a_i \) are antisymmetric — \( a_1 = -a_n \), \( a_2 = -a_{n-1} \) and so on — and are normalised so that \( \sum a_i^2 = 1 \). Royston replaced the exact but impractical covariance-matrix computation with a polynomial approximation in \( 1/\sqrt{n} \), which is what makes samples of thousands of points feasible.
Converting \( W \) into a p-value uses a second Royston result: for \( n \ge 12 \), the quantity \( \ln(1 - W) \) is very nearly normally distributed once centred and scaled by sample-size-dependent constants.
So the p-value here is computed, not looked up in a printed table — it is exact for your particular \( n \) rather than interpolated between tabulated values.
How to Read Your Result
| What you see | What it means | What to do next |
|---|---|---|
| p ≥ α | No evidence against normality. | t-tests, ANOVA and regression are reasonable. Check the Q-Q plot anyway. |
| p < α | The data is unlikely to have come from a normal distribution. | Read the transformation finder, or switch to a non-parametric test. |
| W near 1 but p tiny | Almost always a large-sample artifact. | Judge by skewness, kurtosis and the Q-Q plot instead — the deviation is probably too small to matter. |
| Points curve away at both ends of the Q-Q plot | Heavy tails (leptokurtic) — more extremes than normal. | Consider a robust method or a t-distribution model. Transformations rarely help here. |
| Points curve upward on the right only | Right skew — the classic shape of incomes, durations and concentrations. | A log or Box-Cox transformation usually fixes it outright. |
| Points form a staircase | Heavy ties from rounding or a coarse measurement scale. | Normality testing is asking the wrong question; treat the variable as ordinal or count data. |
How to Report a Shapiro-Wilk Result
Theses and lab reports usually want the result in one sentence: the conclusion first, then the statistic with the sample size in brackets and the p-value. In APA style both numbers drop the leading zero, because neither W nor p can be larger than 1.
- Data passed: A Shapiro-Wilk test showed that adult heights did not depart significantly from a normal distribution, W(24) = .979, p = .880.
- Data failed: A Shapiro-Wilk test showed that reaction times departed significantly from a normal distribution, W(24) = .873, p = .006.
The calculator writes this sentence for your own numbers under the verdict, with a copy button. When you test several groups, report one result per group, and say which test you used instead if the data failed.
Why This Calculator Runs Four Tests
No single normality test is sensitive to every kind of departure, so agreement between tests that fail in different ways is much stronger evidence than any one p-value.
The headline. Consistently the most powerful general-purpose normality test in simulation studies, especially below a few hundred observations. Uses the whole ordered sample rather than a summary of it.
Compares the empirical distribution function to the fitted normal curve with the tails weighted far more heavily. When it rejects and Shapiro-Wilk does not, your problem lives in the extremes.
Tests skewness and kurtosis separately, then combines them. Uniquely diagnostic: its two z-scores tell you which kind of non-normality you have, not merely that you have some.
The econometrics standard, built from skewness and kurtosis alone. Its chi-square reference only becomes accurate in very large samples, so treat it as supporting evidence rather than a deciding vote.
The Sample-Size Trap
This catches more people than any other issue with normality testing, and it cuts both ways.
- Small samples (under about 20). The test has so little power that it will pass almost anything. "p = 0.4" from twelve observations does not mean your data is normal — it means you did not have enough data to tell. The Q-Q plot and subject-matter knowledge carry more weight than the p-value here.
- Large samples (over about 300). The opposite problem. Real measured data is never exactly normal, and with enough observations the test will detect that immaterial truth. A rounding artifact in the third decimal place is enough to produce p < 0.001 at n = 5000. Once your sample is this large, normality testing largely stops being informative and skewness, kurtosis and the Q-Q plot take over.
This is why the results page shows a power reading alongside the p-value: the same p-value means something quite different at n = 15 and at n = 1500.
The Transformation Finder
A failed normality test is usually treated as a dead end. It rarely is. Most real non-normality is simple right skew, and a well-chosen transformation turns it into something a t-test can handle. Rather than making you guess, this calculator applies each candidate to your data and re-runs the Shapiro-Wilk test on the result:
- Logarithm — the strongest common fix for right skew. Appropriate whenever the underlying process is multiplicative: incomes, reaction times, concentrations, populations.
- Square root — a gentler pull-in, the traditional choice for count data and Poisson-like variables.
- Cube root — similar strength to the square root but defined for negative values, so it needs no shift.
- Reciprocal — the most aggressive option, suited to rates and durations with very long right tails.
- Square — works the other way, stretching the upper end to correct left skew.
- Box-Cox with optimal λ — instead of picking a transformation, this estimates the best exponent from your data by maximum likelihood. λ ≈ 0 is a log, λ ≈ 0.5 a square root, λ = 1 no change at all.
If your data contains zero or negative values, transformations that require positive input are applied after a constant shift, which is stated explicitly rather than done silently. And if nothing improves W, that is informative too: it usually points to outliers, a mixture of two populations, or a discrete measurement scale rather than to a fixable skew.
Test the Residuals, Not the Raw Data
The single most common misuse of this test is running it on the wrong numbers. For regression and ANOVA, the normality assumption applies to the residuals — the leftover errors after the model has explained what it can. A wildly skewed predictor variable breaks nothing whatsoever; skewed residuals do. Fit your model, extract the residuals, and paste those in here. For a one-sample or two-sample t-test, testing the raw values within each group is correct.
Shapiro-Wilk vs Kolmogorov-Smirnov
The Kolmogorov-Smirnov test is still widely taught for normality, and it should not be. It is only valid when the mean and standard deviation are specified in advance; if you estimate them from the same data — which everyone does — the p-values are badly conservative. The Lilliefors correction repairs the validity but remains clearly less powerful than Shapiro-Wilk. Unless you are testing against a fully pre-specified distribution, Shapiro-Wilk is the better tool, with Anderson-Darling as the alternative when tail behaviour is your specific concern.
A Worked Example
Twenty-four reaction times, in seconds — the sample loaded into the box above, so you can reproduce every number below by clicking Run Shapiro-Wilk Test:
1.85, 2.71, 3.44, 2.05, 4.62, 2.33, 3.02, 1.62, 2.88, 5.41, 2.19, 3.77, 2.46, 1.98, 3.19, 2.62, 4.05, 2.27, 2.94, 6.33, 2.11, 3.55, 2.75, 2.40
Most values sit between 2 and 3 seconds, but a handful of slow responses stretch out to 6.33. Shapiro-Wilk returns W = 0.8729 with p = 0.0060, rejecting normality at any conventional α, and the Q-Q plot shows the classic upward curve at the right-hand end. The histogram tells the same story: the bars pile up to the left of the fitted normal curve and trail off to the right.
The transformation finder then does the useful part. Taking logarithms lifts the statistic to W = 0.9668 with p = 0.5895 — comfortably normal. An optimal Box-Cox exponent near λ = −0.8 scores fractionally higher still, but the log is the one worth using: it is the standard treatment for reaction-time data, and it back-transforms cleanly to a geometric mean, whereas an exponent of −0.8 back-transforms to nothing anyone can explain in a results section.
The practical conclusion is not "the data is broken". It is "analyse log reaction time, then report the results back on the original seconds scale."
Common Pitfalls
- Treating p ≥ 0.05 as proof of normality. It is failure to reject, which in a small sample is nearly guaranteed regardless of the truth.
- Panicking at p < 0.05 in a large sample. Check whether the deviation is big enough to matter before changing your entire analysis.
- Testing predictors instead of residuals in a regression or ANOVA.
- Testing pooled groups. Two normal groups with different means pool into a bimodal mixture that fails the test. Test within each group.
- Ignoring the Q-Q plot. It shows where and how normality breaks; the p-value only says whether.
- Running the test on rounded or count data. Heavy ties depress W for reasons unrelated to the underlying distribution.
How to Use This Calculator
- Paste your numbers into Your Sample Data. Commas, spaces, tabs and line breaks all work, so a copied spreadsheet column can go straight in. You need 3 to 5,000 values.
- Pick a Significance Level: 0.10, 0.05 or 0.01.
- Click Run Shapiro-Wilk Test.
- Copy the report sentence under the verdict, or download the whole result as a PDF report.
- Read the verdict, then the Q-Q plot — points outside the shaded band are highlighted in red and are the observations breaking normality.
- Check the consensus panel to see whether all four tests agree, and if the data failed, read the transformation finder for the fix.
Frequently Asked Questions
What is the Shapiro-Wilk test?
The Shapiro-Wilk test checks whether a sample could plausibly have come from a normally distributed population. It sorts your data, compares it against the values a normal sample of the same size would be expected to produce, and condenses the agreement into a single number W between 0 and 1. W close to 1 means the data tracks the normal pattern closely. The null hypothesis is that the data IS normal, so a small p-value is evidence against normality.
What does the W statistic mean?
W is essentially the squared correlation between your sorted data and the expected normal order statistics, so it behaves like an R-squared for the Q-Q plot. W = 1 would mean the points lie exactly on the straight line. Because W is scale-free, changing your units cannot change it. There is no universal threshold for a good W: the same value of 0.95 is unremarkable at n = 20 and decisively non-normal at n = 500, which is exactly why the p-value adjusts for sample size.
Is a p-value below 0.05 a problem?
Not necessarily. It means the departure from normality is larger than sampling noise, not that it is large enough to matter. With several hundred observations the test detects deviations far too small to affect a t-test or ANOVA. Read the skewness and kurtosis figures and look at the Q-Q plot before acting: a significant result with skewness near zero and points hugging the line is a statistical technicality, not a broken analysis.
Why is my large sample always failing the test?
Because power grows with sample size. Real measured data is never exactly normal, so given enough observations any normality test will eventually detect that. Above roughly 300 to 500 values the Shapiro-Wilk test becomes more a statement about your sample size than about your data. At that point the Q-Q plot and the effect-size style measures, skewness and excess kurtosis, are far more informative than the p-value.
How many data points does the Shapiro-Wilk test need?
The test is defined from 3 observations upward, and Royston's algorithm used here is validated up to 5000. Below about 20 values the test has very little power, so failing to reject normality is weak evidence rather than proof. The most useful range is roughly 20 to 300 observations, where the test is sensitive to genuine departures without flagging trivial ones.
Shapiro-Wilk or Kolmogorov-Smirnov, which should I use?
Shapiro-Wilk, in almost every case. Simulation studies consistently find it the most powerful of the common normality tests. The Kolmogorov-Smirnov test is only valid when the mean and standard deviation are known in advance rather than estimated from the same data, and the Lilliefors correction that patches this is still noticeably less powerful. Anderson-Darling is the reasonable alternative when you specifically care about the tails.
Should I test my raw data or my residuals?
For regression and ANOVA the normality assumption applies to the residuals, not to the raw variables. A skewed predictor breaks nothing at all, whereas skewed residuals do. Fit your model first, save the residuals, then paste those into this calculator. For a one-sample or two-sample t-test, testing the raw values within each group is the right thing to do.
What should I do if my data is not normal?
You have four practical options. Transform the variable, which is what the transformation finder on this page is for, since a log often turns right-skewed data normal. Use a non-parametric test such as Mann-Whitney U, Wilcoxon or Kruskal-Wallis. Rely on the Central Limit Theorem, because with about 30 or more observations per group a t-test or ANOVA is already robust to moderate skew. Or bootstrap, which builds the reference distribution from your own data and assumes nothing about its shape.
Why does my data with repeated values give a warning?
Ties are common in rounded or coarsely measured data and the Shapiro-Wilk test still runs, but heavy tying pushes W down for reasons that have nothing to do with the shape of the underlying distribution. If your measurements are recorded to only one or two distinct decimal places, or the variable is really a count with few possible values, a normality test on it is asking the wrong question.
How do I report a Shapiro-Wilk test in APA style?
Give the statistic with the sample size in brackets and the p-value, both without a leading zero because neither can exceed 1: W(24) = .873, p = .006. Put it at the end of a sentence that states the conclusion, for example: A Shapiro-Wilk test showed that reaction times departed significantly from a normal distribution, W(24) = .873, p = .006. The calculator writes this sentence for your own data under the verdict.
Reference this content, page, or tool as:
"Shapiro-Wilk Test Calculator" at https://MiniWebtool.com/shapiro-wilk-test-calculator/ from MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: August 6, 2026
Chat with your favorite AI
For Gemini, paste the copied question into the chat. You can also copy it below.
View the question
Statistics And Data Analysis:
- A/B Test Sample Size Calculator New
- A/B Test Significance Calculator New
- ANOVA Calculator
- Arithmetic Mean Calculator
- Average Calculator
- Average Deviation Calculator
- 📊 Bar Graph Maker New
- Bayes' Theorem Calculator New
- Beta Distribution Calculator New
- Box and Whisker Plot Maker Popular
- Chi-Square Test Calculator
- Coefficient of Variation Calculator
- Cohen's d Calculator
- Compound Growth Calculator Popular
- Confidence Interval Calculator
- Confidence Interval for Proportion Calculator
- Contingency Table Calculator New
- Conversion Rate Calculator New
- Correlation Coefficient Calculator
- Effect Size Calculator New
- Exponential Distribution Calculator New
- F-Test / F-Distribution Calculator New
- Fisher's Exact Test Calculator New
- Five Number Summary Calculator New
- Geometric Distribution Calculator New
- Geometric Mean Calculator
- Gini Coefficient Calculator
- Harmonic Mean Calculator
- Histogram Maker
- Hypergeometric Distribution Calculator New
- Interquartile Range Calculator
- Kruskal-Wallis Test Calculator
- 📈 Line Graph Maker New
- Linear Regression Calculator
- Logarithmic Growth Calculator
- Mann-Whitney U Test Calculator
- Mean Absolute Deviation (MAD) Calculator
- Mean Calculator
- Mean Median Mode Calculator
- Median Absolute Deviation Calculator
- Median Calculator Popular
- Midrange Calculator
- Mode Calculator
- Normal Distribution Calculator New
- Odds Ratio Calculator New
- Outlier Calculator Popular
- p-Value Calculator New
- Pareto Chart Generator New
- Percentile Calculator New
- 🥧 Pie Chart Maker New
- Population Standard Deviation Calculator
- Quartile Calculator
- Quartile Deviation Calculator
- Range Calculator
- RSD Calculator - Relative Standard Deviation Popular
- Root Mean Square Calculator
- Sample Mean Calculator
- Sample Size Calculator
- Sample Standard Deviation Calculator
- Scatter Plot Maker
- Six Sigma Process Capability Calculator New
- Spearman Rank Correlation Calculator New
- Standard Deviation Calculator
- Standard Error Calculator
- Statistics Calculator
- t-Test Calculator
- Variance Calculator
- Weibull Distribution Calculator New
- Z-Score Calculator
- Cronbach's Alpha Calculator New
- Likert Scale Calculator New
- Wilcoxon Signed-Rank Test Calculator New
- Stem and Leaf Plot Maker New
- Shapiro-Wilk Test Calculator New