Sampling Distribution Calculator
Find probabilities for a sample mean, its standard error and the inverse value โ then watch the central limit theorem in action with the built-in simulator.
About 95.22% of samples of n = 25 have a mean of 105 or less.
Calculation
Seeded demo โ seed 42, Uniform(0, 10), 2,000 samples
Sampling distribution of x̄ โ shaded probability
The curve is the sampling distribution of the sample mean (normal, mean 100, SE 3). The shaded area is P(x̄ ≤ 105) = 0.9522.
The sampling distribution calculator finds probabilities for a sample mean, its standard error, and the inverse value for a given probability. The built-in CLT simulator draws repeated samples and shows the histogram narrowing as n grows. Enter the population mean, standard deviation and sample size to start.
How to use the sampling distribution calculator
The calculator has four modes. Probability finds P(x̄ ≤ a), P(x̄ ≥ a) or P(a < x̄ < b) for a sample mean. Inverse finds the x̄ value for a given left-tail probability. SE & summary gives the mean and standard error of the sampling distribution with its conditions. CLT simulator draws repeated samples and builds the histogram of sample means live.
- Choose a mode: Probability, Inverse, SE & summary, or CLT simulator.
- Enter the population mean (μ), the population standard deviation (σ) and the sample size (n). For the simulator, also pick a population and the number of samples.
- In Probability mode, pick the tail โ P(x̄ ≤ a), P(x̄ ≥ a) or P(a < x̄ < b) โ and enter the value or values. In Inverse mode, enter the probability p.
- Read the headline answer, then check the results grid for the standard error, the z-score and the 95% range for x̄. The calculation ledger shows every step, and the chart shades the region.
Try it now: with μ = 100, σ = 15 and n = 25, the standard error is 3.0000, so P(x̄ ≤ 105) = 0.9522, P(95 < x̄ < 105) = 0.9044 and P(x̄ > 108) = 0.0038. The x̄ value at p = 0.95 is 104.9346, and the 95% range for x̄ is [94.1201, 105.8799].
What is the sampling distribution of the sample mean?
Take a population with mean μ and standard deviation σ, draw a sample of size n, and work out its mean x̄. Do it again, and again. The distribution of all those sample means is the sampling distribution of the sample mean. It is not the distribution of the raw data โ it is the distribution of the means.
- Its mean is the population mean: μx̄ = μ. Sample means centre on the population mean.
- Its standard deviation is the standard error: σx̄ = σ / √n. It measures how much sample means vary from sample to sample.
- It gets narrower as n grows, because the standard error shrinks like 1/√n.
- It becomes approximately normal as n grows โ that is the central limit theorem, explained in the central limit theorem article.
The distinction matters: σ describes how spread out individual values are; σ/√n describes how spread out sample means are. Confusing the two is the most common mistake with this topic.
The standard error and the central limit theorem
The standard error is σ/√n. Doubling the sample size does not halve it โ you need four times the sample to halve the standard error, because it shrinks with the square root of n. That is why large samples are expensive: each extra bit of precision costs more data.
| Sample size n | Standard error (with σ = 15) |
|---|---|
| 9 | 5.0000 |
| 25 | 3.0000 |
| 100 | 1.5000 |
The central limit theorem says that, for a large enough n, the sampling distribution of x̄ is approximately normal whatever the population looks like โ flat, skewed or anything else. A common rule of thumb is n ≥ 30, but if the population is already normal, the sampling distribution is exactly normal for any n. If the population is heavily skewed, you may need more than 30.
Worked examples
Example 1 โ probability for a sample mean
A population has μ = 100 and σ = 15. Take samples of n = 25. The standard error is SE = 15/√25 = 3.0000, and the sampling distribution is normal with mean 100 and standard deviation 3.0000. So P(x̄ ≤ 105) = 0.9522 (z = 1.6667), P(95 < x̄ < 105) = 0.9044, and P(x̄ > 108) = 0.0038 (z = 2.6667). The x̄ value with 95% of the area to its left is 104.9346, and the middle 95% of sample means fall in [94.1201, 105.8799].
Example 2 โ the CLT simulator (seeded demo)
The simulator draws 2,000 samples from a Uniform(0, 10) population (μ = 5, σ = 2.8868) with seed 42. With n = 5, the simulated mean of means is 4.9712 and the SD of means is 1.2943, against a theory SE of 1.2910. With n = 30, the mean of means is 5.0132 and the SD of means is 0.5360, against a theory SE of 0.5270. The histogram is visibly narrower at n = 30 than at n = 5 โ the spread shrinks like 1/√n, and the bell shape appears even though the population is flat.
Example 3 โ inverse value
With μ = 50, σ = 10 and n = 9, the standard error is SE = 10/√9 = 3.3333. The x̄ value with 97.5% of the area to its left is 56.5332 (z = 1.9600). Equally, P(x̄ ≤ μ + 1SE) = P(x̄ ≤ 53.3333) = 0.8413, and P(within 2SE) = P(43.3333 < x̄ < 56.6667) = 0.9545 โ the same 68โ95 pattern as the normal curve, because the sampling distribution is normal.
Sampling distribution of the mean vs the proportion
This calculator is for the sample MEAN (x̄) โ a numerical average. If you are working with a sample PROPORTION (p̂), such as the share of voters who prefer a candidate, use the sampling distribution of the sample proportion calculator instead. The two are complementary: the mean version uses σ/√n, the proportion version uses √[p(1−p)/n].
The standard error calculator finds σ/√n on its own, the normal distribution calculator finds areas under a normal curve, and the confidence interval calculator for a mean and standard deviation turns a sample mean into an interval for μ.
Frequently asked questions
What is the sampling distribution of the sample mean?
It is the distribution of the sample mean x̄ across all possible samples of size n from a population. Its mean is the population mean μ, its standard deviation is the standard error σ/√n, and it becomes approximately normal as n grows. It describes how sample means vary โ not how individual values vary.
Why does the standard error shrink as n grows?
The standard error is σ/√n, so it falls with the square root of the sample size: quadrupling n halves it. A bigger sample averages out more of the random variation, so sample means cluster tighter around μ. That is also why the simulator's histogram narrows from n = 5 to n = 30.
When is the sampling distribution normal?
It is exactly normal when the population is normal, for any n. Otherwise the central limit theorem makes it approximately normal once n is large enough โ n ≥ 30 is the usual rule of thumb, though a heavily skewed population may need more. With a small n and a non-normal population, the sampling distribution can keep the population's shape.
What does the CLT simulator show?
It draws repeated samples from a population you choose โ Normal, Uniform(0, 10) or right-skewed Exponential โ and builds a histogram of the sample means. You see the histogram become bell-shaped and narrow as n grows, and the simulated mean of means and SD of means approach the theory values μ and σ/√n. The seeded demo (seed 42, Uniform(0, 10), 2,000 samples) gives 4.9712 and 1.2943 at n = 5, and 5.0132 and 0.5360 at n = 30.
Source: the values on this page follow the central limit theorem โ the sampling distribution of the sample mean has mean μ and standard deviation σ/√n โ and every worked example was checked against the calculator above.
See all 67 free statistics tools on Empirical Rule Calculators.
Next steps
๐
โ Live
Central Limit Theorem Explained
See why sample means become normal as n grows โ the theorem behind this calculator.
Article
Read Article โ
๐งฎ
โ Live
Sampling Distribution of the Sample Proportion Calculator
Find probabilities for a sample proportion pฬ โ the complement to this sample-mean tool.
Calculator
Try Calculator โ
๐งฎ
โ Live
Standard Error Calculator
Find the standard error ฯ/โn for a mean or a proportion in one step.
Calculator
Try Calculator โ
More Tools to Explore
Keep going with the tools that pair with the sampling distribution — the sample proportion, the standard error, the normal curve and confidence intervals.
Sampling Distribution of the Sample Proportion Calculator
Find probabilities for a sample proportion p̂ — the complement to this sample-mean tool.
Central Limit Theorem Explained
See why sample means become normal as n grows — the theorem behind this calculator.
Standard Error Calculator
Find the standard error σ/√n for a mean or a proportion in one step.
Normal Distribution Calculator
Find areas and percentiles under any normal curve, with the shaded region shown.
Confidence Interval Calculator
Build a confidence interval for a mean from x̄, s and n — with the t cut-off shown.
Explore All Tools →
Browse all 67 free statistics tools — every calculator on this site in one place.