Standard Deviation Calculator
Calculates the standard deviation of a list of numbers, the most common measure of how spread out data are around their mean. Paste or type your values separated by commas, spaces or new lines, and choose whether they are a sample from a larger group (dividing by n − 1) or the whole population (dividing by n). You also get the variance, mean, count, sum, sum of squared deviations, standard error of the mean, minimum, maximum and range.
- All values are treated as equally weighted individual observations, not grouped frequencies.
- The standard error uses the standard deviation of the selected type.
Formula
Population: σ = √( Σ(xᵢ − μ)² ÷ N ). Sample: s = √( Σ(xᵢ − x̄)² ÷ (n − 1) )
- The mean is the sum of the values divided by how many there are.
- Variance is the average squared distance from the mean; the standard deviation is its square root, in the same units as the data.
- The sample formula divides by n − 1 (Bessel's correction), which removes the bias of estimating the population variance from a sample.
- Results are shown to up to 6 decimal places.
Eight values: 2, 4, 4, 4, 5, 5, 7, 9
Inputs
- Data values: 2, 4, 4, 4, 5, 5, 7, 9
- Data set type: population
The mean is 40 ÷ 8 = 5. The squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32. As a population, the variance is 32 ÷ 8 = 4 and the standard deviation is √4 = 2. As a sample it would be √(32 ÷ 7) = 2.13809.
Sources & references
Frequently asked questions
Should I use the sample or the population standard deviation?
Use the population formula when your data include every member of the group you care about, such as the marks of every student in one class. Use the sample formula when the data are a subset used to describe a larger group, which is the usual case in research and surveys.
What does the standard deviation tell me?
How far values typically are from the mean. A small standard deviation means the values cluster tightly; a large one means they are spread out. For roughly normal data, about 68% of values fall within one standard deviation of the mean and 95% within two.
What is the difference between variance and standard deviation?
The variance is the average squared deviation from the mean, so its units are squared. The standard deviation is the square root of the variance and is in the same units as the data, which makes it easier to interpret.
What is the standard error of the mean?
The standard deviation divided by the square root of the number of values. It estimates how much the sample mean would vary between repeated samples, and it shrinks as the sample grows.
Related calculators
Average Calculator Finds the average (arithmetic mean) of a list of numbers, together with the count, sum, median, geometric mean, smallest and largest value and the range. Paste or type the numbers separated by commas, spaces or semicolons, in any mix. Anything that is not a number is skipped and listed, so you can see exactly which values went into the result. Useful for test scores, prices, measurements or any other set of data. Percentage Increase Calculator Works out how much a value has grown or shrunk in percentage terms. Give the starting and ending values to get the percentage increase (or decrease) and the difference between them, or work backwards: find the new value after a given percentage rise or fall, find the original value before a change, or recover both values from the percentage and the size of the change. Results show the change both as an increase and as the equivalent decrease, so a fall of 10% reads as an increase of −10%. Ratio Calculator Solves proportions and works with ratios of two or three numbers. Fill in any three of A : B = C : D to find the missing value, scale a ratio up or down by a factor, simplify a ratio to its lowest whole-number terms (decimals such as 1.5 : 2.25 are handled exactly), or rewrite it in 1 : n or n : 1 form for comparing ratios. Each answer shows the working and the scale factor between equivalent ratios.