🔭 Sample Size Calculator
Estimate required sample size for a survey or A/B test from margin of error, confidence level, and population size.
How Many Respondents Before You Can Trust the Survey?
BrainyCalculators editorial insight — unique to this tool
Sample size formulas link confidence level (usually 95%), margin of error (±3% is standard for national polls), and population proportion — maximum n occurs at p = 0.5. A customer NPS study targeting ±5% MOE on a 50,000-user base might need ~385 responses (finite population correction lowers this). Under-powered A/B tests waste traffic; overpowered tests detect trivial lifts.
When to use this calculator
Use before fielding a survey or experiment to set n. After you have data and a sample mean, use Confidence Interval to report the range.
| Reference | Value | Context |
|---|---|---|
| ±3% MOE, 95% | ~1,067 | Infinite population |
| ±5% MOE, 95% | ~385 | Common CX surveys |
| A/B test (80% power) | Varies by MDE | Often 1k+ per arm |
| Finite pop. correction | Lowers n | When n > 5% of N |
Not what you need? After collecting data, report uncertainty with Confidence Interval — not Sample Size.
Building a confidence interval from existing data?
This page plans how many observations to collect. For CI around a mean you already have, use the Confidence Interval Calculator →
Use 0.5 if unknown (most conservative)
Effect of Sample Size on Margin of Error
| Sample Size | Margin of Error | vs Required |
|---|
What is Sample Size?
Sample size calculation determines how many respondents you need for a target margin of error and confidence level, optionally adjusted for finite populations.
Use this page before fielding a survey or experiment. After you have collected data and want a range for the mean, use the Confidence Interval Calculator.
Percentile and z-score tools describe existing measurements; sample size plans future collection.
Sample Size Formulas
How to Choose the Right Sample Size
-
1Set Margin of ErrorSmaller margins (e.g. ±3%) require larger samples. For most surveys, ±5% is a practical balance.
-
2Choose Confidence Level95% is the industry standard. 99% gives more certainty but demands a larger sample.
-
3Estimate Population ProportionIf unknown, use p=0.5. This maximises the required sample and ensures you won't undersample.
-
4Apply Finite CorrectionIf your population is small and known, use the finite correction formula to reduce the required sample size.
Worked Example
A researcher wants a 95% CI, ±5% margin, and estimates p=0.5.
How the Sample Size Calculator Works
Formula, assumptions, and calculation steps for this statistics tool.
Methodology
Statistics calculators organize sample data, apply the selected descriptive or inferential formula, and report the statistic with interpretation.
Calculation Steps
- Enter raw values or summary statistics.
- Clean separators and count the sample size.
- Apply the relevant statistic, probability, or confidence formula.
- Display the result with context such as degrees of freedom, percentile, or strength.
Assumptions and Limits
- Samples should be representative of the population being studied.
- Normality or independence assumptions apply only where the selected method requires them.
- Rounded results may differ slightly from spreadsheet software.
Frequently Asked Questions
Sample size is the number of individuals or observations selected from a population for a study. A larger sample produces more reliable and precise results, but at greater cost and time.
The margin of error quantifies the uncertainty in survey results. A ±5% margin at 95% confidence means the true population value is within 5 percentage points of your sample result 95% of the time.
Higher confidence levels require larger samples. Increasing from 95% to 99% confidence increases the required sample by roughly 75% while keeping margin of error constant.
p is the estimated fraction of the population with a specific characteristic. Using p=0.5 maximises the required sample and is the safe default when you have no prior data.
Real-World Applications
Common Mistakes
Required Sample Size by Margin of Error (95% Confidence, p=0.5)
| Margin of Error (±) | Required n | Typical Use Case |
|---|---|---|
| ±10% | 97 | Exploratory / small-scale research |
| ±5% | 385 | Standard market research, surveys |
| ±3% | 1,068 | National polls, large-scale surveys |
| ±2% | 2,401 | High-precision public health studies |
| ±1% | 9,604 | Very high precision requirements |
References
- Cochran, W.G. Sampling Techniques. Wiley, 1977.
- Cohen, J. Statistical Power Analysis for the Behavioral Sciences. Lawrence Erlbaum, 1988.
- Fleiss, J.L., Levin, B. and Paik, M.C. Statistical Methods for Rates and Proportions. Wiley, 2003.
- Krejcie, R.V. and Morgan, D.W. "Determining Sample Size for Research Activities." Educational and Psychological Measurement, 1970.
- Ioannidis, J.P.A. "Why Most Published Research Findings Are False." PLOS Medicine, 2005.
Related Calculators
Browse all Statistics calculators →Confidence Interval Calculator
Calculate confidence intervals for means and proportions.
Z-score Calculator
Calculate z-score (standard score) and find corresponding probabilities.
Probability Calculator
Calculate basic probability, combined events, and conditional probability.