ToolNimba
๐Ÿ”ข Math & Numbers

Standard Error Formula: What It Is and How to Calculate It

Shihab Mia By Shihab Mia June 20, 2026 8 min read

Illustration of a sample mean with error bars showing the standard error around an average value

Quick answer

The standard error of the mean is SE = s / square root of n, where s is the sample standard deviation and n is the sample size. For example, if s is 12 and n is 36, then SE = 12 / 6 = 2. The larger your sample, the smaller the standard error, which means your estimate of the true average is more precise.

Whenever you take a sample and calculate its average, that average is only an estimate of the real average for the whole population. The standard error tells you how much that estimate is likely to wobble if you repeated the study with a fresh sample. It is one of the most useful numbers in statistics, and the formula behind it is short enough to compute by hand.

In this guide we will define the standard error of the mean, break down the formula piece by piece, walk through two worked examples, turn a standard error into a confidence interval, and clear up the constant confusion between standard error and standard deviation. We will also flag the mistakes that trip people up most often.

What is standard error?

The standard error (often abbreviated SE, or SEM for standard error of the mean) is the standard deviation of the sampling distribution of a statistic. In plain language: if you took many different samples and calculated the mean of each one, those means would form their own distribution, and the standard error is the spread of that distribution.

You only ever take one sample in practice, so you cannot literally observe that spread. The beauty of the formula is that it estimates the spread from a single sample. A small standard error means your sample mean is a tight, trustworthy estimate of the population mean. A large standard error means there is more uncertainty. It is the same idea a survey uses when it reports a result "plus or minus" a few points.

Standard error is the engine behind confidence intervals and many hypothesis tests, so understanding it makes a lot of other statistics click into place. Any time you see error bars on a chart or a margin of error in a poll, a standard error is doing the work underneath.

The standard error formula

The standard error of the mean is calculated with this formula:

The formula

SE = s / square root of n

Here is what each symbol means:

  • SE is the standard error of the mean, the number you are solving for.
  • s is the sample standard deviation, which measures how spread out your individual data points are.
  • n is the sample size, the number of observations you collected.
  • square root of n is what you divide by, which is why bigger samples shrink the standard error.

Notice the structure: you take the spread of the raw data and divide it by the square root of how much data you have. Because n sits under a square root, you need to quadruple your sample size to cut the standard error in half. That diminishing return is one of the most important practical lessons in sampling.

A quick note on units. The standard error is reported in the same units as your original measurements. If you measured heights in centimeters, the standard error is in centimeters too, so you can read it as "the sample mean is off by roughly this many centimeters." That makes it easy to sanity check: an SE larger than your data values usually means an input error.

Where does the standard deviation come from?

Before you can find the standard error, you need s, the sample standard deviation. You calculate it by finding the average squared distance of each value from the mean, then taking the square root. If you would rather not do that by hand, the standard deviation calculator will return s instantly, and you can read more in our guide to calculating an average.

Conceptual illustration showing how larger samples produce a tighter cluster of sample means around the true average
Larger samples pull the sample means closer together, which is exactly what a smaller standard error represents.

Worked example: calculating standard error step by step

Suppose you measure the test scores of 36 students and find that the sample standard deviation is 12. Here is how to find the standard error of the mean.

  1. Identify s, the sample standard deviation. In this case s = 12. If you only have raw data, calculate s first.
  2. Identify n, the sample size. We measured 36 students, so n = 36.
  3. Take the square root of n. The square root of 36 is 6.
  4. Divide s by that square root. SE = 12 / 6, which equals 2.
  5. Interpret the result. The standard error is 2, meaning the sample mean is likely within a couple of points of the true population mean.

That is the whole calculation. The hardest part is usually getting s, not the division. Once you have the standard deviation, the standard error is one short step away.

A second example, starting from raw data

Say you record five delivery times in minutes: 20, 22, 23, 25, and 30. The mean is 24. The sample standard deviation of these five values works out to about 3.81 (using n minus 1 in the denominator). Now apply the formula: the square root of 5 is about 2.236, so SE = 3.81 / 2.236, which is roughly 1.70 minutes. So your best estimate of the true average delivery time is 24 minutes, give or take about 1.7 minutes of sampling wobble.

How sample size changes the standard error

Because the standard error divides by the square root of n, the relationship between sample size and precision is not linear. The table below holds the standard deviation fixed at 12 and shows how the standard error shrinks as the sample grows.

Standard error for a fixed standard deviation of 12 at different sample sizes

Sample size (n)Square root of nStandard error (12 / square root of n)
426.00
934.00
1643.00
3662.00
100101.20
400200.60

Look at the jump from n = 100 to n = 400. You collected four times as much data and only halved the standard error, from 1.20 to 0.60. This is why researchers think hard about sample size: at some point, adding more participants buys you very little extra precision for a lot of extra cost.

From standard error to a confidence interval

The most common reason to compute a standard error is to build a confidence interval around your sample mean. For a large sample, a 95 percent confidence interval is the sample mean plus or minus about 1.96 times the standard error. That multiplier of roughly 2 is where the everyday "margin of error" comes from.

Return to the first example: a sample mean with a standard error of 2. A 95 percent confidence interval is the mean plus or minus 1.96 times 2, which is the mean plus or minus 3.92. If the sample mean was 70, the interval runs from about 66.1 to 73.9. You can then say you are 95 percent confident the true population mean falls in that range. For the full method, including when to use a t value instead of 1.96, see our confidence interval formula guide and the related margin of error formula.

Standard error vs standard deviation

These two terms get mixed up constantly because they share a symbol and a square root. They measure genuinely different things. Standard deviation describes how spread out your individual data points are; standard error describes how precise your sample mean is.

Key differences between standard deviation and standard error

AspectStandard deviation (s)Standard error (SE)
What it measuresSpread of individual data pointsSpread of sample means
Question it answersHow varied are my data?How precise is my average?
Effect of larger nSettles toward a stable valueAlways gets smaller
Typical useDescribing a datasetConfidence intervals and tests

A simple way to remember it: the standard deviation describes your data, while the standard error describes your estimate. If you want to communicate how spread out the actual observations are, report the standard deviation. If you want to communicate how confident you are in the average, report the standard error.

Common mistakes to avoid

The standard error formula is short, but a few errors show up again and again. Watch out for these.

  • Dividing by n instead of the square root of n. This is the single most common slip. Always take the square root of the sample size first.
  • Confusing standard error with standard deviation. Reporting one when you mean the other can completely change how a result reads, especially in error bars on a chart.
  • Using the population standard deviation by mistake. The mean version of the formula uses the sample standard deviation s. Mixing up the divisor used for s (n versus n minus 1) will throw off your answer.
  • Forgetting that SE assumes a representative sample. A biased sample produces a small, confident looking standard error around the wrong number.
  • Expecting big precision gains from small sample bumps. Going from 50 to 60 participants barely moves the needle.
  • Treating the standard error as a fixed property of the population. It is a property of your sample and shrinks as you collect more data, so it is not a single "true" value.

Where standard error is used

Standard error is not just an academic exercise. It shows up wherever people estimate an average from a sample.

  • Polling and surveys. The margin of error you see in election polls is built directly on the standard error.
  • Medical research. Trial results report standard errors to show how reliable an average treatment effect is.
  • Quality control. Factories track the standard error of measured dimensions to catch drift in a production line.
  • Business analytics. Comparing average revenue per user across two groups relies on standard error to decide if a difference is real.

If you are working through other formula based topics, you may also like our explainers on percent error and the average rate of change, both of which lean on the same careful, step by step thinking.

๐Ÿ“Š Try the free tool Standard Error Calculator Free standard error calculator: paste your raw data to get the standard error of the mean, or enter s and n directly. Returns SE, sample size, and standard deviation.

Standard error looks intimidating until you see that it is just the sample standard deviation divided by the square root of the sample size. Get s, take the square root of n, divide, and you have a clean measure of how much you can trust your average. Remember that bigger samples always tighten the estimate, but with diminishing returns, and never confuse the spread of your data with the precision of your mean.

Frequently asked questions

What is the standard error formula?

The standard error of the mean is SE = s / square root of n, where s is the sample standard deviation and n is the sample size. You divide the spread of your data by the square root of how many observations you collected. A larger sample produces a smaller standard error and a more precise estimate of the true mean.

What is the difference between standard error and standard deviation?

Standard deviation measures how spread out your individual data points are, while standard error measures how precise your sample mean is. The standard error is always smaller because it divides the standard deviation by the square root of the sample size. Use standard deviation to describe data and standard error to describe the reliability of an average.

How does sample size affect standard error?

Standard error shrinks as sample size grows, but only with the square root of n. To cut the standard error in half you must quadruple your sample size. This means small samples gain precision quickly, while very large samples see only tiny improvements from adding more data points.

Can standard error be larger than standard deviation?

No. As long as the sample size is greater than one, the standard error is always smaller than the standard deviation, because you divide by the square root of n, which is greater than one. Only at a sample size of exactly one would the two values be equal.

Do I use sample or population standard deviation for standard error?

For the standard error of the mean you use the sample standard deviation s, calculated with n minus one in the denominator. This Bessel correction gives an unbiased estimate from sample data. You then divide that s by the square root of n to get the standard error.

What does a small standard error mean?

A small standard error means your sample mean is a precise, trustworthy estimate of the true population mean, so repeated samples would give similar averages. It usually results from low variability in the data, a large sample size, or both. Small standard errors lead to narrower confidence intervals.

How do you calculate standard error in Excel?

In Excel there is no single SE function, so combine two. Put your data in a range and use =STDEV.S(range)/SQRT(COUNT(range)). STDEV.S gives the sample standard deviation, COUNT gives n, and SQRT takes its square root. The result is the standard error of the mean for that data range.

What is a good value for standard error?

There is no universal cutoff, because standard error is measured in the same units as your data. Judge it relative to the mean and to the precision you need. A standard error that is small compared with the sample mean signals a reliable estimate, while one close to the mean signals high uncertainty.

Tools used in this guide

Keep reading