The population standard deviation tells you how spread out a set of numbers is from its average. If you have a list of values and need the exact figure fast, the calculator above does the work for you and shows every step along the way, whether your data is a full population or a sample drawn from a larger group. There is nothing to install and nothing to sign up for. Paste your numbers, pick the right mode, and get an accurate result in seconds.
What Is Standard Deviation?
Standard deviation is a measure of how far the values in a data set typically sit from the mean, or average. When most numbers cluster close to that average, the standard deviation comes out small. When the numbers are scattered further apart, it comes out larger. Analysts use it to check consistency in manufacturing output, investors use it to compare the risk carried by two different stocks, and weather researchers use it to compare temperature swings between regions that share the same average climate. Whatever the setting, the number is always answering the same question: how much do these values typically differ from their own average?
What Is the Population Standard Deviation Formula?
Population standard deviation is written as sigma equals the square root of the sum of squared differences from the mean, divided by N.
Symbol | Meaning |
σ | Population standard deviation |
μ | Population mean |
xi | Each individual value in the data set |
N | Total number of values in the population |
Use this version only when your data already includes every member of the group you are studying, not just part of it. If you measured the height of every plant in one specific greenhouse, that counts as a population, because there is no larger group left to estimate.
Take the data set 2, 4, 6, 8, 10. The mean is 6, so the deviations and squared deviations look like this.
Value | Deviation from mean | Squared deviation |
2 | -4 | 16 |
4 | -2 | 4 |
6 | 0 | 0 |
8 | 2 | 4 |
10 | 4 | 16 |
The squared deviations add up to 40. Divide that by 5 for a variance of 8, then take the square root to get a population standard deviation of about 2.83.
What Is the Sample Standard Deviation Formula?
Sample standard deviation is written as s equals the square root of the sum of squared differences from the mean, divided by n minus 1.
Symbol | Meaning |
s | Sample standard deviation |
x̄ | Sample mean |
xi | Each individual value in the sample |
n | Number of values in the sample |
Because a sample only covers part of a group, dividing by n instead of n minus 1 would make the result slightly too small on average. This adjustment is known as Bessel's correction, and it exists purely to keep the sample estimate honest. Run the same numbers through both formulas, and the sample answer will always come out equal to or larger than the population answer.
Using the same data set, 2, 4, 6, 8, and 10, the squared deviations still add up to 40. This time divide by 4 instead of 5 for a variance of 10, and then take the square root to get a sample standard deviation of about 3.16.
How Do You Calculate Standard Deviation Step by Step?
Once you understand the two formulas, the process itself is just five short steps. Here is the full walkthrough using one running example, five exam scores: 62, 70, 75, 80, and 88.
1. Add up all the numbers and divide by how many there are to get the mean.
2. Subtract the mean from each number, then square the result so every value turns positive.
3. Add all the squared differences together.
4. Divide that total by the count for a population, or by the count minus one for a sample.
5. Take the square root of that number. That final figure is your standard deviation.
How Do You Find the Mean and Square the Deviations?
For the exam scores above, the mean is 375 divided by 5, which comes to 75. Subtracting that mean from each score and squaring the result gives the table below.
Score | Deviation from mean | Squared deviation |
62 | -13 | 169 |
70 | -5 | 25 |
75 | 0 | 0 |
80 | 5 | 25 |
88 | 13 | 169 |
The squared deviations add up to 388. Treated as a population, that gives a standard deviation of about 8.81. Treated as a sample, dividing by 4 instead of 5 gives a standard deviation of about 9.85.
What Is the Shortcut Formula for Standard Deviation?
There is also a computational shortcut that skips the step of subtracting the mean from every single value. Instead, it works from the sum of the squared values and the squared sum of the values. For a population, that formula is the sum of xi squared, minus the squared sum of xi divided by N, all divided by N again.
Checking it against the exam score example: the sum of each score squared comes to 28,513. The squared total, 375 squared, divided by 5 comes to 28,125. Subtract the two and you get 388, the exact same sum of squared deviations found the longer way. This version is mainly useful if you are working the numbers by hand on a basic calculator that only stores running totals.
How Do You Use This Standard Deviation Calculator?
You do not need to know either formula by heart to use the tool above. Paste or type your numbers into the input box, choose sample or population mode depending on your data, and click calculate. The result includes the standard deviation itself along with the variance, mean, count, and sum of squares, plus the full step-by-step breakdown so you can check your own work or show it for a class.
What Data Formats and Edge Cases Does the Calculator Handle?
The calculator accepts numbers in several common formats, so you rarely need to reformat anything before pasting:
● Comma-separated values, such as 10, 12, 23
● Space-separated values
● One value per line, copied straight from a column
● Values pasted directly from an Excel or Google Sheets column
● Frequency shorthand, such as 10:3, which means the value 10 appears three times
One edge case worth knowing about: sample standard deviation cannot be calculated from a single data point, since that would mean dividing by zero. The population standard deviation of a single value, on the other hand, is always zero, because one point has no spread around itself.
How Do You Choose Between Sample and Population Mode?
The rule is simple even when the data is not. Choose population mode when your numbers already cover every member of the group you are studying. Choose sample mode when your numbers are a subset being used to estimate something bigger.
Mode | When to use it | Example |
Population | Your data includes every member of the group | Test scores for every student in one specific class |
Sample | Your data is a subset drawn from a larger group | A survey of 400 customers out of 50,000 total |
How Do You Interpret a Standard Deviation Result?
The number itself only means something once you put it next to the mean and the context it came from. Standard deviation is expressed in the same units as your original data, which is exactly what makes it easier to read at a glance than variance.
What Does a Low or High Standard Deviation Mean?
A low standard deviation means the values sit close together around the mean. A high one means they are spread out more widely. Picture two stocks with the same average return: the one with the lower standard deviation is the steadier, more predictable investment, while the one with the higher standard deviation carries more risk in either direction. The same idea applies on a factory floor, where a lower standard deviation in part measurements usually signals a more consistent, better controlled process. Neither a low nor a high number is automatically good or bad on its own. It depends entirely on what you are measuring and what you need from it.
How Does Standard Deviation Relate to the 68-95-99.7 Rule?
For data that roughly follows a normal, bell-shaped distribution, standard deviation lines up with a predictable pattern. About 68 percent of values fall within one standard deviation of the mean, about 95 percent fall within two, and about 99.7 percent fall within three. This is often called the empirical rule, and it only holds for data that is close to normally distributed. Skewed data, such as household income or company revenue, will not follow this pattern reliably.
How Do You Use Standard Deviation to Spot Outliers With Z-Scores?
A z-score tells you how many standard deviations a single value sits from the mean. It is calculated as the value minus the mean, divided by the standard deviation. Take the data set: 12, 14, 13, 15, 14, and 47. The mean comes out to about 19.17, and the sample standard deviation to about 13.6. For the value 47, the z-score works out to roughly 2.05. A common rule of thumb flags any value with a z-score beyond plus or minus 2 as a possible outlier, which is exactly what happens here. It is a useful guideline for a first pass through the data, not an absolute rule, so always look at the context before deciding to exclude a value.
How Does Standard Deviation Connect to Other Statistical Measures?
Standard deviation rarely works alone. Most real analysis pairs it with a handful of related measures, each answering a slightly different question about the same data set. Variance gives you the squared version behind the scenes. The mean is the anchor point every deviation is measured against. Grouped or frequency data needs its own version of the formula. A z-score turns a single value into a distance from the mean that can be compared across different data sets. Margin of error and confidence intervals build directly on top of standard deviation to describe how much a survey result might vary. Standard error narrows that idea down to how precisely a sample mean estimates the true population mean. And relative standard deviation puts the number on a percentage scale so you can compare variability across completely different units. The sections below cover each of these in the context of its own dedicated calculator.
How Is Variance Different From Standard Deviation?
Variance is calculated the same way as standard deviation, right up until the last step. It skips the final square root, which means it stays in squared units instead of the original units of your data. That makes it less intuitive to read on its own, but it is the version most statistical formulas, including ANOVA, are built around. If you need the squared figure directly rather than working backward from standard deviation, the variance calculator handles that calculation on its own.
How Do You Calculate the Mean of a Data Set?
Every standard deviation calculation starts with the mean, so getting it wrong throws off everything that follows. It is simply the sum of your values divided by how many there are. If you just need that one number on its own, without running the full standard deviation calculation, the mean calculator gives you the answer directly.
How Do You Calculate Standard Deviation for Grouped or Frequency Data?
Data that comes grouped into ranges, or listed with a frequency count next to each value, needs a version of the formula that weights each value or midpoint by how often it appears before anything gets summed. The calculator on this page supports basic frequency shorthand like 10:3, but for full-range-based input with class intervals, the grouped data standard deviation calculator is built specifically for that format.
How Do You Convert a Value Into a Z-Score?
A z-score standardizes a raw deviation by dividing it by the standard deviation, which turns any value into a distance measured in standard deviations rather than the original units. This is what makes it possible to compare a test score against an exam average and a temperature reading against a seasonal average on the same scale. If you already know your mean and standard deviation and just need to convert one specific value, the z-score calculator does that conversion instantly.
How Does Standard Deviation Build a Confidence Interval or Margin of Error?
The margin of error in a survey or poll comes directly from the standard deviation of the sample, combined with a chosen confidence level and the sample size. A larger standard deviation produces a wider margin of error for the exact same sample size, which is why tightening up your data collection often matters more than simply collecting more responses. To calculate this directly from your own numbers, the confidence interval calculator walks through it step by step.
How Do You Calculate the Standard Error of the Mean?
Standard error of the mean equals the sample standard deviation divided by the square root of the sample size. It measures how precisely your sample mean is likely to estimate the true population mean, and unlike standard deviation, it shrinks as your sample size grows. For this specific calculation, the standard error calculator takes your data and returns the result directly.
How Do You Calculate Relative Standard Deviation?
Relative standard deviation, also called the coefficient of variation, divides the standard deviation by the mean and is usually expressed as a percentage. It comes in handy when you need to compare variability between two data sets that use different units or very different average sizes, something raw standard deviation cannot do on its own. The coefficient of variation calculator runs that comparison for you.
Frequently Asked Questions
Why do you divide by n-1 for a sample standard deviation?
Dividing by n minus 1 instead of n is called Bessel's correction. A sample's own mean sits slightly closer to its data points than the true population mean would, so dividing by n alone would underestimate the real spread.
Can standard deviation be negative?
No. Standard deviation comes from a square root of squared values, so the lowest it can ever be is zero, which happens only when every value in the data set is identical.
What does a standard deviation of 1.5 mean?
It means individual values sit about 1.5 units away from the mean on average, in whatever unit your data uses. Whether that counts as small or large depends entirely on the scale of the data itself.
What is the difference between standard deviation and standard error?
Standard deviation measures spread within your data set. Standard error measures how much a sample mean is likely to vary from the true population mean, and it gets smaller as your sample size grows, while standard deviation does not.
Can standard deviation be calculated from a single number?
Population standard deviation of one value is always zero, since a single point has no spread around itself. Sample standard deviation cannot be calculated from one value at all, because it would require dividing by zero.


