Interactive module guide
Levene Test Calculator — Equal Variances
This Levene test calculator checks whether several groups share a common variance using absolute deviations from each group mean.
Free · No sign-up · Calculations stay in your browser
Levene’s test asks whether two or more groups share a common variance.
It works by a reduction: replace every observation with its absolute deviation from the group mean, then run an ordinary one-way ANOVA F on those deviations—groups with bigger spread produce bigger average deviations, and the F statistic detects it.
This calculator supports two to twelve groups, reports the W statistic with its F reference and degrees of freedom, and matches scipy’s levene with center="mean" to numerical precision.
Treat it as a spread diagnostic or a test of spread as the scientific target, not as an automatic gate that decides whether a later mean test may pool variances.
Use the Levene test calculator to check the equal-variance assumption before pooled analyses when the data are roughly symmetric; for skewed data prefer the Brown-Forsythe version.
When to use this Levene test calculator
Use it when
- Use it when a formal assessment of the equal-spread assumption is wanted alongside the group standard deviations, while pre-specifying the main mean-analysis method independently of this p-value.
- Use it when the question is about spread itself: whether machines differ in precision, whether a treatment stabilizes a response, or whether two instruments have comparable measurement noise.
- Use the mean-centered version specifically when the groups are roughly symmetric, where it has slightly better power than the median-centered variant.
Choose another method when
- Avoid the mean-centered version for skewed or outlier-prone data: single extreme values inflate their group’s deviations, and differences in shape can drive rejection even when variances match—switch to the Brown-Forsythe page.
- Avoid treating a non-significant result as proof of equal variances; with small groups the test has little power, and “no evidence of a difference” is not “evidence of no difference”.
- Avoid the accept-then-pool ritual as a mindless pipeline: modern practice often skips the gate entirely and uses Welch procedures that never assume equal variances in the first place.
Interactive tool
The calculator loads as you approach this section so the guide remains fast on mobile connections.
Example preview
Spread across three machines
- Inputs
- Three groups of 7, 6, and 8 measurements; mean-centered deviations.
- Representative result
- W≈0.799 with df=(2, 18) and p≈0.465; the equal-variance assumption survives.
Illustrative only. Load the interactive tool to enter your own values and review assumptions.
Watch the explanation
4:54 minThe player loads only after you press play. You can also watch on YouTube.
Read the complete transcript
The Levene Test. Levene's test asks whether two or more independent groups show the same population spread. It turns that question into a familiar one-way ANOVA. Keep each observation in its original group. This page accepts two to twelve groups, at least two finite values per group, and a pre-specified alpha. For every group, compute its own arithmetic mean. Then replace each observation by its absolute distance from that group mean. Large absolute deviations mean wide spread; small deviations mean tight spread. Location differences disappear because every group is centered separately. Run ordinary one-way ANOVA on the deviation groups. The resulting F statistic is conventionally called W, with degrees of freedom k minus one and N minus k. Only the upper F tail matters. The omnibus alternative is that at least one spread differs, not a choice between numerical left and right directions. A rejection says spread differs somewhere. It does not identify which pair differs, and this calculator offers no post-hoc spread comparisons or variance-ratio interval.
This calculator uses the arithmetic mean center and suits roughly symmetric, moderate tailed groups. The default setting in Sci Py uses the median instead. For skewed or outlier-prone data, use the separate Brown-Forsythe test. Its median center is usually less sensitive to a single extreme value. A nonsignificant result does not prove equal variances. Small groups may miss important spread differences, so read the sample standard deviations and raw shapes too. Variance equality is not distribution equality. Groups can share a variance while differing in skew, tails, mixtures, or other features of shape. Levene also cannot repair dependent observations, clusters, repeated measures, wrong group labels, selection bias, or measurements recorded on incomparable scales. Do not use a preliminary p-value as an automatic switch between pooled and Welch mean tests. Pre-specifying Welch often avoids that unstable two-stage ritual. Use Levene when spread itself matters scientifically or when a documented symmetric-data diagnostic is wanted. Keep practical magnitude separate from significance.
Now compare three machines with seven, six, and eight measurements, twenty-one observations total, using alpha point zero five. The group means are thirteen point two seven one, eighteen point three eight three, and fifteen point three three eight. Each machine gets its own center. Their sample standard deviations are about one point one nine three, one point four zero eight, and point seven four six. Machine three looks tightest. After taking absolute deviations, the transformed group means are point nine one zero, one point zero two two, and point six one three. ANOVA on those deviations gives W equal to point seven nine eight five, with numerator degrees of freedom two and denominator degrees of freedom eighteen. The point zero five upper-tail critical value is three point five five five. The observed W remains well below that boundary. The p-value is point four six five, above alpha. Fail to reject a common population spread; do not rewrite that conclusion as proof of equality.
Add one hundred to every Machine One value and nothing changes. Group-specific shifts preserve every absolute deviation, W, and p-value. Multiply Machine Two by two and its spread doubles. Here W becomes three point seven zero nine and p falls to point zero four four eight. Replace one Machine One value by forty and mean-centered Levene rejects at p point zero two nine nine, while Brown-Forsythe remains nonsignificant at point three four three. Give three groups the identical shape but shift their locations far apart. W becomes essentially zero and p equals one because spread, not mean, is the target. Validation stops fewer than two or more than twelve groups, undersized groups, nonfinite values, invalid alpha, and zero within-group variability among deviations. Report the independent-group design, center choice, group sizes and standard deviations, W, both degrees of freedom, upper-tail p, alpha, and shape or power cautions. Use Brown-Forsythe for skew, the two-group F test only under strong normality, and Welch for unequal-variance mean comparisons. Run the Levene Test free at Distri Scope dot com.
How to read the result
Read the standard-deviation column first: a significant W with SDs of 1.2 versus 1.4 may be practically irrelevant, while a non-significant W with SDs of 1 versus 3 in tiny samples is a power warning, not reassurance.
The transformed-deviation construction means W responds to any spread difference, not variance specifically—heavier tails in one group can register even at equal variances.
When this page and the Brown-Forsythe page disagree, the disagreement is informative: it usually means skew or outliers are driving the mean-centered result.
How to use the Levene test calculator
Enter each group in its own field using the add and remove controls (2 to 12 groups); every group needs at least two observations, and sizes may differ.
The group summary table reports each group’s standard deviation—read it alongside the p-value, because the ratio of largest to smallest SD is often more informative than significance.
Only the significance level is configurable; the test is inherently two-sided in the “any inequality” sense.
Formula, hypotheses, and assumptions
Conditions to review
- Independent observations within and between groups
- Groups measured on the same interval scale
- Approximate normality helps the mean-centered version
- Two or more groups with at least two observations each
Calculator parameters
- Significance Level (α): default 0.05.
What the method is doing
The calculator computes Zᵢⱼ = |xᵢⱼ − x̄ᵢ| within each group and refers the one-way ANOVA F statistic on the Z values to F(k−1, N−k); this reproduces scipy’s levene(center="mean") to numerical precision.
The statistic is conventionally called W but is an F statistic in construction; the display uses the F machinery, including the critical value at the chosen α.
No post-hoc spread comparisons are offered; a significant result says spreads differ somewhere, and pairwise follow-up needs its own multiplicity-controlled plan.
Worked example: spread across three machines
Three machines produce parts measured on the same scale. Machine 1: 12.1, 14.3, 11.8, 13.5, 12.9, 15.2, 13.1 (n=7). Machine 2: 18.4, 16.2, 19.1, 17.5, 20.3, 18.8 (n=6). Machine 3: 14.9, 15.5, 16.1, 14.2, 15.8, 16.4, 15.1, 14.7 (n=8). Test equal variances at α = 0.05.
- 1Center each group at its mean and take absolute deviations; the three groups’ average deviations are similar in size.
- 2Run the ANOVA F on the deviations: W ≈ 0.799 with df = (2, 18).
- 3The p-value is P(F₂,₁₈ > 0.799) ≈ 0.465, far above α = 0.05, so equal variances are not rejected.
- 4Check the SD column: the three sample standard deviations (≈1.18, ≈1.44, ≈0.77) differ by less than a factor of two, consistent with the non-significant result.
Interpretation
The spread differences among these machines are within what sampling noise routinely produces at these sizes (p ≈ 0.465). Pooled-variance procedures on the means would not be contradicted by this check—though with 21 total observations the test could only have caught fairly large variance differences, a caveat that belongs in any honest report.
Common mistakes
- Do not run Levene as a significance ritual and then choose the mean test based on its p-value; this two-stage procedure distorts error rates, and defaulting to Welch procedures avoids the problem.
- Do not use the mean-centered version on visibly skewed data and then trust a rejection; re-run the Brown-Forsythe version before concluding anything.
- Do not equate variance equality with distribution equality; groups can share a variance while differing in shape, skew, and tails.
Limits and independent validation
Power is modest at small group sizes, exactly where the equal-variance assumption matters most—an unavoidable irony of assumption checking.
Only the omnibus question is answered; no pairwise spread comparisons or variance-ratio intervals are produced.
The mean-centered form is not robust to skew; that robustness is the Brown-Forsythe page’s reason to exist.
Before using the result
- Cross-check with scipy: levene(group1, group2, group3, center="mean") must reproduce the W and p-value shown here.
- Recompute one group’s mean absolute deviation by hand and compare with intuition against the other groups.
- Run the Brown-Forsythe version on the same data; agreement strengthens the conclusion, and disagreement localizes skew or outliers as the cause.
Related modules and resources
Explore Other Hypothesis Tests
- One Sample Z-Test Calculator
- One Sample T-Test Calculator
- Two Sample Z-Test Calculator
- Two Sample T-Test Calculator
- Paired T-Test Calculator
- One-Way ANOVA Calculator
- Two-Way ANOVA with Replication
- Chi-Square Test Calculator
- Chi-Square Goodness-of-Fit Test
- F-Test Calculator
- One-Proportion Z-Test
- Two-Proportion Z-Test
- Exact Binomial Test
- Fisher’s Exact Test
- McNemar Test
- Mann-Whitney U Test
- Wilcoxon Signed-Rank Test
- Sign Test
- Kruskal-Wallis Test
- Friedman Test
- Pearson Correlation Test
- Spearman Correlation Test
- Kendall Tau Test
- Levene Test
- Brown-Forsythe Test
- Welch ANOVA
- Repeated Measures ANOVA
- TOST Equivalence Test
- Power & Sample Size
- Confidence Interval Calculator
- Critical Value Lookup
See every option in the Statistical Hypothesis Test Calculator or review the DistriScope methodology. Educational information; last reviewed 2026-08-09. Verify consequential calculations independently.