The standard error (SE) measures how far the sample mean is likely to be from the true population mean. To calculate it, divide the sample standard deviation (s) by the square root of the sample size (n): SE = s / √n. This page provides a standard error calculator, explains the formula step-by-step, and clarifies when to use it.
Formula
The standard error of the mean (SEM) is calculated as:
SE = s / √n
- s = sample standard deviation (a measure of spread in your data, with the same units as the data)
- n = sample size (the number of observations)
- SE = standard error (also in the same units as the data)
This formula assumes your sample is randomly drawn from a larger population and that the observations are independent. If you only have the population standard deviation (σ) and know the entire population, you would use σ/√n, but in practice we almost always use the sample standard deviation.
Worked Example
Suppose you measure the heights of 30 randomly selected adult women and find a sample standard deviation of 15 cm. Using the calculator defaults:
- Identify the sample standard deviation: s = 15 cm
- Identify the sample size: n = 30
- Take the square root of n: √30 ≈ 5.477
- Divide s by that result: 15 / 5.477 ≈ 2.7386
So the standard error is approximately 2.74 cm. This means the sample mean (say, 165 cm) is expected to be within about 2.74 cm of the true population mean, on average.
Why the Standard Error Matters
The standard error is the foundation of confidence intervals and hypothesis tests. For example, a 95% confidence interval for the mean is roughly:
Sample mean ± 1.96 × SE (when n is large, or using the t-distribution for smaller samples).
In the example above, if the sample mean were 165 cm, the 95% confidence interval would be about 165 ± 5.37 cm, i.e., from 159.6 to 170.4 cm. This tells you the range in which the true population mean likely falls.
The standard error also appears in t-tests, regression coefficients, and meta-analyses. Without it, you cannot judge the precision of an estimate.
How to Choose the Right Standard Deviation
A common mistake is using the wrong standard deviation. There are two types:
- Sample standard deviation (s) – use this when your data is a sample from a larger population. It divides by n–1 (Bessel’s correction). This is what you should use in the standard error formula.
- Population standard deviation (σ) – use this only if you have data for every member of the population. It divides by n. If you use σ, the formula becomes σ/√n, but this is rare in practice.
Most calculators and software (like Excel’s STDEV.S) give the sample standard deviation by default. Make sure you know which one you have.
Common Mistakes and Misconceptions
- Confusing standard deviation with standard error: Standard deviation describes variability among individual data points; standard error describes variability of the sample mean. They are not interchangeable.
- Forgetting to divide by √n: Some people mistakenly report the sample standard deviation as the standard error. Always divide.
- Using n instead of √n: Dividing by n (rather than √n) gives a much smaller, incorrect value.
- Units: The standard error has the same units as the original data. If your data is in dollars, the SE is in dollars, not dollars squared.
- Small sample size: With n < 30, the normal approximation (1.96) is less accurate. Use the t-distribution with n–1 degrees of freedom for confidence intervals.
Limitations and When Not to Use
The standard error formula assumes:
- Random sampling from the population
- Independent observations
- No extreme outliers that inflate the standard deviation
If your sample is biased (e.g., only surveying people who visit a particular website), the standard error will not reflect the true sampling error. Also, if the distribution is highly skewed, the standard error is still valid for large samples (central limit theorem), but for small samples, consider bootstrap methods or robust estimators.
For proportions, the standard error is different: SE = √(p(1–p)/n), where p is the sample proportion. That formula is not covered by this calculator, which is for means only.
Frequently Asked Questions
What is the difference between standard deviation and standard error?
Standard deviation (SD) measures how spread out individual data points are around the mean. Standard error (SE) measures how much the sample mean itself would vary if you repeated the study many times. SE = SD/√n, so SE is always smaller than SD (unless n=1).
Can I calculate standard error without the standard deviation?
No, you need the standard deviation (or the variance, since SD = √variance). If you only have the range or interquartile range, you cannot directly compute SE. You could estimate SD from the range (e.g., range/4 for roughly normal data), but that’s a rough approximation.
What is a “good� standard error?
There is no universal threshold. A smaller SE indicates a more precise estimate. What counts as “small� depends on the scale of your data and your research question. For example, an SE of 2 cm for human heights is quite precise, but an SE of 2 kg for elephant weights might be less so.
Why does the standard error decrease with sample size?
Because you divide by √n. As n grows, √n grows, so the SE shrinks. This reflects the fact that larger samples give more stable estimates. To halve the SE, you need to quadruple the sample size (since √4 = 2).
Is the standard error the same as the margin of error?
No. The margin of error is the SE multiplied by a critical value (e.g., 1.96 for 95% confidence). So margin of error = critical value × SE. The SE is just the raw measure of variability; the margin of error includes the confidence level.
Should I report SE or SD in my paper?
It depends on your field. Many scientific journals prefer SD to describe the data spread, and SE for the precision of the mean. If you report SE, always state the sample size so readers can recover the SD (SD = SE × √n). Some journals require both.
Related
Formula used
in sd | Sample standard deviation (s) | - | 15 | 0 in n | Sample size (n) | - | 30 | 1 out se | Standard error | - | sd / sqrt(n) | 4 out var | Variance (s²) | - | sd^2 | 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
- Mac Start Up Automatically After Power Failure?
- Expose Self-Hosted Service Securely Without Cloudflare Tunnel
- Nano Delivery for Functional Foods: What It Can and Can’t Do4.00
- Disable Apple Watch Turn-by-Turn Vibration While Driving
- Convert Play FLAC in iTunes: Full Guide
- Soda Foundation Charter: What It Means