ToolPatch

One page. One job. Done.

← Back to all tools
Statistics

Sample Size Calculator

Estimate required sample size from confidence level, margin error, and proportion.

Last validated: 2026-02-14

Sample Size Calculator estimates how many observations are needed to measure a proportion with a chosen confidence level and margin of error. Confidence level controls how much uncertainty the interval allows, margin of error is the maximum acceptable distance between the estimate and the true population value, and estimated proportion is the expected share of responses or outcomes. The most conservative proportion is often 50%, because it produces the largest required sample when the true proportion is unknown. Population size matters mainly for smaller finite populations; for very large populations the finite correction becomes negligible. This calculator is useful for surveys and experiments, but representativeness, nonresponse, selection bias, and measurement quality are just as important as the numeric sample size.

Permalink

Input Pattern

Enter values in the left panel, keep units explicit, run the calculation, then copy or share the result. Invalid fields are highlighted immediately.

Sample Size Inputs

Result

Infinite population n: 385

Adjusted n: 385

How to use this tool

  1. Enter Confidence, Margin error (%), Estimated proportion (%), Population size (optional, 0 for infinite) for the sample size calculator, keeping units, dates, or text format consistent with the form labels.
  2. Confirm sample size, ordering, and distribution assumptions before relying on the calculated result.
  3. Click "Run the tool" and review Sample Size Inputs, Result for the primary output.
  4. Check the statistical assumptions and sample context before using the result in a report or decision.

Worked Example

Auto-generated from the tool's current default or entered inputs.

Example Inputs

  • Confidence: 95
  • Margin error percent: 5.0
  • Estimated proportion percent: 50.0
  • Population size: 0
  • Sample size infinite: 385
  • Sample size adjusted: 385

Expected Outputs

  • Margin error percent: 5
  • Estimated proportion percent: 50
  • Population size: 0
  • Sample size infinite: 385

Interpretation

Confidence and limitations

Formula References

Assumptions

Explore more versions

Tailored guides for specific audiences, regions, and scenarios.

Survey and research tools

Promote form builders, survey platforms, and research planning templates.

Sponsored