Standard Deviation Calculator how spread out?

For the data 12, 15, 9, 18, 14, 11, 16, 13, 20, 12, the mean is 14. Squaring each value’s distance from the mean and summing gives 100. Dividing by n − 1 = 9 gives the variance, 11.111111, so the sample standard deviation is 3.333333.

Your result

Sample standard deviation (s)

3.333333

Sample variance (s²)
11.111111
Population SD, for comparison
3.162278
Mean
14
Count (n)
10
Sum of squared deviations
100
Standard error of the mean
1.054093
95% confidence interval for the mean
11.6156 to 16.3844
Coefficient of variation
23.81%
Within ±1 SD / ±2 SD / ±3 SD
70% / 100% / 100%
Outliers (|z| > 3)
none

Step-by-step working

  1. Mean = Σx ÷ n = 140 ÷ 10 = 14
  2. Subtract the mean from each value and square it (see the table)
  3. Sum of squares = 100
  4. Variance = 100 ÷ (n − 1) = 9 = 11.111111
  5. Standard deviation = √11.111111 = 3.333333
Each value’s distance from the mean (z-score)z-score-2-10129111212131415161820Value (sorted)-1.5-0.9-0.6-0.6-0.300.30.61.21.8
Show full table
xx − mean(x − mean)²z-score
12-24-0.6
15110.3
9-525-1.5
184161.2
14000
11-39-0.9
16240.6
13-11-0.3
206361.8
12-24-0.6

Understand it

What the Standard Deviation Calculator Does

Standard deviation measures how spread out numbers are around their mean. A small standard deviation means the values cluster tightly; a large one means they are widely scattered. It is the square root of the variance, the average squared distance from the mean.

This calculator gives sample and population standard deviation and shows every step: a deviation table, the sum of squares and the division by n or n − 1. It also reports z-scores for each value, the standard error, a 95% confidence interval for the mean, and how much of your data falls within one, two and three standard deviations. That last figure is a quick check against the 68-95-99.7 rule for normal data.

How the Standard Deviation Formula Works

Population: σ = √( Σ(x − μ)² ÷ N ) Sample: s = √( Σ(x − x̄)² ÷ (n − 1) ) z = (x − mean) ÷ SD SE = s ÷ √n 95% CI = x̄ ± t(0.975, n−1) × SE
μ, x̄
population mean, sample mean
n − 1
Bessel’s correction: dividing by n would underestimate the spread of the population a sample came from
t
Student-t critical value; it approaches 1.96 for large samples

Calculations use Welford’s algorithm, which stays accurate even for very large numbers or values that are almost identical.

Worked Examples

Exam scores (sample)

Data (commas, spaces or new lines): 72 85 90 66 85 94 78 85 61 99 · Your data is: A sample (divide by n − 1)

Sample standard deviation (s)12.176936

s = 12.176936; 95% CI for the mean 72.7897 to 90.2103.

All 8 values in a population

Data (commas, spaces or new lines): 2, 4, 4, 4, 5, 5, 7, 9 · Your data is: The whole population (divide by n)

Population standard deviation (σ)2

σ = 2 exactly, the textbook example.

Daily sales with an outlier

Data (commas, spaces or new lines): 210 198 225 205 190 215 201 980 208 199 212 204 196 209 203 207 · Your data is: A sample (divide by n − 1)

Sample standard deviation (s)193.807422

SD 193.807422; outliers: 980.

Original analysis

Standard Deviation Analysis in numbers

Every chart below is generated from the same tested formula that powers the calculator above, so you can see the patterns behind a single result.

Sample SD ÷ population-formula SD, by sample sizeRatio √(n ÷ (n−1))00.511.5252050100n
View data table
nRatio √(n ÷ (n−1))
21.41
31.22
51.12
101.05
201.03
301.02
501.01
1001.01

Why small samples divide by n − 1

A sample’s values sit closer to their own mean than to the true population mean, so dividing by n understates the spread. The correction matters most for small samples: with 5 values, the sample SD is 12% larger than the n-divided figure, but with 100 values the difference is only 0.5%.

View data table
RangeShare of normal dataOutside the range
mean ± 1 SD68.27%1 in 3
mean ± 2 SD95.45%1 in 22
mean ± 3 SD99.73%1 in 370
mean ± 4 SD99.994%1 in 15,787

The 68-95-99.7 rule

For normally distributed data, about 68% of values fall within one standard deviation of the mean, 95% within two and 99.7% within three. Compare these with the “Within ±1/2/3 SD” row for your data: big differences suggest the data is skewed or has outliers.

Common Standard Deviation Questions

Is this a variance calculator?

Yes. Variance is shown directly below the standard deviation. It is the SD squared, in squared units.

Should I use sample or population standard deviation?

Use population SD when your data includes every member of the group you care about, such as all 30 students in a class. Use sample SD when the data is a subset used to estimate a larger group. This is the usual case in research and surveys.

Does it calculate z-scores?

Yes. The table lists the z-score of every value: how many standard deviations it lies above or below the mean.

Tips and Common Mistakes

  • Standard deviation is in the same units as your data; variance is in squared units.
  • In Excel, STDEV.S is the sample SD and STDEV.P the population SD.
  • Report the mean with its standard deviation (spread of the data) or standard error (precision of the mean). They answer different questions.

Frequently asked questions

How do you calculate standard deviation by hand?

Find the mean. Subtract it from each value and square the result. Add the squares, divide by n − 1 for a sample (or n for a population), and take the square root.

What is a good standard deviation?

There is no universal good value. Compare it with the mean: the coefficient of variation (SD ÷ mean) puts it on a common scale. Below about 10% usually counts as low variability.

What is the difference between standard deviation and standard error?

Standard deviation describes how spread out individual values are. Standard error (SD ÷ √n) describes how precisely the sample mean estimates the true mean. It shrinks as the sample grows.

Can standard deviation be negative?

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

Sources and methodology

Last reviewed

byBhuvanesh S. Runs through our automated test suite on every build.

Results are estimates. Double-check anything important before relying on it.