Calculator Need
Categories

Math Calculators

Sample Size Calculator

Required sample size from confidence level, margin of error and expected proportion, with finite-population correction. Free, instant, no sign-up.

n = z² × p(1−p) ÷ E². p = 0.5 gives the largest (safest) sample size. With a known population N, the finite-population correction n′ = n ÷ (1 + (n−1)÷N) is applied.

How to use the sample size calculator

  1. Choose the confidence level and enter the margin of error in percent.
  2. Enter the expected proportion p, or leave 0.5 for the safest size.
  3. Press “Calculate Sample Size” to see how many responses you need.

Sample size calculation example

For a survey with a 95% confidence level, a ±5% margin of error and the most cautious assumption p = 0.5: n = 1.96² × 0.25 ÷ 0.05² ≈ 385 responses. For ±3% you need about 1,068.

Tips for using the sample size calculator

  • For small populations, apply the finite-population correction; a survey of a 500-person company needs about 218, not 385.
  • Plan for non-responses: if only 40% reply, invite about 2.5 times the target.
  • Sample size reduces random error, not bias from who chooses to reply.

Sample size calculator: common questions

Why is p = 0.5 the safest choice?
p(1 − p) is largest at 0.5, so it gives the biggest sample size — enough whatever the true proportion turns out to be.
What does the margin of error mean?
How far the survey result may be from the true value: ±5% means a 40% result could reflect a true value from 35% to 45%.
Is my data stored?
No. The calculation runs in your browser.
Why use p = 0.5 if I don't know the proportion?
It gives the largest required sample, so the margin of error is guaranteed whatever the true proportion turns out to be.