Mean and SD Calculator

This mean and SD calculator gives the average and standard deviation of your data, with the sample and population versions shown side by side.

Checks on your data

  • No outliers beyond 1.5 × IQR and no strong skew detected.

Results

Mean x̄
15
Sample SD s
2.5819889
Sample SD s (n − 1)
2.5819889
Population SD σ (n)
2.4494897
Sample variance s²
6.6666667
Population variance σ²
6
Coefficient of variation
17.213 %
Mean ± 1 SD
12.418 to 17.582
6 of 10 values (60 %)
Mean ± 2 SD
9.83602 to 20.164
10 of 10 values
Count n
10
Your values with the mean and ±1 SD band
12141618mean 15
Histogram
01211 – 12.6: 2212.6 – 14.2: 2214.2 – 15.8: 2215.8 – 17.4: 2217.4 – 19: 221112.614.215.817.419
Each value, its deviation and z-score
xx − x̄(x − x̄)²z = (x − x̄)/SD
12-39-1.162
15000
11-416-1.549
18391.162
14-11-0.3873
16110.3873
13-24-0.7746
194161.549
15000
17240.7746
Show step-by-step solution
  1. Mean x̄ = Σx ÷ n = 150 ÷ 10 = 15.
  2. Sum of squared deviations Σ(x − x̄)² = 60.
  3. Sample SD s = √(60 ÷ 9) = 2.5819889.
  4. Population SD σ = √(60 ÷ 10) = 2.4494897.
MeanΣx / n
Sample SD√(Σ(x−x̄)²/(n−1))
Population SD√(Σ(x−μ)²/N)
z-score(x − x̄)/SD

What Is Mean and SD?

The mean is the average of a data set and the standard deviation (SD) measures how far values typically lie from it. Because the SD depends on whether your data are a sample or a complete population, this calculator shows both, divided by n − 1 and by n.

Besides the mean and SD it returns the variances, the coefficient of variation, the ranges mean ± 1 SD and mean ± 2 SD with the count of values inside each, and the z-score of every value in a working table. A dot plot and histogram show the shape of the data.

Below you will find the formulas, a variables table, a worked example and answers about the difference between sample and population SD.

How to Use the Mean and SD Calculator

  1. Paste or type your numbers, separated by commas, spaces or new lines.
  2. Choose whether the headline SD is the sample or the population version.
  3. Read the mean, both standard deviations and the variances.
  4. Check the ±1 and ±2 SD ranges and the z-score of each value.

Mean and SD Formula

Mean

xˉ=∑xin\bar x=\frac{\sum x_i}{n}

Sample standard deviation

s=∑(xi−xˉ)2n−1s=\sqrt{\frac{\sum (x_i-\bar x)^2}{n-1}}

Population standard deviation

σ=∑(xi−μ)2N\sigma=\sqrt{\frac{\sum (x_i-\mu)^2}{N}}

Mean and SD Variables Explained

SymbolMeaningNotes
x̄MeanΣx ÷ n
sSample standard deviationdivides by n − 1
σPopulation standard deviationdivides by N
zz-score of a value(x − x̄) ÷ SD

Mean and SD Worked Example

For 2, 4, 4, 4, 5, 5, 7, 9: the mean is 40 ÷ 8 = 5. The squared deviations sum to 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32. The population SD is √(32 ÷ 8) = 2 and the sample SD is √(32 ÷ 7) = 2.138.

With the example values loaded in the calculator above, the steps are:

  1. Mean x̄ = Σx ÷ n = 150 ÷ 10 = 15.
  2. Sum of squared deviations Σ(x − x̄)² = 60.
  3. Sample SD s = √(60 ÷ 9) = 2.5819889.
  4. Population SD σ = √(60 ÷ 10) = 2.4494897.

Result: Mean x̄ = 15; Sample SD s = 2.5819889.

How to Read the Mean and SD

The mean is the centre and the SD is the typical distance from it. For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5, the sum of squared deviations is 32, the population SD is √(32 ÷ 8) = 2 and the sample SD is √(32 ÷ 7) = 2.138.

For roughly bell-shaped data, about 68% of values fall within one SD of the mean and about 95% within two. The table lists each value, its deviation and its z-score, so you can see which points are far from the mean.

Where Mean and SD Is Used

Describing data

Report a mean and SD for a sample.

Spotting extremes

Check the z-score of each value.

Comparing spread

Use the coefficient of variation for data on different scales.

Homework

Check the squared deviations by hand.

Common Mean and SD Mistakes to Avoid

  • Use n − 1 for a sample and n for a population.
  • The 68–95 pattern applies only to roughly normal data.
  • A large SD relative to the mean means the data are widely spread.
  • Report the mean and SD with sensible rounding.

Mean and SD Terms and Definitions

SD
Standard deviation: a typical distance of values from the mean.
z-score
How many SDs a value is above or below the mean.

Mean and SD FAQs

How do I calculate the mean and SD?

Find the mean, subtract it from each value, square the results, add them, divide by n − 1 for a sample, and take the square root.

Should I use n or n − 1?

Use n − 1 for a sample from a larger group, and n only when you have the entire population.

What does a large SD mean?

The values are spread widely around the mean. Compare it with the mean through the coefficient of variation to judge how large it really is.

Can the SD be negative?

No. It is a square root of an average of squares, so it is zero or positive. It is zero only when all values are equal.

Related calculators

Last updated 2026-11-09. See our disclaimer.