Ask 20 athletes their height and you get an average. Ask another 20 and you get a slightly different average. Ask a third group and the number moves again. Which one is right? None of them exactly, and all of them roughly. The pattern of how those averages vary is called the sampling distribution of the sample mean.
This idea is the foundation of inference. Confidence intervals, margins of error and hypothesis tests all rely on it, because they all ask one question: if I repeated this study, how different could the result be? The sampling distribution is the answer, drawn as a distribution.
This tutorial explains what it is, the two formulas for its centre and spread, a fully worked example with all 16 samples, the central limit theorem shown on a skewed population, and how to simulate it in Python. Every number was checked by code.
The sample mean is the average of the values in a sample. A sample can be small or large. The sample mean from any random sample can be calculated.
The sampling distribution of the sample mean is the probability distribution of all the possible sample means that you can get from samples of the same size n, drawn from one population. It shows which sample means are common and which are rare.
The live page says that it is the mean of the population. That is a mix up. The population mean is a single number. The sampling distribution is a whole distribution of sample means, and its mean is equal to the population mean.
More widely, the sampling distribution of any statistic, such as the median or the proportion, is the distribution of that statistic across all samples of size n.
Take a random sample of 20 athletes from the whole Olympic group and find the mean height, X1. Take another sample of 20, and find X2. The two means will not be the same. Repeat it 5,000 times, plot the means as a histogram, and that histogram is the sampling distribution. The live page switches from 20 to 25 in the middle of the example. I use 20 throughout.

Two results describe the centre and spread of the sampling distribution.
| Measure | Formula | In words |
|---|---|---|
| Mean of the sample means | Mean of x bar = mu | The same as the population mean |
| Standard deviation of the sample means | Sigma of x bar = sigma divided by the square root of n | The population standard deviation divided by the square root of n |

The second value is called the standard error of the mean. A bigger sample gives a narrower sampling distribution. The standard error is the sigma divided by the square root of n, which is why it falls slowly.
The live page: four rowers weigh 154, 158, 162 and 166 lb. List all samples of size 2, with replacement. Find the probability distribution, the mean and the standard deviation of the sample mean.
With replacement means that the same rower can be picked twice. There are 4 times 4 = 16 equally likely samples. This table shows the mean of each pair, first pick down the side and second pick across the top.
| First pick | 154 | 158 | 162 | 166 |
|---|---|---|---|---|
| 154 | 154 | 156 | 158 | 160 |
| 158 | 156 | 158 | 160 | 162 |
| 162 | 158 | 160 | 162 | 164 |
| 166 | 160 | 162 | 164 | 166 |
Compare the live page. It shows (154, 166) as 162, but it is 160. It shows (158, 162) as 164, but it is 160. It shows (158, 166) as 164, but it is 162.

There are 7 different sample means. Count how many of the 16 samples give each mean.
| Mean | 154 | 156 | 158 | 160 | 162 | 164 | 166 |
|---|---|---|---|---|---|---|---|
| Ways | 1 | 2 | 3 | 4 | 3 | 2 | 1 |
| Probability | 1 of 16 | 2 of 16 | 3 of 16 | 4 of 16 | 3 of 16 | 2 of 16 | 1 of 16 |
The shape is a symmetric triangle, peaked at 160. It already looks like a small bell.

Check by direct calculation from the 16 samples: the standard deviation of the 16 sample means is also 3.1623. The formula and the table agree.
If the population is normal, the sampling distribution of the mean is exactly normal for any sample size. The live page says it is likely to be normal. It is more than likely, it is exact.
If the population is not normal, the central limit theorem takes over: as n grows, the sampling distribution of the mean gets closer to a normal curve. A common rule of thumb is n of 30 or more, but a very skewed population may need more.
To see it, I made a skewed population of 100,000 values, like waiting times, with a mean near 10 and a standard deviation near 10. Then I took 5,000 samples of each size and measured the spread and the skew of the sample means. Skew near 0 means a symmetric shape.
| Sample size n | Spread of the means | Formula value | Skew |
|---|---|---|---|
| 1 | 9.86 | 9.95 | 1.89 |
| 5 | 4.47 | 4.45 | 0.80 |
| 30 | 1.78 | 1.82 | 0.36 |
| 100 | 1.01 | 1.00 | 0.20 |
Two things stand out. The spread follows sigma divided by the square root of n very closely. And the skew drops from 1.89 toward 0 as n grows, so the shape becomes a bell even though the population is far from one.
I ran the code below, and the output is real.
| Mistake | Fix |
|---|---|
| Calling the sampling distribution the population mean | It is the distribution of the sample means |
| Mixing the distribution of the data with the sampling distribution | One describes people, the other describes averages |
| Forgetting to divide sigma by the square root of n | The spread of means is smaller than the spread of data |
| Mixing sampling with and without replacement | State which one you use, since it changes the list of samples |
| Saying the shape is always normal | It is normal for a normal population, or close for a large n |
| Miscalculating the sample means in a table | Check each one, and check that the total ways add to n squared |
| Changing the sample size halfway through an example | Keep n fixed |
Answers: 1) The mean is 50. The standard deviation is 12 divided by 6 = 2. 2) The means are 2, 3, 4, 3, 4, 5, 4, 5 and 6. Their mean is 36 divided by 9 = 4, which is the population mean. 3) It halves. 4) No. For a large n, the central limit theorem makes it close to normal, but for a small n, you need a normal population. These are my own answers, so please recheck them before publishing.
The sampling distribution of the sample mean is centred on the population mean and has a spread of sigma divided by the square root of n. Once you can build one by hand, as in the rower example, confidence intervals and hypothesis tests stop being formulas and start making sense.