One Calculator Logo One Calculator
Mathematics & Statistics • Formulas shown

Sample Size Calculator

Quick Answer

For a large population, n = z² × p(1 − p) ÷ e². At 95% confidence (z = 1.96), a ±5% margin of error and p = 50%, you need 385 respondents. A small population needs fewer, using the finite-population correction.

Use 50% if unknown (it gives the largest sample).
Optional. Leave blank for a very large population.
Result

You need a sample of 385 respondents

z critical value1.960
Infinite-population size385
Step-by-step calculation
  1. n₀ = z² × p(1 − p) ÷ e²
  2. = 1.96² × 0.5 × 0.5 ÷ 0.05² = 384.15

About the Sample Size Calculator

The sample size depends on how certain you want to be (confidence level), how close you need the estimate to be (margin of error) and how varied the answers are (the expected proportion). When you have no idea of the proportion, use 50%, which gives the largest, safest sample.

If your population is small, for example 500 customers, a correction reduces the required sample. These formulas assume a simple random sample with good response rates; non-response, clustering and subgroup analysis can all require more.

How to Use the Sample Size Calculator

  1. Choose the confidence level and margin of error.
  2. Enter the expected proportion (50% if unknown).
  3. Optionally enter the population size.
  4. Read the required sample.

Formula and Method

Cochran’s formula

n₀ = z² p (1 − p) ÷ e²

Finite population

n = n₀ ÷ (1 + (n₀ − 1) ÷ N)

Worked Example

A national survey

Input: 95%, ±5%, p = 50%

  • n₀ = 1.96² × 0.25 ÷ 0.0025 = 384.16

Result: 385 respondents.

Frequently Asked Questions

Why use 50%?

p(1 − p) is largest at 50%, so it gives a sample large enough whatever the true proportion is.

Does population size matter?

Only when the sample is a sizeable share of it. For big populations the sample size barely changes.

How do I halve the margin of error?

Quadruple the sample size.

What about non-response?

Divide the required sample by the expected response rate to know how many to contact.

Related Calculators

All Math & Statistics Calculators →

Sources and Further Reading

Accuracy and Scope

Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.