Power Analysis

Sample Size Calculator

Determine the right sample size for your study. All calculations run locally in your browser.

Sample Size for Means
Compare two group means with a two-sided t-test.
The minimum difference you want to detect between groups.
Expected standard deviation of the outcome measure.
Sample Size for Proportions
Compare two proportions with a two-sided z-test.
The expected proportion in the control or baseline group.
The proportion you expect in the treatment group.
Margin of Error Calculator
Calculate the margin of error for a given sample size and confidence level.
Number of respondents or observations.
Use 0.5 for maximum margin of error.