Standard deviation is the single most useful number for understanding how spread out your data really is. The mean tells you where the center sits; the standard deviation tells you how far individual values typically stray from that center. If the mean is the bullseye, the standard deviation is the size of the scatter around it. A small standard deviation means the data points cluster tightly together; a large one means they are widely scattered.
This calculator computes the population standard deviation, the sample standard deviation, the variance, and the mean for up to eight numbers at a time. Enter test scores, monthly sales figures, sensor readings, or anything else that comes as a short list of values, and you get the full picture in one step. Unlike a simple average calculator that only tells you the central tendency, this tool measures dispersion — how much the numbers vary, not just where they land on average.
How to Use
- Set the Number of Data Points to how many values you have (1 to 8), then type each value into its own numbered Data Point box — for example
4200,5100,3800,6200,4900. Leave the unused boxes at 0. Negative numbers and decimals are allowed. - Choose the Statistic Type. Pick Population (divide by N) if your data represents the entire group you care about (every customer, every transaction, every test paper). Pick Sample (divide by N−1) if your data is a subset drawn from a larger group and you want to estimate the true spread.
- Press the calculate button. The result card shows the mean, the number of data points, the variance, and the highlighted standard deviation.
- The card also reports the population standard deviation and sample standard deviation side by side, so you can compare both regardless of which type you selected.
- The Data Range line shows the minimum and maximum values, giving you a quick sense of the full span.
The Formula Behind the Number
Standard deviation works on the square root of the average squared distance from the mean. The steps are:
sigma = sqrt( sum( (x_i - mean)^2 ) / (N - ddof) )
Where:
- mean = the arithmetic average of all data points.
- x_i = each individual data point.
- N = the number of data points.
- ddof = delta degrees of freedom. Use 0 for population, 1 for sample.
Here is the step-by-step process:
- Calculate the mean: add all values and divide by N.
- Subtract the mean from each value and square the result.
- Add up all those squared differences.
- Divide by N (population) or N minus 1 (sample).
- Take the square root. The result is the standard deviation.
The variance is the number before the final square root. Standard deviation is simply the square root of the variance, and it is expressed in the same units as the original data — which makes it far more interpretable than variance alone.
Population vs. Sample: Which One Do I Need?
This is the most common source of confusion. When your data covers every single member of the group you are studying, you have a population. For example, if you are analyzing the test scores of one class of 30 students and you only care about that class, divide by N.
When you are working with a subset — say, 100 customers surveyed out of 10,000 — you have a sample. Dividing by N would slightly underestimate the true spread, because small samples naturally under-represent extreme values. The fix is Bessel's correction: divide by N minus 1 instead. This nudges the standard deviation upward a little, giving a more honest estimate of the population you cannot fully measure.
As a rule of thumb, if you are trying to generalize beyond your data points, use sample (ddof = 1). If your data is the complete set of interest, use population (ddof = 0).
Examples
Example 1 — Monthly sales variation. A small business tracks seven months of revenue: $4,200, $5,100, $3,800, $6,200, $4,900, $5,500, $4,700. The mean monthly sales is about $4,914. The population standard deviation is roughly $740, and the sample standard deviation is about $799. This tells the owner that revenue swings by roughly $740 above or below the average in a typical month — useful context when planning inventory or payroll.
Example 2 — Exam score consistency. A teacher records eight scores: 10, 12, 23, 23, 16, 23, 21, 16. The mean is 18. The population standard deviation is about 4.90, and the sample standard deviation is about 5.24. With scores ranging from 10 to 23, a standard deviation of roughly 5 points tells the teacher the class performance is moderately spread out — not all clustered at the mean, but not wildly scattered either.
Example 3 — Tight vs. wide distributions. Two different machines produce parts with a target diameter of 5 cm. Machine A yields measurements 4.9, 5.0, 5.1, 5.0, 4.9 (population SD about 0.08 cm). Machine B yields 4.5, 5.5, 4.8, 5.2, 5.0 (population SD about 0.35 cm). The means are nearly identical — both center on 5.0 cm — but the standard deviation reveals that Machine B is far less consistent. The average alone would have hidden this quality-control problem.
Example 4 — Large datasets. For financial analysts comparing quarterly returns across thousands of stocks, standard deviation quantifies volatility. A stock with a mean return of 8% and a standard deviation of 2% is far more predictable than one with the same 8% mean but a 15% standard deviation. Investors routinely use standard deviation as a proxy for risk precisely because the average return alone says nothing about how bumpy the ride will be.
FAQ
What is the difference between standard deviation and average?
The average (mean) is a measure of central tendency — it tells you where the center of your data lies. Standard deviation is a measure of dispersion — it tells you how spread out the data is around that center. Two datasets can have the exact same mean but very different standard deviations, which means the numbers behave very differently despite averaging to the same value.
When should I use population vs. sample standard deviation?
Use population standard deviation (ddof = 0) when your data includes every member of the group you are studying. Use sample standard deviation (ddof = 1) when your data is a subset drawn from a larger population and you want to estimate the true spread. Sample standard deviation is slightly larger because it applies Bessel's correction (dividing by N-1 instead of N).
What does a standard deviation of zero mean?
A standard deviation of zero means every data point is identical. There is no variation at all. For example, the dataset 5, 5, 5, 5 has a mean of 5 and a standard deviation of 0, because none of the numbers deviate from the mean.
How do I interpret a large standard deviation?
A large standard deviation means the data points are widely scattered around the mean. In practical terms, individual values tend to be far from the average. For example, if a stock has a mean annual return of 10% and a standard deviation of 20%, some years it may return +30% and other years -10%. The larger the standard deviation, the more unpredictable and volatile the data.
Can standard deviation be negative?
No. Standard deviation is always a non-negative number. It is the square root of variance, and the square root of a non-negative number is never negative. If you compute a negative result, something went wrong in the calculation — typically an input error or a wrong division.
What is variance and how is it different from standard deviation?
Variance is the average of the squared deviations from the mean. Standard deviation is the square root of variance. The key difference is units: variance is expressed in squared units (e.g., dollars squared), while standard deviation is in the original units (e.g., dollars). That is why standard deviation is usually the more interpretable and reported number.
How many data points do I need?
At minimum, you need two numbers. With one data point, the deviation from the mean is zero and the concept does not apply. Two points give a valid but rough estimate. For statistical reliability, analysts prefer at least 20–30 observations, and for sample estimates (ddof = 1), more data always improves confidence in the result.
Related Calculators
- Average Calculator — the mean that sits at the center of the same data.
- Variance Calculator — the squared spread before the final square root.
- Correlation Calculator — how two lists move together.
- Normal Distribution Calculator — use the mean and SD to find percentiles.
Disclaimer
This standard deviation calculator is provided for informational purposes only and does not constitute statistical, financial, or scientific advice. Results are based on the formulas described and the inputs you provide; actual interpretations should be confirmed with a qualified statistician or domain expert before being used to make important decisions. The calculator assumes your input numbers are valid and properly formatted, and it does not detect outliers or data-entry errors on your behalf.