Standard Deviation Calculator

For 12, 18, 9, 22, 15 and 20, the mean is 16 and the squared deviations sum to 122. Dividing by six and taking the square root gives population deviation 4.51. Dividing by five instead gives sample deviation 4.94.

These describe spread; the six observations alone do not establish a normal distribution or its coverage probabilities. In a separate assumed four-value set, 2, 2, 4 and 4 have mean 3 and squared-deviation sum 4. Population deviation is 1; sample deviation is √(4/3), about 1.1547.

Adding two included zeros gives a different six-observation set, not the same four-value sample. In that separate six-value set, population deviation is about 1.63. For the four-value sets 1, 2, 4, 4 and 3, 2, 4, 4, population deviations are about 1.30 and 0.829 respectively; each calculation recomputes its own mean.

A one-observation population has zero dispersion, while sample deviation is undefined at n = 1.

Standard Deviation Calculator: inputs

Calculated result
Population standard deviation4.5
Sample standard deviation4.9

Standard Deviation Calculator: Value 1 sensitivity

Standard Deviation Calculator: Value 1 and Population standard deviation5 calculations vary the “Value 1” input while holding the other entered inputs constant.104.9114.7124.5134.4144.3

Standard Deviation: formula

Population σ = √(Σ(x−mean)²÷n); sample s = √(Σ(x−mean)²÷(n−1))

NIST: measures of scale

The n−1 correction makes sample variance unbiased under independent identical sampling with finite variance; it does not make the square-root sample deviation unbiased. Outliers can strongly change either result. Standard deviation summarizes spread within the specified population or sample.

Standard Deviation: worked example

Number of observations to include6
Value 112
Value 218
Value 39
Value 422
Value 515
Value 620
Population standard deviation4.5
Sample standard deviation4.9

Use the population deviation to describe a complete population. For an independent sample used to estimate a larger population's variance, use the sample interpretation and include at least two observations. The sample correction changes the divisor of the squared-deviation sum.

It does not add an observation or replace the average with a different externally specified center.

Standard Deviation: changing Value 1

Value 1Population standard deviationSample standard deviation
104.95.3
114.75.1
12 (example)4.54.9
134.44.8
144.34.7

Standard Deviation: compare input ranges

InputTested fromToPopulation standard deviation: low inputPopulation standard deviation: high inputSwing
Number of observations to include1604.54.5 (112%)
Value 420244.150.879 (19%)
Value 618224.34.90.585 (13%)
Value 38104.84.30.517 (11%)
Value 111134.74.40.295 (6.5%)
Value 216204.44.70.292 (6.5%)
Value 514174.64.50.064 (1.4%)

Standard Deviation: individual input comparisons

InputValuePopulation standard deviationSample standard deviation
Number of observations to include10Undefined for these inputs
234.2
33.74.6
45.15.9
54.55.1
64.54.9
Value 1104.95.3
114.75.1
124.54.9
134.44.8
144.34.7
Value 2144.54.9
164.44.8
184.54.9
204.75.2
2255.5
Value 375.15.5
84.85.2
94.54.9
104.34.7
1144.4
Value 4183.84.2
204.14.5
224.54.9
2455.5
265.56.1
Value 5124.85.2
144.65
154.54.9
174.54.9
184.55
Value 6164.14.5
184.34.7
204.54.9
224.95.3
245.35.8

Standard Deviation: combined input changes

Value 1 / Value 2141822
104.84.95.4
114.64.75.2
124.54.55
134.34.44.9
144.34.34.8

Standard Deviation: which assumptions move the result?

Standard Deviation: Population standard deviation as Number of observations to include changesPopulation standard deviation starts at 0. Moving Number of observations to include from 1 to 6 changes it to 4.5, with Value 1 12; Value 2 18; Value 3 9; Value 4 22; Value 5 15; Value 6 20 kept fixed.102333.745.154.564.5
The inclusion count selects a prefix of the entered observations. At count 1, population deviation is 0; at count 6, it is 4.5. Adding an observation changes the set and can change its mean as well as its dispersion. Sample deviation has its separate n−1 denominator.
Standard Deviation: Population standard deviation as Value 4 changesPopulation standard deviation starts at 3.8. Moving Value 4 from 18 to 26 changes it to 5.5, with Number of observations to include 6; Value 1 12; Value 2 18; Value 3 9; Value 5 15; Value 6 20 kept fixed.183.8204.1224.5245265.5
Value 4 changes from 18 to 26, while the other included readings stay fixed. Population deviation changes from 3.8 to 5.5. The mean is recomputed for each set; these values are not distances from one fixed external reference mean.

Standard Deviation: values and definitions

Quantity and definitionValue used
Number of observations to include — Uses the first 1–6 value slots; an included zero is data, not a missing-value marker.6
Value 112
Value 218
Value 39
Value 422
Value 515
Value 620
Population standard deviation4.5
Sample standard deviation4.9

Common error: Choosing the smaller deviation merely because it looks preferable. For the same nonconstant list, dividing by n gives a smaller result than dividing by n−1; the appropriate denominator follows from the population or sampling claim.

One list, two different denominator claims

For the assumed observations 2, 2, 4 and 4, the mean is 3. Squared deviations sum to four. Treating those four observations as the entire population gives variance 4/4 = 1 and standard deviation 1.

Estimating a population variance from a sample instead divides by 4 − 1, giving sample deviation √(4/3), about 1.1547. Neither denominator can be selected merely to produce the smaller number. The standard deviation has the observation units; the variance has squared units.

With only one observation, sample variance is undefined because its denominator is zero.

Statistics & Probability calculators: Range & Midrange Calculator, Permutation & Combination Calculator, Simple Probability Calculator, Z-Score Calculator, Confidence Interval Calculator, Sample Size Calculator.

Population and sample standard deviation use slightly different formulas on purpose, and picking the wrong one systematically understates the spread. Sample deviation divides by one less than the count specifically because a sample tends to underestimate the true variation in the full population it's drawn from, and that adjustment corrects for it.

Decide first whether your six values are the entire population you care about or a sample drawn from something larger. That choice determines which of the two formulas applies.

See the mean and median calculator for the center, the range calculator for a simple spread, and the z-score page to place a value relative to the mean. The confidence interval and sample size calculators use it for estimation. Investment volatility on the investing pages is a standard deviation.

Standard Deviation Calculator: quantities and terminology

What is the difference between population and sample standard deviation?

Population variance divides squared deviations by n. Sample variance divides by n − 1, accounting for the mean estimated from those same observations. Take the square root for standard deviation.

One observation has no sample standard deviation under that procedure.

What does a large standard deviation mean?

The observations lie farther from their mean. Their values vary more. Whether the mean describes a typical observation also depends on the distribution, so inspect the data rather than treating one large spread measure as a complete description.

How is standard deviation used in investing?

Return standard deviation measures historical volatility over the selected period. Larger values mean wider return swings. Compare matching frequencies and return definitions; a monthly series and an annual series do not use the same measurement interval.