Get Started
How to Calculate Standard Deviation
Learn how to calculate standard deviation by hand in 5 steps, with sample and population examples, the shortcut formula, grouped data, Excel and TI-84.

How to Calculate Standard Deviation: Step-by-Step with Examples

Last Updated: 8 min read
Hand-drawn line graph on paper with a ruler and pencils

Learn how to calculate sample and population standard deviation by hand in five steps, use the shortcut formula, handle grouped data, and find it in Excel or on a TI-84.

Table of Contents 17 sections
  1. What is standard deviation?
  2. The standard deviation formula
  3. How to calculate standard deviation in 5 steps
  4. Example 1: sample standard deviation
  5. Example 2: population standard deviation
  6. Sample or population: how to decide
  7. The shortcut (computational) formula
  8. How to calculate standard deviation for grouped data
  9. How to calculate standard deviation in Excel and Google Sheets
  10. How to calculate standard deviation on a TI-84
  11. How to interpret your answer
  12. Standard deviation vs mean absolute deviation
  13. Common mistakes to avoid
  14. Practice problems
  15. Calculate it instantly
  16. How to use this guide
  17. Frequently asked questions
Want it done for you? The free Standard Deviation Calculator shows the variance, mean and every step of the working.

Standard deviation is the most widely used measure of how spread out a set of numbers is. It shows up in statistics classes, science labs, investment reports, quality control and test scoring. The good news is that calculating it by hand takes only five steps, and once you have done it a few times the formula stops looking intimidating. This guide walks you through the method with worked examples for both a sample and a population, shows the shortcut formula, explains how to do it in Excel, Google Sheets and on a TI-84, and covers grouped data and the most common mistakes.

What is standard deviation?

Standard deviation tells you, roughly, how far a typical value sits from the average. If the daily high temperature in a city is 75°F on average with a standard deviation of 3°F, most days are within a few degrees of 75. If another city also averages 75°F but with a standard deviation of 12°F, its weather swings much more. Same mean, very different experience.

It is written as s for a sample and σ (the Greek letter sigma) for a population, and it is always in the same units as the data, which makes it easy to interpret.

The standard deviation formula

Sample: s = √[ Σ(x - x̄)² / (n - 1) ]
Population: σ = √[ Σ(x - μ)² / N ]

Read it from the inside out: take each value x, subtract the mean, square the result, add all the squares together (Σ), divide by n - 1 or N, and take the square root.

For related numbers, try the Percentage Calculator and Ratio Calculator.

How to calculate standard deviation in 5 steps

  1. Calculate the mean. Add all the values and divide by how many there are.
  2. Find each deviation. Subtract the mean from every value. Some results will be negative; that is expected.
  3. Square each deviation. This makes every number positive and gives extra weight to values far from the mean.
  4. Add the squared deviations to get the sum of squares, then divide by n - 1 for a sample or N for a population. The result is the variance.
  5. Take the square root of the variance. That is the standard deviation.

Example 1: sample standard deviation

A teacher samples the quiz scores of 6 students: 6, 8, 9, 10, 12, 15.

  1. Mean = (6 + 8 + 9 + 10 + 12 + 15) / 6 = 60 / 6 = 10.
  2. Deviations: -4, -2, -1, 0, 2, 5.
  3. Squared deviations: 16, 4, 1, 0, 4, 25.
  4. Sum of squares = 50. Variance = 50 / (6 - 1) = 10.
  5. Standard deviation = √10 = 3.16.

So the scores typically sit about 3 points from the class average of 10.

xx - mean(x - mean)²
6-416
8-24
9-11
1000
1224
15525
Total 60050

Notice that the deviations add up to zero. They always do, which is exactly why we square them: otherwise the positives and negatives would cancel out.

Example 2: population standard deviation

A small business has exactly 5 employees, and you want the spread of their years of experience: 2, 4, 4, 5, 10. Because this is the whole group, use the population formula.

  1. Mean = 25 / 5 = 5.
  2. Deviations: -3, -1, -1, 0, 5.
  3. Squares: 9, 1, 1, 0, 25. Sum = 36.
  4. Variance = 36 / 5 = 7.2.
  5. σ = √7.2 = 2.68 years.

Had you treated the same numbers as a sample, you would divide by 4 and get √9 = 3. The sample version is always a little larger.

Sample or population: how to decide

Ask yourself one question: do my numbers include everyone or everything I want to draw conclusions about? If yes, it is a population. If the numbers are a subset used to estimate something about a larger group, it is a sample. Surveys, experiments, polls and test batches are almost always samples. A full class roster, every month in a specific year or every product in a single order can be populations. When a homework question says "a sample of", "randomly selected" or "estimate", use n - 1.

The shortcut (computational) formula

When the mean is an awkward decimal, subtracting it from every value is tedious. This equivalent formula only needs the sum of the values and the sum of their squares:

s² = [ Σx² - (Σx)² / n ] / (n - 1)

For the quiz scores: Σx = 60, Σx² = 36 + 64 + 81 + 100 + 144 + 225 = 650. Then s² = (650 - 3,600 / 6) / 5 = (650 - 600) / 5 = 10, and s = 3.16, matching Example 1. For a population, divide by N instead of n - 1.

How to calculate standard deviation for grouped data

When data comes in a frequency table, multiply by the frequency f at each step:

Mean = Σ(f × x) / Σf
s = √[ Σf(x - mean)² / (Σf - 1) ]

Example: a survey records how many pets 20 households own: 0 pets (4 households), 1 pet (8), 2 pets (5), 3 pets (3). Σf = 20, Σfx = 0 + 8 + 10 + 9 = 27, so the mean is 1.35. The squared deviations weighted by frequency are 4(1.8225) + 8(0.1225) + 5(0.4225) + 3(2.7225) = 7.29 + 0.98 + 2.1125 + 8.1675 = 18.55. Sample variance = 18.55 / 19 = 0.976, and s = 0.99 pets. For class intervals such as 10-19, use each interval's midpoint as x.

How to calculate standard deviation in Excel and Google Sheets

  • Sample: =STDEV.S(A2:A50) in Excel or =STDEV(A2:A50) in Google Sheets.
  • Population: =STDEV.P(A2:A50) in Excel or =STDEVP(A2:A50) in Google Sheets.
  • Variance: =VAR.S and =VAR.P.
  • Mean: =AVERAGE(A2:A50).
  • Standard error: =STDEV.S(A2:A50)/SQRT(COUNT(A2:A50)).

To check the working step by step, put the data in column A, the mean in a cell such as D1, then =(A2-$D$1)^2 in column B, and =SQRT(SUM(B2:B50)/(COUNT(A2:A50)-1)) at the bottom.

How to calculate standard deviation on a TI-84

  1. Press STAT, choose 1:Edit and type your values into L1.
  2. Press STAT, move right to CALC and choose 1:1-Var Stats.
  3. Make sure the list is L1 and press ENTER.
  4. Read Sx for the sample standard deviation and σx for the population standard deviation. x̄ is the mean and n the count.

How to interpret your answer

  • Compare it with the mean. A standard deviation of 5 is small for values around 1,000 but huge for values around 10. The coefficient of variation (s / mean) puts it in perspective.
  • Use the 68-95-99.7 rule for roughly bell-shaped data: about 68% of values fall within one standard deviation of the mean and about 95% within two.
  • Look for outliers. A value more than 3 standard deviations from the mean is unusual and worth double-checking.
  • Convert values to z-scores with z = (x - mean) / s to compare results on different scales.

Standard deviation vs mean absolute deviation

Students sometimes ask why we square the deviations instead of simply ignoring the minus signs. Ignoring the signs gives a different, simpler statistic called the mean absolute deviation (MAD): the average distance from the mean. For the quiz scores in Example 1, the absolute deviations are 4, 2, 1, 0, 2 and 5, which add up to 14, so the MAD is 14 / 6 = 2.33, smaller than the standard deviation of 3.16.

Both measure spread, but standard deviation is used far more often for three reasons. First, squaring gives extra weight to values far from the mean, so the standard deviation reacts more strongly to outliers and unusual results. Second, it ties directly to the normal distribution, which is what makes the 68-95-99.7 rule, z-scores, confidence intervals and most statistical tests work. Third, variances of independent quantities add together, which makes the math of combining measurements much cleaner. MAD is still useful as an easy-to-explain summary, and it is taught in many middle school courses before standard deviation is introduced.

Common mistakes to avoid

  • Dividing by n for a sample. This underestimates the spread. Use n - 1.
  • Squaring the sum instead of summing the squares. Σx² is not the same as (Σx)².
  • Rounding the mean before computing the deviations. Keep full precision.
  • Reporting the variance by forgetting the final square root.
  • Ignoring units. The standard deviation has the same units as the data; the variance has squared units.

Practice problems

  1. Find the sample standard deviation of 4, 8, 6, 5, 3, 7. Answer: mean 5.5, sum of squares 17.5, s = √3.5 = 1.87.
  2. Find the population standard deviation of 2, 4, 4, 4, 5, 5, 7, 9. Answer: mean 5, sum of squares 32, σ = √4 = 2.
  3. A sample has s = 12 and n = 36. What is the standard error? Answer: 12 / 6 = 2.

Calculate it instantly

The free standard deviation calculator does all of these steps for you and shows the full working table, so you can check your answer line by line. For the mean, median and mode of the same data, use the average calculator, and see how to calculate average for the basics.

How to use this guide

Work through the steps in order with your own numbers, writing each result down as you go, then check your answer against the matching calculator on this site. If your hand calculation and the calculator disagree, the usual culprits are unit conversions, rounding, and a percentage typed as a whole number instead of a decimal. The examples are illustrations, not recommendations, and your situation may call for different assumptions. For important financial or health decisions, confirm your plan with a licensed professional who knows your circumstances. This article is reviewed periodically and was last updated in November 2026.

Frequently asked questions

What are the steps to calculate standard deviation?

Find the mean, subtract it from each value, square the differences, add them up, divide by n - 1 (sample) or N (population), and take the square root.

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

Because a sample is usually closer to its own mean than to the true population mean, dividing by n would underestimate the spread. Dividing by n - 1, called Bessel's correction, removes that bias.

How do I find standard deviation in Excel?

Use =STDEV.S(range) for a sample or =STDEV.P(range) for a population.

How do I calculate standard deviation from variance?

Take the square root of the variance. A variance of 25 means a standard deviation of 5.

How do I calculate standard deviation for grouped data?

Multiply each squared deviation by its frequency, add them up, divide by the total frequency minus one, and take the square root. Use class midpoints for intervals.

What does standard deviation tell you?

How spread out the values are around the mean. In a normal distribution about 68% of values fall within one standard deviation and 95% within two.

This standard deviation calculator is an educational tool. Results are computed in your browser with standard formulas; check important statistical work, such as research, quality control or exam answers, against your course method or statistical software.

Sawera Shahid

About the author

Sawera Shahid is the founder and lead writer of Calculators360. She builds the site's free online calculators and writes clear, step-by-step guides on finance, math and health, with every formula explained and worked examples you can check by hand.

© 2026 Calculators360. Free calculators for math, finance and health. Privacy · About · Contact

Leave a Reply

Your email address will not be published. Required fields are marked *