Sample Size Calculator
NEWWork out how many survey responses you need from the confidence level, margin of error, expected proportion and population size, or find the margin of error of a sample you already have.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
Use 50% if you have no estimate: it gives the largest sample.
Leave empty for a very large or unknown population.
Works out how many people to invite.
z: critical value of the normal distribution for the confidence level (1.645 for 90%, 1.960 for 95%, 2.576 for 99%).
p: expected proportion as a decimal (50% = 0.5).
e: margin of error as a decimal (5% = 0.05).
N: population size; n₀: sample size for an unlimited population; n: final sample size, rounded up.
Quick Examples
Typical inputs and the results this tool produces.
Overview
Before you send a survey or start a poll, you need to know how many answers make the result precise enough. This calculator uses Cochran’s formula for a proportion, n₀ = z² × p × (1 − p) / e², where z comes from the confidence level, p is the share you expect and e is the margin of error you accept.
When the population is small, the finite population correction n = n₀ / (1 + (n₀ − 1) / N) lowers the number you need. Enter an expected response rate and the tool also tells you how many people to invite. Switch to the reverse mode to see the margin of error of a sample you already collected. Every step is shown with your own numbers, and nothing leaves your browser.
Why use this tool?
- Sample size and margin of error in one place
- Finite population correction for small groups
- Invitations needed for a given response rate
- Formula shown with your numbers
- Any confidence level, not only 90, 95 and 99%
Features
Common confidence levels
Pick 90%, 95% or 99%, or type any level between 50% and 99.99%; the z-score is computed exactly.
Population correction
Add the population size to apply the finite population correction, or leave it empty for a large or unknown group.
Reverse mode
Enter the number of responses you have and get the margin of error, with the correction when the population is known.
Response rate
Turn the required completes into the number of invitations to send at your expected response rate.
Step-by-step formula
See n₀, the corrected n and the rounding, written out with the values you typed.
Copy the result
Copy the inputs, the result and the formula as plain text for a report or research plan.
How to Use
Choose the mode
Sample size to plan a survey, or Margin of error to check a sample you have.
Set confidence and precision
Pick the confidence level and type the margin of error (or your sample size).
Add what you know
Keep the proportion at 50% unless you have an estimate; add the population size and response rate if you know them.
Read and copy
The result and the formula update as you type; copy them in one click.