The standard error tells you how precisely a sample statistic estimates the population value. Take many samples of the same size and compute the mean of each: those means scatter around the true mean, and their standard deviation is the standard error of the mean (SEM). A small standard error means your estimate would not move much from one sample to the next.
This standard error calculator covers the four cases you meet most often:
- the standard error of the mean from a sample standard deviation and a sample size ;
- the same from raw data: paste your numbers and the calculator finds the mean, the sample standard deviation (with ) and the SEM;
- the standard error of a proportion, such as a poll result or a conversion rate;
- the standard error of the difference between two means, the building block of the two-sample t-test.
For each one you also get the critical value, the margin of error and, when the estimate is known, the confidence interval at 90, 95 or 99 %. If you sampled a large share of a small, known population without replacement, enter its size to apply the finite population correction.
How to use this calculator
- Choose what the standard error is for: a mean (from summary statistics or from raw data), a proportion, or a difference of two means.
- Enter the inputs: and , or the data list, or the observed percentage and , or and for each group.
- If you sampled without replacement from a small population, enter its size ; otherwise leave it blank.
- Pick the confidence level for the margin of error and the interval.
- Read the standard error. The steps show the formula with your numbers; the confidence interval calculator covers more interval types.
The formula
Standard error of the mean (sample standard deviation , sample size ):
Finite population correction when units are drawn without replacement from :
Proportion : .
Difference of two means (unequal variances): , with Welch–Satterthwaite degrees of freedom.
From standard error to confidence interval: estimate critical value , with $t^$ on degrees of freedom for a mean and $z^$ (1.96 at 95 %) for a proportion.
Worked example
From s and n. A sample of 36 has : . At 95 %, $t^* = 2.0301$ (35 df), so the margin of error is 4.06; with a mean of 100 the interval runs from 95.94 to 104.06. If those 36 came from a population of only 500, the correction factor is 0.9643 and the standard error drops to 1.9286.
From data. For 2, 4, 4, 4, 5, 5, 7, 9: mean 5, , $SE = 2.1381 / \sqrt 8 = $ 0.7559. With $t^* = 2.3646$, the 95 % margin is 1.7875 and the interval 3.21 – 6.79.
Proportion. 40 % of 600 respondents: , i.e. 2 percentage points; the 95 % margin is about 3.92 points.
Two means. and : $SE = \sqrt{64/30 + 100/35} = $ 2.2339.
Standard deviation or standard error?
They answer different questions. The standard deviation describes how spread out the individual observations are; it does not shrink as you collect more data. The standard error describes how uncertain the mean is; it shrinks with , so four times as many observations halve it. Report the SD when you describe a sample (for example "age 42 ± 11 years") and the SE or, better, a confidence interval when you describe how well you know the average. To get the standard deviation itself, use the standard deviation calculator.
When the finite population correction matters
The usual formula assumes the population is effectively infinite, or that you sample with replacement. If you inspect 200 of the 400 parts in a batch, you have already seen half of it, and the uncertainty is smaller than suggests. The factor takes this into account. It is close to 1 when the sample is under about 5 % of the population, and reaches 0 when you measure everyone.
Frequently asked questions
How do you calculate the standard error of the mean?
Divide the sample standard deviation by the square root of the sample size: SE = s/√n. For 36 values with s = 12, SE = 12/6 = 2.
Is the standard error the same as the standard deviation of the mean?
Yes. The standard error of the mean is the standard deviation of the sampling distribution of the mean, which is why it is sometimes called the standard deviation of the mean. It is not the standard deviation of the data.
How is the standard error related to a confidence interval?
A confidence interval is the estimate plus or minus a critical value times the standard error. At 95 % with a large sample, the margin is about 2 standard errors; for small samples use the t value, which this calculator shows.
What is a good standard error?
There is no universal threshold: it depends on the scale of the data and on the precision you need. The relative standard error (SE divided by the mean) helps compare: many statistical agencies flag estimates whose relative standard error exceeds about 25 to 30 % as unreliable.
Should I use n or n − 1?
Compute the sample standard deviation with n − 1 (Bessel’s correction), then divide it by √n. The calculator does this automatically in the raw data mode.
Sources
- D. G. Altman, J. M. Bland (2005), Standard deviations and standard errors, BMJ 331:903
- NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.2 Confidence limits for the mean
- W. G. Cochran, Sampling Techniques, 3rd ed., Wiley (1977), ch. 2 (finite population correction)
- OpenStax, Introductory Statistics 2e, §7.1 The central limit theorem for sample means
- OpenStax, Introductory Statistics 2e, §8.3 A population proportion
- OpenStax, Introductory Statistics 2e, §10.1 Two population means with unknown standard deviations
Last updated: