The standard error (SE) measures the sampling variability of a statistic. For a sample mean, it estimates how much that mean tends to vary across repeated random samples from the same population.
where s is the sample standard deviation and n is the sample size. When the population standard deviation σ is known, replace s with σ.
| Question | Answer |
|---|---|
| What does SE measure? | Sampling variability of a statistic (e.g. the sample mean) |
| Most common form | Standard error of the mean: s / √n |
| Does larger n reduce SE? | Yes — SE falls proportional to 1/√n |
| Is SE the same as SD? | No — SD describes observation spread; SE describes estimator variability |
| Used for | Confidence intervals, hypothesis tests, regression output |
| Does small SE = accuracy? | No — small SE means precision, not freedom from bias |
What Is Standard Error?
Picture a population — all the adults in a country, every widget from a factory, every patient in a database. You cannot measure all of them, so you draw a random sample. Your sample gives you a mean, a proportion, or some other number you want to use to represent the population. That number is an estimate, and like any estimate, it carries uncertainty.
Standard error quantifies that uncertainty. Specifically, it answers: if you repeated the same study with a fresh random sample of the same size, how much would your statistic move around from sample to sample?
Suppose a researcher draws repeated samples of 40 students from a large university and records the mean GPA each time:
| Sample | n | Mean GPA |
|---|---|---|
| 1 | 40 | 3.41 |
| 2 | 40 | 3.36 |
| 3 | 40 | 3.49 |
| 4 | 40 | 3.38 |
| 5 | 40 | 3.44 |
Each sample mean differs slightly. The standard deviation of those sample means — across many such repetitions — is the standard error of the mean. In practice, you estimate it from a single sample using the formula SE = s / √n.
Standard deviation describes how much individual observations vary around the mean. Standard error describes how much a sample statistic varies across repeated samples. They answer different questions.
Standard Error Formula
The most common form — the standard error of the sample mean — divides the standard deviation by the square root of the sample size.
SE = standard error
s = sample standard deviation
n = sample size
σ = population standard deviation
n = sample size
In most real-world research, the population standard deviation σ is unknown, so researchers use s — the sample standard deviation — and obtain the estimated SE. The population version is used when σ is genuinely known (rare in practice, common in textbook exercises).
Formula components at a glance
| Symbol | Meaning | Role in the formula |
|---|---|---|
| SE | Standard error | The quantity you're calculating |
| s | Sample standard deviation | Estimates population variability from your data |
| σ | Population standard deviation | Used only when genuinely known |
| n | Sample size | Larger n shrinks SE via the square root |
| x̄ | Sample mean | The estimate SE describes the precision of |
How to Calculate Standard Error
The calculation has three steps regardless of the dataset size.
Calculate the sample standard deviation (s)
Use s = √[Σ(xᵢ − x̄)² / (n − 1)]. In software: STDEV.S() in Excel, sd() in R, np.std(ddof=1) in Python.
Find √n
Take the square root of the sample size. If n = 64, then √64 = 8. If n = 100, √100 = 10.
Divide s by √n
SE = s / √n. That result is your standard error. A larger sample shrinks SE; a smaller sample inflates it.
Worked Examples
Example 1 — Summary statistics given
A researcher records resting heart rate from 64 participants. The sample mean is 72 bpm and the sample standard deviation is 16 bpm. Calculate the standard error.
Identify the values: s = 16, n = 64
Calculate √n: √64 = 8
Divide: SE = 16 / 8 = 2.00 bpm
✅ Interpretation: The estimated standard deviation of the sampling distribution of the sample mean is 2.00 bpm. If this study were repeated many times with fresh samples of 64, the sample means would typically scatter within roughly 2 bpm of the true population mean — not that every individual heart rate is within 2 bpm of the mean.
Example 2 — Calculated from raw data
Dataset: 12, 15, 14, 18, 16, 13, 17, 15. Calculate the standard error of the mean.
Sample size: n = 8
Sample mean: x̄ = (12+15+14+18+16+13+17+15) / 8 = 120 / 8 = 15.00
Deviations from mean (xᵢ − x̄): −3, 0, −1, 3, 1, −2, 2, 0
Squared deviations: 9, 0, 1, 9, 1, 4, 4, 0 → Sum = 28
Sample variance: s² = 28 / (8−1) = 28 / 7 = 4.00
Sample SD: s = √4.00 = 2.00
√n: √8 ≈ 2.828
Standard error: SE = 2.00 / 2.828 ≈ 0.707
✅ With n = 8 and s = 2.00, the SE ≈ 0.707. The sample mean of 15.00 has this estimated level of sampling uncertainty.
Why Sample Size Reduces Standard Error
SE = s / √n. As n grows, √n grows too, making SE smaller — assuming the underlying variability in the data stays roughly the same. This is not a coincidence; it reflects a mathematical fact about how averaging works: more data points dampen the influence of any single unusual observation.
The relationship follows a square-root rule with a diminishing-return character. Quadrupling the sample size halves the SE:
| Sample Size (n) | √n | SD | SE = SD / √n |
|---|---|---|---|
| 25 | 5.00 | 20 | 4.00 |
| 100 | 10.00 | 20 | 2.00 |
| 400 | 20.00 | 20 | 1.00 |
| 900 | 30.00 | 20 | 0.67 |
Reducing SE by half requires quadrupling the sample size — not doubling it. This square-root relationship explains why gains in precision become expensive at large n values. It also explains why SE and SD behave differently: the SD of the data does not shrink automatically as n increases, but the SE does.
Standard Error vs Standard Deviation
This is the single most common source of confusion in applied statistics. Here is the clearest way to keep them straight: SD asks "how spread out is this dataset?" while SE asks "how precisely can I estimate this statistic?"
| Feature | Standard Deviation (SD) | Standard Error (SE) |
|---|---|---|
| Measures | Variability of individual observations | Sampling variability of a statistic |
| Applies to | Each data value in a sample or population | A summary statistic (mean, proportion, etc.) |
| Formula | √[Σ(xᵢ−x̄)² / (n−1)] | s / √n (for the mean) |
| Changes with n? | Not systematically — depends on the data | Yes — SE = SD / √n, so it falls as n rises |
| Reports variability of | The data itself | The estimator (e.g. the sample mean) |
| Used in | Describing a dataset's spread | Confidence intervals, hypothesis tests |
A concrete example makes this stick. Suppose you measure the heights of 10,000 adults. The SD of those heights might be around 7 cm — that number does not shrink just because you have a large sample. It reflects genuine human variation. But the SE of the sample mean would be 7 / √10,000 = 0.07 cm, telling you the sample mean is an extremely precise estimate of the population mean height. The two numbers describe entirely different things.
Do not interpret SE as the typical distance between an individual observation and the mean. That is what SD measures. SE describes the sampling variability of the mean itself — it concerns repeated sample means, not individual data points.
Standard Error and Sampling Distributions
Every statistic has a sampling distribution — the theoretical distribution of that statistic across all possible samples of the same size from the same population. For the sample mean, this distribution has a standard deviation equal to σ / √n, which is the population-level standard error.
When σ is unknown (the usual case), you estimate the sampling distribution's standard deviation using s / √n. That estimate is what most people mean when they say "standard error." The two ideas — the theoretical standard deviation of the sampling distribution and the estimated SE from your data — converge as the sample grows.
Standard Error and the Central Limit Theorem
The Central Limit Theorem (CLT) states that, under appropriate conditions, the sampling distribution of the sample mean becomes approximately normal as sample size increases — regardless of the shape of the underlying population distribution. The standard deviation of that normal distribution is SE = σ / √n.
This is why SE appears in the denominators of z- and t-tests. When the CLT applies, you know the shape (approximately normal) and the spread (SE) of the sampling distribution, which is exactly the information you need to construct p-values and confidence intervals.
The CLT concerns the sampling distribution of the mean, not the raw data. A large sample does not make your data normally distributed. If the underlying population is severely skewed or has heavy tails, very large samples may be needed for the CLT to produce a good approximation — and for some populations, additional care is warranted regardless of n.
Standard Error and Confidence Intervals
SE is the building block of every standard confidence interval. The general structure is:
Estimate = sample mean or other statistic
Critical Value = z* or t* depending on context
SE = s / √n for the mean
Choosing between z* and t*
When σ is known, use z* (e.g. z* = 1.960 for 95% confidence). When σ is unknown — the typical situation — use t* from the t-distribution with n − 1 degrees of freedom. For large samples (n ≥ 100 or so) the t* and z* values are nearly identical, but for small samples the t* value is noticeably larger, which appropriately widens the interval to account for extra uncertainty.
A sample of 36 accounts shows x̄ = $2,400 with s = $480. Build a 95% confidence interval for the population mean.
Calculate SE: SE = 480 / √36 = 480 / 6 = $80
Find t*: df = 36 − 1 = 35. From the t-table, t*(35, 95%) ≈ 2.030
Margin of error: 2.030 × $80 = $162.40
Interval: $2,400 ± $162.40 → ($2,237.60, $2,562.40)
✅ We are 95% confident the true population mean falls between $2,237.60 and $2,562.40. The SE of $80 drives the interval width; a larger sample would shrink SE, producing a narrower interval.
Standard Error and Margin of Error
The margin of error is simply the critical value multiplied by the SE. It is half the width of a confidence interval.
| Concept | What it is | Formula |
|---|---|---|
| Standard deviation | Spread of observations in your data | √[Σ(xᵢ−x̄)²/(n−1)] |
| Standard error | Sampling variability of the estimate | s / √n |
| Margin of error | Uncertainty around the estimate, at a given confidence level | z* or t* × SE |
| Confidence interval | Range constructed around the estimate | Estimate ± ME |
The three concepts are related but not interchangeable. You cannot swap one for another — reporting SD where SE is expected, for instance, typically inflates the perceived uncertainty. A useful check: if the SE and SD are equal in your output, your n = 1 (or something has gone wrong).
Standard Error and Hypothesis Testing
In a one-sample hypothesis test, SE appears in the denominator of the test statistic, scaling the difference between the sample estimate and the null-hypothesised value by the estimated sampling variability:
x̄ = sample mean
μ₀ = null-hypothesised population mean
SE = s / √n
A larger SE means the same difference between x̄ and μ₀ produces a smaller test statistic — and a less extreme p-value. This is why underpowered studies with small n (and large SE) often fail to detect effects that exist. The test statistic and the resulting p-value are both functions of SE, which is itself a function of both SD and n.
A very large sample produces a tiny SE, which can make even trivial differences statistically significant. Always report effect size alongside p-values, and always ask whether the detected difference matters in context — not just whether p < 0.05.
Standard Error Calculator
Standard Error Calculator
Standard Error of a Proportion
When your statistic is a proportion rather than a mean — the fraction of survey respondents who agree, the percentage of parts that fail quality control — the SE formula changes:
p̂ = sample proportion
n = sample size
In a survey of 200 customers, 80 say they would recommend the product. Calculate the SE of the sample proportion.
Sample proportion: p̂ = 80 / 200 = 0.40
Calculate: SE = √[0.40 × 0.60 / 200] = √[0.24 / 200] = √0.0012 ≈ 0.0346
✅ The SE of the sample proportion is approximately 0.0346 (3.46 percentage points). A 95% CI would be roughly 0.40 ± 1.96 × 0.0346 ≈ (33.2%, 46.8%).
Standard Error of the Difference Between Two Means
When you compare two independent groups — a treatment and a control, males and females, two product variants — the SE of the difference between sample means combines the within-group variability of each:
s₁, s₂ = sample SDs
n₁, n₂ = sample sizes
This formula underpins the two-sample t-test. Welch's version (shown above) does not assume the two groups have equal variances, which makes it the safer default in practice. If equal variances can be justified, a pooled-variance version is available, but Welch's test is recommended unless you have good reason to assume equal variances.
Standard Error in Regression
In regression output, every coefficient estimate comes with its own SE. The SE of a coefficient reflects how precisely that coefficient is estimated from the data, given the model structure and assumptions:
β̂ = estimated coefficient
SE(β̂) = standard error of that estimate
A coefficient with a smaller SE is estimated more precisely, all else equal. This t-statistic tests whether the coefficient differs significantly from zero. Confidence intervals for coefficients also use the same structure: β̂ ± t* × SE(β̂).
The phrase "standard error of the estimate" (sometimes written SEE) refers to something distinct: it measures the typical residual error — how far predictions stray from observed values. Do not confuse SEE with the SE of a coefficient.
Calculating Standard Error in Software
Excel
Excel has no single built-in SE function, but the calculation takes one line once you have your data in a column (e.g. A2:A101):
-- Sample standard deviation =STDEV.S(A2:A101) -- Sample size =COUNT(A2:A101) -- Standard error (one formula) =STDEV.S(A2:A101)/SQRT(COUNT(A2:A101)) -- 95% CI lower bound (uses t critical value) =AVERAGE(A2:A101) - CONFIDENCE.T(0.05, STDEV.S(A2:A101), COUNT(A2:A101)) -- 95% CI upper bound =AVERAGE(A2:A101) + CONFIDENCE.T(0.05, STDEV.S(A2:A101), COUNT(A2:A101))
Use STDEV.S (sample SD) rather than STDEV.P (population SD) unless you genuinely have the full population. CONFIDENCE.T uses the t-distribution; CONFIDENCE.NORM uses the normal distribution (appropriate when σ is known or n is very large).
R
# Manual calculation x <- c(12, 15, 14, 18, 16, 13, 17, 15) n <- length(x) s <- sd(x) # sample SD se <- s / sqrt(n) # standard error cat("SE =", round(se, 4)) # From a t-test (gives SE automatically) t.test(x) # From regression output model <- lm(y ~ x, data = df) summary(model) # Std. Error column shows SE for each coefficient
Python
import numpy as np from scipy import stats x = [12, 15, 14, 18, 16, 13, 17, 15] # Manual n = len(x) s = np.std(x, ddof=1) # ddof=1 for sample SD se = s / np.sqrt(n) print(f"SE = {se:.4f}") # Using scipy — stats.sem() uses ddof=1 by default se_scipy = stats.sem(x) print(f"SE (scipy) = {se_scipy:.4f}") # Note: np.std(ddof=0) is the population SD; use ddof=1 for sample
SPSS
In SPSS, SE appears automatically in several procedures. The most direct route for descriptive SE is:
Analyze → Descriptive Statistics → Explore — tick "Statistics" and ensure "Standard error of mean" is selected. For regression, Analyze → Regression → Linear shows SE for each coefficient in the Coefficients table.
Precision vs Accuracy
A small SE means the estimator is precise — repeated samples would produce similar values. It does not mean the estimator is accurate — close to the true population value. An estimator can be consistently wrong if there is systematic bias in the data collection.
| Concept | What it measures | What SE tells you about it |
|---|---|---|
| Precision | How consistent repeated estimates are | Small SE → high precision |
| Accuracy | How close estimates are to the true value | SE says nothing about bias |
| Bias | Systematic offset from the true value | Large n reduces SE but does not remove bias |
Increasing the sample size will steadily reduce SE toward zero, but if the sample is drawn using a flawed method — voluntary response, convenience sampling, non-response bias — the resulting estimate may remain far from the population parameter regardless of how small SE becomes.
Small Samples and Non-Normal Data
The SE formula s / √n is always calculable, but the inferential procedures built around it (t-tests, z-intervals) rest on assumptions that need scrutiny when samples are small or data are non-normal.
With small n, the t-distribution with n − 1 degrees of freedom accounts for the extra uncertainty from estimating σ from few data points — this is why t* values are larger than z* values for small samples. Severe skewness, heavy tails, or the presence of influential outliers can make the CLT approximation unreliable even at moderate n, and in those cases alternatives such as bootstrap intervals or non-parametric tests may be more appropriate.
Dependent and Clustered Data
The formula SE = s / √n assumes observations are drawn independently. When observations are correlated — repeated measures on the same person, students clustered within schools, patients within hospitals — the effective amount of independent information is less than n, and the standard SE formula can substantially underestimate sampling uncertainty.
Appropriate methods in these contexts include mixed-effects models, cluster-robust standard errors, and survey-design-adjusted estimators. Reporting naive SE from a clustered design can produce intervals that are far too narrow and p-values that are far too small.
Common Mistakes
| Mistake | Wrong | Correct |
|---|---|---|
| Dividing SD by n instead of √n | SE = SD / n | SE = SD / √n |
| Confusing SE with SD | Both describe data spread | SD = observation variability; SE = estimator variability |
| Treating SE as the accuracy of the estimate | Small SE = estimate is correct | Small SE = estimate is precise, not necessarily unbiased |
| Using ±SE as a 95% CI | x̄ ± SE ≈ 95% CI | x̄ ± t* × SE, where t* ≈ 2 for large n, larger for small n |
| Auto-selecting z* when σ is unknown | Always use z = 1.96 for 95% | Use t* with df = n−1 when σ is unknown |
| Ignoring clustered data structure | Apply s/√n to clustered data | Use cluster-robust SE or mixed-effects model |
| Using population SD formula for sample | STDEV.P / √n | STDEV.S / √n (or SD with ddof=1) |
| Treating statistical significance as practical importance | Small SE → result is meaningful | Report effect size; significance depends on n and SE jointly |
Formula Cheat Sheet
| Statistic | Standard Error Formula | Notes |
|---|---|---|
| Sample mean (σ unknown) | s / √n | Most common; use t* for CI and tests |
| Sample mean (σ known) | σ / √n | Use z* for CI; rare in practice |
| Sample proportion | √[p̂(1−p̂)/n] | For estimation; pooled form for two-sample test |
| Difference of two means | √(s₁²/n₁ + s₂²/n₂) | Welch version; does not assume equal variances |
| Regression coefficient | Model-based; shown in software output | Depends on design matrix and residual variance |
Frequently Asked Questions
Only if the sample standard deviation is zero, meaning every observation in the sample is identical. That is theoretically possible but essentially never occurs with real continuous measurements. A zero SE would imply the sample mean has no sampling variability at all.
No. SE = s / √n. Both s (a square root) and √n are non-negative, so SE ≥ 0 always. If software reports a negative SE, something has gone wrong with the calculation or data.
A smaller SE means more statistical precision for the estimator. That is generally desirable, but precision is not the same as accuracy. If the data collection is biased, a very precise estimate can still be far from the truth. Also, small SE in a very large study can make trivial differences statistically significant. Always pair SE interpretation with an assessment of practical effect size.
It means the estimated standard deviation of the sampling distribution of that statistic is 2 units. Under the appropriate CLT conditions, sample means from repeated studies of the same size would scatter around the population mean with roughly that scale of variability. It is not saying that individual observations are within 2 units of the mean. That is what SD describes.
The mathematical result follows from the properties of variance. If independent observations each have variance σ², the variance of their mean is σ²/n. Taking the square root to get a standard deviation gives σ/√n. Dividing by n rather than √n would produce a quantity that shrinks too fast with sample size and does not equal the standard deviation of the sampling distribution.
The margin of error you see reported in opinion polls equals z* × SE, usually using z* ≈ 1.96 for 95% confidence. For a proportion with p̂ ≈ 0.50 and n = 1,000, SE ≈ 0.0158, and the margin of error ≈ 1.96 × 0.0158 ≈ ±3.1 percentage points. This is the "±3 points" figure familiar from news coverage.
The SE formula can always be computed. Whether the inferential procedures built around it, such as t-tests and z-intervals, work well depends on sample size, data distribution, and how accurately the CLT approximation holds. For severely non-normal populations or small samples, bootstrap confidence intervals or non-parametric methods may be more reliable.
They refer to the same concept from different angles. The "standard deviation of the sampling distribution" is the theoretical quantity σ/√n. It exists even if you never compute it. "Standard error" is the estimated version, using s/√n from your actual data. As n grows, the estimate s converges toward σ and the two become indistinguishable.
Yes. SE depends on both the underlying variability and the sample size. If Study A uses n = 50 and Study B uses n = 200 on the same population, Study B will have a smaller SE and narrower confidence intervals, even though the population is identical. That difference in SE is entirely due to the difference in n.
When n = 1, SE = s / √1 = s, so they are numerically equal. In that degenerate case the distinction collapses. In all practical multi-observation settings, they differ. Some older literature uses "standard error" loosely to mean the SD of a distribution; always check which definition the author intends.
This is a distinct concept from the SE of a coefficient. The standard error of the estimate (SEE) measures the typical size of residuals, the distance between observed and predicted values. It quantifies how well the regression line fits the data and is reported in the same units as the outcome variable. A smaller SEE means predictions are tighter.
Related Statistics Resources
Standard Deviation
The parent concept behind SE — understand how SD is calculated before diving into SE.
Confidence Intervals
How SE and critical values combine to produce the intervals you report.
Central Limit Theorem
Why SE-based inference works even when the underlying data is not normal.
Hypothesis Testing
See SE at work inside z-tests, t-tests, and more with fully worked examples.
Margin of Error
How SE scales into the margin of error figure you see in polls and research reports.
Linear Regression
How coefficient SEs appear in regression output and drive t-statistics.