Sample size calculator
Work out how many people to survey for a given confidence level and margin of error.
Sample size calculator
Before running a survey or an experiment, you need to know how many responses actually make the result trustworthy. This calculator works out that number from three inputs: the confidence level you want, the margin of error you can live with, and the proportion you expect the answer to land near. Set the population size and it also applies the finite-population correction, which lowers the required sample once you are surveying a meaningful share of a small, known group—a company of 400 employees needs far fewer completed responses than an open web survey does.
By default the calculator assumes you are measuring a proportion, such as "percent who prefer option A," and 50% as the expected split, which is the safest assumption when you have no prior data because it produces the largest, most conservative sample size. Switch "Calculate for" to a mean instead, and it uses a standard deviation you supply—useful when the number you are estimating is an average (order value, time on task) rather than a percentage. The response rate option inflates the sample into a contact count: if only 40% of the people you reach out to typically respond, the tool tells you how many to invite to end up with the sample you actually need.
Paste one or more sample sizes into the input, one per line, and the tool runs the calculation in reverse: for each size, it reports the margin of error that sample size actually achieves at your chosen confidence level, with the same finite-population correction applied. Turn on "Show scenarios as a table" to compare several sizes side by side instead of reading them as separate lines—handy for a stakeholder deciding between a cheap, loose estimate and an expensive, tight one.
Everything runs locally in your browser: no survey plan, population figure or response data is ever uploaded anywhere. Copy the result, download it as a .txt file, or send it straight into another tool to keep working.