keepcalculator

06 Numbers and Powers

Power Analysis Calculator for Statistical Study Design

Card No. 06·61019 · Updated · Standard formula, shown below

Approximate participants per group 63 people
Approximate total participants
126 people
Result
Standardized effect size (Cohen's d)
0.5
You entered
Significance level (alpha)
0.05
You entered
You enter
Standardized effect size (Cohen's d), Significance level (alpha), Desired statistical power
You get
Approximate participants per group, Approximate total participants
Rounding
0 dp

A power analysis calculator estimates the sample size needed for a statistical test when you specify the expected effect, significance level, and desired power. Enter those three values to get an approximate number of observations per group for a two-sided, independent two-sample t-test with equal group sizes.

Formula

This calculator uses a normal-approximation formula for the sample size in a two-sided test comparing the means of two independent groups of equal size:

n per group ≈ 2 × [(z1−α/2 + z1−β) / d]2

  • n is the approximate number of participants or independent observations in each group.
  • d is Cohen’s standardized effect size: the anticipated difference between group means divided by the common standard deviation.
  • α (alpha) is the significance level, or probability of a Type I error under the test’s assumptions.
  • β (beta) is the probability of a Type II error; desired power is 1 − β.
  • z1−α/2 and z1−β are standard normal quantiles. For alpha 0.05 and power 0.80, they are approximately 1.960 and 0.842.

The output is rounded to a whole observation because people cannot be enrolled fractionally. The calculation uses fixed z-values for the default alpha and power, so it is an approximation for those settings, not a general solver for every alpha and power entered. For a rigorous analysis, use software that calculates the required quantiles and exact noncentral t distribution for the selected test. The displayed result is best treated as a planning estimate, not a final design calculation.

Worked Example

Using the calculator’s default values—Cohen’s d = 0.5, alpha = 0.05, and power = 0.80—the approximate sample size is:

  1. Add the two normal quantiles: 1.959963984 + 0.841621234 = 2.801585218.
  2. Divide by the effect size: 2.801585218 ÷ 0.5 = 5.603170436.
  3. Square the result and multiply by two: 2 × 5.603170436² ≈ 62.790.
  4. Round up to a whole participant: approximately 63 participants per group, or 126 total.

Rounding up is appropriate for a minimum sample estimate: rounding down could leave the planned sample below the calculated requirement. This example uses the fixed constants shown in the block, so the arithmetic matches its formula.

What Power Means

Statistical power is the probability that a specified test will reject its null hypothesis when a particular alternative is true. A power target of 0.80 means an 80% chance of detecting the effect used in the calculation, assuming the model and other inputs are appropriate. It does not mean there is an 80% chance that a result is true, nor does it guarantee a statistically significant result.

Power depends on the effect size, sample size, variability, significance threshold, test, and study design. Larger effects are easier to detect. Greater variability makes a given difference harder to distinguish, while a stricter alpha generally requires more observations. Power analysis is therefore conditional: changing the anticipated effect or analysis plan changes the answer.

When to Use a Power Analysis

Researchers commonly use an a priori power analysis before collecting data to justify a sample-size target. It can make a study more informative by reducing the chance of an underpowered design, while avoiding an unnecessarily large sample based on an unrealistically small target effect. The effect-size assumption should come from relevant prior studies, a meaningful difference defined for the research question, or a defensible pilot estimate—not simply the largest effect that produces a convenient sample size.

This particular calculator is intended for a narrow case: a continuous outcome, two independent groups, equal allocation, a two-sided comparison of means, and approximately normal errors with a shared variance. Do not apply its result directly to a paired study, a one-sample test, proportions, counts, survival outcomes, clustered data, or a multi-arm design. Those situations need a formula or software suited to the actual analysis.

How to Choose the Inputs

  • Effect size: Cohen’s d expresses the mean difference in standard-deviation units. For example, d = 0.5 means the planned difference is half a standard deviation. It is not a difference of 0.5 points unless the standard deviation is one point.
  • Alpha: A commonly chosen value is 0.05, but the threshold should be established for the study and analysis plan. If multiple comparisons or interim analyses affect the testing procedure, a simple single-test alpha may not be appropriate.
  • Power: A target such as 0.80 or 0.90 is a design choice, not a universal rule. Increasing the target generally increases the sample-size requirement.
  • Group allocation: The calculation assumes equal numbers in the two groups. Unequal allocation changes the required total and should be modeled directly rather than handled by treating this result as exact.

Choose the smallest effect that would still matter for the research question, where possible. If the estimated effect is too optimistic, the resulting sample-size target may be too low. A confidence interval around an effect estimate, sensitivity analyses across several plausible effects, and a clearly explained rationale can help show how uncertain the planning assumption is.

Common Limitations and Mistakes

The first common mistake is treating power analysis as a guarantee. It is a probability calculated under assumptions, and real data may depart from those assumptions. A second is confusing statistical significance with practical importance: a small effect can be statistically detectable with enough data, yet have little substantive value.

This calculator’s constants correspond to alpha 0.05 and power 0.80 even though the fields let you enter other values. Accordingly, changing alpha or power does not change the sample-size result. Use it only with those default settings; for other targets, use validated statistical software that implements the chosen test and parameters. Even at the defaults, the normal approximation can differ from an exact t-test result, especially with small samples.

Also distinguish the number analyzed from the number recruited. If some participants may withdraw, measurements may be unusable, or records may be missing, the recruitment target may need to be larger. That adjustment depends on a justified estimate of attrition or missingness; it is not included in this calculator. For cluster-randomized studies, repeated measurements, or complex models, account for the design and analysis rather than applying a simple independent-observation total.

Frequently Asked Questions

What is a power analysis calculator?
A power analysis calculator estimates a sample size or another study-design quantity from assumptions such as effect size, alpha, and desired power. The result is valid only for the statistical test and assumptions represented by the calculator.

What does a power of 80% mean?
It means that, under the specified alternative effect and model assumptions, the test has an 80% probability of rejecting the null hypothesis. It is not the probability that the hypothesis is correct.

What is Cohen’s d?
Cohen’s d is a standardized mean difference: the difference between two group means divided by a standard deviation. It allows effects measured in different units to be expressed on a common scale, but the chosen value must still be justified for the study.

Does this calculator work for a paired t-test?
No. A paired test uses within-person differences and their variability, so its sample-size calculation is different. Use a calculator or statistical package designed for paired observations.

Why does changing alpha or power not change the result here?
The formula block uses fixed normal quantiles for alpha 0.05 and power 0.80. Its alpha and power fields do not feed into those constants, so they must remain at those defaults. For other settings, use software with a formula that recalculates the quantiles and test distribution.

Related

Formula used
in effect | Standardized effect size (Cohen's d) | - | 0.5 | 0
in alpha | Significance level (alpha) | - | 0.05 | 0 | 1
in power | Desired statistical power | - | 0.8 | 0 | 1
out n | Approximate participants per group | people | 2 * ((1.959963984 + 0.841621234) / effect)^2 | 0
out total | Approximate total participants | people | 2 * n | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →