Skip to main content
Calnex LogoCalnex
Statistics

Sample Size Calculator

Estimate the number of respondents needed for a survey proportion at a chosen confidence level and margin of error, with optional finite-population correction.

Required Sample Size385 respondentsView results
%

Real-time Results

Required Sample Size
385respondents
Infinite Population n₀
385
Z-Score Used
1.960

How it works

This tool computes a required survey sample size from a confidence level, a margin of error in percent, an expected proportion and an optional population size. It reports the infinite-population estimate, the finite-population-corrected size and the z-score used.

What happens if I leave population size at 0?

A population size of 0, the default, is treated as unknown or infinite, so no finite-population correction is applied and Required Sample Size equals n₀. Any positive N triggers the correction, which reduces the required size relative to n₀.

How is the expected proportion entered?

Expected Proportion (p) is a decimal, not a percentage: 0.5 means 50 percent. The default 0.5 maximizes p·(1 − p) and therefore gives the most conservative sample size. Entering 50 instead of 0.5 is outside the stated 0–1 range and will distort the result.

Examples and interpretation(2)

How large a sample is needed at 90% confidence with a 4% margin of error?

Confidence Level (%)
90%
Margin of Error (%)
4 %
Population Size
0
Expected Proportion (p)
0.5
  1. Set Confidence Level to 90%, Margin of Error to 4, Population Size to 0 and Expected Proportion to 0.5.
  2. The engine uses z = 1.645 and e = 0.04, giving n₀ = ⌈1.645² × 0.25 / 0.04²⌉ = ⌈422.82⌉ = 423. With no population entered, the corrected size stays 423.
Required Sample Size
423
Infinite Population n₀
423
Z-Score Used
1.645

Required Sample Size is 423 respondents and Z-Score Used is 1.645. Because the population was left at 0, the finite-population correction was not applied.

How much does a known population of 1,000 reduce the sample at 95% confidence and 5% error?

Confidence Level (%)
95%
Margin of Error (%)
5 %
Population Size
1000
Expected Proportion (p)
0.5
  1. Set Confidence Level to 95%, Margin of Error to 5, Population Size to 1000 and Expected Proportion to 0.5.
  2. The engine computes n₀ = ⌈1.96² × 0.25 / 0.05²⌉ = ⌈384.16⌉ = 385, then applies n = ⌈385 / (1 + 384/1000)⌉ = ⌈278.18⌉ = 279.
Required Sample Size
279
Infinite Population n₀
385
Z-Score Used
1.960

Required Sample Size drops to 279 while Infinite Population n₀ remains 385, showing the effect of the finite-population correction. The correction assumes simple random sampling.

Inputs

ParameterDefinition & Valid Bounds
Confidence Level (%)

80% · 85% · 90% · 95% · 99%

Formula

n₀ = ⌈z² · p · (1 − p) / e²⌉, where e is the margin of error as a decimal; if N > 0, n = ⌈n₀ / (1 + (n₀ − 1)/N)⌉. z comes from a fixed table: 80%→1.282, 85%→1.44, 90%→1.645, 95%→1.96, 99%→2.576.

How to use

  1. Choose a confidence level from the fixed list: 80, 85, 90, 95 or 99 percent.
  2. Enter the margin of error as a percent, for example 5 for ±5 percentage points.
  3. Enter the expected proportion p as a decimal between 0 and 1; leave 0.5 if unsure.
  4. Optionally enter a population size N; leave 0 to skip the finite-population correction.
  5. Read Required Sample Size, Infinite Population n₀ and Z-Score Used.

Frequently asked questions

Why is the z-score rounded to three decimals?

The engine stores fixed z values per confidence level and displays them with three decimals, so 95% shows 1.960. The calculation uses the stored value, not the rounded display.

Does the result round up or to the nearest whole number?

Both n₀ and the corrected size are rounded up with Math.ceil, so a fractional requirement such as 384.16 becomes 385. The reported figure is never rounded down.

Can I enter a confidence level not in the list?

The confidence level is a fixed select with 80, 85, 90, 95 and 99 percent options. Any other value falls back to z = 1.96 in the calculation while the description still shows the entered level.

Back to StatisticsAll Calculators
Related Tags: