Skip to content

Sample Size Calculator

Work out how many people to survey, or how precise your survey is.

  • 100% Free
  • Instant Results
  • No Sign Up

Sample Size Calculator

How many responses a survey needs

%
%

Use 50% if unsure (gives the largest, safest sample).

Leave empty for a very large or unknown population.

Sample size needed

385

for ±5% at 95% confidence

Unrounded sample size
384.1459
Z-score
1.959964
Sample size for an unlimited population
385

How it was calculated

  1. z for 95% confidence = 1.959964
  2. n₀ = z² × p(1 - p) / E²
  3. n₀ = 1.959964² × 0.5 × 0.5 / 0.05² = 384.145882
  4. Round up: n = 385

More Math Calculators

View all calculators

Every calculator you need.

Free, fast, and easy to use.

Browse all 204 calculators
Calculators
204+
Free to use
100%
Results as you type
Instant

How the sample size calculator works

The sample size tells you how many responses you need so that your survey result is within a chosen margin of error of the true value, at a chosen confidence level. The formula is n = z² × p(1 - p) / E², where z comes from the confidence level (1.96 for 95%), p is the expected proportion and E is the margin of error.

If you don't know the proportion, use 50%: it gives the largest sample and so the safest answer. For a small population of known size N, the finite population correction n / (1 + (n - 1) / N) reduces the sample you need.

The margin of error tab reverses the formula: E = z × √(p(1 - p) / n). These formulas assume a simple random sample; real surveys with low response rates or clustered samples need more.

Using and checking your result

Published by JustYourCalculator. Check the units and assumptions above, and compare a known example before relying on the output. Calculations use browser arithmetic and may round displayed values.

Share links may contain your input values. Anyone with the URL can read them; avoid sharing sensitive personal or financial information.

Frequently asked questions