Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Sampling Error Calculator

Standard deviation (σ or s): enter 0 or more. Prefilled example: 20.

Sample size (n): enter 1 or more. Prefilled example: 100.

Confidence level: choose one of the 6 options in the list. Prefilled example: 95%.

Population size N (0 if very large): enter 0 or more. Prefilled example: 0.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Standard deviation (σ or s): enter 0 or more.
  2. Sample size (n): enter 1 or more.
  3. Confidence level: choose one of the 6 options in the list.
  4. Population size N (0 if very large): enter 0 or more.
  5. 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

  1. Se=sdn×{pop−npop−1if pop>01otherwise
  2. Err=round⁡(−norminv⁡(1−c2)×Se,4)
Symbols used in the formula
SymbolMeaning
sdStandard deviation (σ or s)
nSample size
cConfidence level
popPopulation size N (0 if very large)
SeStandard error of the mean
ErrSampling 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 level95%
Population size N (0 if very large)0
Standard error of the mean2
  1. Se=20100×1=2
  2. Err=round⁡(−norminv⁡(1−0.952)×2,4)=3.9199

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.

Questions answered

Related calculators