How to Use the Power Analysis Calculator
This power analysis calculator allows you to determine the required sample size for a study or estimate its statistical power based on the planned sample size.
To use the calculator:
- Select the statistical test. Choose the test you intend to use for your study, such as an independent-samples t-test, paired t-test, one-way ANOVA, or Pearson correlation.
- Choose what to calculate. Select Required Sample Size if you want to determine how many participants you need, or Statistical Power if you already have a planned sample size.
- Enter the study parameters. Specify the expected effect size, significance level, and desired power. Depending on the selected test, you may also need to enter the allocation ratio, number of groups, or expected proportions. You can also specify the anticipated dropout rate when calculating the required sample size.
- Click Calculate.
The calculator will display the required sample size or statistical power, together with a power curve and sample size sensitivity table. You can also click Copy Results to copy the analysis for your research proposal or study documentation.
What Is Statistical Power?
Statistical power is the probability of correctly rejecting a false null hypothesis when an effect of a specified size exists in the population.
Its formula is: Power = 1 − β
Where β is the probability of making a Type II error, which occurs when a statistical test fails to reject a false null hypothesis.
For example, a statistical power of 80% means that a study has an 80% probability of detecting the specified effect, assuming that the effect exists and the assumptions of the test are satisfied.
In most studies, researchers commonly use 80% or 90% statistical power when determining the required sample size. However, the appropriate power depends on the purpose of the study and the consequences of failing to detect an effect.
How to Calculate Sample Size Using Power Analysis
Power analysis is commonly performed before collecting data to determine the number of participants needed to detect an expected effect.
The required sample size depends on the following four main factors:
- Effect size. The magnitude of the difference or relationship you expect to detect. Smaller effects generally require larger samples.
- Significance level (α). The probability of making a Type I error. A significance level of 0.05 is commonly used.
- Statistical power (1 − β). The desired probability of detecting the specified effect. Increasing the desired power generally increases the required sample size.
- Statistical test: Different tests use different sampling distributions and sample-size calculations.
Tip. The effect size entered into the calculator should ideally come from previous research, a pilot study, or a meaningful difference you want the study to detect.
If you already have summary statistics from a previous study, you can use the Effect Size Calculator to estimate Cohen’s d, Cohen’s f, or another appropriate effect size.
Which Statistical Test Should You Choose?
The appropriate test depends on your research design and the type of outcome being studied. The table below provides a brief summary of the common statistical tests and when to use each of them.
| Statistical Test | When to Use It |
|---|---|
| One-Sample T-Test | To compare a sample mean with a specified reference mean |
| Paired-Samples T-Test | To compare two related measurements, such as before and after treatment |
| Independent-Samples T-Test | To compare the means of two independent groups |
| One-Way ANOVA | To compare the means of three or more independent groups |
| Pearson Correlation | To investigate a linear relationship between two quantitative variables |
| Two Independent Proportions | To compare percentages or proportions between two independent groups |
Example: Calculate the Required Sample Size
Suppose a researcher wants to compare the mean examination scores of students taught using two different teaching methods.
The researcher plans to use an independent-samples t-test with the following assumptions:
- Expected effect size: Cohen’s d = 0.50
- Significance level: α = 0.05
- Desired statistical power: 80%
- Alternative hypothesis: Two-tailed
- Allocation ratio (n₂/n₁): 2
Find the required sample size for the study.
Solution
To determine the required sample size, we can use the Power Analysis Calculator as follows.
Step 1: Select the statistical test
Since the researcher intends to compare the mean examination scores of two independent groups of students, select Independent T-Test from the available statistical tests.
Step 2: Choose what to calculate
Select Required Sample Size since we want to determine the minimum number of students needed to achieve the desired statistical power.
Step 3: Enter the study parameters
Enter the values provided in the question as follows:
- Effect Size (Cohen’s d): 0.50
- Allocation Ratio (n₂/n₁): 2
- Significance Level (α): 0.05
- Alternative Hypothesis: Two-Tailed
- Desired Statistical Power: 80%
- Expected Dropout: 0%
Note that an allocation ratio of 2 means that Group 2 will have twice as many students as Group 1. Also, we have assumed a dropout rate of 0% since the question does not specify one.
Step 4: Calculate
After clicking the calculate button, the calculator will give the following results:
| Group | Required Sample Size |
|---|---|
| Group 1 | 48 |
| Group 2 | 96 |
| Total | 144 |
The achieved statistical power is approximately 80.21%.
Step 5. Interpret the results
Therefore, the researcher needs at least 144 students, with 48 in Group 1 and 96 in Group 2, to achieve the desired statistical power of 80% at a significance level of 0.05.
The calculator also displays a power curve showing how statistical power changes with sample size, as shown below.

You can use the sample size sensitivity table to compare the power associated with different sample sizes.
After collecting the data that meet the minimum sample size, the researcher can use the Independent Samples T-Test Calculator to compare the mean examination scores of the two groups.
How to Interpret the Power Curve
The power curve shows how statistical power changes as the sample size increases, assuming the effect size, significance level, and other study parameters remain constant.
In the graph:
- The horizontal axis represents the total analyzable sample size.
- The vertical axis represents statistical power.
- The green point indicates the calculated sample size and its corresponding power.
- The dashed horizontal line represents the desired power or an 80% reference level, depending on the selected calculation.
The sample size sensitivity table below the graph allows you to compare the statistical power associated with different sample sizes. This can help you determine whether increasing the sample size would provide a meaningful improvement in power.
Power Analysis vs. Sample Size Calculation
Sample size calculations and power analysis serve different purposes. Power analysis determines the number of participants needed to detect a specified effect using a particular statistical test. It is commonly used when planning experiments, clinical studies, and other hypothesis-testing research.
However, if your objective is to estimate a population mean or proportion with a specified confidence level and margin of error, you should use the Sample Size Calculator instead.
Frequently Asked Questions
A power analysis calculator determines the sample size needed to detect an expected effect with a specified statistical power. It can also estimate the statistical power of a study when the sample size is already known.
A statistical power of 80% is commonly used in research, although some studies require 90% or higher. The choice depends on the research objectives, expected effect size, and consequences of failing to detect a meaningful effect.
The allocation ratio is the ratio of the sample size in Group 2 to that in Group 1. For example, a ratio of 1 means both groups have equal sample sizes, while a ratio of 2 means Group 2 has twice as many participants as Group 1. Unequal allocation generally requires a larger total sample size than equal allocation to achieve the same power in a two-group comparison, assuming other parameters remain unchanged.
A smaller expected effect size generally requires a larger sample size to achieve the same statistical power. This is because smaller differences or relationships are more difficult to detect statistically.
Generally, yes. Increasing the sample size reduces sampling uncertainty, making it easier to detect a specified effect. You can use the power curve and sensitivity table to examine how power changes with sample size.
Yes. When calculating the required sample size, you can enter the expected dropout percentage. The calculator will provide an adjusted recruitment target so that the study is more likely to retain the required number of analyzable participants. However, this adjustment does not correct for bias caused by missing data or dropout.
