Sample Size Calculator

Calculate the survey sample size you need

Frequently Asked Questions

Sample size = (Z² × p × (1−p)) ÷ E², where Z is the z-score for your confidence level, p is the expected proportion (0.5 is the most conservative, giving the largest required sample), and E is your margin of error as a decimal. If you know your total population size, a finite population correction reduces this further.
95% confidence with a 5% margin of error is the most common standard for general surveys — it's the source of the widely-cited '385 responses' rule of thumb for very large or unknown populations. Higher confidence (99%) or a tighter margin of error (e.g., 3%) requires a larger sample.
When you're surveying a limited, known population (like all 2,000 employees at a company, not a large general population), the sample size needed is smaller than for an infinite population — entering your population size applies this correction automatically.
Use 0.5 (50%) — it's the most conservative assumption, since p×(1−p) is at its maximum at p=0.5, and using it guarantees your sample size is large enough regardless of how the responses actually split.

Sample size formula

To estimate a proportion (for example, the share of customers who would recommend you) within a chosen margin of error, the required sample size is:

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

where z is the z-score for the confidence level, p is the expected proportion and e is the margin of error as a decimal. For a known, limited population N, the finite population correction reduces the sample: nadj = n ÷ (1 + (n − 1) ÷ N).

Example

At 95% confidence (z = 1.96), a 5% margin of error and p = 50%, n = 1.96² × 0.25 ÷ 0.05² = 385 responses (384.2 rounded up). If your whole population is 10,000 people, you need 370; for a population of 1,000, only 278.

How the inputs change the answer

ConfidenceMargin of errorSample size (large population)
90%±5%271
95%±5%385
99%±5%664
95%±3%1,068

Halving the margin of error roughly quadruples the sample, which is why national polls with ±3% need about 1,000 respondents.

Why use 50%?

The term p × (1 − p) is largest at p = 50%, so using 50% gives the most conservative, safest sample size when you do not know the answer in advance. If earlier research suggests the proportion is around 10% or 90%, you can use that and need fewer responses.

Practical tips

  • Plan for non-response. If you expect a 20% response rate, invite five times the required sample.
  • Subgroups need their own samples. To compare men and women separately at ±5%, each group needs about 385 responses.
  • Random selection matters more than size. A large but biased sample, such as an opt-in web poll, can be less accurate than a small random one.

To test whether two versions of a page perform differently, use the A/B test significance calculator. For relationships between variables, see the correlation calculator.