Power Analysis Calculator
Calculate power analysis using your data.
Loading calculator…
What this tool does
Calculate power analysis using your data. Normal approximation, labelled as such: exact t-based power (noncentral t) differs slightly, especially at small n. Power is a pre-study design quantity — 'post-hoc power' computed from an observed effect adds no information beyond the p-value.
How to use the Power Analysis Calculator
- Enter or select design.
- Enter or select effect size — cohen's d (t-test).
- Enter or select proportion 1 (%) (proportions).
- Enter or select proportion 2 (%) (proportions).
- Enter or select significance level (α).
- Enter or select desired power.
- Enter or select actual sample size per group (for achieved power).
- Read the calculated result; change any measurement to compare alternatives.
Formula
normal approximation: t-test n per group = 2((z₁₋α/2 + z_power)/d)²; proportions use the pooled/unpooled two-proportion formula; achieved power inverts the same formulas
- mode
- Design
- d
- Effect size — Cohen's d (t-test)
- p1
- Proportion 1 (%) (proportions)
- p2
- Proportion 2 (%) (proportions)
- alpha
- Significance level (α)
- power
- Desired power
- ngiven
- Actual sample size per group (for achieved power)
Normal approximation, labelled as such: exact t-based power (noncentral t) differs slightly, especially at small n. Power is a pre-study design quantity — 'post-hoc power' computed from an observed effect adds no information beyond the p-value.
Worked example
For power analysis calculator, the following measurements illustrate the exact method: Design: t; Effect size — Cohen's d (t-test): 0.5; Proportion 1 (%) (proportions): 10; Proportion 2 (%) (proportions): 12; Significance level (α): 0.05; Desired power: 0.80; Actual sample size per group (for achieved power): 50.
Inputs
- DesignTwo-sample t-test (means)
- Effect size — Cohen's d (t-test)0.5
- Proportion 1 (%) (proportions)10
- Proportion 2 (%) (proportions)12
- Significance level (α)5%
- Desired power80%
- Actual sample size per group (for achieved power)50
Result
- Required sample size per group63
- Total sample size (both groups)126
- Achieved power at the entered n per group (%)70.54
Results explained
- Required sample size per group
- Required sample size per group from the formula above. Normal approximation, labelled as such: exact t-based power (noncentral t) differs slightly, especially at small n. Power is a pre-study design quantity — 'post-hoc power' computed from an observed effect adds no information beyond the p-value.
- Total sample size (both groups)
- Total sample size (both groups) from the formula above. Normal approximation, labelled as such: exact t-based power (noncentral t) differs slightly, especially at small n. Power is a pre-study design quantity — 'post-hoc power' computed from an observed effect adds no information beyond the p-value.
- Achieved power at the entered n per group (%)
- Achieved power at the entered n per group (%) from the formula above. Normal approximation, labelled as such: exact t-based power (noncentral t) differs slightly, especially at small n. Power is a pre-study design quantity — 'post-hoc power' computed from an observed effect adds no information beyond the p-value.
Frequently asked questions
normal approximation: t-test n per group = 2((z₁₋α/2 + z_power)/d)²; proportions use the pooled/unpooled two-proportion formula; achieved power inverts the same formulas
Normal approximation, labelled as such: exact t-based power (noncentral t) differs slightly, especially at small n. Power is a pre-study design quantity — 'post-hoc power' computed from an observed effect adds no information beyond the p-value.
Enter numbers only, in the units and format each label describes. Remove missing values rather than substituting zero, unless zero is a real observation.
No. Results describe the numbers you entered. Statistical inference also depends on sampling design, independence, model fit and interpretation; a p-value is not the probability that a hypothesis is true.
No. Every calculation, including the distribution algorithms, runs entirely in your browser.