Sampling Error Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the standard deviation, the sample size and a confidence level to estimate how far the sample mean may be from the population mean.
Result
Sampling error (± at the confidence level)
Standard error of the mean
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Standard deviation (σ or s): enter 0 or more.
- Sample size (n): enter 1 or more.
- Confidence level: choose one of the 6 options in the list.
- Population size N (0 if very large): enter 0 or more.
- Read the result: Sampling error (± at the confidence level); the panel also shows Standard error of the mean.
How this calculator works
Sampling error = z × σ ÷ √n × √((N − n) ÷ (N − 1)), where z is the critical value of the confidence level (1.96 for 95%), σ the standard deviation, n the sample size and N the population size. The last factor, the finite population correction, is left out for a very large population.
It measures only the random error from sampling; it does not cover bias from who answers or how questions are asked.
The formula
| Symbol | Meaning |
|---|---|
| Standard deviation (σ or s) | |
| Sample size | |
| Confidence level | |
| Population size N (0 if very large) | |
| Standard error of the mean | |
| Sampling error (± at the confidence level) | |
round(x, d) | x rounded to d decimal places, or to a whole number without d. |
norminv(p, m, s) | the value that a Gaussian variable with mean m and standard deviation s stays at or below with probability p (mean zero and standard deviation one without m and s). |
Worked example
| Standard deviation (σ or s) | 20 |
|---|---|
| Sample size (n) | 100 |
| Confidence level | 95% |
| Population size N (0 if very large) | 0 |
| Standard error of the mean | 2 |
|---|
Sampling error (± at the confidence level) 3.9199
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the sampling error for SD 20 and n = 100 at 95% confidence?
1.96 × 20 ÷ 10 ≈ ±3.9199.
How do I halve the sampling error?
Quadruple the sample size, because the error falls with the square root of n.