Statistical Calculators › Means: Many Groups (ANOVA) › One-Way ANOVA Sample Size Calculator
← All Calculators

Means: Many Groups (ANOVA)

One-Way ANOVA Sample Size Calculator

Determine the required sample size per group for a one-way ANOVA F-test using the exact noncentral F distribution. Enter the anticipated group means, common within-group standard deviation, significance level, and desired power. The calculation searches for the smallest equal group size that achieves the requested power.

Study Design

Equal allocation across all groups. The calculation uses the hypothesized means under H1.
Group means under H1

Required Sample Size

The result is the smallest equal sample size per group whose exact noncentral-F power meets or exceeds the requested power.
Enter the study assumptions and click Calculate Sample Size.

Methodology

This calculator implements the one-way analysis of variance F-test assuming normally distributed observations, a common within-group variance, independent groups, and equal group sample sizes. The null hypothesis is that all group means are equal; the alternative is that at least one mean differs.

Noncentral F calculation

For G groups with equal sample size n, the total sample size is N = Gn. The numerator degrees of freedom are G − 1 and the denominator degrees of freedom are N − G.

N = G × n
df1 = G − 1
df2 = N − G

Let the hypothesized group means be μ1, …, μG, and let σ be the common within-group standard deviation. With equal allocation, the weighted mean of the group means is their arithmetic mean:

μ̄ = (1/G) ∑ μi

σm2 = (1/G) ∑ (μi − μ̄)2

The noncentrality parameter is then

λ = N σm2 / σ2

The critical value is the upper α quantile of the central F distribution:

Fcrit = F1−α(G−1, N−G)

Power is the probability that a noncentral F random variable with numerator degrees of freedom G − 1, denominator degrees of freedom N − G, and noncentrality parameter λ exceeds this critical value. The calculator evaluates this probability directly and increments the equal group size until the requested power is reached.

What the inputs mean

Important interpretation

The omnibus ANOVA tests whether there is evidence that at least one population mean differs. It does not specify which pair of means differs. If the study also requires adequately powered pairwise comparisons or multiplicity-adjusted comparisons, those should be planned separately.

Validation example

this method provides a validation example from Fleiss (1986): four equal-sized groups with hypothesized means 9.775, 12, 12, and 14.225, common standard deviation 3, α = 0.05, and desired power 0.80. The published Validation 11 subjects per group, for a total sample size of 44, with actual power 0.80273. The calculator reproduces this result.

Groups = 4
Means = 9.775, 12, 12, 14.225
SD = 3
Alpha = 0.05
Desired power = 0.80
Expected result = 11 per group; N = 44; power = 0.80273

this method also reports that its calculation uses the exact noncentral F distribution rather than the normal approximation used in the original Fleiss calculation.

References

the software/this method. One-Way Analysis of Variance Assuming Equal Variances (F-Tests). this method Sample Size Software, Chapter 543. The documentation defines the noncentrality parameter, power calculation, assumptions, examples, and validation against Fleiss (1986) and Desu (1990).

Cohen, J. (1988). Statistical Power Analysis for the Behavioral Sciences, 2nd ed. Lawrence Erlbaum Associates, Hillsdale, NJ. Note that Cohen as a reference for the one-way ANOVA effect-size framework.

Fleiss, J. L. (1986). The Design and Analysis of Clinical Experiments. John Wiley & Sons. This calculator uses the four-group example from page 374 as a validation example and obtains N = 44.

the relevant methodological literature: Sample Size for Multiple Means in this method. Note that separate analytical one-way ANOVA procedures, including the equal-variance F-test and an effect-size formulation.