How to Use the Standard Error Calculator
This standard error calculator finds the SEM and 95% confidence interval from either raw data or summary statistics — choose between two input modes: From SD & n — enter the sample standard deviation and sample size directly — or From raw data — enter a comma-separated list of values and the calculator computes the sample SD and SEM automatically. In raw data mode, the calculator also displays the sample mean and 95% confidence interval (x̄ ± 1.96 × SEM).
Standard error builds directly on standard deviation. If you need the sample standard deviation first, use our standard deviation calculator, then paste s and n into this calculator's summary mode. To build a full confidence interval from the SEM, see our confidence interval calculator.
The Standard Error Formula
The standard error of the mean is:
SEM = s / √n
Where s is the sample standard deviation and n is the sample size. The formula shows that SEM decreases as n increases — larger samples produce more precise mean estimates.
Worked Example
A nutritionist measures the daily protein intake (grams) for 9 participants: 72, 68, 85, 74, 66, 78, 80, 71, 76.
- Mean (x̄) = (72 + 68 + 85 + 74 + 66 + 78 + 80 + 71 + 76) / 9 = 670 / 9 ≈ 74.44 g
- Sample SD (s) ≈ 6.28 g
- SEM = 6.28 / √9 = 6.28 / 3 ≈ 2.09 g
- 95% CI: 74.44 ± 1.96 × 2.09 = [70.34, 78.54] g
Interpretation: We are 95% confident the true mean daily protein intake for this population falls between 70.34 g and 78.54 g.
Standard Error vs. Standard Deviation
These two statistics are closely related but measure different things, and confusing them is one of the most common errors in statistics reporting.
- Standard deviation (s):Describes the spread of individual data points around the sample mean. It answers: "How variable is the data?" SD does not shrink as n increases — adding more observations doesn't reduce the natural variability in the population.
- Standard error (SEM = s/√n):Describes the precision of the sample mean as an estimate of the population mean. It answers: "How precisely do I know the mean?" SEM always shrinks as n increases — more data gives a more precise mean estimate.
In scientific papers, results are often reported as "mean ± SD" (describing the data spread) or "mean ± SEM" (describing the precision of the mean estimate). The choice matters: SEM is always smaller than SD for n > 1, so reporting ± SEM makes results appear more precise. Use ± SD when describing the distribution of a population; use ± SEM when describing the uncertainty in a mean estimate.
Sample Size and Precision
Because SEM = s / √n, the relationship between sample size and precision is non-linear:
- Doubling n reduces SEM by a factor of √2 ≈ 1.41 (a 29% reduction)
- Quadrupling n halves the SEM
- A 100× increase in n reduces SEM by a factor of 10
This means there is a law of diminishing returns for precision. Going from n = 10 to n = 40 halves the SEM, but going from n = 40 to n = 90 only reduces it by another 33%. Researchers must balance precision against the cost of collecting more data.
A common rule of thumb in clinical research is n ≥ 30 per group, which provides enough statistical power for many parametric tests and ensures SEM is a reliable precision estimate.
Standard Error in Error Bars
In scientific graphs, error bars show the variability or uncertainty around data points. Error bars can represent ± standard deviation, ± standard error, or ± confidence interval — and the choice dramatically affects how the graph looks and what it communicates.
- ± SD error bars: Show the spread of the data. They describe the population distribution and do not shrink with more samples.
- ± SEM error bars: Show the precision of the mean estimate. They get smaller as n increases. Often used in biology and medicine.
- ± 95% CI error bars: Show the confidence interval for the mean. If two 95% CI bars do not overlap, the difference between groups is statistically significant at p < 0.05 (approximately).
When reading a graph with error bars, always check the figure legend to determine which type of error bar is shown. SEM bars look narrower than SD bars, which can make results appear more consistent than they are. The American Psychological Association and many journals now require authors to specify which error bar type is used.
Sources & References
- Standard Error — NIST/SEMATECH e-Handbook of Statistical Methods
- Standard Error of the Mean — Khan Academy — Khan Academy