Skip to content
QueenNexa

Free tool

Standard Deviation Calculator

Calculate population or sample standard deviation, variance and mean from your own data, with every step of the working shown and exact arithmetic.

Up to 1,000 values. Decimals and negative numbers are fine.

Standard deviation
–
Variance
–
Mean
–
Count (n)
–
The other version, for comparison
–

The working

    Assumptions and limits

    Every figure comes from the numbers you enter. Where a rule of thumb is used, it is labeled as one.

    • Population: variance = Σ(x − mean)² ÷ n. Sample: variance = Σ(x − mean)² ÷ (n − 1). Standard deviation is the square root of the variance.
    • The mean, squared deviations and variance are exact fractions. Only the final square root is rounded, to six decimals, and a rounded value is marked with ≈.
    • Choose population when your numbers are every value in the group, and sample when they are drawn from a larger group.
    • Up to 1,000 values. The sample setting needs at least two values.
    • The calculator does not remove outliers or check that the data are suitable for a statistical test. It reports the arithmetic for the numbers you enter.

    Runs entirely in your browser. Nothing you type or upload is sent to our servers.

    How standard deviation is calculated

    Standard deviation summarizes spread in one number. You measure how far each value sits from the mean, square those distances so that values below and above the mean do not cancel, average the squares, and take the square root to return to the original units. The only choice is how to average: divide by n when the list is the entire group, or by n − 1 when it is a sample from a larger group.

    The calculator shows both versions side by side, so you can see how much the choice matters. The gap is largest for short lists and shrinks as n grows, because n − 1 and n become close.

    Worked example 1: eight values

    Data: 2, 4, 4, 4, 5, 5, 7, 9.

    1. Mean = (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) ÷ 8 = 40 ÷ 8 = 5.
    2. Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16. Their sum is 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32.
    3. Population variance = 32 ÷ 8 = 4, so the standard deviation is √4 = 2.
    4. Sample variance = 32 ÷ 7 = 4.571429, so the standard deviation is √4.571429 ≈ 2.138090.

    Worked example 2: a different data set

    Data: 10, 12, 23, 23, 16, 23, 21, 16.

    1. Mean = 144 ÷ 8 = 18.
    2. Squared deviations: 64, 36, 25, 25, 4, 25, 9, 4. Their sum is 192.
    3. Population variance = 192 ÷ 8 = 24, and √24 ≈ 4.898979.
    4. Sample variance = 192 ÷ 7 ≈ 27.428571, and its square root is ≈ 5.237229.

    Paste either list into the box above and switch between the two settings to see these values.

    Common mistakes

    • Using the wrong divisor. A sample of customers drawn from a larger customer base calls for n − 1. A complete list, such as every score in one class, calls for n.
    • Rounding the mean first. Rounding before squaring changes the answer. The calculator keeps the mean as an exact fraction.
    • Reading it as a range. Standard deviation is not the distance from the lowest to the highest value. The Average Calculator reports the range separately.

    Related calculators

    Start with the mean, median and mode in the Average Calculator. To express a spread as a share of a mean, divide the two and use the Percentage Calculator. For square roots shown in simplified form, the Square Root Calculator helps.

    Frequently asked questions

    What is the difference between population and sample standard deviation?

    Population standard deviation divides the sum of squared deviations by n, the number of values, and is used when your list is the whole group. Sample standard deviation divides by n − 1 and is used when your list is a subset of a larger group. For 2, 4, 4, 4, 5, 5, 7, 9 the sum of squares is 32, so the population variance is 32 ÷ 8 = 4 and the sample variance is 32 ÷ 7.

    How do I calculate standard deviation step by step?

    Find the mean, subtract it from each value, square each difference, add the squares, divide by n (population) or n − 1 (sample) to get the variance, then take the square root. The calculator prints each of these steps for your data, with the squared deviations for the first twelve values.

    What does the standard deviation tell me?

    It measures how spread out the values are around their mean, in the same units as the data. A small value means the numbers sit close to the mean, and a large value means they are scattered. Two lists can share a mean of 5 and still differ: 5, 5, 5 has a standard deviation of 0, while 1, 5, 9 does not.

    What is the relationship between variance and standard deviation?

    The standard deviation is the square root of the variance, and the variance is the standard deviation squared. Variance is in squared units, such as dollars squared, which is why the square root is usually reported: it brings the spread back to the original units. A variance of 4 gives a standard deviation of 2.

    Why does the sample version need at least two values?

    It divides by n − 1, and with a single value that would be dividing by 0. One value also has no spread to measure. Enter two or more numbers for the sample setting. The population setting accepts a single value and returns 0, because a lone value equals its own mean.

    Is the result exact or rounded?

    The mean, the squared deviations and the variance are computed as exact fractions, so decimals such as 0.1 do not pick up floating-point error. The final square root is irrational unless the variance is a perfect square, so it is shown rounded to six decimals and marked with ≈. When the root is exact, as with 2 above, it is shown without ≈.

    Can I paste data from a spreadsheet?

    Yes. Paste numbers separated by commas, spaces, semicolons or line breaks, up to 1,000 values. Commas always separate numbers, so write 1250 rather than 1,250. Any entry that is not a number is reported by name so you can find and remove it.

    Is anything I type saved or sent anywhere?

    No. The calculation runs in your browser, and nothing you enter is stored or sent to our servers. Only a count that the tool was used is recorded, without any numbers from the form.

    Link to this tool

    Found it useful? Copy a link for your page, newsletter or documentation.

    Get new tools and guides by email

    Optional. The tool above works without signing up.

    One email every Tuesday. Free, and you can unsubscribe in one click.

    More free tools

    Browse all everyday calculators or the full list of free tools.