Quick answers
- Is standard error the same as standard deviation?
- No. SD measures the spread of individual values; SE measures how precisely the mean is estimated. SE = SD / √n, so SE is always smaller once n > 1.
- Is it better to use SD or SE?
- Use SD to describe how variable your plots or animals were. Use SE (or a 95% confidence interval) when you compare means. Always say which one you show.
- How do you convert SE to SD?
- Multiply by the square root of the sample size: SD = SE × √n. With SE = 0.41 and n = 4, SD = 0.41 × 2 = 0.82.
- How do you calculate SD and SE?
- SD = √[ Σ(x − mean)² / (n − 1) ]. SE = SD / √n. In Excel: =STDEV.S(A2:A9) and =STDEV.S(A2:A9)/SQRT(COUNT(A2:A9)).
- Are error bars SD or SE?
- Either, depending on the message. Most journals in agriculture show SE on bar charts of treatment means, but the caption must say which, and give n.
- Does standard error have units?
- Yes. SD and SE are in the same units as the data: kg, t/ha, cm. Only the coefficient of variation is unit-free.
On this page
The difference in one table
| Standard deviation (SD) | Standard error of the mean (SE, SEM) | |
|---|---|---|
| What it describes | How much individual values differ from the mean | How much the mean would vary if you repeated the experiment |
| Formula | √[ Σ(x − x̄)² / (n − 1) ] | SD / √n |
| More replicates | Stays about the same (the plots are as variable as before) | Gets smaller (the mean is estimated more precisely) |
| Use it to | Describe variability: uniformity of a field, spread of body weights | Show the precision of treatment means; build confidence intervals |
| Units | Same as the data | Same as the data |
Standard error formula and a worked example
Four plots of one wheat variety yielded 4, 5, 6 and 5 t/ha.
- Mean: (4 + 5 + 6 + 5) / 4 = 5 t/ha.
- Squared deviations from the mean: 1, 0, 1, 0; their sum is 2.
- Variance: 2 / (4 − 1) = 0.667 (divide by n − 1 for a sample).
- SD = √0.667 = 0.82 t/ha.
- SE = 0.82 / √4 = 0.41 t/ha.
So the plots typically differ from the mean by about 0.8 t/ha, but the mean itself is known to within about 0.4 t/ha. Variance is simply SD squared, in squared units, which is why SD is easier to read.
- n
- 4
- Mean
- 5.00
- Standard deviation (SD)
- 0.816
- Standard error (SE)
- 0.408
- Coefficient of variation (CV)
- 16.3%
SD uses n − 1 (the sample standard deviation, as Excel's STDEV.S and R's sd() do). SE = SD / √n. CV = SD / mean × 100.
Which to use on error bars and in tables
- Describing the data (how variable were the cows, the plots?): mean ± SD.
- Comparing treatment means: mean ± SE, or better a 95% confidence interval, with letters from a post hoc test for which means differ.
- Always state in the caption which one is shown and the number of replicates. Bars that do not overlap with SE do not prove a difference, and with only three replicates SE bars look reassuringly small (Cumming, Fidler and Vaux, 2007).
In tables, many agricultural journals give treatment means with a pooled SE (or SEM) from the ANOVA and letters, rather than an SE for each mean. aStat's analyses report both, and Graph Maker draws SE, SD or 95% CI error bars with letters at journal size.
Standard error in Excel, R and SPSS
Excel
- SD: =STDEV.S(A2:A9) (STDEV.P divides by n and is for a whole population, not a sample).
- SE: =STDEV.S(A2:A9)/SQRT(COUNT(A2:A9)). Excel has no SE function.
- SE error bars: select the chart, Chart Elements (+) › Error Bars › More Options › Custom › Specify Value, and select the SE cells.
R
sd(x) # standard deviation
sd(x) / sqrt(length(x)) # standard error of the mean
# by group:
aggregate(yield ~ variety, data = dat, FUN = function(v) sd(v) / sqrt(length(v)))SPSS
Analyze › Descriptive Statistics › Descriptives › Options › tick S.E. mean (Explore also reports it).
Or open your spreadsheet in aStat: the summary statistics give n, mean, SD, SE, median and range for every group at once, and the ANOVA Calculator gives the pooled SE of each treatment mean.
Key takeaways
- SD describes how much individual animals or plots vary; SE describes how precisely a mean is estimated.
- SE = SD / √n: more replicates shrink the SE but not the SD.
- Show SD to describe variability, SE or a 95% CI to compare means, and always say which.
- Convert SE back to SD with SD = SE × √n.
- The pooled SE of a treatment mean in an ANOVA is √(MSE / r).
Questions people ask
Why is the SE smaller than the SD?
Because a mean of several values varies less than single values do. SE = SD / √n, so with 4 replicates it is half the SD, and with 16 a quarter.
Can the SE be larger than the SD?
No, not for n of 2 or more. If your SE is larger, check that you divided by √n and not multiplied.
Should I use n or n − 1?
n − 1 for data from an experiment (a sample). Dividing by n (STDEV.P) understates the variability, most of all with few replicates.
Is the SEM the same as the SE?
Yes. SEM (standard error of the mean) and SE mean the same thing when they refer to a mean.
What is a pooled SE in an ANOVA table?
√(MSE / r), where MSE is the error mean square and r the replicates per treatment. It assumes equal variances and is the SE most journals print beside treatment means.
Sources
- Cumming, G., Fidler, F., and Vaux, D. L. (2007). Error bars in experimental biology. Journal of Cell Biology, 177(1), 7–11.
- Altman, D. G., and Bland, J. M. (2005). Standard deviations and standard errors. BMJ, 331, 903.
- Gomez, K. A., and Gomez, A. A. (1984). Statistical Procedures for Agricultural Research (2nd ed.). Wiley.