Standard Deviation Calculator

Paste or type a list of numbers to get the standard deviation, variance, mean, median, mode and more, with every step of the working shown.

Separate with commas, spaces or new lines. You can paste a column from a spreadsheet.
Your data is
–

    Calculated in your browser. Nothing you enter is sent anywhere.

    How it’s calculated

    #xx − x̄(x − x̄)²

    How to use the standard deviation calculator

    1. Type or paste your numbers, separated by commas, spaces or new lines.
    2. Choose whether your data is a sample or the whole population.

    You'll see the standard deviation and all the common summary statistics. Below the calculator, the steps table shows each value's difference from the mean and its square, so you can follow or check the working.

    Standard deviation formulas

    Mean x̄ = Σx ÷ n
    Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )
    Population: σ = √( Σ(x − x̄)² ÷ n )
    Variance = standard deviation²

    Example

    Take the numbers 10, 12, 23, 23, 16, 23, 21, 16.

    1. There are 8 numbers adding to 144, so the mean is 144 ÷ 8 = 18.
    2. The differences from the mean are −8, −6, 5, 5, −2, 5, 3, −2.
    3. Their squares are 64, 36, 25, 25, 4, 25, 9, 4, which add up to 192.
    4. Sample variance = 192 ÷ 7 = 27.43, so the sample standard deviation is √27.43 = 5.237.
    5. Population variance = 192 ÷ 8 = 24, so the population standard deviation is √24 = 4.899.

    The median is 18.5, the mode is 23 (it appears three times) and the range is 23 − 10 = 13.

    The other results explained

    ResultWhat it means
    MedianThe middle value when sorted (the average of the two middle values for an even count).
    ModeThe value that appears most often. There can be several, or none if no value repeats.
    RangeLargest value minus smallest.
    Standard errors ÷ √n: how precisely the sample mean estimates the true mean.
    Coefficient of variationStandard deviation as a percentage of the mean, for comparing spread between data on different scales.

    In spreadsheets, STDEV.S gives the sample standard deviation and STDEV.P the population one.

    Frequently asked questions

    Should I use sample or population standard deviation?

    Use the sample standard deviation when your numbers are a sample from a bigger group you want to describe, which is the usual case: survey answers, test results, measurements. Use population standard deviation only when you have every member of the group, such as the scores of everyone in one class when you only care about that class.

    Why does the sample formula divide by n − 1?

    A sample's values sit closer to their own mean than to the true population mean, so dividing by n would underestimate the spread. Dividing by n − 1 (Bessel's correction) fixes that bias. With large samples the two results are almost the same.

    What does standard deviation tell me?

    How spread out the numbers are around the average. A small standard deviation means most values are close to the mean; a large one means they're scattered. For data with a roughly bell-shaped distribution, about 68% of values fall within one standard deviation of the mean and about 95% within two.

    How do I enter my data?

    Separate numbers with commas, spaces, semicolons or new lines. You can copy a column from Excel or Google Sheets and paste it straight in. Negative numbers and decimals with a point are fine.

    Formulas: NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.5.6 (measures of scale). Results checked in our tests against Python's statistics module (stdev, pstdev, variance, median, multimode).

    Last reviewed: . Results are estimates for information only.