What is Sample Size Calculator?
Sample Size Calculator helps you estimate the sample size needed for an entered confidence and error margin.
The main result is minimum sample size. The formula, example and assumptions below explain how to interpret it.
How to use Sample Size Calculator
Use the example to get familiar with the form, then enter your own figures. Any rates in the example are illustrative. Check the field labels and units before calculating.
- Gather desired margin of error (%), expected proportion (%), confidence level and population size (0 = very large). Use values from the same situation or reporting period.
- Replace the example desired margin of error with your own value, then complete the other fields. Check the displayed units and each selected option.
- Select Calculate and read minimum sample size. Change one input and calculate again to compare a second scenario. Reset restores the original example.
- Enter desired margin of error in %, at least 0.00001 and at most 99. Decimals are accepted.
- Enter expected proportion in %, at least 0.00001 and at most 99.99999. Decimals are accepted.
- Choose confidence level from 90%, 95% and 99%.
- Enter population size (0 = very large), at least 0. Use a whole number.
Sample Size Calculator: a worked example
With the inputs below, the result is 385 responses (minimum sample size). Follow the example, then replace these illustrative values with your own.
| Input or output | Example value |
|---|---|
| Desired margin of error (%) | 5 % |
| Expected proportion (%) | 50 % |
| Confidence level | 95% |
| Population size (0 = very large) | 0 |
| Minimum sample size | 385 responses |
Understanding the Sample Size result
The main output is minimum sample size, expressed in responses. It applies to the inputs and operation you selected.
Displayed results use a readable number of decimal places. When checking a result by hand, keep extra precision until the last step. To compare scenarios, change one input at a time and keep the others fixed.
Sample Size Calculator: assumptions and common mistakes
A useful estimate starts with the right inputs. Check the following assumptions and limits before applying the result to your situation.
- Check the base value, sample definition and chosen operation. Display rounding should come after the calculation.
For wider guidance, visit NIST statistical handbook. The formula and scope of this specific tool are stated on this page.






