Grades & Stats

Sample mean calculator

Paste a sample to get its mean, plus the standard error and a confidence interval that shows the likely range of the true population mean.

At least 2 values. Commas, spaces or new lines.

Paste your sample to get its mean, standard error and confidence interval.

What a sample mean tells you

The sample mean (x̄) is the average of the values you measured. It is your best single estimate of the population mean (μ), but a different sample would give a slightly different answer. The confidence interval shows how far off it could reasonably be.

The formulas

x̄ = Σx ÷ n    SE = s ÷ √n    CI = x̄ ± t* × SE

t* is the t critical value for your confidence level with n − 1 degrees of freedom. The calculator uses the t distribution rather than the normal (z) distribution, which is correct when the population standard deviation is unknown, as it almost always is.

Example

Eight measurements: 12.1, 11.8, 12.5, 12.0, 11.6, 12.3, 12.2, 11.9.

  1. x̄ = 96.4 ÷ 8 = 12.05.
  2. s ≈ 0.2878, so SE = 0.2878 ÷ √8 ≈ 0.1018.
  3. For 95% with 7 degrees of freedom, t* ≈ 2.3646.
  4. Margin of error ≈ 2.3646 × 0.1018 ≈ 0.2406.
  5. 95% CI ≈ 11.81 to 12.29.

Reading a confidence interval correctly

A 95% confidence interval comes from a method that captures the true mean in 95% of samples. It does not mean there is a 95% chance the true mean is inside this particular interval; the true mean is fixed, and the interval either contains it or not.

  • Wider interval: more spread in the data, a smaller sample, or a higher confidence level.
  • To narrow it: collect more data. Four times the sample size roughly halves the margin of error.

Assumptions

The interval assumes the values are a random sample and that the population is roughly normal, or that the sample is large enough (often n ≥ 30) for the mean to behave normally. Check for strong skew or outliers before relying on a small-sample interval.

Frequently asked questions

How do you calculate a sample mean?

Add all the values in the sample and divide by how many there are. For 12.1, 11.8, 12.5 and 12.0, the sample mean is 48.4 ÷ 4 = 12.1.

What is the difference between sample mean and population mean?

The population mean is the average of every member of the group. The sample mean is the average of the members you measured, used to estimate the population mean.

Why use t instead of z?

When the population standard deviation is estimated from the sample, the t distribution accounts for the extra uncertainty. With large samples, t and z values become almost the same.

What confidence level should I choose?

95% is the usual default. Use 99% when a wrong conclusion is costly, and 90% for quick, rough estimates.

Last checked: 2026-12-03. How we test our calculators.