The standard error of the mean (SEM) is calculated by dividing the sample standard deviation (s) by the square root of the sample size (n): SEM = s / √n. You enter your sample’s standard deviation and sample size, and the calculator returns the standard error, which tells you how far the sample mean is likely to be from the true population mean.
Formula
The standard error of the mean is defined as:
SEM = s / √n
Where:
- s = sample standard deviation (same units as the data)
- n = sample size (number of observations)
This formula estimates the standard deviation of the sampling distribution of the sample mean. If you know the population standard deviation (σ), the exact standard error is σ / √n, but in practice you rarely know σ, so you use the sample standard deviation s.
Worked Example
Suppose you measured the heights (in cm) of 30 randomly selected adult women and calculated a sample standard deviation of s = 10 cm. Using the default values:
- Sample standard deviation s = 10 cm
- Sample size n = 30
- SEM = 10 / √30 = 10 / 5.477 = 1.8257 cm
The calculator rounds to 4 decimal places, giving 1.8257 cm. This means the sample mean of 30 women is typically about 1.83 cm away from the true population mean.
Why the Standard Error Matters
The standard error is the foundation of confidence intervals and hypothesis tests. For a 95% confidence interval of the mean, you take the sample mean ± 1.96 × SEM (or ± 2.262 × SEM for small samples using the t-distribution with n−1 degrees of freedom). A smaller SEM means your estimate of the mean is more precise. Notice that as n increases, SEM decreases proportionally to 1/√n. To halve the standard error, you must quadruple the sample size.
Common Mistakes and Misconceptions
- Confusing standard deviation with standard error: Standard deviation (SD) describes variability in the data; standard error describes variability in the estimate of the mean. SD does not shrink with sample size; SEM does.
- Using the wrong n: n is the number of independent observations, not the number of measurements per subject. If you have repeated measures, the formula changes.
- Forgetting to use n−1 in the SD: The sample standard deviation s must be calculated with n−1 in the denominator (Bessel’s correction). If you accidentally use population SD (divide by n), the standard error will be slightly underestimated.
- Rounding too early: If you round s or √n before dividing, you lose precision. Keep at least 4 significant figures in intermediate steps.
When to Use the Standard Error
Use the standard error when you want to:
- Construct a confidence interval for the population mean.
- Perform a one-sample t-test or z-test.
- Report the precision of a sample mean in a scientific paper (often shown as mean ± SEM).
- Compare the means of two groups (the standard error of the difference is a combination of the two SEMs).
Do not use SEM to describe the spread of your data; use standard deviation for that. A common error in scientific papers is plotting error bars as SEM when the intent is to show variability – they are different concepts.
Limitations and Alternatives
The formula SEM = s/√n assumes the sample is random and independent, and that the sampling distribution of the mean is approximately normal (which holds for large n by the Central Limit Theorem, or if the population is normal). For small samples from non-normal populations, the standard error formula still works, but the interpretation of confidence intervals may require the t-distribution.
If you need to estimate the standard error of other statistics (e.g., a proportion, a regression coefficient, or a correlation), the formula differs. For a proportion p, the standard error is √(p(1−p)/n). For a regression coefficient, you need the residual variance and the design matrix. In those cases, use specialized formulas or software.
Frequently Asked Questions
What is the difference between standard deviation and standard error?
Standard deviation measures how much individual data points differ from the mean of the sample. Standard error measures how much the sample mean itself would vary if you repeated the experiment many times. SD is about the data; SEM is about the estimate.
How do I calculate standard error if I only have the sample mean and n, but not the standard deviation?
You cannot calculate the standard error without the standard deviation (or the raw data to compute it). The SEM formula requires s or σ. If you have the raw data, you can compute s first.
Can standard error be zero?
Yes, if all values in the sample are identical, then s = 0 and SEM = 0. This is rare in real data and usually indicates a measurement error or a very homogeneous population.
Why do we use n−1 in the sample standard deviation?
Using n−1 (Bessel’s correction) makes the sample variance an unbiased estimator of the population variance. If you used n, the sample variance would be slightly too small on average, especially for small samples.
What is the standard error of the mean for a 95% confidence interval?
The 95% confidence interval is mean ± t* × SEM, where t* is the critical value from the t-distribution with n−1 degrees of freedom (approximately 1.96 for large n). The SEM itself is not the interval; it is the multiplier that scales the interval width.
Related
Formula used
in sd | Sample standard deviation (s) | - | 10 | 0 in n | Sample size (n) | - | 30 | 1 out sem | Standard error of the mean | - | sd / sqrt(n) | 4
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Measuring Light Speed & Wavelength: How It Works
- Draco Race Blox Fruits: How to Get It
- ES File Explorer Tips & Tricks That Actually Work
- Remove Google FRP Lock on Oppo: Step-by-Step
- Forza Horizon 6: Unlock Legend Island & Earn Horizon Legend
- Clean Hair Dryer Filter: Improve Airflow