Opens in a new tab

CALCULATOR · SAMPLE SIZE & POWER

Power Calculator for a Planned Study

A statistical power calculator starts with what you can recruit: enter the group sizes, the difference you expect, the SD and the alpha. The power of the study and a curve of power against group size update as you type. Nothing you enter leaves your browser.

Runs in your browser. No data is sent or stored.

Method reviewed by an in-house statistician · Last checked November 2026

In Short

A statistical power calculator answers one question: with the group sizes already fixed, what is the chance of detecting the difference you expect? The answer is the study’s power for a two-sided t-test at your alpha, computed from the noncentral t distribution. Power rests on two inputs, the expected difference and the SD, and both must come from the literature or a pilot study. They must not come from the result of the study itself, because power computed from an observed effect after the study is a function of the p-value and adds no information.

How It Is Calculated

For two independent groups, power is the probability that the absolute t statistic exceeds the critical value, when the true difference is the one entered:

FORMULA

power = P( |T| > t(1 − α/2, df) ) df = n1 + n2 − 2 λ = δ / ( σ · √(1/n1 + 1/n2) )

T = a noncentral t variable with noncentrality λ · δ = expected difference between means · σ = common SD · n1, n2 = group sizes · α = two-sided significance level · t(q, df) = the q quantile of Student’s t with df degrees of freedom.

The calculation is the same one G*Power uses (Faul et al., 2007). The calculator also draws a curve of power against n1, with the ratio of the group sizes held fixed, from 5 up to three times your n1, so you can see how much a change in recruitment moves the power.

There is deliberately no “observed power” mode. The inputs are labeled “expected difference from the literature or a pilot”, in line with the criticism of post hoc power (Hoenig & Heisey, 2001).

Assumptions and When Not to Use It

  • Independent groups, two-sided t-test. The calculation assumes two independent groups, a continuous outcome and a common SD. For paired or before-and-after designs, see Pre-Post Study Design: Types and Analysis Options.
  • No clustering. Participants recruited in clinics, classrooms or households are more alike than strangers, and the power is lower than shown. Adjust first with the Design Effect Calculator and Cluster Sample Size.
  • Expected, not observed. The difference and the SD are planning assumptions from the literature or a pilot.
  • A non-zero difference. The sign of the difference is ignored, and a difference of zero is not accepted.
  • Valid inputs. The SD must be above zero and each group needs at least two participants. Otherwise the calculator returns a message, not a number.
  • Group sizes fixed. To find the sample size that reaches a target power, use the Sample Size Calculator for Research Studies.

Worked Example (Hypothetical Values)

A team can recruit 30 participants per group. They expect a 5-point difference on the outcome, a previous study reported an SD of 12, and they will test two-sided at an alpha of 0.05.

Input or result Value
Group sizes, n1 and n2 30 and 30
Expected difference δ 5 points
Standard deviation σ 12 points
Alpha, two-sided 0.05
Power 0.3548

With 30 per group the study has a power of about 0.35 for this difference. For the same inputs, the sample size calculator gives 92 per group for 0.80 power. Press “Load the worked example” under the calculator and these values fill the fields. HYPOTHETICAL VALUES.

What the Result Still Needs

  1. 1
    A sourced difference and SD. Both from the literature or a pilot, cited in the protocol, because the power depends on their ratio.
  2. 2
    Evaluable group sizes. The n1 and n2 entered are the participants expected to be analyzed, after dropout, and the protocol reports them separately from the number recruited.
  3. 3
    The design checked. Paired, clustered or repeated-measures data change the calculation.
  4. 4
    A sensitivity range. The power rerun with a larger SD or a smaller difference than assumed, and the curve for recruitment, so the committee sees the risk.
  5. 5
    A decision when power is low. If the power falls short of the target, the protocol states what changes (recruitment, outcome or design) or why the study still answers its question.
Have the inputs confirmed

A statistician checks the difference and the SD against your sources, reruns the calculation for your exact design and returns the justification paragraph you can paste.

Research Planning & Study Design
Already have a calculation?

Independent Statistical Review confirms a power or sample size calculation prepared by you, a colleague or an AI tool before it goes to a committee.

Independent Statistical Review

Frequently Asked Questions

No. Power computed from the observed effect after the study is a function of the p-value and adds no information. Enter the difference you expected from the literature or a pilot, and report the confidence interval for what you observed.

Yes. The calculation uses both group sizes in the noncentrality, so unequal groups are handled. With 20 and 40 participants, an expected difference of 0.6 and an SD of 1, the power is 0.5771. Enter the sizes you can realistically recruit in each group.

Power is the probability that a two-sided t-test rejects the null hypothesis when the true difference is the one entered, computed from the noncentral t distribution. It is the same calculation as G*Power. It applies to independent groups with a common SD.

It plots the power against the size of the first group, from 5 participants up to three times the n1 you entered, with the ratio between the groups held fixed. Read it as a sensitivity check on recruitment, not as a promise.

The sign is ignored, because the test is two-sided and the power depends on the size of the difference. A difference of zero is not accepted.

References

  1. Faul, F., Erdfelder, E., Lang, A.-G., & Buchner, A. (2007). G*Power 3: A flexible statistical power analysis program for the social, behavioral, and biomedical sciences. Behavior Research Methods, 39(2), 175-191. https://doi.org/10.3758/BF03193146
  2. Hoenig, J. M., & Heisey, D. M. (2001). The abuse of power: The pervasive fallacy of power calculations for data analysis. The American Statistician, 55(1), 19-24. https://doi.org/10.1198/000313001300339897
i

Method reviewed by an in-house statistician · Last checked November 2026 · Test cases and boundary cases verified before release

Found an error or have a suggestion? Write to info@onlinespss.com with the calculator name and the inputs you used. Every report is checked by a statistician.

Have a Statistician Confirm Your Power Calculation

Share the study aim, the outcome and the sources for your difference and SD. A statistically trained Research Coordinator reviews the request, and the scope and one fixed project fee are confirmed before work begins.

No Commitment Required

Strictly Confidential

Fixed Project Fee

In-House PhD-Level Statisticians

Same-Day Response