Sample Size Calculator

Sample Size Calculator – Proportion (Cochran) & Mean
Margin of error is half-width of the CI (use 0.05 for ±5%).
Uses Cochran’s formula with optional finite population correction.

Results

Enter parameters and click Calculate.

Free Sample Size Calculator

This free Sample Size Calculator helps you determine how many participants, respondents, or observations you need to achieve reliable results in surveys, polls, and experiments. Enter your confidence level, margin of error, population size, and estimated proportion (or standard deviation) to instantly calculate the minimum required sample size.

What is Sample Size?

Sample size is the number of participants or data points selected from a larger population. Choosing the right sample size ensures your results are statistically valid, representative, and precise enough for decision-making.

  • Too small a sample → unreliable, high error.

  • Too large a sample → waste of time and resources.

The calculator uses Cochran’s formula for proportions and the standard formula for means to give exact and rounded sample sizes.

  •  

Sample Size Formulas

1. For Proportions (Cochran’s Formula)

$$ n_0 \;=\; \frac{Z^{2}\, p(1-p)}{E^{2}} $$

  • Z = Z-score for confidence level (e.g., 1.96 for 95%)
  • p = estimated proportion (use 0.5 if unknown)
  • E = margin of error

2. Finite Population Correction (optional)

$$ n \;=\; \frac{n_0}{\,1 + \dfrac{n_0 - 1}{N}\,} $$

  • N = population size

3. For Means

$$ n \;=\; \left(\frac{Z \,\sigma}{E}\right)^{2} $$

  • σ = population standard deviation (estimate)
  • E = margin of error

How to Use the Calculator

  • Choose whether you need sample size for a proportion (e.g., % of people who agree) or a mean (e.g., average score).

  • Select your confidence level (90%, 95%, 99% or custom).

  • Enter your margin of error (e.g., 5% → 0.05).

  • Provide an estimated proportion (p) or standard deviation (σ), depending on mode.

  • (Optional) Enter population size for finite correction.

  • Click Calculate to get:

    • Initial required sample size (n₀)

    • Adjusted sample size with finite correction (if applicable)

    • Final recommended sample size (rounded up)

Worked Example

Survey with population 10,000

  • Confidence level: 95% (Z = 1.96)
  • Margin of error: 5% (E = 0.05)
  • Estimated proportion: 0.5 (maximum variability)

Step 1:

$$ n_0 = \frac{1.96^2 \cdot 0.5(1-0.5)}{0.05^2} = 384.16 $$

Step 2: Apply finite population correction

$$ n = \frac{384.16}{1 + \dfrac{384.16 - 1}{10000}} \approx 370 $$

✅ Answer: A sample size of 370 respondents is required.

Applications

  1. Surveys & Polls – determine how many people to survey for reliable opinion estimates.
  2. Market Research – ensure product testing results represent the target audience.
  3. Medical Studies – calculate participants needed for trials.
  4. Education & Psychology – design experiments with statistical power.
  5. Quality Control – measure variation in manufacturing.

FAQs

Q: What if I don’t know the proportion (p)?
A: Use 0.5 for the most conservative (largest) sample size.

Q: Why does population size matter?
A: For small populations, the finite correction reduces the required sample size.

Q: What confidence level should I use?
A: 95% is standard; 99% gives higher certainty but requires larger samples.

Q: Is a bigger sample size always better?
A: Not necessarily. Beyond a point, larger samples don’t significantly improve precision but increase cost.

Was this calculator helpful?

Rate your experience to help us improve.

Thanks for rating! See the average and total ratings above.

Not rated yet—be the first to rate this calculator.