Sample Size Calculator
StatisticsFind the minimum sample size needed for a survey or experiment in seconds. Enter confidence level, margin of error, and estimated standard deviation to get your answer.
Required Sample Size
What is a Sample Size?
The Sample Size Calculator tells you the minimum number of observations needed in a sample to estimate a population mean with a target margin of error, at a chosen confidence level. Enter your desired confidence level, target margin of error, and an estimated standard deviation, and the calculator returns the exact sample size you need to collect.
Determining sample size before collecting data is one of the most important ā and most frequently skipped ā steps in research design. Collecting too few observations produces an estimate too imprecise to be useful; collecting far more than necessary wastes time and budget. This calculator removes the guesswork from that planning step.
Once you've collected data at the recommended sample size, feed your actual results into the Confidence Interval Calculator to report your final result as a precise range.
How to use this Sample Size calculator
Select your confidence level ā 90%, 95% (most common), or 99% depending on how certain you need to be.
Enter your desired margin of error ā how precise you want your final estimate to be, in the same units as your standard deviation.
Enter your estimated standard deviation ā from a pilot study, prior research, or a reasonable assumption about your population's variability.
Read the required sample size ā this is the minimum number of observations to collect.
Add a practical buffer ā consider collecting 10-20% more than the calculated minimum to account for incomplete or unusable responses.
Use the actual data with the Confidence Interval Calculator ā once your study is complete, plug your real sample mean and standard deviation into the Confidence Interval Calculator to report your final range.
Formula & Methodology
Sample size formula (for a mean, continuous data): n = (z Ć Ļ / E)² Variable definitions: - z ā z-score for the chosen confidence level (1.645 for 90%, 1.96 for 95%, 2.576 for 99%) - Ļ ā estimated population standard deviation - E ā desired margin of error Worked example: A researcher wants to estimate average daily screen time with 95% confidence and a margin of error of ±5 minutes, based on a prior study estimating a standard deviation of 15 minutes. Step 1 ā z = 1.96 (95% confidence) Step 2 ā n = (1.96 Ć 15 / 5)² = (5.88)² = 34.57 Step 3 ā Round up: n = 35 respondents Assumption: This formula is for estimating a population mean from continuous data and assumes the population is large relative to the sample (no finite population correction applied). For estimating a proportion (e.g., a yes/no survey question), the related formula n = (z² Ć p(1āp)) / E² should be used instead, with p as the estimated proportion (0.5 is the conservative default when no prior estimate exists).
Frequently Asked Questions