CalcDepo

Sample Size Calculator

Find the sample size needed for a survey proportion.

Inputs

Results

Required sample size385

Chart

Not what you need? Search by intent

Describe what you want to find โ€” โ€œhow many people to surveyโ€ โ€” and jump to the right calculator.

How to use the sample size calculator

Find the sample size needed for a survey proportion. Enter margin of error, confidence level, expected proportion in the fields above; the required sample size is computed instantly and plotted on the chart so you can see how the answer changes.

Formula

Required sample size = ceil((norminv(0.5+cl / 200) / (e / 100))^2 ร— p ร— (1-p))

Variables

  • e โ€” Margin of error (%)
  • cl โ€” Confidence level (%)
  • p โ€” Expected proportion

Worked example

With margin of error = 5 %, confidence level = 95 %, expected proportion = 0.5, the calculator gives required sample size โ‰ˆ 385.

Frequently asked questions

What is the formula for the sample size calculation?

Required sample size = ceil((norminv(0.5+cl / 200) / (e / 100))^2 ร— p ร— (1-p)). Here e is margin of error (%), cl is confidence level (%), p is expected proportion.

What inputs do I need for the sample size calculator?

You need margin of error in %, confidence level in %, expected proportion. Each field is pre-filled with a typical example so you can see how the result responds as you edit the numbers.

How do I use this calculator?

Type values into the input fields. Results and the chart update instantly. Use Reset to restore the example values, Copy results to paste them elsewhere, or Share to copy a link that preserves your inputs.

Is the result exact?

Calculations use standard formulas and double-precision arithmetic, then display about seven significant figures. Real-world measurements carry uncertainty, so treat results as estimates unless your inputs are exact.

Related calculators

More in Statistics & Probability: Mean, Median and Mode ยท Standard Deviation ยท Quartiles and IQR ยท Percentile ยท Z-Score ยท Normal Distribution Probability ยท Inverse Normal ยท Binomial Probability