Standard Deviation Calculator

Use the standard deviation calculator to find how spread out your numbers are around their average, with every step shown.

Free · No sign-up · Steps shown

Last updated

What you get

  • Population and sample standard deviation
  • The mean and the variance
  • A value-by-value working table
  • Paste a list or a spreadsheet column

Jump to a guide

Standard Deviation Calculator

2.14
Sample standard deviation (s)
s = sqrt(32.00 / 7) = 2.14
Show the working table
ValueDeviation (x - mean)Squared deviation
Show the steps

    What Is a Standard Deviation Calculator?

    A standard deviation calculator on CalcSolver finds how spread out a set of numbers is around their average, and shows every step of the working. You paste a list of numbers separated by commas, choose population or sample, and it returns the mean, the variance, and the standard deviation, plus a table showing each value, its deviation, and its squared deviation.

    The answer alone hides where mistakes happen. Most slip in the middle: a wrong mean, a missed minus sign, or dividing by the wrong number. The calculator’s working table shows each step, so you can check your own working or learn the method from scratch.

    In a nutshell: paste your numbers, pick population or sample, and get the standard deviation with the mean, the variance, and the full working shown.

    The Formula Step by Step

    The calculation has five steps, and the only difference between population and sample comes at step four. The formulas are:

    • Population: σ = √(Σ(x − μ)² ÷ N), where μ is the population mean and N is the number of values.
    • Sample: s = √(Σ(x − x̄)² ÷ (n − 1)), where x̄ is the sample mean and n is the number of values.

    The symbol Σ means “add up”, so Σ(x − μ)² is the sum of the squared deviations. Here is the full working for the classic example 2, 4, 4, 4, 5, 5, 7, 9.

    Step 1: Find the Mean

    Add all the values and divide by how many there are: 2 + 4 + 4 + 4 + 5 + 5 + 7 + 9 = 40, and 40 ÷ 8 = 5. The mean is 5, and every later step measures distance from this number.

    Step 2: Subtract the Mean From Each Value

    Each result is called a deviation, and it shows how far that value sits from the center. For our example the deviations are −3, −1, −1, −1, 0, 0, 2, and 4. Values below the mean give negative deviations, and the deviations always add up to zero.

    Step 3: Square Each Deviation

    Squaring does two jobs: it turns every negative deviation positive, so values below and above the mean stop cancelling each other out, and it gives extra weight to values far from the mean. For our example the squared deviations are 9, 1, 1, 1, 0, 0, 4, and 16.

    Step 4: Add the Squares and Divide

    Add the squared deviations: 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32, the sum of squared deviations. Dividing it gives the variance, and this is where the two formulas split. For a population, divide by N: 32 ÷ 8 = 4. For a sample, divide by n − 1: 32 ÷ 7 = 4.57. The sample divisor is smaller, so the sample variance is always a little larger.

    Step 5: Take the Square Root

    The square root undoes the squaring from step three and brings the answer back into the original units. For the population: √4 = 2.00. For the sample: √4.57 = 2.14. So the eight numbers have a population standard deviation of 2.00 and a sample standard deviation of 2.14, and a typical value sits about 2 away from the mean of 5.

    ValueDeviation (x − mean)Squared deviation
    2−39
    4−11
    4−11
    4−11
    500
    500
    724
    9416
    Total032

    What Is Standard Deviation?

    Standard deviation is a single number that tells you how spread out a set of values is around the mean. A small standard deviation means the values sit close to the average. A large one means they are scattered far from it. It appears in exam papers, lab reports, quality checks, and sports analysis.

    Think of two classes that both average 70 points. In the first, the scores were 68, 69, 70, 71, and 72, so the population standard deviation is small, about 1.41. In the second, the scores were 40, 55, 60, 95, and 100, so the population standard deviation is large, about 23.45. Both classes share the same mean, but the second is far more spread out, and the standard deviation is the number that shows it.

    So a standard deviation of 2 means a typical value sits about 2 away from the mean. Its square, the variance, is measured in squared units, which is why the standard deviation is the number people usually quote.

    Population vs Sample: Which One Should You Use?

    The two formulas are identical except for one number: the population formula divides by N, and the sample formula divides by n − 1. Use population when your data includes every member of the group you care about, and sample when it is only a part of a larger group.

    Use the population standard deviation when the list is the whole group: the test scores of all 30 students in one class, every measurement from one finished batch of parts, or the daily temperature for every day of last month. There is nothing outside the list to estimate, so you divide by the full count N.

    Use the sample standard deviation when the list is a subset drawn from a larger group, and you want to estimate that larger group’s spread: thirty customers surveyed out of thousands, or fifty components measured out of a run of ten thousand. A sample clusters a little tighter around its own mean than the full population does, so dividing by n − 1 corrects that bias and gives a fairer estimate. This adjustment is called Bessel’s correction, and it is why the sample answer is always slightly larger.

    For 10, 20, 30 the mean is 20 and the sum of squared deviations is 200. The population standard deviation is √(200 ÷ 3) = 8.16, while the sample standard deviation is √(200 ÷ 2) = 10.00. On a small data set the gap is large, so choosing wrong can cost points. On a large data set the two answers are nearly the same, because N and N − 1 are almost equal. If a question does not say which to use, look for the clue words: “population” or “all” means N, while “sample” or “estimate” means n − 1.

    What Is Variance?

    Variance is the average of the squared deviations, and it is the step just before the square root. For the example above, the population variance is 4.00 and the sample variance is 4.57. The two always come as a pair: the variance is what you calculate, and the standard deviation is what you report, because it is in the original units.

    Variance matters because it is the quantity that adds up. If two independent sources of variation affect a result, their variances add, while their standard deviations do not. That is why formulas in statistics are written in terms of variance. For everyday reading, though, the standard deviation is the useful number: a variance of 550 in test scores means little on its own, but its square root, 23.45 points, tells you at once how scattered the scores are.

    What a Small or Large Standard Deviation Means

    Zero is the smallest possible standard deviation, and it means no spread at all. For 5, 5, 5, 5 the mean is 5, every deviation is 0, and both standard deviations are 0. Whenever every value is identical, the standard deviation is zero, and that is the only way it can be zero.

    A small standard deviation means consistency. A machine that cuts rods to 99.8, 100.1, 99.9, 100.0, and 100.2 centimeters has a mean of 100 and a population standard deviation of about 0.14, so nearly every rod is within a fraction of a centimeter of the target. A large standard deviation means the opposite: a class with scores of 40, 55, 60, 95, and 100 has a mean of 70 and a population standard deviation of 23.45, so the class is very mixed in ability.

    There is no universal line between small and large: it depends on the units and the context. A standard deviation of 2 is tiny for house prices in dollars, but large for the weight of apples in grams. The useful comparison is against the mean itself, which is what the coefficient of variation measures.

    Coefficient of Variation

    The coefficient of variation (CV) is the standard deviation divided by the mean, times 100, so it gives the spread as a percentage of the average. The percentage calculator turns any standard deviation and mean into a CV in one step. The rods have a CV of 0.14 ÷ 100 × 100 = 0.14%, which is extremely tight. The mixed class has a CV of 23.45 ÷ 70 × 100 = 33.5%, which is very spread out. Because CV has no units, it lets you compare the spread of data sets measured in different units or on different scales.

    The Empirical Rule: 68-95-99.7

    When data follows a normal distribution, the familiar bell curve, the standard deviation tells you where almost all the values fall. About 68% of values lie within 1 standard deviation of the mean, about 95% within 2, and about 99.7% within 3. This is called the empirical rule, or the 68-95-99.7 rule.

    Say exam scores are roughly normal with a mean of 70 and a standard deviation of 10. Then about 68% of students scored between 60 and 80, about 95% between 50 and 90, and nearly all between 40 and 100. A score of 95 is 2.5 standard deviations above the mean, which makes it unusually high. To see what one more test does to that mean, use the grade calculator: it works out the score you need on the next test to reach a target average. The rule only works well for data that is roughly bell-shaped, so check the shape of your data before relying on it.

    Standard Deviation vs Standard Error

    The two names sound alike but answer different questions. Standard deviation describes how spread out the individual values are. Standard error describes how precisely a sample mean estimates the true population mean. The formula is: standard error = s ÷ √n.

    For the example 2, 4, 4, 4, 5, 5, 7, 9, the sample standard deviation is 2.14 and n is 8, so the standard error is 2.14 ÷ √8, about 0.76. The standard error shrinks as the sample grows, because a bigger sample pins down the mean more precisely, while the standard deviation stays about the same no matter how much data you collect.

    Standard Deviation in Excel and Google Sheets

    Spreadsheets have built-in functions for both versions. In Excel and Google Sheets, use STDEV.P for the population standard deviation and STDEV.S for the sample standard deviation. For data in cells A1 to A8, type =STDEV.S(A1:A8). The matching variance functions are VAR.P and VAR.S. The older STDEV function is the same as STDEV.S.

    If your spreadsheet answer does not match the calculator, the most likely cause is choosing the wrong version: STDEV.S divides by n − 1 and STDEV.P divides by N. You can also copy a column of numbers from a spreadsheet and paste it into the calculator above to see the full working.

    How to Use the Standard Deviation Calculator

    1. Enter your numbers. Type or paste them separated by commas, for example 2, 4, 4, 4, 5, 5, 7, 9. Decimals and negative numbers are fine, and spaces or new lines work too, so you can paste a column straight from a spreadsheet.
    2. Choose population or sample. Pick population if your list is the whole group, or sample if it is part of a larger group. The population vs sample section above explains how to decide.
    3. Read the results. You get the count, the mean, the sum of squared deviations, the variance, and the standard deviation.
    4. Check the working table. It lists each value with its deviation and squared deviation, so you can spot exactly where a hand calculation went wrong.

    Five Mistakes That Shrink the Answer

    MistakeWhat goes wrongDo this instead
    Dividing by N for a sampleThe answer is too small, because the sample needs n − 1Check whether the data is the whole group or a subset first
    Forgetting to square the deviationsPositive and negative deviations cancel and the total is zeroSquare every deviation before adding them up
    Taking the square root of the sum of squaresYou skip the division step, so the answer is far too largeDivide by N or n − 1 first, then take the square root of the variance
    Reporting the variance as the standard deviationThe answer is in squared units and cannot be compared with the dataAlways take the square root at the end to return to the original units
    Confusing standard deviation with standard errorStandard error is quoted as the spread of the dataUse standard deviation for spread, and s ÷ √n for the precision of the mean

    Five Data Sets to Work Through

    Solve all five on your own with the answers covered, then paste each list into the calculator above and compare its working table with yours.

    1. 3, 6, 9, 12, 15. Answer: mean 9, population SD 4.24, sample SD 4.74.
    2. 4, 8, 15, 16, 23, 42. Answer: mean 18, population SD 12.32, sample SD 13.49.
    3. 10, 20, 30, 40. Answer: mean 25, population SD 11.18, sample SD 12.91.
    4. 2, 6, 10. Answer: mean 6, population SD 3.27, sample SD 4.00.
    5. 12, 18, 24. Answer: mean 18, population SD 4.90, sample SD 6.00.

    Frequently Asked Questions

    How do I calculate standard deviation step by step?

    Find the mean, subtract it from each value, square each deviation, add the squares, divide by N for a population or n − 1 for a sample, then take the square root. For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the squares total 32, so the population standard deviation is √(32 ÷ 8) = 2.00 and the sample standard deviation is √(32 ÷ 7) = 2.14.

    Should I use population or sample standard deviation?

    Use population when your data includes every member of the group you care about, and sample when it is a subset used to estimate a larger group. The test scores of one whole class are a population; 30 customers surveyed out of thousands are a sample. The sample formula divides by n − 1 instead of N.

    What is the difference between variance and standard deviation?

    Variance is the average of the squared deviations, and standard deviation is its square root. Variance is measured in squared units, while standard deviation is in the same units as the data, so standard deviation is the number people usually report. For 2, 4, 4, 4, 5, 5, 7, 9 the population variance is 4.00 and the population standard deviation is 2.00.

    Can standard deviation be zero or negative?

    It can be zero, but never negative. It is zero only when every value is identical, for example 5, 5, 5, 5 gives a standard deviation of 0. Because it comes from a square root of a sum of squares, it is always zero or positive.

    Why do we divide by n − 1 for a sample?

    Because a sample clusters a little tighter around its own mean than the full population does, so dividing by n would underestimate the true spread. Dividing by n − 1, known as Bessel’s correction, gives a fairer estimate of the population variance from sample data.

    What does a standard deviation of 2 mean?

    It means a typical value sits about 2 units away from the mean, in the same units as the data. For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the population standard deviation is 2, so most values fall roughly between 3 and 7. Whether 2 is small or large depends on the context and the size of the mean.

    How do I calculate standard deviation in Excel?

    Use =STDEV.S(range) for a sample and =STDEV.P(range) for a population, for example =STDEV.S(A1:A8). The same functions work in Google Sheets. If your answer differs from the calculator, check that you picked the same version.

    What is the 68-95-99.7 rule?

    For data that follows a normal, bell-shaped distribution, about 68% of values fall within 1 standard deviation of the mean, about 95% within 2, and about 99.7% within 3. With a mean of 70 and a standard deviation of 10, about 95% of values fall between 50 and 90.