Skip to content
MasterMath

Standard Deviation Calculator

The standard deviation of a list of values, both sample and population, with the mean and the rest of the summary. Paste your data separated by commas, spaces or line breaks.

Sample standard deviation

—

Sample standard deviation—
Population standard deviation—
Mean—
Sample variance—
Number of values—
Range—
MeasureValue

How this was worked out

    The formula

    s = √( Σ(x − x̄)² / (n − 1) )

    What it means

    Standard deviation says how far the values spread from their mean, and it is in the same units as the data: measure heights in centimetres and the deviation is in centimetres too. You subtract the mean from each value, square the differences so they do not cancel out, average them and take the square root. There are two versions, and the difference is the denominator: the population one divides by n and the sample one by n − 1.

    How to work it out by hand

    1. Work out the mean of all the values
    2. Subtract the mean from each value and square each difference
    3. Add all those squares together
    4. Divide by n − 1 for a sample, or by n for a whole population, and take the square root

    What is worth knowing

    Bessel's correction — dividing by n − 1 instead of n — is not an arbitrary tweak. When you work the mean out from the data itself, those values sit slightly closer to their own mean than they would to the real population mean, so the variance comes out short. Taking one off the denominator corrects it. With many values the difference is negligible; with five it is twenty-five per cent, and there it matters which one you pick.

    Frequently asked questions

    Sample or population?

    Sample, almost always: the population version is only right when your data are literally every case there is, such as the marks of one class when that class is all you care about.

    Why are the differences squared?

    Because without squaring, the ones above and below the mean cancel out and the sum is always zero.

    How does it relate to variance?

    Standard deviation is the square root of the variance. Variance is in squared units, which is what makes it hard to interpret.

    How do I paste the data?

    Separated by commas, spaces or line breaks, interchangeably. Anything that is not a number is ignored.

    Is a high deviation bad?

    It is neither good nor bad: it says the values are spread out. For delivery times, spread is poor service; for a country's incomes, it is inequality.