When to use Sample Size Calculator
Estimate survey sample size for a population proportion.
Summarize data or explore a probability model before interpreting the result in its original context.
How to use this tool
- Enter the inputs listed below. Follow the field format, and select units beside each supported quantity.
- Results update automatically. Review the main result and its breakdown. Use Clear to enter a new scenario.
- Confidence level
- Margin of error (%)
- Expected proportion (%)
- Population size (0 if unknown)
How it works
For a simple random sample, start with z²p(1 − p) ÷ e². Apply the finite population correction when the population is known, then round up.
Worked example
The examples below use fixed sample inputs. They explain the calculation and do not change when you edit the tool above.
- Confidence level
- 95%
- Margin of error (%)
- 5
- Expected proportion (%)
- 50
- Population size (0 if unknown)
- 0
- Result
- 385
- Confidence level
- 95%
- Margin of error
- 5%
Understanding the result and its limits
Check sample versus population conventions and model assumptions. A numerical association or interval alone does not establish causation.
Frequently asked questions
Why do statistical assumptions matter?
The formula and interpretation depend on the data source and statistical model. Match the method to the problem and its assumptions.
Methodology and references
Use the formulas and assumptions above when interpreting the example. Any practical estimate depends on the accuracy of the inputs.
- Further reading: OpenStax: introductory statistics