Standard Error Calculator
Estimate the standard error of the sample mean from 2 to 30 observations, with the mean, sample standard deviation, and calculation detail kept in sync.
Data
Enter at least two and at most 30 finite numbers. Use a period for decimals; commas are accepted only as thousands separators.
Live results
Calculation detail
| Observation | Value xᵢ | Deviation xᵢ – x̄ | Squared deviation |
|---|---|---|---|
| x₁ | 177.000 | -2.500 | 6.250 |
| x₂ | 182.000 | 2.500 | 6.250 |
| x₃ | 175.000 | -4.500 | 20.250 |
| x₄ | 194.000 | 14.500 | 210.250 |
| x₅ | 181.000 | 1.500 | 2.250 |
| x₆ | 177.000 | -2.500 | 6.250 |
| x₇ | 169.000 | -10.500 | 110.250 |
| x₈ | 180.000 | 0.500 | 0.250 |
| x₉ | 182.000 | 2.500 | 6.250 |
| x₁₀ | 186.000 | 6.500 | 42.250 |
| x₁₁ | 179.000 | -0.500 | 0.250 |
| x₁₂ | 172.000 | -7.500 | 56.250 |
How to use this standard error calculator
What this calculator does
This calculator estimates the standard error of the sample mean (SEM) from a set of 2 to 30 numeric observations. SEM describes the estimated sampling variability of the mean: smaller values indicate that repeated samples of the same size would tend to produce means that are more tightly clustered. The calculator also reports the sample mean, sample standard deviation, sample variance, and sum of squared deviations so you can audit the calculation path. It does not turn SEM into a confidence interval or claim that the population mean lies within a particular range.
When to use it
Use SEM when you have a sample of repeated measurements and want to express the precision of the sample mean. Typical cases include summarizing laboratory replicates, comparing the precision of average measurements across sample sizes, checking hand calculations in a statistics course, or preparing a compact descriptive-statistics table before a confidence interval or hypothesis test. For inference about a population mean, the sampling design and assumptions still matter; Penn State's explanation of a t-interval for one mean shows how the standard error enters a confidence interval when the population standard deviation is unknown.
How to calculate
- The calculator opens with a complete demonstration set of 12 student heights, so the results and the Excel workbook are usable immediately. Replace any xᵢ value with your own observation. Use Add data point until you reach your sample size, up to 30 values; use Remove last to shorten the set.
- Choose Steps to show. “Summary only” hides row-level arithmetic, “Values and deviations” shows each observation and its deviation from the mean, and “Full calculation” also shows squared deviations. This display choice does not alter SEM.
- Read Standard error of the mean as the primary result, then review the supporting outputs. Select Download Excel to export the current validated data and calculations as a true .xlsx workbook. Reset clears the demonstration values and results; Excel export is then disabled until at least two valid observations are entered again.
Input guide
Data values (x₁ ... xₙ) are required numeric observations. They are unitless to the calculator, so all values must use the same real-world unit, such as centimeters, grams, seconds, or dollars. Enter ordinary decimal notation with a period as the decimal separator; optional comma thousands separators are accepted only in standard groups such as 1,250.5. Scientific notation and ambiguous decimal-comma forms such as 1,5 are rejected. Negative and zero observations are allowed because many legitimate datasets can contain them. At least two valid values are required, and no more than 30 are supported. Adding observations can reduce SEM when the underlying spread remains similar, while unusually dispersed observations can increase the sample standard deviation and therefore SEM. A common mistake is to mix units – for example, centimeters and meters – in the same sample.
Steps to show is an optional display setting with three fixed choices. It affects only the calculation-detail table. Use “Summary only” when you need a compact answer, “Values and deviations” to inspect distances from the mean, and “Full calculation” to audit the squared-deviation sum. Changing this setting does not change any numeric output or the workbook's underlying model.
Output guide
Standard error of the mean is reported in the same unit as the observations. It equals the sample standard deviation divided by the square root of the observation count. A value of zero occurs when every observation is identical; a larger value means the sample mean is less precise relative to the scale of the data. Sample mean is the arithmetic average. Sample standard deviation uses the n – 1 denominator and measures spread among the observations; Penn State's measures-of-spread lesson shows the sample standard-deviation calculation. Sum of squared deviations is the unnormalized total of (xᵢ – x̄)² used to obtain the sample variance. Sample variance divides that sum by n – 1 and is expressed in squared input units. It is the quantity whose square root produces the sample standard deviation. SEM itself is not a confidence interval; a separate sampling-distribution multiplier is required for interval estimation.
The Calculation detail table contains Observation, Value xᵢ, Deviation xᵢ – x̄, and, in full mode, Squared deviation. Deviations above the mean are positive and those below are negative. Squared deviations are always nonnegative and add to the displayed sum of squared deviations. These rows are exact consequences of the current input model rather than a separate estimate.
Worked example
The demonstration uses 177, 182, 175, 194, 181, 177, 169, 180, 182, 186, 179, and 172. Their sample mean is 179.500. The squared deviations sum to 467.000, so the sample variance is 467 ÷ 11 = 42.4545 and the sample standard deviation is √42.4545 = 6.5157. Dividing by √12 gives SEM = 1.8809, displayed as 1.881. The sample variance shown by the calculator is 42.455 after display rounding. NIST illustrates the same standard-deviation-of-an-average structure in its discussion of Type A uncertainty of an average correction, where a standard deviation is divided by the square root of the number of observations.
How the standard error formula works
For raw sample data, the calculator first computes the arithmetic mean x̄ and the sum of squared deviations from that mean. The sample variance is s² = Σ(xᵢ – x̄)² / (n – 1), so the sample standard deviation is s = √s². The standard error of the mean is then SEM = s / √n. Combining the two steps gives the equivalent compact form SEM = √[Σ(xᵢ – x̄)² / (n(n – 1))].
A useful distinction is that standard deviation describes the spread of the observations themselves, whereas standard error describes the estimated spread of sample means. Because SEM contains √n in the denominator, increasing sample size tends to improve precision when the data-generating variability is comparable. It does not correct biased sampling, dependence among observations, measurement-system problems, or nonrepresentative data. Those issues must be addressed in the study design rather than by the formula alone.
For confidence intervals and hypothesis tests, use the SEM together with the appropriate sampling distribution and degrees of freedom rather than treating one SEM as a universal uncertainty bound.