Calculatorism

Sample Size Calculator

Find the sample size needed to estimate a population proportion at a given confidence level and margin of error.

Input Data

例如 5 表示 ±5%。
預期占比 (0–1),預設 0.5 最保守。
設 0 表示母體極大,不修正。

Results

385
n ≈ 385 (95% CI, ±5%)

At a glance:To estimate a population proportion p, the required sample size depends on the z for the confidence level, the margin e and the expected proportion p: n₀ = z²·p(1−p)/e². For a finite population N, multiply by the finite-population correction.

Formula

n₀ = z²·p(1−p)/e².

Finite: n = n₀ / (1 + (n₀−1)/N).

How to Use

  1. Pick a confidence level.
  2. Set margin and expected proportion.
  3. Optionally enter population size for correction.

FAQ

Why use p = 0.5?

p=0.5 maximizes p(1−p), giving the most conservative (largest) sample size, safe for any scenario.

Very large population?

With a huge population the correction factor approaches 1, so n₀ alone suffices.

Related Tools

References

Content review: Calculatorism Science Team. Results are for reference only.

Found a problem with the results?

If this calculator's result is wrong, or you have any question about the calculation logic, please let us know. You are viewing:Sample Size Calculator/math/sample-size)。