Sample Size Calculator
Find the sample size needed to estimate a proportion to within a margin of error at a chosen confidence level, with a population correction. Calculates in your browser.
Required sample size
-
Show the math
The base sample size for a proportion uses the z value and margin of error:
n = z² × p(1 − p) ÷ e²
The expected proportion is most demanding at 50%, which is the safe default when you have no estimate. A population size applies the finite-population correction, lowering the count. All math runs locally in your browser.
What this does
The sample size calculator finds how many responses a survey needs to estimate a proportion to within a chosen margin of error at a given confidence level. An optional population size applies the finite-population correction.
How to use it
- Choose a confidence level (e.g. 95%).
- Enter the margin of error you can accept.
- Optionally set the expected proportion and population size.
- Read the required sample size.
How it works
The base size uses the critical z-value, the expected proportion p, and the margin of error e. A known population size then reduces it via the finite-population correction. With no estimate for p, 50% is used because it needs the largest sample.
n = z² × p × (1 − p) ÷ e²
Understanding your result
The result is the minimum number of valid responses, so plan for non-response by inviting more people than this. Tightening the margin of error raises the sample size sharply — halving the margin roughly quadruples the size — while a larger population barely changes it once you are past a few thousand.
Example
A 95% confidence level with a ±5% margin needs about 385 responses for a large population.
Sources & methodology
Last updated .
Frequently asked questions
Why use 50% for the expected proportion?
A proportion of 50% maximises the required sample size, so using it gives the safest, most conservative estimate when you have no prior data.
Does the population size matter?
Only for small populations. The finite-population correction lowers the sample size noticeably for small groups but barely changes it once the population is in the thousands.
Is this the number of people to invite?
No — it is the number of completed responses you need. Invite more than this to allow for non-response.
Is my data stored?
No. Everything is calculated locally in your browser.
Related tools
Permutation & Combination Calculator
Calculate permutations (nPr) and combinations (nCr) for choosing r items from n, with the factorial behind each. Calculates in your browser.
Z-Score Calculator
Find the z-score (standard score) of a value — how many standard deviations it sits above or below the mean. Calculates in your browser.
Confidence Interval Calculator
Find the confidence interval for a mean from the sample mean, standard deviation, sample size, and confidence level. Calculates in your browser.
Statistics Calculator
Paste a list of numbers and get count, sum, mean, median, mode, range, quartiles, IQR, variance, and standard deviation. Calculates in your browser.