ToolNimba
๐Ÿ”ข Math & Numbers

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

By ToolNimba Editorial Team June 20, 2026 6 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 a full worked example, 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.

Standard error is the engine behind confidence intervals and many hypothesis tests, so understanding it makes a lot of other statistics click into place.

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.

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.

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.

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.

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.

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 Deviation Calculator Free standard deviation calculator. Paste your numbers to get the mean, variance, sum of squares, and both sample (n-1) and population (n) standard deviation with steps.

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

Tools used in this guide

Keep reading