Skip to content
Mathico

Standard Deviation Calculator

Paste a list of numbers to get the mean and standard deviation (sample or population), variance, standard error and a 95% confidence interval, with each step of the calculation shown.

Separate numbers with commas, spaces or new lines, or paste a column from a spreadsheet.

Your data is a

Sample standard deviation (s)

2.1381

Mean 5 ยท variance 4.5714 ยท n = 8

Mean (xฬ„)
5
Population SD (ฯƒ)
2
Sample variance (sยฒ)
4.5714
Population variance (ฯƒยฒ)
4
Standard error of mean
0.7559
95% CI for the mean
3.2125 to 6.7875
Median
4.5
Mode
4
Min / max
2 / 9
Range
7
Sum
40
Coefficient of variation
42.76%

Step by step

  1. 1. Mean: xฬ„ = 40 รท 8 = 5
  2. 2. Subtract the mean from each value and square the result (table below).
  3. 3. Sum of squares: ฮฃ(x โˆ’ xฬ„)ยฒ = 32
  4. 4. Variance: 32 รท (8 โˆ’ 1) = 4.5714
  5. 5. Standard deviation: โˆš4.5714 = 2.1381
xx โˆ’ xฬ„(x โˆ’ xฬ„)ยฒ
2-39
4-11
4-11
4-11
500
500
724
9416

How to use the standard deviation calculator

  1. Paste or type your numbers, separated by commas, spaces or new lines.
  2. Choose sample (the data is part of a bigger group) or population (the data is the whole group).
  3. Read the standard deviation, mean and variance, plus the standard error, a 95% confidence interval for the mean, median, mode and range. The step-by-step section shows every deviation.

Standard deviation formulas

Sample: s = โˆš( ฮฃ(x โˆ’ xฬ„)ยฒ รท (n โˆ’ 1) )
Population: ฯƒ = โˆš( ฮฃ(x โˆ’ ฮผ)ยฒ รท N )
Standard error: SE = s รท โˆšn ยท 95% CI = xฬ„ ยฑ t(0.975, n โˆ’ 1) ร— SE

Worked example

Data: 2, 4, 4, 4, 5, 5, 7, 9 (n = 8).

xx โˆ’ 5(x โˆ’ 5)ยฒ
2-39
4-11
4-11
4-11
500
500
724
9416
ฮฃ = 40032
  • Mean = 40 รท 8 = 5
  • Population: ฯƒยฒ = 32 รท 8 = 4, so ฯƒ = 2
  • Sample: sยฒ = 32 รท 7 โ‰ˆ 4.571, so s โ‰ˆ 2.138
  • Standard error = 2.138 รท โˆš8 โ‰ˆ 0.756; 95% CI for the mean โ‰ˆ 5 ยฑ 2.365 ร— 0.756 = 3.21 to 6.79

Interpreting standard deviation

For data that is roughly bell-shaped, the empirical rule says about 68% of values fall within 1 SD of the mean, 95% within 2 SD and 99.7% within 3 SD. The coefficient of variation (SD รท mean) compares spread between data sets with different units or scales.

To find probabilities under the normal curve, use the normal CDF calculator; for intervals from summary statistics, the confidence interval calculator. If some values count more than others, use the weighted mean calculator. More math calculators.

Sources

Frequently asked questions

How do you calculate standard deviation?

Find the mean, subtract it from each value and square the differences, add the squares, divide by n โˆ’ 1 (sample) or N (population) to get the variance, then take the square root. For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5, the sum of squares is 32, the population SD is โˆš(32 รท 8) = 2 and the sample SD is โˆš(32 รท 7) โ‰ˆ 2.138.

Should I use sample or population standard deviation?

Use the population formula (divide by N) only when your data includes every member of the group you care about, such as all students in one class. If the data is a sample used to describe a larger group, use the sample formula (divide by n โˆ’ 1), which corrects for the sample's tendency to underestimate spread.

What does standard deviation tell you?

It measures how spread out values are around the mean, in the same units as the data. A small SD means values cluster near the mean; a large one means they are spread widely. For roughly normal data, about 68% of values lie within 1 SD of the mean and about 95% within 2 SD.

What is the difference between variance and standard deviation?

Variance is the average squared deviation from the mean; standard deviation is its square root. SD is easier to interpret because it is in the original units (for example centimeters rather than square centimeters).

What is the standard error of the mean?

The standard error, s รท โˆšn, estimates how much a sample mean would vary from sample to sample. It shrinks as the sample gets larger and is used to build confidence intervals for the mean.

How do I calculate standard deviation in Excel?

Use =STDEV.S(range) for a sample and =STDEV.P(range) for a population. The matching variance functions are VAR.S and VAR.P.

Can standard deviation be negative?

No. It is a square root of a sum of squares, so it is zero when every value is the same and positive otherwise.