Standard Error Calculator
The standard error of the mean for the eight seedling heights is 0.75 cm. The sample standard deviation is 2.1213 and n is 8, so 2.1213 ÷ 2.8284 = 0.75. The 95 percent interval runs from 11.48 to 15.02 cm. Paste your own values for the same three numbers.
Estimate the standard error of a mean, a proportion or the gap between two means, with a confidence interval at 90, 95 or 99 percent. The calculator uses the t distribution for means, so small samples get the wider interval they deserve. Everything runs in your browser.
| Standard error | |
| Estimate | |
| Sample standard deviation | |
| Sample size | |
| Degrees of freedom | |
| Critical value | |
| Margin of error | |
| Interval |
All calculations run in your browser, and nothing you type is uploaded or stored.
Enter raw values, summary numbers, a poll share or two group means to get the standard error, the critical value and a confidence interval at 90, 95 or 99 percent.
Key takeaways
- Standard error of a mean = s ÷ square root of n, so n = 8 with s 2.1213 gives 0.75
- Quadrupling the sample halves the error, from 0.75 cm at 8 plants to 0.375 cm at 32
- Use t, not z, when s comes from the sample: 2.3646 at 7 degrees of freedom versus 1.96
- A 52 percent share in 600 responses has a standard error of 2.04 points and a 4.0 point margin
- The standard error describes the estimate; the standard deviation describes the data
On this page
What the standard error measures
A sample mean is an estimate, and estimates wobble. Measure eight seedlings, take the mean, then take another eight and the second mean will not match the first. The standard error is the standard deviation of that wobble: if you could repeat the study many times, the means would scatter around the true value, and the standard error is the typical size of that scatter.
This is not the same job as a standard deviation. The standard deviation describes how far individual seedlings sit from their own group mean, and it does not shrink when you measure more seedlings. The standard error describes how far the group mean sits from the true mean, and it does shrink, because averaging more values cancels out more of the noise. A study that reports only the standard deviation tells you about the plants. A study that reports the standard error tells you about the estimate.
NIST's statistics handbook builds the same idea from the sampling distribution: the variance of a mean of n independent measurements is the population variance divided by n, so the standard error is sigma divided by the square root of n. Every formula on this page is that relationship, written for a different kind of estimate.
The practical payoff is a scale for surprises. A mean that sits 0.4 standard errors from a target is unremarkable. A mean that sits 4 standard errors away is worth investigating. The standard deviation calculator handles the first question, the spread of the data itself, when that is what you need.
The formula for a mean, worked through
With a sample standard deviation s and n observations, the standard error of the mean is s divided by the square root of n. The sample standard deviation uses n minus 1 in the denominator, because the deviations are measured from the sample mean rather than the unknown true mean.
Eight seedling heights in centimeters were 12, 15, 11, 14, 13, 16, 10 and 15. They add to 106, so the mean is 106 ÷ 8 = 13.25 cm. The deviations from 13.25 are -1.25, 1.75, -2.25, 0.75, -0.25, 2.75, -3.25 and 1.75, and their squares add to 31.5.
| Height (cm) | Deviation from 13.25 | Deviation squared |
|---|---|---|
| 12 | -1.25 | 1.5625 |
| 15 | 1.75 | 3.0625 |
| 11 | -2.25 | 5.0625 |
| 14 | 0.75 | 0.5625 |
| 13 | -0.25 | 0.0625 |
| 16 | 2.75 | 7.5625 |
| 10 | -3.25 | 10.5625 |
| 15 | 1.75 | 3.0625 |
| Total | 0 | 31.5 |
Divide 31.5 by 7 degrees of freedom and the sample variance is 4.5, so s = 2.1213 cm. The square root of 8 is 2.8284, and 2.1213 ÷ 2.8284 = 0.75 cm. That is the standard error: on repeated samples of eight, the mean would typically land about 0.75 cm from the true mean.
Notice the pull of that last step. Doubling the sample size divides the standard error by 1.4142, not by 2. Four times the sample size is needed to halve the error. That square root is why big surveys cost so much more than small ones for each extra digit of precision.
Turning the error into an interval
An interval for the mean is the estimate plus or minus a critical value times the standard error. When the population standard deviation is unknown and the sample is small, the critical value comes from the t distribution with n minus 1 degrees of freedom. For the seedlings, the 95 percent value at 7 degrees of freedom is 2.3646, so the interval is 13.25 ± 2.3646 × 0.75, which is 13.25 ± 1.7735, or 11.48 to 15.02 cm.
A larger sample uses a smaller t value and also a smaller standard error. A summary of 36 packages with mean 68.4 in and s 2.5 in gives 2.5 ÷ 6 = 0.4167, a t value of 2.0301 at 35 degrees of freedom, and a margin of 0.8459. The interval runs from 67.55 to 69.25 in.
| Degrees of freedom | 90 percent | 95 percent | 99 percent |
|---|---|---|---|
| 1 | 6.3138 | 12.7062 | 63.6567 |
| 5 | 2.0150 | 2.5706 | 4.0321 |
| 10 | 1.8125 | 2.2281 | 3.1693 |
| 15 | 1.7531 | 2.1314 | 2.9467 |
| 20 | 1.7247 | 2.0860 | 2.8453 |
| 25 | 1.7081 | 2.0595 | 2.7874 |
| 30 | 1.6973 | 2.0423 | 2.7500 |
| 60 | 1.6706 | 2.0003 | 2.6603 |
| 120 | 1.6577 | 1.9799 | 2.6174 |
| normal curve | 1.6449 | 1.9600 | 2.5758 |
Read the first row and you see why the t distribution matters. With 5 degrees of freedom the 95 percent value is 2.5706, about 31 percent wider than the normal value of 1.96. With 120 degrees of freedom the gap is 1 percent. The NIST/SEMATECH handbook section on confidence limits for the mean states the same formula and adds the caution that matters most: a 95 percent interval is not a 95 percent chance that this particular interval contains the true mean. The confidence belongs to the method, not to the finished interval.
Proportions, polls and margins of error
A share has its own standard error. If a poll of n people finds a share p, the standard error is the square root of p times 1 minus p divided by n. The formula looks different but the logic is identical: a proportion is an average of zeros and ones, and its spread depends on how close the share sits to 50 percent.
Take a poll of 600 adults where 52 percent answer yes. The standard deviation of a single answer is 0.4996, and 0.4996 ÷ 24.4949 = 0.0204, which is 2.04 percentage points. The 95 percent margin is 1.96 × 2.0396 = 3.9976 points, so the interval runs from 48.0 to 56.0 percent. News reports call that margin of error, and it is exactly a critical value times a standard error. The OpenStax introduction to statistics reaches the same formula from the central limit theorem.
Two cautions keep the number honest. The normal approximation needs at least about 10 expected successes and 10 expected failures, which is why this page flags small counts instead of printing a confident interval. And a poll of a volunteer panel is not a random sample of 600 people, so the real error is larger than the formula says. Design effects of 1.5 to 2 are common in phone and online panels, which multiplies the margin by 1.22 to 1.41.
Comparing two means
When two groups are compared, the estimate is the difference between the means and its standard error combines both groups: the square root of s1 squared over n1 plus s2 squared over n2. The errors add in quadrature because the two samples are independent.
A test group of 25 students averages 74.0 with s 3.2, and a control group of 20 averages 70.5 with s 4.0. The two variance terms are 0.4096 and 0.8, so the standard error of the difference is the square root of 1.2096, which is 1.0998 points. The difference itself is 3.5 points. Degrees of freedom from the Welch formula come to 35.97, the t value is 2.0281, and the margin is 2.2304, so the interval for the gap runs from 1.27 to 5.73 points.
Because the interval stays above zero, the data are consistent with a real gain in the test group. Had the interval spanned zero, the honest reading would be that the study cannot separate the two groups. One habit to drop: comparing two confidence intervals by eye and calling overlap a lack of significance. Two intervals can overlap while the difference between the means is still clearly positive, because the standard error of the difference is smaller than either individual error.
Finite population correction
All of the above assumes sampling from a population so large that removing a few items changes nothing. When the sample is a large slice of a small population, the standard error shrinks by the square root of N minus n over N minus 1, where N is the population size and n is the sample size.
A sample of 25 invoices out of 500 has s 3.2 and a plain standard error of 0.64. The correction factor is the square root of 475 ÷ 499, which is 0.9757, so the corrected standard error is 0.624. The effect is small here because the sample is 5 percent of the population. At a sample of 250 out of 500 the factor becomes 0.708 and the standard error drops by nearly 30 percent.
| What you are estimating | Standard error | Critical value |
|---|---|---|
| Mean, n observations | s ÷ square root of n | t with n - 1 df |
| Share or poll percent | square root of p(1 - p) ÷ n | z, 1.96 at 95 percent |
| Difference of two means | square root of s1²/n1 + s2²/n2 | t with Welch df |
| Mean with small population | plain error × square root of (N - n)/(N - 1) | t with n - 1 df |
The usual rule of thumb is to apply the correction when the sample exceeds 5 percent of the population. Below that the factor is above 0.975 and rarely changes a decision.
Sample size, rounding and common mistakes
Because the standard error falls with the square root of n, cutting it in half costs four times the data. The seedling study has a standard error of 0.75 cm at 8 plants. At 32 plants the same s gives 2.1213 ÷ 5.6569 = 0.375 cm, and reaching 0.25 cm would take 72 plants, since 2.1213 ÷ 8.4853 = 0.25.
Round the standard error to two significant digits and keep the interval endpoints at the precision of the original data. A standard error of 0.1832 on a mean measured to one decimal belongs in print as 0.18, and the interval as 500.1 to 500.5 rather than 500.117 and 500.483.
Four mistakes account for most wrong answers. Reporting the standard deviation and calling it the standard error overstates precision by a factor of the square root of n. Using 1.96 with 8 observations understates the margin, since the correct t value is 2.3646. Dividing the sum of squared deviations by n instead of n minus 1 shrinks s, and the bias is worst in small samples. Treating the standard error as a range for individual values is the fourth: the interval around a mean says nothing about where the next seedling will land.
One more check is worth the ten seconds. If the standard error is more than a third of the standard deviation, the sample size is below 10, and a normal-based interval is a rough guide at best.
Frequently asked questions
What is the standard error in one sentence?
It is the standard deviation of an estimate across repeated samples. For a mean it equals the sample standard deviation divided by the square root of n, so eight seedlings with s 2.1213 give 2.1213 ÷ 2.8284 = 0.75 cm.
What is the difference between standard deviation and standard error?
The standard deviation describes how spread out the individual values are. The standard error describes how far the sample mean is likely to sit from the true mean. More measurements shrink the standard error but leave the standard deviation about the same.
How do I calculate the standard error by hand?
Find the mean, subtract it from each value, square the results, add them, divide by n - 1, take the square root to get s, then divide s by the square root of n. For the eight heights: 31.5 ÷ 7 = 4.5, the root is 2.1213, and 2.1213 ÷ 2.8284 = 0.75.
When should I use t instead of z?
Use t whenever the population standard deviation is estimated from the sample, which covers almost every real study. At 5 degrees of freedom the 95 percent t value is 2.5706 against 1.96 for z, and the gap closes to 1 percent by about 120 degrees of freedom.
What sample size do I need to halve the standard error?
Four times the current size. The error scales with 1 divided by the square root of n, so going from 8 to 32 plants halves 0.75 cm to 0.375 cm. Doubling the sample only cuts the error by about 29 percent.
Is the standard error the same as the margin of error?
No. The margin of error is the critical value times the standard error. For the 600 person poll the standard error is 2.04 points and the 95 percent margin is 1.96 × 2.04 = 4.0 points.
What is a good standard error?
There is no universal cutoff, because the error is in the units of the data. Compare it with the mean or with a decision threshold: an error of 0.75 cm on a mean of 13.25 cm is 5.7 percent, which is fine for a garden trial and too coarse for a laboratory assay.
Why does my software report a different standard error?
Most often the software used the population standard deviation with n in the denominator, or it applied a finite population correction. Excel's STDEV.S matches this page; STDEV.P divides by n and gives a slightly smaller number.
What is the standard error of a proportion?
The square root of p times 1 minus p divided by n. A 52 percent share in a sample of 600 gives the square root of 0.2496 ÷ 600, which is 0.0204, or 2.04 percentage points.
Does the standard error apply to a median?
Not with the formula on this page, which is built for means. A median has its own standard error, roughly 1.2533 times the mean's error for large normal samples, and the bootstrap is the usual way to get one for other shapes.
What does a 95 percent confidence interval mean?
It means the method produces intervals that capture the true mean in 95 percent of repeated samples. It does not mean there is a 95 percent chance that this particular interval contains the true value, a distinction NIST states plainly in its handbook.
Can the standard error be larger than the standard deviation?
Only if the sample size is below 1, which cannot happen for a real sample. Since the divisor is the square root of n, the standard error is smaller than s by a factor of at least 1.4142 at n = 2.
How is the standard error used in an A/B test?
The difference between the two conversion rates is divided by its standard error to get a test statistic. A difference of 3.5 points with a standard error of 1.0998 gives a t of 3.18, which is well past the 2.0281 cutoff at 36 degrees of freedom.
What is the finite population correction?
A multiplier of the square root of (N - n) ÷ (N - 1) applied when the sample is a large share of a small population. Sampling 25 of 500 invoices gives a factor of 0.9757, which turns a standard error of 0.64 into 0.624.
Spotted a wrong number or a broken result?
More Math tools
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.