Power Analysis Sample Size Calculator
Work out how many participants you need before collecting data with an a priori power analysis. For independent and paired t tests, one-way ANOVA and correlation; nothing to install, and the results match G*Power.
- Free · no sign-up
- The calculation runs in your browser; the values you enter are not sent to the server.
How is it calculated?
What is power analysis?
Statistical power (1 − β) is the probability that a test finds an effect that really exists. An a priori power analysis ties four quantities together: effect size, significance level (α), power and sample size. You set the first three; the fourth is calculated.
In the social sciences α = .05 and power = .80 are the most common choices (Cohen, 1988): you aim to catch a true effect four times out of five. Take the effect size from earlier studies in your field or from pilot data if you can; otherwise choose one of Cohen’s small, medium or large benchmarks and justify it.
How is it calculated?
Common hand formulas use a normal approximation and come out a few participants short in small samples. This calculator does not approximate: it computes power from the exact distribution of the test statistic under the alternative hypothesis and searches for the smallest sample at which power reaches the target.
The independent-samples t test uses the noncentral t distribution with 2n − 2 degrees of freedom and noncentrality δ = d·√(n/2). The paired t test uses df = n − 1 and δ = dz·√n. One-way ANOVA uses the noncentral F distribution with df₁ = k − 1, df₂ = N − k and λ = f²·N.
For a correlation it uses the exact distribution of the sample correlation under the bivariate normal model, which is “Exact: Correlation, bivariate normal model” in G*Power. The textbook Fisher z approximation usually gives one person more (85 instead of 84 for r = .30); it is shown too so you can compare.
Example results
With α = .05, power = .80 and a two-tailed test: an independent-samples t test needs 64 per group (128 in total) for d = 0.50, 26 per group for d = 0.80 and 394 per group for d = 0.20. A paired t test needs 34 people for dz = 0.50. A three-group ANOVA needs 159 in total for f = 0.25 and 66 for f = 0.40. A correlation of r = .30 needs 84 people. These are the values G*Power gives.
How to report it
In the method section state the test, the effect size and where it came from, α, power, whether the test was one- or two-tailed, and the resulting number. The calculator writes this sentence for you. It is normal to recruit somewhat more than the calculated number to allow for attrition; report the number you actually reached as well.
Frequently asked questions
- Is the result the same as G*Power?
- Yes. The calculation rests on the same distributions as G*Power: noncentral t for t tests, noncentral F for ANOVA, the exact distribution for correlation. The results for common examples (128 in total for d = 0.50; 159 for f = 0.25 with three groups; 84 for r = .30) are identical to G*Power’s.
- What should I enter if I don’t know the effect size?
- First look at similar studies or a meta-analysis in your field. If there are none, choose one of Cohen’s (1988) benchmarks: for d, 0.20 small, 0.50 medium, 0.80 large; for f, 0.10, 0.25, 0.40; for r, .10, .30, .50. Say which one you chose and why.
- For a survey, should I use this or Cochran’s formula?
- It depends on the aim. To estimate a proportion or a mean within a margin of error (a descriptive survey), Cochran’s or Yamane’s formula fits. To compare groups or test a relationship, you need a power analysis.
- What changes with a one-tailed test?
- The required sample is smaller (102 in total instead of 128 for d = 0.50). But a one-tailed test is defensible only if you fixed the direction of the effect on theoretical grounds before collecting data.
Other free calculators
- Sample Size Calculator
- Cronbach’s Alpha Calculator
- p-Value Calculator
- Effect Size Calculator
- Reference Generator from DOI
- Lawshe Content Validity Ratio and Index Calculator
- AVE and Composite Reliability (CR) Calculator
- KR-20 Reliability Calculator
- Cohen’s Kappa and Percent Agreement Calculator
- Likert Scale Score Range Calculator
- Normality from Skewness and Kurtosis
- Independent-Samples t Test Calculator
- Chi-Square Test of Independence Calculator
- Confidence Interval Calculator