Standard Deviation Calculator
Standard deviation and variance of a list of numbers, for a population or a sample, with the working shown step by step.
How it works
Standard deviation tells you how spread out numbers are around their mean. A small value means the numbers sit close together, a large one means they are scattered.
The steps are: find the mean, subtract the mean from every number, square each of those differences, add the squares, divide by n (whole population) or n - 1 (a sample), then take the square root. The tool shows each step in a table so you can follow it or check your homework.
The formula
mean = sum of x / n variance (population) = sum of (x - mean)^2 / n variance (sample) = sum of (x - mean)^2 / (n - 1) standard deviation = square root of variance
Worked example
For 2, 4, 4, 4, 5, 5, 7, 9: mean = 40 / 8 = 5. The squared differences are 9, 1, 1, 1, 0, 0, 4, 16 and they add up to 32. Population variance = 32 / 8 = 4, so the population standard deviation is 2. As a sample, 32 / 7 = 4.571 and the standard deviation is 2.138.
Good to know
- Use population when your list is every value there is (all marks of the whole class). Use sample when the list is only part of a bigger group (50 students out of a college).
- The sample formula divides by n - 1 (Bessel's correction) because a sample tends to underestimate the spread.
- The coefficient of variation (SD divided by mean) lets you compare spread between lists with different units or sizes.
- Standard deviation is in the same unit as your data, variance is in squared units.
Common questions
- What is the difference between population and sample standard deviation?
- Population divides by n, sample divides by n - 1. Calculators label them sigma and s, or STDEV.P and STDEV.S in Excel.
- Can the standard deviation be negative?
- No. It is a square root, so it is zero or positive. Zero means all numbers are the same.
- What is the standard error?
- The standard deviation divided by the square root of n. It shows how precisely the mean is known.
- How many numbers do I need?
- At least 1 for a population and 2 for a sample.
More in Utilities.
Find the date that is some days, weeks, months, years or working days from a date, and see the weekday and week number.
OPEN →Age CalculatorYour exact age in years, months and days, the day you were born, your next birthday, and the age gap with another person.
OPEN →Area ConverterConvert square metres, square feet, acres, hectares and more.
OPEN →