Toolvito

Calculates on this device. File exports run online.

Survey Sample Size Calculator

Type the margin of error and the confidence level you need. The calculator gives the number of completed responses, corrected for the size of your population, and how many people to invite.

Enter your values

How many completed answers you need to estimate a percentage within your margin of error.

Your values

How sure the interval should be. 95% is the usual choice; 90% and 99% are also common.

How close the survey result should be to the true value, in percentage points: 5 means ±5%.

Leave it empty for a very large population. Fill it in when the sample is more than about 5% of the population.

Your best guess of the answer share. 50% gives the largest, safest sample.

More options

For cluster or other complex samples. 1 is a simple random sample; 1.5 to 2 is common for cluster samples.

Optional. Gives how many people to invite.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

Exact sample sizes

Exact sample sizes

Uses the plan of Sample size for a survey above. The Wilson and exact (Clopper-Pearson) intervals stay correct for small samples and for proportions near 0% or 100%, where Cochran's formula is only an approximation. You also get a table of sizes for other margins and confidence levels.

The calculator above works on your device. When you run a task in this section, Toolvito receives the values and result you submit to make the file or run the check. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to find your sample size

  1. Choose the confidence level (95% is usual) and the margin of error (for example ±5 percentage points).
  2. Type the population size if you know it, such as the number of employees or customers. Leave it empty for a very large population.
  3. Keep the expected proportion at 50% unless an earlier survey gave a better guess; 50% gives the safest (largest) sample.
  4. Under More options, add a design effect for cluster samples and the response rate you expect.

The formulas

  • Cochran: n₀ = z² × p × (1 − p) ÷ E². With a population N: n = n₀ ÷ (1 + (n₀ − 1) ÷ N), rounded up. This is the same number as the formula of Krejcie and Morgan (1970).
  • Slovin (Yamane): n = N ÷ (1 + N × E²). It has no confidence level and assumes about 95% and p = 50%.
  • Margin of error of a sample: E = z × √(p (1 − p) ÷ n) × √((N − n) ÷ (N − 1)).
  • Average: n₀ = (z × σ ÷ E)², with σ the standard deviation you expect.

Worked example

95% confidence (z = 1.95996), ±5% and p = 50%: n₀ = 1.95996² × 0.5 × 0.5 ÷ 0.05² = 384.15, so 385 responses for a very large population.

For a population of 1,000: n = 384.15 ÷ (1 + 383.15 ÷ 1,000) = 277.75, so 278 responses. At a 30% response rate, invite 927 people.

Limits you should know

  • The sizes assume a random sample. A larger sample does not fix a biased one: people who choose not to answer can differ from those who answer.
  • For comparing groups (A/B tests, trials, t tests, ANOVA), use the A/B Test Calculator or the Statistical Power Calculator: those sizes depend on the difference you want to detect.
  • Qualitative studies (interviews, focus groups) are not sized by these formulas.

Related tools