Sample Size Calculator
Before conducting a survey, experiment, or study, you need to determine how large your sample should be to achieve reliable results. Too small a sample gives inaccurate results; too large wastes resources. This calculator uses the standard formula based on your desired margin of error, confidence level, and estimated population proportion.
Sample Size Calculator Interactive Tool
Results
Results
How to use this calculator
- Enter the total population size (or leave large for infinite).
- Enter your desired margin of error (e.g., 5 for ±5%).
- Select your desired confidence level.
- The minimum sample size is calculated.
The Formula
The mathematical logic powering this calculation is:
n = (z² × p × (1-p)) / e²
(for finite population: n_adjusted = n / (1 + (n-1)/N))Worked Example
If you input:
- Population Size: 10000
- Margin of Error: 5
- Confidence Level: 95%
Result:
Sample Size: 370 based on the provided inputs and the sample size formula.
Frequently Asked Questions
What margin of error should I use?
A margin of error of ±5% with 95% confidence is the most common standard in market research. For more precise needs (medical research, policy), ±3% or ±2% may be required.
How should I interpret the sample size result?
Use the result as a focused estimate based on the inputs shown in the calculator. If the calculation affects money, health, school records, or compliance work, verify the inputs and compare the result with the relevant official source.
Similar Calculators
Confidence Interval Calculator
Calculate a two-sided confidence interval for a mean using sample SD with Student t or known population SD with z. See the margin and standard error.
Standard Deviation Calculator
Calculate sample or population standard deviation, variance, mean and extrema from complete decimal data. Preserve small differences and identify invalid entries.
Binomial Probability Calculator
Find exact, cumulative, or upper-tail binomial probabilities for repeated yes/no events.
