Skip to content

Sample Size Calculator

Choose a confidence level and the margin of error you can accept, and optionally the expected proportion and the population size, to get the number of responses you need.

Calculator Details

Required sample size:385See results ↓

Z-score and percentile, a confidence interval, a sample size, a margin of error or a p-value

95% is the usual choice; higher confidence needs a wider interval or a larger sample

How close to the true percentage you want to be (±), e.g. 5

50% if unknown: it gives the largest (safest) sample

Leave at 0 for a very large or unknown population

Your Results

Required sample size: 385

Required sample size

385

±5% at 95% confidence

Before rounding up

384.14588

For an unlimited population (n₀)

384.14588

Critical value z*

1.959963985

You need a sample of 385 for a ±5% margin of error at 95% confidence.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

Sample size for a survey
QuantityValue
Critical value z* (95%)1.959963985
Margin of error E0.05
Proportion p0.5
1 − p0.5
Unlimited population n₀384.14588
Population NNot given
After the finite population correction384.14588
Required sample (rounded up)385

How This Calculator Works

How It’s Calculated

Sample size for a survey with your numbers. Φ is the standard normal cumulative distribution, evaluated to about 15 decimal places (no table lookup or rounding of z).

n₀ = z*² × p(1 − p) ÷ E² = 1.959964² × 0.5 × 0.5 ÷ 0.05² = 384.14588

No population size: n = n₀

Round up → 385

Frequently Asked Questions

Why use 50% when I do not know the expected proportion?

The sample size formula contains p × (1 − p), which is largest at p = 0.5. Using 50% gives the most conservative answer, enough responses whatever the true proportion turns out to be. If earlier data suggest about 20%, entering 20 lowers the 95% / ±5% requirement from 385 to 246.

Does a bigger population need a much bigger sample?

No, which surprises many people. Above a few tens of thousands the population size barely matters: a ±5% poll needs 383 responses from a population of 100,000 and 385 from 30 million. It matters only for small populations, where the finite-population correction lowers the number, to 278 for a population of 1,000.

Is the sample size the number of surveys I send?

No, it is the number of completed responses you need. If you expect a 25% response rate, send about four times as many invitations: roughly 1,540 to get 385 back. Low response rates also risk bias, which a larger sample does not fix.

How does the margin of error change the sample size?

The sample size grows with the square of the precision. Halving the margin of error from ±5% to ±2.5% roughly quadruples the sample, from 385 to 1,537 at 95% confidence. Going to ±3%, a common choice for national polls, needs 1,068.

Included: z-scores and percentiles, z confidence intervals for a mean, Cochran sample sizes and margins of error for a proportion (with the finite population correction), one- or two-tailed p-values from a z statistic, and the 68–95–99.7 empirical rule ranges with the exact normal shares beside the rounded ones. Φ and Φ⁻¹ are computed to about 15 digits.

Left out: Student’s t intervals for small samples with unknown σ, intervals for differences between groups, design effects for clustered samples, and non-response adjustments. Sample sizes are rounded up. The empirical rule describes a normal distribution only; it does not test whether your data are normal (Chebyshev's bound for any distribution is not shown).

Sample Size Calculator for Surveys and Polls

By FindMySum · Last reviewed

A sample size calculator works out how many people you need to survey, or how many items to test, to estimate a proportion within a chosen margin of error. It answers the planning question before data collection starts: too few responses and the result is too vague to act on, too many and you have spent time and money for precision you did not need.

Worked example

You want a poll result within ±5 percentage points at 95% confidence, and you have no idea of the answer yet, so you use 50% as the expected proportion. The population is large, so the correction is off (population 0).

  1. Critical value for 95% confidence: z = 1.96.
  2. Formula: n = z² × p(1 − p) ÷ E² = 1.96² × 0.5 × 0.5 ÷ 0.05².
  3. That is 3.8416 × 0.25 ÷ 0.0025 = 384.15.
  4. Round up: you need 385 responses.

Always round up, never to the nearest: 384 responses would leave the margin slightly above ±5%.

Adjusting for a small population

When the population is small, such as the 1,000 members of a club, every response is a larger share of the whole, so fewer are needed. The corrected size is n ÷ (1 + (n − 1) ÷ N) = 384.15 ÷ 1.38315 ≈ 277.7, so 278 responses.

The calculation covers random sampling error only. A sample of 385 drawn from people who chose to answer can still be badly biased. For the margin of error of a survey you already ran, use the z-score calculator in margin-of-error mode, and for an interval around a mean, the confidence interval calculator.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy