Sample Size Calculator
StatisticsFind the minimum sample size needed for a survey or experiment in seconds. Enter confidence level and estimated standard deviation to get your answer.
Reviewed by the thecalcu.com team · Last updated July 15, 2026
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.
Why Use a Sample Size Calculator?
Planning a study without calculating required sample size upfront risks two costly mistakes: under-sampling (your results turn out too imprecise to draw firm conclusions, wasting the entire study) or over-sampling (you spend far more time and money than necessary collecting data whose extra precision adds little value).
This calculator makes the underlying formula, which involves squaring a ratio of z-score, standard deviation, and margin of error, instant and error-free. It also shows the raw, unrounded calculation alongside the properly rounded-up final sample size, so you understand exactly how the number was derived.
For teams that need to justify a research budget or timeline to stakeholders, having a clear, formula-backed sample size requirement is far more persuasive than an arbitrary round number.
Who Should Use This Calculator?
Market researchers and survey designers planning how many respondents are needed before launching a customer satisfaction survey, product feedback study, or market sizing research.
Academic researchers and graduate students determining sample size requirements for a thesis, dissertation, or grant proposal, where reviewers commonly ask for a justified sample size calculation.
UX researchers and product teams planning usability studies or in-app surveys, where over-sampling wastes user goodwill and under-sampling produces unreliable insights.
Quality assurance and manufacturing teams determining how many units from a production run must be inspected to estimate a quality metric (like average tensile strength) within an acceptable margin of error.
Clinical and public health researchers planning studies that require institutional review board justification for sample size and statistical power.
What Insights Does This Calculator Give You?
Required Sample Size, the headline number: the minimum count of observations needed, always rounded up to guarantee your target precision is met or exceeded.
Z-Score Used, the confidence-level multiplier driving the calculation. Seeing this explicitly helps you understand why increasing confidence level increases the required sample size.
Raw (Unrounded) Value, the exact mathematical result before rounding, useful for understanding how close you are to a sample size threshold and for sensitivity-checking your inputs.
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.
Show formula & methodology ↓Show less ↑
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