Math · FREE ONLINE TOOL

Standard Deviation Calculator

Calculate sample and population standard deviation and variance from a number list, with the different denominators explained.

Your inputs

Formula and input guidance

Dataset summary

Mean = Σx / n; population variance = Σ(x − mean)² / n; sample variance uses n − 1.

The mean uses every value. The median is the middle of the sorted dataset. Sample variance corrects for estimating a population from a sample. Sample standard deviation requires at least two values; population standard deviation is also shown for a single value.

Separate numbers with commas, spaces, or new lines.

Calculations run in your browser. No account needed.

EXAMPLE RESULTCalculated locally
Sample standard deviation
2.14
Population standard deviation
2
Mean
5
Median
4.5
Mode
4
Sample variance
4.57
Population variance
4
Count
8
Sum
40
Minimum
2
Maximum
9
Range
7
Sum of squares
232
Geometric mean
4.6
Clear inputs. Transparent methods.
My workspace

Calculate with your inputs to save a result or compare scenarios.

How it works

Illustration for Standard Deviation Calculator: a chart; a bar chart and magnifying glass.
Dataset summaryMean = Σx / n; population variance = Σ(x − mean)² / n; sample variance uses n − 1.
A useful distinction

Changing units changes spread predictably

Multiplying every observation by 10 multiplies standard deviation by 10 and variance by 100. Adding 10 to every observation changes the mean but leaves both spread measures unchanged, because distances from the mean stay the same.

What happens when meters become centimeters?

Standard deviation
0.2 m
Result. A (Standard deviation) → 20 cm. B (Variance) → 400 cm².
What happens when meters become centimeters?
QuantityCalculationResult
A Standard deviation0.2 × 10020 cm
B Variance0.2^2 × 100^2400 cm²

Population and sample standard deviation

For 2, 4, and 6, the mean is 4. Squared deviations are 4, 0, and 4, totaling 8. Treating the list as the whole population gives variance 8 ÷ 3 and standard deviation about 1.63. Treating it as a sample gives variance 8 ÷ 2 = 4 and standard deviation 2. Choose the interpretation that matches your data, not the smaller answer. Standard deviation uses the original unit; variance uses its square.

Choose the population or sample result deliberately

Use population standard deviation when the entered values constitute the complete population you intend to describe. Use sample standard deviation when estimating variation in a broader population from a sample. Finflo returns both when at least two values are available; these are different denominators applied to the same deviations.

Population variance divides the squared-deviation total by n. Sample variance divides by n − 1 because the sample mean was estimated from the same observations. Taking the square root gives standard deviation in the original measurement unit.

Work through the squared deviations before taking the root

For 4, 6, 8 and 10, the mean is 7. The deviations are −3, −1, 1 and 3; their squares total 20. Population variance is 20 ÷ 4 = 5, giving standard deviation √5 ≈ 2.2361. Sample variance is 20 ÷ 3, giving sample standard deviation ≈ 2.5820.

Calculating spread for 4, 6, 8, 10
ObservationDeviation from 7Squared deviation
4−39
6−11
811
1039
Total020

Separate standard deviation, variance and standard error

If the inputs are millimeters, standard deviation is in millimeters and variance is in square millimeters. Standard error of a sample mean is s ÷ √n under the relevant sampling assumptions; it describes uncertainty in the estimated mean rather than the spread of individual measurements.

For the four-value example, s ÷ √4 ≈ 1.2910. A confidence interval additionally needs a critical value and appropriate assumptions. Do not label the sample standard deviation itself a margin of error.

Check extreme values and the meaning of a zero spread

All identical observations produce zero standard deviation. A single observation also has zero population spread, but sample standard deviation is unavailable because n − 1 is zero. The page omits that sample result rather than inventing an estimate.

Large deviations receive extra weight because they are squared. Validate unexpected values and measurement units before interpreting the spread. The familiar approximately 68% within one standard deviation rule needs a normal-distribution model; it does not apply to every dataset.

Dataset summary: formula and assumptions

Mean = Σx / n; population variance = Σ(x − mean)² / n; sample variance uses n − 1.

The mean uses every value. The median is the middle of the sorted dataset. Sample variance corrects for estimating a population from a sample. Sample standard deviation requires at least two values; population standard deviation is also shown for a single value.

Use Dataset summary

Worked example

Using the Dataset summary example:

Inputs
Numbers
2, 4, 4, 4, 5, 5, 7, 9
Method

Mean = Σx / n; population variance = Σ(x − mean)² / n; sample variance uses n − 1.

Result

Example result

Sample standard deviation: 2.14

Population standard deviation: 2

Mean: 5

Median: 4.5

Mode: 4

Sample variance: 4.57

Population variance: 4

Count: 8

Sum: 40

Minimum: 2

Maximum: 9

Range: 7

Sum of squares: 232

Geometric mean: 4.6

These are illustrative inputs. Change the values to explore a different scenario.

Formula references

References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.

Common questions

Why is sample standard deviation usually larger?

Sample variance divides squared deviations by n − 1 instead of n. Taking the square root preserves that difference.

Does standard deviation use the same units as my data?

Yes. Variance uses squared units, while standard deviation takes the square root and returns to the original unit.

Does adding the same constant to every value change standard deviation?

No. Adding a constant shifts the mean by that constant but leaves each deviation from the mean unchanged, so variance and standard deviation stay the same.

Can I calculate sample standard deviation from one number?

No. Its denominator n − 1 would be zero. Finflo can describe the population spread of that one value but omits the sample estimate.

Is standard deviation the same as standard error?

No. Standard deviation describes variability among observations. The standard error of an independent-sample mean is commonly estimated as s ÷ √n.

See our methodology and editorial policy.