Standard Deviation Calculator

Calculate the sample and population standard deviation, variance, and mean of your data set. See the step-by-step sum of squares and the 68-95-99.7 empirical rule. Free and instant.

https://hexacalculator.com/calculators/mathematics/statistics/standard-deviation-calculator

Mathematics

Statistics

Standard Deviation Calculator

Calculate the sample and population standard deviation, variance, and mean of your data set. See the step-by-step sum of squares and the 68-95-99.7 empirical rule. Free and instant.

Standard Deviation Calculator

Pick Sample if your numbers are a subset drawn from a larger group (divides by n minus 1), or Population if they are the entire group (divides by n).

8 values

Show related measures

Add the coefficient of variation and the standard error of the mean.

Sample standard deviation

Sample variance (s²)
Population variance (σ²)
Minimum
Maximum
Range

Was this calculator helpful?

It takes one click and shapes what we fix next.

Add as preferred on Google

Show the charts

Plot your values and how far each one sits from the mean.

Show the calculation steps

List every value with its deviation and squared deviation from the mean.

Show the empirical rule

The 68, 95, and 99.7 percent ranges around the mean for a normal distribution.

The standard deviation is a measure of the spread of a set of numbers. It gives an indication of how far away from the mean each value is on average. A small standard deviation indicates that the data are clustered closely around the mean, while a large standard deviation indicates that the data are more widely dispersed.

This calculator will find the standard deviation of a set of numbers, as well as the variance, mean, count and sum. Select whether your data is a sample or population, enter all observations separated by commas, spaces or new lines, and see all results on one page.

What standard deviation tells us.

Each value in a data set is a certain distance away from the mean. The standard deviation takes those distances and summarizes them into one number. So it tells you how far each value is on average from its mean.

Even if two data sets have the same mean, they can be very different in other respects. For example, a group with values 70, 70, and 70 has the exact same mean as a group with values 40, 70, and 100 - but the spread of the second group is much greater. The mean alone cannot show this difference, but the standard deviation can.

A key advantage over the variance is that standard deviation can never be negative and uses the same units as the original data. If the standard deviation is zero, it means all values are equal.

Sample standard deviation and population standard deviation.

The only choice that changes the result is whether the numbers are for a sample or population. A population is the entire group being analyzed while a sample is just part of that group.

For a population, the sum of squared deviations is divided by n, the number of values. For a sample it is divided by the number n minus 1. This smaller divisor is called Bessel's correction. It makes the sample standard deviation slightly larger which corrects for the problem that the sample tends to underestimate the spread in the population from which it was drawn.

The formula for the population is only used when all members of the population are actually known. For example, if you were analyzing test scores from a class of students. If the data represents a larger population, then the sample formula should be used, and this tool defaults to using the sample formula.

σ=∑i=1N(xi−μ)2Ns=∑i=1n(xi−xˉ)2n−1\sigma = \sqrt{\frac{\sum_{i=1}^{N}(x_i - \mu)^2}{N}} \qquad s = \sqrt{\frac{\sum_{i=1}^{n}(x_i - \bar{x})^2}{n - 1}}

Here, σ is the population standard deviation, μ is the population mean, s is the sample standard deviation and x̄ is the sample mean.

This is how standard deviation is calculated.

The formula may seem complicated but it actually consists of five simple steps.

In the first step all numbers are added and then divided by the number of numbers to calculate the average. In the second step each number is subtracted from the average to determine the deviation. In the third step the individual deviations are squared to ensure that negative numbers do not cancel out positive ones.

In the fourth step, the sum of squared deviations is calculated. This sum is the quadratic sum. In the fifth step, the variance is divided by the number of elements in the population (n) or by n minus 1 (in case of a sample), and then the square root of this division is taken to obtain the standard deviation.

A complete example:

We'll use these eight numbers: 6, 6, 8, 10, 10, 12, 14, 14. This is a data set that's already loaded into the calculator tool. The sum of it is 80, so the mean is 10.

The deviations of each value from the mean are in order: negative 4, negative 4, negative 2, 0, 0, 2, 4, and 4. Squaring them gives us: 16, 16, 4, 0, 0, 4, 16, and 16, which add up to 72.

σ=728=9=3\sigma = \sqrt{\frac{72}{8}} = \sqrt{9} = 3

When the sum of squares (72) is divided by n (equal to 8), we get the population variance (9), and the square root of that is the population standard deviation (3).

s=727≈10.286≈3.207s = \sqrt{\frac{72}{7}} \approx \sqrt{10.286} \approx 3.207

If a group of identical numbers is considered as the sample, then dividing by 7 instead of 8 will result in a sample variance of approximately 10.286 and a sample standard deviation of approximately 3.207. Although the data are all equal, the results can be somewhat larger since the formula for the sample helps to avoid underestimating the variability.

Variance and standard deviation

Variance is the standard deviation before taking the square root and is equal to the average of squared deviations. These two quantities are always related: The standard deviation is the square root of the variance, and the variance is the square of the standard deviation.

Since the variance squares the data, it also changes the unit to a squared unit which makes interpretation difficult. If the units of the numbers are centimeters, then the unit of the variance is square centimeters while the standard deviation still has the unit of centimeters. This is why usually the standard deviation is reported.

Rules of thumb

When the data follows a normal distribution with bell-shaped curve, standard deviation can predict how spread out the values are around the mean. About 68% of the data falls within one standard deviation from the mean, about 95% within two standard deviations and about 99.7% within three standard deviations. This is an empirical rule also known as the 68-95-99.7 rule.

Thus, values that are more than two or three standard deviations from the mean appear to be outliers. This forms the basis for quality control limits and the concept of outliers in statistics. By opening the "rule of thumb" level you can check these areas for your own data.

Coefficient of variation and standard error

There are two related measures based on the standard deviation: The coefficient of variation is the ratio of the standard deviation to the mean, expressed as a percentage. This allows comparison of the spread of data sets that have wildly different means.

The standard error of the mean is the sample standard deviation divided by the square root of the sample size. It estimates how much the sample mean would change if a new sample were to be drawn, and decreases as the sample size increases. These two measures are displayed in the Related Measures level.

Applications of standard deviation.

In education, standard deviation is used to measure the spread of test scores and also in grading systems where points are assigned based on how far a score deviates from the average.

In manufacturing and quality control, a small standard deviation indicates that the process is stable and consistent while an increasing standard deviation indicates that product measurements are deviating from the specification. Control limits are set based on multiples of the standard deviation.

In finance, standard deviation is a standard measure of volatility and risk. Portfolios with large fluctuations have high standard deviations while stable portfolios have low standard deviations.

Used symbols:

Each symbol used above is spelled out below.

Symbol

Meaning

Example

x sub i

One value in the data set

14

x-bar

The sample mean

10

mu

The population mean

10

n or N

How many values there are

8

sigma

Population standard deviation

3

s

Sample standard deviation

3.207

Frequently asked questions

What is standard deviation?

Standard deviation is a measure of the spread of a set of numbers. It represents the typical distance between a value and the mean. A low standard deviation means that values tend to be close to the mean, while a high standard deviation indicates that values are more spread out.

What is the difference between sample standard deviation and population standard deviation?

Both methods measure the spread around the mean value. In a population, the sum of squared deviations is divided by the number of values n. In case of a sample it is divided by the number n minus 1 which gives slightly larger results and corrects for a tendency to underestimate the spread in the population from which the sample comes. If the data represents a large part of the total range, then the formula for samples should be used.

How to calculate standard deviation manually?

First the mean is calculated, then each individual value has the mean subtracted from it to obtain the deviations. These deviations are then squared. The sum of the squared deviations gives the sum of squares. For a population the variance is calculated by dividing by n, for a sample by dividing by (n - 1). The standard deviation is then the square root of the result. For 6, 6, 8, 10, 10, 12, 14, 14 the mean is 10 and the sum of squares is 72. The population standard deviation is the square root of (72) divided by (8), which is 3.

What is the difference between variance and standard deviation?

Variance is the average of squared deviations from the mean, while standard deviation is the square root of the variance. The variance is expressed in squared units which makes it difficult to interpret. So often the standard deviation is preferred since it uses the same units as the data.

What does a standard deviation of zero mean?

A standard deviation of zero means that all the values in a dataset are identical and there is no dispersion. The standard deviation can never be negative as it is the square root of an average of squares.

Related calculators

Disclaimer: This calculator is provided for general informational and educational purposes only. Our calculators are under active development, and results may be inaccurate, incomplete, or unsuitable for your situation. Always verify the figures independently and seek advice from a qualified professional before relying on them. We make no warranties and accept no liability for any loss or decision arising from use of this tool.

References

  1. Wikipedia: Standard deviation

    Definition, population and sample formulas, and worked examples.

  2. Wikipedia: Variance

    How variance relates to standard deviation and Bessel's correction.

  3. Empirical rule (68-95-99.7)

    How standard deviation partitions a normal distribution.